:root {
  --dw-bg: #0d1030; --dw-fg: #f3ead6; --dw-accent: #f4c96b; --dw-panel: rgba(13, 16, 48, .95);
  --dw-font-body: 'EB Garamond', Georgia, serif; --display: 'IM Fell English', Georgia, serif; --caps: 'Cinzel', Georgia, serif;
  --gold: #f4c96b; --flare: #ffb648; --paper: #f1e6cc; --ink: #241a10; --line: rgba(243, 234, 214, .16);
}
body { overflow-x: hidden; font-size: 1.12rem; background: radial-gradient(120% 60% at 50% 0%, #161a4a, var(--dw-bg) 60%) fixed, var(--dw-bg); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .45em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
section { padding: clamp(56px, 9vw, 116px) clamp(16px, 5vw, 64px); }
.kicker { font-family: var(--caps); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 14px clamp(16px, 4vw, 40px); background: #0d1030b8; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #f4c96b1c; }
.brand { font-family: var(--display); font-size: 1.7rem; color: var(--dw-fg); text-decoration: none; }
.brand span { color: var(--gold); font-style: normal; }
.topbar nav { display: flex; align-items: center; gap: 20px; font-family: var(--caps); font-size: .78rem; letter-spacing: .1em; }
.topbar nav a { color: var(--dw-fg); text-decoration: none; opacity: .8; }
.topbar nav a:hover { opacity: 1; color: var(--gold); }
@media (max-width: 640px) { .topbar nav a { display: none; } }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 0; overflow: hidden; }
.hero-art { position: absolute; inset: -5% 0 auto; width: 100%; height: 110%; object-fit: cover; object-position: 60% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0d1030e6 0%, #0d103099 40%, transparent 72%), linear-gradient(transparent 50%, #0d1030 98%); }
.hero-copy { position: relative; z-index: 2; max-width: 760px; padding: 96px clamp(16px, 5vw, 64px) clamp(48px, 10vh, 120px); }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); text-shadow: 0 4px 40px #000; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 54ch; opacity: .92; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn { font-family: var(--caps); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--dw-fg);
  border: 1px solid #f3ead680; padding: .95em 1.5em; border-radius: 999px; transition: background .2s, color .2s; }
.btn:hover { background: var(--dw-fg); color: var(--dw-bg); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1430; font-weight: 700; box-shadow: 0 0 30px #f4c96b55; }
.btn-gold:hover { background: #ffe1a0; }
.hs { position: absolute; z-index: 3; width: 6%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed transparent; background: transparent; transition: border-color .3s, background .3s; }
.hs:hover, .hs:focus-visible { border-color: var(--gold); background: #f4c96b22; }
.hs.is-found { border-color: #f4c96b77; }
.hs-quill { left: 67%; top: 47%; }

.how { max-width: 1120px; margin: 0 auto; text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 1.4rem; text-align: left; }
.how-grid > div { border-top: 1px solid #f4c96b55; padding-top: 1rem; }
.num { font-family: var(--caps); color: var(--gold); font-size: 1.4rem; margin: 0; }
.how h3 { font-size: 1.5rem; }
.how p { opacity: .88; margin: 0; }

.serial { max-width: 820px; margin: 0 auto; }
.serial-head { text-align: center; margin-bottom: 1.8rem; }
.hint { font-style: italic; opacity: .9; }
.lit-count { display: block; font-style: normal; font-family: var(--caps); font-size: .8rem; letter-spacing: .14em; color: var(--gold); margin-top: .4rem; }
.plate { position: relative; margin: 0 0 2rem; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px #000a; border: 1px solid #f4c96b33; }
.plate img { width: 100%; height: auto; }
.hs-cat { left: 15%; top: 70%; width: 9%; }

.chapter { position: relative; background: var(--paper); color: var(--ink); padding: clamp(26px, 5vw, 56px) clamp(20px, 6vw, 64px); margin: 0 0 1.6rem;
  border-radius: 3px; box-shadow: 0 24px 60px #0009, inset 0 0 80px #b8925a44; }
.chapter::before { content: ''; position: absolute; inset: 10px; border: 1px solid #8a6a3a40; pointer-events: none; }
.chapter p { margin: 0 0 1em; line-height: 1.7; }
.ch-num { font-family: var(--caps); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: #8a5a22; margin-bottom: .3rem !important; }
.chapter h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: #1c140b; }
.chapter p:first-of-type:not(.ch-num):not(.sealed-note)::first-letter { font-family: var(--display); }
.letter { font-family: var(--display); font-size: 1.3em; text-align: center; color: #5a2a0a; padding: .4em 0; }
.to-be { font-style: italic; text-align: right; }
.sealed-note { font-style: italic; color: #6b5435; }
.chapter:not(.is-open) { min-height: 200px; background: repeating-linear-gradient(0deg, transparent 0 30px, #8a6a3a1c 30px 31px), var(--paper); }
.chapter:not(.is-open) h3, .chapter:not(.is-open) .ch-num { opacity: .55; }
.seal { position: absolute; right: clamp(16px, 5vw, 48px); top: 50%; translate: 0 -50%; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d0463b, #8e1b17 70%); box-shadow: 0 6px 16px #0006, inset 0 -6px 12px #0005; display: grid; place-items: center;
  font-family: var(--display); font-size: 2.6rem; color: #f3c7a8; transition: transform .7s cubic-bezier(.3,1.6,.5,1), opacity .7s; }
.seal::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 2px dashed #ffffff30; }
.chapter.is-open .seal { transform: scale(1.4) rotate(25deg); opacity: 0; pointer-events: none; }
.chapter.is-open .sealed-note { display: none; }
.chapter.is-opening .ch-body { animation: inklight 1.4s ease both; }
@keyframes inklight { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.chapter-next { background: transparent !important; color: var(--dw-fg); border: 1px dashed #f4c96b66; box-shadow: none; }
.chapter-next::before { display: none; }
.chapter-next h3 { color: var(--dw-fg); } .chapter-next .ch-num { color: var(--gold); } .chapter-next .sealed-note { color: var(--dw-fg); opacity: .85; }
@media (max-width: 560px) { .seal { width: 64px; height: 64px; font-size: 1.8rem; top: 28px; translate: none; } }

.flare-word { font: inherit; color: #a3440a; background: none; border: 0; padding: 0 .08em; cursor: pointer; border-radius: 3px; position: relative;
  text-shadow: 0 0 6px #ffb64899, 0 0 14px #ffb64866; animation: burn 2.4s ease-in-out infinite; }
.flare-word:hover, .flare-word:focus-visible { color: #d0560c; background: #ffb64826; }
.flare-word.is-found { animation: none; color: #7a4a14; text-shadow: none; text-decoration: underline dotted #a3440a; }
@keyframes burn { 50% { text-shadow: 0 0 10px #ffb648, 0 0 24px #ff8a2a99; color: #c2520c; } }

.found { font-family: var(--caps); font-size: .82rem; letter-spacing: .12em; text-align: center; opacity: .85; }
.reward { max-width: 640px; margin: 1rem auto; padding: 1rem 1.2rem; border: 1px solid var(--gold); border-radius: 6px; background: #f4c96b14; }
.journal { max-width: 720px; margin: 1rem auto 0; font-size: 1rem; opacity: .9; }
.journal li { margin: .5em 0; }

.price { text-align: center; }
.price > p { max-width: 640px; margin: 0 auto; opacity: .9; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 1000px; margin: 1.8rem auto 0; }
.offer { font-family: var(--display); font-size: 1.45rem; color: var(--dw-fg); background: #151a52; border: 1px solid var(--line); border-radius: 8px; padding: 1.1em 1em; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s; }
.offer small { font-family: var(--dw-font-body); font-size: .95rem; opacity: .78; display: block; margin-top: .3rem; }
.offer:hover, .offer:focus-visible { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 0 30px #f4c96b33; }

.join { display: grid; justify-items: center; text-align: center; background: radial-gradient(70% 70% at 50% 100%, #3a2a10aa, transparent 70%); }
.join > p { max-width: 580px; opacity: .9; }
.join .dw-optin { text-align: left; width: 100%; }
.pick { display: grid; gap: .3rem; }
.pick span { font-family: var(--caps); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
select { font: inherit; padding: .7em .9em; border-radius: 10px; border: 1px solid #f3ead64d; background: #10143c; color: var(--dw-fg); }
.offer-note { margin: 0; color: var(--gold); font-style: italic; }
.dw-optin button[type=submit] { font-family: var(--caps); letter-spacing: .08em; color: #1a1430; }

.foot { padding: 30px 16px 10px; text-align: center; border-top: 1px solid var(--line); }
.more { font-family: var(--caps); font-size: .78rem; letter-spacing: .08em; }
.glyph { font: inherit; background: none; border: 0; color: var(--gold); cursor: pointer; padding: 0 .3em; }
.chapter { scroll-margin-top: 90px; }
.hero .kicker { text-shadow: 0 1px 12px #000, 0 0 3px #000; }
.letter-long { font-size: 1.08em; text-align: left; border-left: 2px solid #a3440a55; padding: .2em 0 .2em 1em; }
.offer { font-family: var(--dw-font-body); font-weight: 600; font-size: 1.4rem; font-variant-numeric: lining-nums; }
.offer small { font-weight: 400; }
