:root {
  color-scheme: dark;
  --ink: #07110f;
  --ink-soft: #0b1916;
  --panel: rgba(16, 31, 27, 0.82);
  --panel-solid: #10201c;
  --paper: #f3efe3;
  --paper-soft: #d8d5c9;
  --muted: #9eaa9f;
  --line: rgba(217, 211, 187, 0.16);
  --gold: #d7ba77;
  --gold-bright: #f2d598;
  --teal: #72cabb;
  --blue: #82a9d9;
  --error: #ffb8a8;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 16%, rgba(58, 116, 104, 0.18), transparent 31rem),
    radial-gradient(circle at 9% 42%, rgba(117, 88, 48, 0.12), transparent 34rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 0.4rem;
}
.skip-link:focus { top: 1rem; }

#constellation {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.74;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgba(215, 186, 119, 0.65);
  border-radius: 50%;
}
.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
}
.brand-mark::before { width: 0.28rem; height: 0.28rem; left: 0.3rem; top: 0.45rem; }
.brand-mark::after { width: 0.2rem; height: 0.2rem; right: 0.3rem; bottom: 0.35rem; }
.brand-mark i:first-child { width: 0.36rem; height: 0.36rem; left: 0.67rem; top: 0.62rem; }
.brand-mark i:nth-child(2) { width: 1px; height: 1.1rem; left: 0.81rem; top: 0.22rem; opacity: 0.5; transform: rotate(38deg); }
.brand-mark i:nth-child(3) { display: none; }

nav { display: flex; align-items: center; gap: 1.8rem; }
nav a { color: var(--paper-soft); font-size: 0.82rem; text-decoration: none; }
nav a:hover { color: var(--paper); }
.nav-cta {
  padding: 0.58rem 0.95rem;
  border: 1px solid rgba(215, 186, 119, 0.58);
  border-radius: 99px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: center;
  width: min(1180px, calc(100% - 3rem));
  min-height: 760px;
  margin: 0 auto;
  padding: 6rem 0 5rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow span { display: inline-block; width: 1.6rem; height: 1px; margin: 0 0.65rem 0.2rem 0; background: var(--gold); }

h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
h1 { margin: 0; max-width: 760px; font-size: clamp(3.45rem, 5.3vw, 5.9rem); letter-spacing: -0.045em; }
h2 { margin: 0; font-size: clamp(2.5rem, 4.2vw, 4.3rem); letter-spacing: -0.035em; }
h3 { font-size: 1.45rem; }

.hero-lede { max-width: 650px; margin: 1.8rem 0 0; color: var(--paper-soft); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.2rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 0.42rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: #172018; background: linear-gradient(135deg, var(--gold-bright), #c9a663); box-shadow: 0 12px 32px rgba(161, 125, 56, 0.16); }
.button.primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.text-link { color: var(--paper-soft); text-underline-offset: 0.35rem; text-decoration-color: rgba(243, 239, 227, 0.35); }
.quiet-note { max-width: 570px; margin: 1.4rem 0 0; color: var(--muted); font-size: 0.78rem; }

.book-window {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  border: 1px solid rgba(215, 186, 119, 0.2);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(14, 29, 25, 0.94), rgba(7, 17, 15, 0.8));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.03);
}
.window-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.window-top > div { display: flex; align-items: center; gap: 0.65rem; }
.window-top p { margin: 0; color: var(--muted); font-size: 0.71rem; letter-spacing: 0.1em; text-transform: uppercase; }
.window-dot { width: 0.45rem; height: 0.45rem; background: var(--gold); border-radius: 50%; box-shadow: 0 0 14px var(--gold); }
.live-pill { padding: 0.3rem 0.55rem; color: var(--teal); border: 1px solid rgba(114, 202, 187, 0.25); border-radius: 99px; font-size: 0.65rem; }

.universe-preview { position: relative; height: 290px; background: radial-gradient(circle at 50% 51%, rgba(114, 202, 187, 0.09), transparent 37%); }
.universe-preview svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.universe-preview path { fill: none; stroke: rgba(114, 202, 187, 0.34); stroke-width: 1.2; stroke-dasharray: 2 5; }
.orbit { position: absolute; left: 50%; top: 51%; border: 1px solid rgba(130, 169, 217, 0.12); border-radius: 50%; transform: translate(-50%, -50%) rotate(-12deg); }
.orbit-one { width: 260px; height: 105px; }
.orbit-two { width: 410px; height: 190px; transform: translate(-50%, -50%) rotate(18deg); }
.node { position: absolute; display: grid; place-items: center; color: var(--paper-soft); border: 1px solid rgba(215, 186, 119, 0.34); border-radius: 50%; background: rgba(18, 40, 34, 0.82); box-shadow: 0 0 35px rgba(114, 202, 187, 0.11); font-size: 0.65rem; text-align: center; }
.node-center { left: 50%; top: 50%; width: 90px; height: 90px; color: var(--paper); background: radial-gradient(circle at 35% 30%, #315349, #142822 70%); transform: translate(-50%, -50%); }
.node-center::after { content: ""; position: absolute; inset: -11px; border: 1px solid rgba(215, 186, 119, 0.12); border-radius: 50%; }
.node-events { left: 14%; top: 16%; width: 58px; height: 58px; }
.node-staff { right: 12%; top: 14%; width: 70px; height: 70px; }
.node-learning { right: 13%; bottom: 8%; width: 62px; height: 62px; }

.answer-card { margin: -0.3rem 1.15rem 0; padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: 0.7rem; background: rgba(5, 14, 12, 0.68); }
.answer-heading { display: flex; justify-content: space-between; gap: 1rem; }
.channel-label { color: var(--gold); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.source-count { color: var(--muted); font-size: 0.65rem; }
.question { margin: 0.7rem 0 0; color: var(--paper); font-family: var(--display); font-size: 1.05rem; }
.answer { margin: 0.65rem 0 0; color: var(--paper-soft); font-size: 0.78rem; line-height: 1.6; }
.answer mark { color: var(--paper); background: linear-gradient(transparent 58%, rgba(215, 186, 119, 0.22) 58%); }
.evidence-line { margin-top: 0.85rem; color: var(--muted); font-size: 0.64rem; }
.evidence-line span { color: var(--teal); }
.change-rail { display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem; align-items: center; margin: 0.75rem 1.15rem 1.1rem; padding: 0.9rem 1rem; border-left: 2px solid var(--teal); background: rgba(114, 202, 187, 0.055); }
.change-icon { color: var(--teal); }
.change-rail strong { font-size: 0.72rem; }
.change-rail p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.65rem; }
.change-rail button { padding: 0; color: var(--paper-soft); border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 0.65rem; cursor: pointer; }

.signal-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.2rem; padding: 1.1rem 3rem; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 20, 17, 0.64); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.signal-strip p { margin: 0; }
.signal-strip span { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }

.inside-section, .moment-section, .principles-section, .waitlist-section { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; padding: 9rem 0; }
.section-intro { display: grid; grid-template-columns: 0.75fr 1.35fr; column-gap: 4rem; }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section-intro p:last-child { max-width: 580px; margin: 0.5rem 0 0; color: var(--paper-soft); }
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 5rem; background: var(--line); border: 1px solid var(--line); }
.chapter-grid article { position: relative; min-height: 330px; padding: 2rem; background: rgba(8, 20, 17, 0.95); }
.chapter-number { color: var(--muted); font-size: 0.65rem; letter-spacing: 0.12em; }
.chapter-symbol { position: relative; width: 90px; height: 80px; margin: 2.2rem 0; }
.chapter-symbol::before, .chapter-symbol::after { content: ""; position: absolute; }
.symbol-source::before { inset: 12px 22px 12px 12px; border: 1px solid var(--gold); transform: rotate(-5deg); }
.symbol-source::after { inset: 4px 12px 20px 22px; border: 1px solid rgba(114, 202, 187, 0.55); transform: rotate(7deg); }
.symbol-channel::before { width: 56px; height: 56px; left: 17px; top: 12px; border: 1px solid var(--gold); border-radius: 50%; box-shadow: -24px 12px 0 -1px var(--ink), -24px 12px 0 0 rgba(114, 202, 187, 0.5), 24px 12px 0 -1px var(--ink), 24px 12px 0 0 rgba(130, 169, 217, 0.5); }
.symbol-change::before { left: 9px; right: 9px; top: 39px; height: 1px; background: var(--gold); transform: rotate(-12deg); box-shadow: 0 -18px rgba(114, 202, 187, 0.5), 0 18px rgba(130, 169, 217, 0.5); }
.symbol-change::after { right: 5px; top: 17px; width: 9px; height: 9px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(33deg); }
.chapter-grid h3 { margin: 0 0 0.8rem; }
.chapter-grid p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.moment-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; border-top: 1px solid var(--line); }
.moment-copy > p:not(.eyebrow) { color: var(--paper-soft); }
details { margin-top: 1.7rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { padding: 0.85rem 0; color: var(--gold); cursor: pointer; font-size: 0.78rem; }
details p { margin: 0 0 1rem; color: var(--muted) !important; font-size: 0.78rem; }
.evidence-stack { position: relative; padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(150deg, rgba(18, 39, 33, 0.88), rgba(7, 16, 14, 0.95)); box-shadow: var(--shadow); }
.prompt-chip { display: inline-block; padding: 0.32rem 0.65rem; color: var(--teal); border: 1px solid rgba(114, 202, 187, 0.25); border-radius: 99px; font-size: 0.65rem; text-transform: uppercase; }
blockquote { margin: 1.5rem 0; font-family: var(--display); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.2; }
.response-block { padding: 1.2rem; border-left: 1px solid var(--gold); background: rgba(0, 0, 0, 0.15); }
.response-block > p { margin: 0 0 1.2rem; color: var(--paper-soft); }
.citation { display: flex; gap: 0.8rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.citation > span { color: var(--gold); font-size: 0.65rem; }
.citation strong, .citation small { display: block; font-family: var(--sans); }
.citation strong { font-size: 0.72rem; }
.citation small { margin-top: 0.2rem; color: var(--muted); font-size: 0.62rem; }

.principles-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.principle-list article { display: grid; grid-template-columns: 55px 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.principle-list article:first-child { padding-top: 0; }
.principle-list span { color: var(--gold); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.principle-list h3 { margin: 0; font-size: 1.25rem; }
.principle-list p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.82rem; }

.waitlist-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; padding: 7rem clamp(1.5rem, 5vw, 5rem); border: 1px solid rgba(215, 186, 119, 0.25); border-radius: 1rem; background: linear-gradient(135deg, rgba(22, 44, 37, 0.94), rgba(10, 23, 19, 0.96)); box-shadow: var(--shadow); }
.waitlist-copy > p:not(.eyebrow) { color: var(--paper-soft); }
.waitlist-copy ul { display: grid; gap: 0.5rem; margin: 1.4rem 0 0; padding: 0; color: var(--muted); list-style: none; font-size: 0.8rem; }
.waitlist-copy li::before { content: "✦"; margin-right: 0.7rem; color: var(--gold); }
.waitlist-form { display: grid; gap: 1.2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 0.75rem; background: rgba(5, 14, 12, 0.35); }
.field-row label { display: block; margin-bottom: 0.4rem; color: var(--paper-soft); font-size: 0.7rem; font-weight: 700; }
input, select { width: 100%; min-height: 3.2rem; padding: 0.8rem 0.9rem; color: var(--paper); border: 1px solid rgba(218, 214, 199, 0.22); border-radius: 0.38rem; background: rgba(5, 13, 11, 0.66); }
input::placeholder { color: #77827a; }
select { appearance: auto; }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; color: var(--paper-soft); font-size: 0.72rem; cursor: pointer; }
.consent-row input { width: 1.05rem; min-height: 0; height: 1.05rem; margin-top: 0.18rem; accent-color: var(--gold); }
.turnstile-slot:empty { display: none; }
.submit-button { width: 100%; }
.submit-button:disabled { opacity: 0.55; cursor: wait; }
.form-status { min-height: 1.1rem; margin: 0; color: var(--error); font-size: 0.72rem; }
.form-privacy { margin: 0; color: var(--muted); font-size: 0.64rem; }
.form-privacy a { text-underline-offset: 0.2rem; }
.waitlist-success { padding: 3rem 2rem; border: 1px solid rgba(114, 202, 187, 0.28); border-radius: 0.75rem; background: rgba(5, 14, 12, 0.35); text-align: center; }
.waitlist-success > span { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--ink); background: var(--teal); border-radius: 50%; }
.waitlist-success h3 { margin: 0; font-size: 1.9rem; }
.waitlist-success p { color: var(--paper-soft); }
.text-button { padding: 0; color: var(--muted); border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 0.7rem; cursor: pointer; }

footer { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; width: min(1180px, calc(100% - 3rem)); margin: 7rem auto 0; padding: 2.2rem 0 3rem; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.68rem; }
.footer-brand { color: var(--paper); font-size: 1rem; }
footer p { margin: 0; text-align: center; }
footer > div { display: flex; gap: 1rem; }

.privacy-page main { width: min(760px, calc(100% - 3rem)); margin: 0 auto; padding: 7rem 0; }
.privacy-page h1 { max-width: 680px; font-size: clamp(3rem, 7vw, 5rem); }
.privacy-page .updated { color: var(--gold); font-size: 0.72rem; }
.privacy-copy { margin-top: 4rem; }
.privacy-copy h2 { margin: 3rem 0 1rem; font-size: 2rem; }
.privacy-copy p, .privacy-copy li { color: var(--paper-soft); }
.privacy-control { margin-top: 3rem; padding: 1.4rem; border: 1px solid var(--line); background: var(--panel); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 4.5rem; }
  .hero-copy { max-width: 760px; }
  .book-window { width: min(680px, 100%); margin: 0 auto; }
  .section-intro, .moment-section, .principles-section, .waitlist-section { grid-template-columns: 1fr; }
  .section-intro p:last-child { margin-top: 1.5rem; }
}

@media (max-width: 720px) {
  .site-header, .hero, .inside-section, .moment-section, .principles-section, footer { width: min(100% - 2rem, 1180px); }
  .site-header nav > a:not(.nav-cta) { display: none; }
  .hero { gap: 3rem; padding: 3.8rem 0; }
  h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .book-window { min-height: 620px; }
  .universe-preview { height: 270px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-grid article { min-height: auto; }
  .waitlist-section { width: calc(100% - 1rem); padding: 4rem 1rem; }
  .waitlist-form { padding: 1rem; }
  .signal-strip span { display: none; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p { text-align: left; }
  footer > div { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  #constellation { display: none; }
}
