:root {
  --brand: #7c263b;
  --brand-dark: #5e1b2c;
  --brand-tint: #f7eef0;
  --ink: #2b1d21;
  --muted: #6d5a60;
  --line: #e7d9dd;
  --bg: #fffdfb;
  --surface: #ffffff;
  --header-bg: rgba(255, 253, 251, .94);
  --accent: #7c263b;
  --on-brand: #ffffff;
  --logo-filter: none;
  --radius: 14px;
  --font-head: "Literata", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-tint: #2a1c20;
    --ink: #f3e9ec;
    --muted: #bfa9b0;
    --line: #3d2b31;
    --bg: #1b1315;
    --surface: #251a1d;
    --header-bg: rgba(27, 19, 21, .94);
    --accent: #e591a6;
    --logo-filter: brightness(0) invert(1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-tint: #2a1c20;
  --ink: #f3e9ec;
  --muted: #bfa9b0;
  --line: #3d2b31;
  --bg: #1b1315;
  --surface: #251a1d;
  --header-bg: rgba(27, 19, 21, .94);
  --accent: #e591a6;
  --logo-filter: brightness(0) invert(1);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--header-bg);
}

a { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  text-wrap: balance;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  max-width: calc(1120px + 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .8em 1.4em;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
}
.brand img { width: 44px; filter: var(--logo-filter); }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.menu a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--accent); border-radius: 2px;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.08), transparent 45%),
    var(--brand);
  color: #fff;
  padding: clamp(56px, 9vw, 112px) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(340px, 80%); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--brand-tint); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { color: var(--accent); }
.card p { margin: 0; color: var(--muted); }
.card-line { border-top: 4px solid var(--brand); }
@media (min-width: 861px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 18px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%237c263b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Members */
.members-intro { margin-top: 1.5rem; }
.member-types { display: grid; gap: 14px; }
.type {
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
}
.type h4 { color: var(--accent); margin-bottom: .3em; }
.type p { margin: 0; font-size: .95rem; color: var(--muted); }

.steps-title { margin-top: 3rem; }
.steps {
  list-style: none; padding: 0; margin: 1.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.steps li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  margin-bottom: .8rem;
}
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }

.fees {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  margin-top: 2rem;
  padding: 24px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.fee { display: flex; flex-direction: column; }
.fee-amount { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.fee-label { font-size: .9rem; color: var(--muted); }
.fees .btn { margin-left: auto; }
.fees + .small { margin-top: .8rem; }

/* Contact */
.contact { background: var(--brand); color: #fff; }
.contact h2 { color: #fff; }
.eyebrow-light { color: rgba(255,255,255,.75); }
.contact-list { margin: 0; display: grid; gap: 18px; }
.contact-list div { border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 14px; }
.contact-list dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.contact-list dd { margin: .2em 0 0; font-size: 1.15rem; }
.contact-list a { color: #fff; }

/* Footer */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.8); padding: 32px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.footer-inner img { width: 56px; filter: brightness(0) invert(1); opacity: .9; }
.footer-inner strong { color: #fff; }
.footer-inner p { margin: 0 0 0 auto; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; text-align: center; }

  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 200px; }
  .fees .btn { margin-left: 0; width: 100%; text-align: center; }
  .footer-inner p { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
