




















































*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: #121110;
  color: #ece6d8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}


body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(48rem 32rem at 12% -8%, rgba(199, 160, 63, 0.16), transparent 60%),
    radial-gradient(40rem 30rem at 108% 18%, rgba(111, 148, 80, 0.14), transparent 60%),
    radial-gradient(36rem 28rem at 50% 108%, rgba(199, 160, 63, 0.08), transparent 65%);
  animation: ambient-drift 26s ease-in-out infinite alternate;
}


body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes ambient-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
}

img { max-width: 100%; height: auto; display: block; }

a { color: #c7a03f; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #e3c46b;
  outline-offset: 2px;
}





.skip-link {
  position: absolute;
  top: -3rem;
  left: 0.75rem;
  z-index: 200;
  background: #c7a03f;
  color: #121110;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus-visible {
  top: 0.75rem;
  outline: 2px solid #e3c46b;
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ece6d8;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
p.lead { font-size: 1.15rem; color: #a89e8b; }
p.cite {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: #e3c46b;
  border-left: 3px solid #c7a03f;
  padding-left: 1rem;
}

.text-center { text-align: center; }

#site-main { display: block; min-height: 60vh; }


.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }


.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: ui-monospace, 'SFMono-Regular', 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e3c46b;
  border: 1px solid #34302a;
  border-radius: 2px;
  padding: 0.25em 0.6em;
  background: #1c1a17;
}
.tag::before {
  content: '';
  width: 6px; height: 6px;
  background: #c7a03f;
  border-radius: 1px;
  transform: rotate(45deg);
  animation: tag-pulse 2.4s ease-in-out infinite;
}

@keyframes tag-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(199,160,63,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 3px rgba(199,160,63,0); }
}


.section-narrow, .section-wide {
  padding: 2.5rem 1.25rem;
  margin: 0 auto;
}
.section-narrow { max-width: 42rem; }
.section-wide { max-width: 76rem; }
.section-title {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, #c7a03f, #6f9450);
  background-size: 200% 100%;
  animation: underline-sweep 4s ease-in-out infinite;
}

@keyframes underline-sweep {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}


.welcome-section { position: relative; }
.welcome-banner {
  height: 46vh;
  min-height: 260px;
  max-height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.welcome-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,8,7,0.25) 0%, rgba(9,8,7,0.85) 100%);
}


.facet {
  clip-path: polygon(0 0, calc(100% - #{14px}) 0, 100% #{14px}, 100% 100%, 0 100%);
  background: #1c1a17;
  border: 1px solid #34302a;
}


.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  align-items: center;
  text-align: left;
}
.split-section-media img { border-radius: 4px; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-section-body { text-align: left; }


.card-row, .card-grid, .rhombus-grid, .admin-tile-grid, .role-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 76rem;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}

.blog-card, .event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: #1c1a17;
  border: 1px solid #34302a;
  border-radius: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover, .event-card:hover {
  transform: translateY(-4px);
  border-color: #c7a03f;
  box-shadow: 0 14px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(199,160,63,0.15), 0 0 24px rgba(199,160,63,0.12);
}
.blog-card img, .event-card img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover img, .event-card:hover img { transform: scale(1.05); }
.blog-card-title { display: block; padding: 0.75rem 1rem 1rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; font-weight: 600; font-size: 1.05rem; }

.event-card { position: relative; }
.event-card-badge {
  position: absolute; top: 0.6rem; right: 0.6rem;
  font-family: ui-monospace, 'SFMono-Regular', 'IBM Plex Mono', 'Courier New', monospace; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: #c7a03f; color: #121110; font-weight: 700; padding: 0.25em 0.5em; border-radius: 2px;
}
.event-card-body { padding: 0.75rem 1rem 1rem; }
.event-card-body h4 { margin-bottom: 0.25em; }
.event-card-body p { color: #a89e8b; font-size: 0.9rem; margin: 0; }

.empty-hint { color: #a89e8b; font-style: italic; text-align: center; }


.rhombus-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 2rem 1rem; text-align: center; text-decoration: none; color: inherit;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.rhombus-tile:hover {
  transform: translateY(-4px);
  border-color: #34302a;
  background: radial-gradient(120% 120% at 50% -10%, rgba(199,160,63,0.08), transparent 65%);
}
.rhombus-tile:hover .tile-icon { transform: scale(1.12) rotate(-4deg); color: #e3c46b; animation: none; }
.rhombus-tile--locked { opacity: 0.6; }
.tile-icon {
  width: 42px; height: 42px; color: #c7a03f;
  transition: transform 0.25s ease, color 0.25s ease;
  animation: icon-breathe 5s ease-in-out infinite;
}
.rhombus-tile-wrap { display: flex; flex-direction: column; gap: 0.75rem; }

@keyframes icon-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}


.btn-primary, .btn-outline, .btn-small, .btn-danger {
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 2px;
  padding: 0.65em 1.4em;
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.btn-primary { background: #c7a03f; color: #121110; border: 1px solid #c7a03f; }
.btn-outline { background: transparent; color: #e3c46b; border: 1px solid #c7a03f; }
.btn-danger { background: #b4472f; color: #ece6d8; border: 1px solid #b4472f; }
.btn-small { padding: 0.35em 0.8em; font-size: 0.82rem; }
.btn-primary:hover, .btn-outline:hover, .btn-danger:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 0 1px rgba(199,160,63,0.3), 0 6px 18px rgba(199,160,63,0.25);
}


.btn-primary::after, .btn-outline::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-outline:hover::after { left: 130%; }
.btn-primary:active, .btn-outline:active, .btn-danger:active { transform: translateY(1px); }


.form { max-width: 32rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.form--inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; max-width: none; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; text-align: left; }
.form-field label { font-size: 0.85rem; color: #a89e8b; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  padding: 0.6em 0.75em;
  border: 1px solid #34302a;
  border-radius: 4px;
  background: #1c1a17;
  color: #ece6d8;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #a89e8b; opacity: 0.7; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; text-align: left; }
.form-hint { font-size: 0.85rem; color: #a89e8b; text-align: center; }


.auth-section { padding: 3rem 1.25rem; }
.auth-card {
  max-width: 28rem; margin: 0 auto; padding: 2rem;
  background: #1c1a17;
  border: 1px solid #34302a; border-radius: 4px;
}
.auth-card h1 { text-align: center; }


.legal-content { line-height: 1.7; }
.legal-content h1, .legal-content h2, .legal-content h3 { margin-top: 1.75em; }
.legal-content ul { padding-left: 1.25em; }


.toast-root {
  position: fixed; top: 1rem; right: 1rem; z-index: 1000;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  font-size: 0.9rem;
  padding: 0.75em 1em;
  border-radius: 4px;
  background: #1c1a17;
  color: #ece6d8;
  border-left: 3px solid #c7a03f;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.toast--error { border-left-color: #b4472f; }


.stat-row { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 76rem; margin: 0 auto 1.5rem; padding: 0 1.25rem; }
.stat-tile { background: #1c1a17; border: 1px solid #34302a; border-radius: 4px; padding: 1rem; text-align: center; }
.stat-tile strong { display: block; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: 1.8rem; color: #c7a03f; }
.stat-tile span { font-size: 0.8rem; color: #a89e8b; text-transform: uppercase; letter-spacing: 0.05em; }

.admin-tile { background: #1c1a17; border: 1px solid #34302a; border-radius: 4px; padding: 1.25rem; text-decoration: none; color: inherit; transition: border-color 0.15s ease; }
.admin-tile:hover { border-color: #c7a03f; }
.admin-tile-group { font-family: ui-monospace, 'SFMono-Regular', 'IBM Plex Mono', 'Courier New', monospace; font-size: 0.7rem; text-transform: uppercase; color: #a89e8b; }

.table-wrap { overflow-x: auto; max-width: 76rem; margin: 1.5rem auto 0; padding: 0 1.25rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.admin-table th, .admin-table td { text-align: left; padding: 0.6em 0.75em; border-bottom: 1px solid #34302a; }
.admin-table th { font-family: ui-monospace, 'SFMono-Regular', 'IBM Plex Mono', 'Courier New', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #a89e8b; }

.badge { font-family: ui-monospace, 'SFMono-Regular', 'IBM Plex Mono', 'Courier New', monospace; font-size: 0.65rem; padding: 0.2em 0.5em; border-radius: 2px; background: #34302a; color: #ece6d8; }
.badge--super { background: #c7a03f; color: #121110; font-weight: 700; }

.role-card { background: #1c1a17; border: 1px solid #34302a; border-radius: 4px; padding: 1.25rem; }
.role-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.perm-group { margin-bottom: 0.75rem; }
.perm-group-checkboxes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.35rem; }

.enlightenment-block { max-width: 42rem; margin: 0 auto 2.5rem; }
.enlightenment-img { border-radius: 4px; margin-bottom: 1rem; aspect-ratio: 16/9; object-fit: cover; }


@media (min-width: 600px) {
  .card-row, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .form--inline { flex-wrap: nowrap; }
}

@media (min-width: 960px) {
  .split-section { grid-template-columns: 1fr 1fr; }
  .split-section--reverse .split-section-media { order: 2; }
  .rhombus-grid { grid-template-columns: repeat(3, 1fr); }
  .card-row, .card-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-tile-grid, .role-card-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-banner { height: 56vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
