:root {
  color-scheme: dark;
  --bg: #0f1518;
  --bg-soft: rgba(18, 26, 30, 0.78);
  --panel: rgba(23, 32, 36, 0.88);
  --panel-strong: rgba(30, 40, 45, 0.95);
  --text: #f6efe4;
  --muted: #c7bbab;
  --faint: #8f9aa3;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d7b46d;
  --gold-soft: rgba(215, 180, 109, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 180, 109, 0.17), transparent 32%),
    radial-gradient(circle at top right, rgba(132, 170, 198, 0.12), transparent 26%),
    linear-gradient(180deg, #0b1012 0%, #0f1518 30%, #10171b 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.backdrop {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.35;
  z-index: -1;
}

.backdrop-a {
  top: -80px;
  left: -100px;
  width: 280px;
  height: 280px;
  background: rgba(215, 180, 109, 0.45);
}

.backdrop-b {
  right: -120px;
  top: 180px;
  width: 320px;
  height: 320px;
  background: rgba(92, 125, 148, 0.45);
}

.topbar,
.page,
.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(215, 180, 109, 0.28), rgba(215, 180, 109, 0.12));
  border: 1px solid rgba(215, 180, 109, 0.36);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.hero h1,
.section h2,
.feature-card h3,
.info-card h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: 0.01em;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.page {
  display: grid;
  gap: 26px;
  padding: 12px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
  padding: 34px 0 14px;
}

.hero-copy,
.hero-aside,
.section,
.footer {
  animation: fadeUp 600ms ease both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.eyebrow,
.section-kicker,
.card-kicker,
.feature-tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--gold);
}

.lede {
  max-width: 66ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, rgba(215, 180, 109, 0.98), rgba(193, 154, 84, 0.94));
  color: #201608;
  border-color: transparent;
  font-weight: 700;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-stats li,
.info-card,
.feature-card,
.group-card,
.support-card {
  background: linear-gradient(180deg, var(--panel), rgba(17, 24, 28, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 18px;
}

.hero-stats strong {
  display: block;
  font-size: 1.7rem;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.hero-aside {
  display: grid;
  gap: 14px;
}

.info-card,
.feature-card,
.group-card,
.support-card {
  padding: 22px;
}

.info-card.accent {
  background: linear-gradient(180deg, rgba(215, 180, 109, 0.18), rgba(18, 25, 28, 0.92));
}

.info-card h2,
.section h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.hero-title {
  margin: 8px 0 18px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.contact-list dt {
  color: var(--faint);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-list dd {
  margin: 5px 0 0;
  font-size: 1rem;
}

.section {
  padding: 8px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head p:last-child {
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.6;
}

.section-head-wide {
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.feature-card:focus-visible,
.group-card:hover,
.support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 180, 109, 0.4);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.search {
  display: grid;
  gap: 8px;
  min-width: min(100%, 360px);
}

.search span {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.search input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.search input:focus {
  border-color: rgba(215, 180, 109, 0.55);
  box-shadow: 0 0 0 4px rgba(215, 180, 109, 0.12);
}

.directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.group-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.group-card h3 {
  margin: 0;
  font-size: 1.24rem;
}

.group-meta {
  color: var(--faint);
  font-size: 0.82rem;
}

.entry-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text);
}

.entry::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(215, 180, 109, 0.9);
  box-shadow: 0 0 0 4px rgba(215, 180, 109, 0.12);
}

.entry:hover {
  border-color: rgba(215, 180, 109, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.entry a {
  display: block;
}

.supporting {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-card h3 {
  margin: 8px 0 10px;
  font-size: 1.2rem;
}

.support-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 20px 0 34px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--gold);
}

.is-hidden {
  display: none !important;
}

.matches-count {
  color: var(--faint);
  font-size: 0.88rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .cards,
  .directory,
  .supporting {
    grid-template-columns: 1fr;
  }

  .section-head,
  .section-head-wide,
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .page,
  .footer {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .nav {
    gap: 8px;
  }

  .nav a,
  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
