:root {
  --bg: #0a090d;
  --surface-1: #131118;
  --surface-2: #1b1822;
  --line: #2d2836;
  --line-strong: #7a7088;
  --ink: #f4efe7;
  --ink-muted: #c4bcc8;
  --ink-subtle: #9c93a6;
  --gold-500: #bf9b5a;
  --gold-300: #e5d2a6;
  --gold-ink: #d4b67c;
  --purple-950: #1d1026;
  --purple-800: #3d1e55;
  --purple-600: #6c3b96;
  --purple-ink: #cdb0ec;
  --focus: #cfaaff;
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --inscription: "Marcellus SC", "Bodoni Moda", Georgia, serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--gold-300); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--gold-500); color: #120e08; padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }

.inscription {
  font-family: var(--inscription);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 12px;
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(10px);
}
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 48px; }
.mark img { border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-500); }
.mark > span { display: flex; flex-direction: column; line-height: 1.15; }
.mark-name { font-family: var(--display); font-size: 19px; font-weight: 600; }
.mark-class { font-family: var(--inscription); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.soon {
  font-size: 15px; color: var(--purple-ink);
  border: 1px solid var(--purple-600); background: var(--purple-950);
  padding: 6px 14px; border-radius: 999px;
}

/* Home */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 10vw, 120px) 16px clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 45% at 50% 30%, color-mix(in srgb, var(--purple-600) 45%, transparent), transparent 70%),
    radial-gradient(30% 30% at 50% 35%, color-mix(in srgb, var(--gold-500) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.medallion {
  width: min(280px, 64vw); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold-500), 0 24px 80px -20px color-mix(in srgb, var(--gold-500) 55%, transparent);
  margin-bottom: 32px;
  animation: arrive 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(44px, 8vw, 88px); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0 0 24px;
  animation: rise 1s .2s cubic-bezier(.2,.7,.2,1) both;
}
.lead {
  max-width: 40rem; margin: 0 auto; font-size: clamp(19px, 2.2vw, 22px); color: var(--ink-muted);
  animation: rise 1s .35s cubic-bezier(.2,.7,.2,1) both;
}

.band { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 16px 0; }
.band:last-child { padding-bottom: clamp(48px, 8vw, 96px); }
.band h2, .doc h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 16px;
}
.band p, .doc p, .doc li { color: var(--ink-muted); }

.levels {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.levels li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px; border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
}
.level-name { font-family: var(--inscription); letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; color: var(--gold-ink); }
.level-amount { font-family: var(--display); font-size: 32px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.level-amount-sm { font-size: 26px; line-height: 1.5; }

.statement {
  margin: 24px 0 0; padding: 20px 24px; border-radius: 16px;
  background: var(--purple-950); border: 1px solid var(--purple-800);
}
.statement p:last-child { margin: 0; color: var(--ink); }

/* Document pages */
.doc { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 16px clamp(48px, 8vw, 96px); }
.doc h1 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 6vw, 60px); line-height: 1.08; margin: 0 0 8px; }
.updated { font-size: 17px; color: var(--ink-subtle) !important; margin: 0 0 24px; }
.summary { font-size: 20px; color: var(--ink) !important; margin: 0 0 32px; }
.toc { padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-1); margin-bottom: 16px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 4px 0; }
.doc section { padding-top: 32px; scroll-margin-top: 96px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.optin {
  margin: 16px 0; padding: 16px 20px; border-left: 3px solid var(--gold-500);
  background: var(--surface-1); color: var(--ink); border-radius: 0 12px 12px 0;
}
.callout {
  margin: 16px 0; padding: 16px 20px; border-left: 3px solid var(--gold-500);
  background: var(--surface-1); border-radius: 0 12px 12px 0;
}
.callout p { margin: 0; color: var(--ink) !important; }
.doc-img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.doc strong { color: var(--ink); }
.contact-form { display: grid; gap: 18px; margin-top: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-1); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 18px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field .hint { margin: 0; font-size: 17px; color: var(--ink-subtle) !important; }
.form-error { margin: 0; color: #f5a39c !important; font-weight: 600; }
.btn-gold {
  justify-self: start; font: inherit; font-weight: 700; font-size: 18px; color: #120e08; background: var(--gold-500);
  border: 0; border-radius: 999px; padding: 12px 28px; min-height: 48px; cursor: pointer;
}
.btn-gold:hover { background: var(--gold-300); }
.contact-card { padding: 24px; border-radius: 16px; border: 1px solid var(--gold-500); background: var(--surface-1); }
.contact-email { font-size: 24px; margin: 0 0 8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface-1);
  padding: 32px clamp(16px, 4vw, 48px) 40px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { display: inline-block; padding: 6px 0; }
.legal { font-family: var(--inscription); letter-spacing: 0.12em; font-size: 15px; color: var(--ink-muted); margin: 0 0 8px; }
.small { font-size: 17px; color: var(--ink-subtle); margin: 4px 0; }

@keyframes arrive { from { opacity: 0; transform: scale(.94) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 560px) {
  .soon { display: none; }
  .site-header { padding-top: 12px; padding-bottom: 12px; }
}
