:root {
  --bg: #0a0a0b;
  --bg-deep: #070708;
  --surface: #111113;
  --surface-2: #171719;
  --surface-3: #1c1c1f;
  --text: #f4f2ec;
  --muted: #9c9b98;
  --dim: #696866;
  --line: rgba(244, 242, 236, 0.11);
  --accent: #c8a96b;
  --accent-2: #d9c192;
  --danger: #c87979;
  --success: #90b98e;
  --max: 1240px;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(200,169,107,.10), transparent 33rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.page { min-height: 100vh; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.kicker { color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.display { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

.site-shell { position: relative; z-index: 1; }
.nav-wrap { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: rgba(10,10,11,.82); border-bottom: 1px solid var(--line); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display:flex; align-items:center; gap:12px; font-size: 13px; font-weight: 800; letter-spacing:.16em; }
.brand-mark { width: 28px; height: 28px; display:grid; place-items:center; border:1px solid var(--line); background:linear-gradient(145deg,#18181b,#0f0f11); border-radius: 50%; color:var(--accent-2); }
.nav-links { display:flex; align-items:center; gap:6px; }
.nav-link { padding:10px 12px; border-radius:10px; color:var(--muted); font-size:13px; }
.nav-link:hover, .nav-link.active { color:var(--text); background:rgba(255,255,255,.045); }
.mobile-nav-trigger { display:none; border:1px solid var(--line); background:transparent; color:var(--text); border-radius:10px; padding:10px 12px; }
.mobile-menu { display:none; border-top:1px solid var(--line); padding:10px 0 16px; }
.mobile-menu.open { display:grid; gap:4px; }

.hero { padding: 105px 0 86px; }
.hero-grid { display:grid; grid-template-columns: 1.15fr .85fr; align-items:center; gap:72px; }
.hero-copy h1 { font-size: clamp(54px, 7vw, 106px); line-height:.92; margin: 18px 0 26px; max-width: 760px; }
.hero-copy p { font-size: 17px; color: var(--muted); max-width: 640px; margin:0 0 30px; }
.actions { display:flex; flex-wrap:wrap; gap:12px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding: 0 18px; border-radius: 10px; border:1px solid var(--line); background:var(--surface); color:var(--text); font-weight:700; font-size:13px; letter-spacing:.02em; transition:transform .22s ease, background .22s ease, border-color .22s ease; }
.btn:hover { transform:translateY(-1px); background:var(--surface-2); border-color:rgba(200,169,107,.4); }
.btn-primary { background:var(--text); color:#0a0a0b; border-color:var(--text); }
.btn-primary:hover { background:#fff; }
.btn-ghost { background:transparent; }

.hero-art { aspect-ratio: 1 / .9; min-height: 420px; position:relative; border:1px solid var(--line); border-radius: 24px; overflow:hidden; background: radial-gradient(circle at 60% 38%, rgba(200,169,107,.15), transparent 35%), #0f0f11; box-shadow: var(--shadow); }
.hero-art::after { content:""; position:absolute; inset:18px; border:1px solid rgba(244,242,236,.08); border-radius:18px; pointer-events:none; }
.vault-orbit { position:absolute; width:55%; aspect-ratio:1; border:1px solid rgba(200,169,107,.22); border-radius:50%; top:16%; left:21%; animation:slowspin 20s linear infinite; }
.vault-orbit::before { content:""; position:absolute; width:9px; height:9px; border-radius:50%; background:var(--accent); top:-4px; left:50%; box-shadow:0 0 32px rgba(200,169,107,.5); }
.vault-core { position:absolute; width:38%; aspect-ratio:1; border-radius:50%; top:29%; left:31%; border:1px solid rgba(244,242,236,.16); background:radial-gradient(circle at 35% 32%, rgba(244,242,236,.18), rgba(200,169,107,.06) 38%, transparent 66%), #111114; box-shadow: inset 0 0 70px rgba(200,169,107,.08), 0 0 100px rgba(200,169,107,.07); }
.art-label { position:absolute; left:36px; bottom:34px; font-size:11px; letter-spacing:.15em; text-transform:uppercase; color:var(--dim); }
@keyframes slowspin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior:auto !important; animation:none !important; transition:none !important; } }

.section-head { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:28px; }
.section-head h2 { margin:6px 0 0; font-size:clamp(28px,4vw,44px); line-height:1; }
.section-head a { color:var(--accent-2); font-size:13px; font-weight:700; }

.featured { display:grid; grid-template-columns: 1.1fr .9fr; border:1px solid var(--line); border-radius:22px; overflow:hidden; background:linear-gradient(145deg, rgba(255,255,255,.025), transparent); }
.featured-copy { padding:42px; display:flex; flex-direction:column; justify-content:center; }
.featured-copy h3 { font-size:clamp(34px,4vw,56px); line-height:1; margin:14px 0; }
.featured-copy p { color:var(--muted); max-width:570px; }
.featured-art { min-height:390px; background: radial-gradient(circle at 70% 30%, rgba(200,169,107,.18), transparent 28%), #111113; position:relative; }

.grid { display:grid; gap:16px; }
.grid-3 { grid-template-columns:repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns:repeat(4, minmax(0,1fr)); }
.story-card { display:flex; flex-direction:column; min-height: 330px; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:var(--surface); transition:transform .22s ease, border-color .22s ease, background .22s ease; }
.story-card:hover { transform:translateY(-3px); border-color:rgba(200,169,107,.3); background:var(--surface-2); }
.story-visual { min-height:155px; position:relative; overflow:hidden; background:#111113; border-bottom:1px solid var(--line); }
.story-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(17,17,19,.38), transparent 65%); }
.card-body { padding:18px; display:flex; flex-direction:column; flex:1; }
.card-meta { display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); }
.card-title { font-family:Georgia,"Times New Roman",serif; font-size:25px; line-height:1.04; margin:0 0 10px; }
.card-hook { color:var(--muted); font-size:13px; margin:0 0 18px; }
.card-footer { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.text-link { font-size:12px; color:var(--accent-2); font-weight:700; }
.save-btn { width:36px; height:36px; border:1px solid var(--line); border-radius:9px; background:transparent; color:var(--muted); }
.save-btn.saved { color:var(--accent-2); border-color:rgba(200,169,107,.4); background:rgba(200,169,107,.06); }

.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--muted); padding:8px 12px; font-size:11px; letter-spacing:.06em; text-transform:uppercase; }
.chip.active, .chip:hover { color:var(--text); border-color:rgba(200,169,107,.35); background:rgba(200,169,107,.06); }
.search { width:100%; border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:12px; padding:14px 16px; outline:none; }
.search::placeholder { color:var(--dim); }

.stats { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.stat { padding:24px; border-right:1px solid var(--line); }
.stat:last-child { border-right:0; }
.stat-num { font-family:Georgia,"Times New Roman",serif; font-size:34px; }
.stat-label { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.1em; margin-top:3px; }

.callout { border:1px solid var(--line); border-left:2px solid var(--accent); padding:20px 22px; border-radius:14px; background:linear-gradient(135deg, rgba(200,169,107,.07), rgba(255,255,255,.02)); }
.callout strong { display:block; margin-bottom:6px; }

.quiz-preview { display:grid; grid-template-columns: .8fr 1.2fr; border:1px solid var(--line); border-radius:20px; overflow:hidden; background:var(--surface); }
.quiz-preview-art { min-height:280px; background:radial-gradient(circle at 50% 45%, rgba(200,169,107,.16), transparent 28%), #101012; }
.quiz-preview-copy { padding:32px; display:flex; flex-direction:column; justify-content:center; }
.quiz-preview-copy h3 { margin:8px 0 12px; font-family:Georgia,"Times New Roman",serif; font-size:38px; }

.page-header { padding:72px 0 28px; }
.page-header h1 { font-size:clamp(44px,6vw,76px); line-height:.92; margin:10px 0 18px; }
.page-header p { max-width:720px; color:var(--muted); font-size:17px; }
.toolbar { display:grid; grid-template-columns: minmax(0,1fr) auto; gap:18px; align-items:center; margin-bottom:28px; }

.story-page { padding-bottom:80px; }
.story-hero { padding:72px 0 32px; }
.story-hero-grid { display:grid; grid-template-columns: .95fr 1.05fr; gap:54px; align-items:end; }
.story-title { font-size:clamp(48px,6.5vw,92px); line-height:.9; margin:14px 0 18px; max-width:900px; }
.story-hook { color:var(--muted); font-size:18px; max-width:760px; }
.story-art-large { min-height:480px; border:1px solid var(--line); border-radius:24px; overflow:hidden; background: #111113; }
.story-meta-row { display:flex; gap:20px; flex-wrap:wrap; padding:22px 0 0; color:var(--dim); font-size:11px; letter-spacing:.10em; text-transform:uppercase; }
.story-body { max-width:780px; margin:70px auto 0; }
.story-body h2 { font-family:Georgia,"Times New Roman",serif; font-size:36px; line-height:1.1; margin:54px 0 16px; }
.story-body p { color:#d4d1ca; font-size:17px; }
.story-body p.lede { font-size:22px; color:var(--text); line-height:1.45; }
.story-list { padding-left: 20px; color:#d4d1ca; }

.interaction { margin:44px 0; padding:26px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); }
.interaction-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.interaction h3 { font-size:19px; margin:4px 0 0; }
.option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.option { text-align:left; border:1px solid var(--line); border-radius:12px; background:#121214; color:var(--text); padding:15px 16px; min-height:56px; }
.option:hover { border-color:rgba(200,169,107,.38); }
.option.selected { border-color:var(--accent); background:rgba(200,169,107,.08); }
.option.correct { border-color:var(--success); background:rgba(144,185,142,.08); }
.option.incorrect { border-color:var(--danger); background:rgba(200,121,121,.08); }
.reveal-box { margin-top:16px; padding:18px; border-radius:12px; border:1px solid rgba(200,169,107,.18); background:rgba(200,169,107,.05); color:#ddd7cc; }

.rabbit { margin-top:70px; padding:34px 0; border-top:1px solid var(--line); }
.rabbit-chain { display:flex; align-items:stretch; gap:0; overflow:auto; padding:6px 0 16px; }
.rabbit-node { min-width:220px; border:1px solid var(--line); padding:18px; background:var(--surface); border-radius:14px; }
.rabbit-node.current { border-color:rgba(200,169,107,.45); }
.rabbit-arrow { display:grid; place-items:center; min-width:46px; color:var(--accent); }

.sources { margin-top:44px; padding-top:26px; border-top:1px solid var(--line); }
.source { display:flex; gap:12px; align-items:flex-start; margin:12px 0; }
.source-number { color:var(--accent); font-size:11px; padding-top:3px; }
.source a { color:#d9d5cc; font-size:13px; text-decoration:underline; text-decoration-color:rgba(200,169,107,.35); text-underline-offset:3px; }

.empty { text-align:center; padding:70px 20px; border:1px dashed var(--line); border-radius:18px; background:rgba(255,255,255,.015); }
.empty h2 { font-family:Georgia,"Times New Roman",serif; font-size:36px; margin:10px 0; }

.quiz-page { max-width:980px; margin:0 auto; }
.quiz-header { padding:72px 0 32px; }
.quiz-header h1 { font-size:clamp(44px,6vw,76px); line-height:.92; margin:14px 0; }
.quiz-progress { height:4px; border-radius:100px; background:#1c1c1f; overflow:hidden; margin:20px 0 34px; }
.quiz-progress > span { display:block; height:100%; background:var(--accent); transition:width .3s ease; }
.quiz-card { padding:36px; border:1px solid var(--line); border-radius:20px; background:var(--surface); }
.quiz-card h2 { font-family:Georgia,"Times New Roman",serif; font-size:38px; line-height:1.08; margin:0 0 24px; }
.result { text-align:center; padding:68px 20px; }
.result h2 { font-size:58px; margin:10px 0; }
.result-mark { width:72px; height:72px; border:1px solid rgba(200,169,107,.42); border-radius:50%; display:grid; place-items:center; margin:0 auto 22px; color:var(--accent-2); }

.footer { padding:48px 0 70px; border-top:1px solid var(--line); margin-top:40px; }
.footer-grid { display:flex; justify-content:space-between; gap:28px; color:var(--dim); font-size:12px; }

.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width: 980px) {
  .hero-grid, .featured, .quiz-preview, .story-hero-grid { grid-template-columns:1fr; }
  .hero-art, .story-art-large { min-height:380px; }
  .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .story-body { max-width:720px; }
}
@media (max-width: 720px) {
  .container { width:min(100% - 28px, var(--max)); }
  .nav { height:64px; }
  .nav-links { display:none; }
  .mobile-nav-trigger { display:inline-flex; }
  .hero { padding-top:72px; }
  .hero-copy h1 { font-size:clamp(48px,15vw,78px); }
  .hero-art { min-height:290px; }
  .featured-copy { padding:26px; }
  .featured-art { min-height:250px; }
  .section { padding:64px 0; }
  .grid-4, .grid-3, .option-grid { grid-template-columns:1fr; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(2) { border-right:0; }
  .stat:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .toolbar { grid-template-columns:1fr; }
  .story-hero { padding-top:44px; }
  .story-title { font-size:clamp(46px,14vw,68px); }
  .story-art-large { min-height:270px; }
  .story-body { margin-top:45px; }
  .story-body p { font-size:16px; }
  .story-body p.lede { font-size:19px; }
  .interaction { padding:20px; }
  .quiz-card { padding:22px; }
  .quiz-card h2 { font-size:30px; }
  .rabbit-chain { margin-inline:-14px; padding-inline:14px; }
  .footer-grid { flex-direction:column; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .nav-links .nav-link { padding-inline:8px; }
}
