/* Layout: the wheel of eighteen. Indigo night and gold linework; one slow-turning wheel on the home page, quiet gold-ruled pages behind it. */
:root {
  --night: #0a0e22;
  --night-2: #0e1430;
  --panel: rgba(22, 30, 68, 0.55);
  --panel-solid: #121a3a;
  --land: #1b2452;
  --coast: rgba(216, 181, 111, 0.42);
  --grat: rgba(216, 181, 111, 0.08);
  --text: #e2dccb;
  --ink: #f2e6c4;
  --muted: #9b9db9;
  --gold: #d8b56f;
  --gold-pale: #f0e2bc;
  --tear: #a382ff;
  --tear-soft: rgba(163, 130, 255, 0.15);
  --rim: #d8b56f;
  --line: rgba(216, 181, 111, 0.22);
  --line-soft: rgba(216, 181, 111, 0.12);
  --st-page: #8fd3aa;
  --st-draft: #ebb467;
  --st-canon: #aab5ff;
  --font-display: "Marcellus", "Trajan Pro", Cambria, Georgia, serif;
  --font-caps: "Marcellus SC", "Marcellus", Cambria, Georgia, serif;
  --font-body: "EB Garamond", Garamond, Georgia, serif;
  --font-data: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --font-deva: "Noto Serif Devanagari", "Nirmala UI", Mangal, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night); }
body { background: var(--night); color: var(--text); font-family: var(--font-body); font-size: 18px; line-height: 1.6;
  background-image: radial-gradient(1100px 760px at 78% -6%, #17204c 0%, transparent 62%), radial-gradient(700px 500px at -10% 110%, rgba(208, 83, 47, 0.07), transparent 70%);
  background-attachment: fixed; }
a { color: inherit; }
.deva { font-family: var(--font-deva); font-weight: 500; letter-spacing: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--tear); outline-offset: 3px; }

/* Top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(10, 14, 34, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1180px; margin: 0 auto; padding-inline: 24px; padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--font-caps); font-weight: 400; letter-spacing: 0.3em; font-size: 16px; color: var(--ink); }
nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav a { font-family: var(--font-caps); font-size: 14px; letter-spacing: 0.16em; text-decoration: none; color: var(--muted); padding: 8px 12px; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -1px 0 var(--gold); }
.toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-caps); letter-spacing: 0.08em; font-size: 13px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--gold); width: 16px; height: 16px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; padding-block: 40px 80px; display: grid; gap: 64px; }
.page { display: grid; gap: 64px; }
.eyebrow { font-family: var(--font-caps); font-size: 14px; letter-spacing: 0.3em; color: var(--gold); }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: 0.04em; margin: 0; color: var(--ink); text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: 0.03em; margin: 0; color: var(--ink); text-wrap: balance; }
h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: 0.03em; margin: 0; color: var(--ink); }
p { margin: 0; }
.lede { max-width: 58ch; color: #d6d0bf; font-size: 21px; line-height: 1.6; }
.section { display: grid; gap: 24px; }
.section-head { display: grid; gap: 10px; }
.section-head p { color: var(--muted); max-width: 64ch; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 1px; background: var(--gold); margin-top: 16px; opacity: 0.7; }
.page > .section-head h1 + .lede { margin-top: 6px; }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-data); font-size: 11px; letter-spacing: 0.04em; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: normal; max-width: 100%; opacity: 0.92; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.page { color: var(--st-page); }
.chip.draft { color: var(--st-draft); }
.chip.canon { color: var(--st-canon); }
.chip.plan { color: var(--muted); border-style: dashed; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.reader [data-status="canon"] { display: none !important; }
body.reader .reader-note { display: block; }
.reader-note { display: none; font-family: var(--font-data); font-size: 12px; color: var(--st-canon); }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { white-space: nowrap; font-family: var(--font-caps); letter-spacing: 0.18em; font-size: 14px; padding: 15px 26px; border: 1px solid var(--gold); color: var(--night); background: var(--gold); text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn:hover { background: var(--gold-pale); }
.btn.line { background: transparent; color: var(--gold); }
.btn.line:hover { background: rgba(216, 181, 111, 0.1); }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: center; min-height: 640px; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(54px, 8.4vw, 108px); letter-spacing: 0.05em; }
.hero-deva { font-size: 32px; color: var(--gold); margin-top: -10px; }
.wheel-wrap { min-width: 0; display: grid; place-items: center; }
svg.wheel { width: 100%; max-width: 640px; height: auto; overflow: visible; }
.wheel .turn { transform-origin: 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 22px 6px; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat b { font-family: var(--font-display); font-weight: 400; font-size: 44px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.16em; color: var(--muted); }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.door { display: grid; gap: 12px; padding: 30px 28px; background: linear-gradient(180deg, rgba(24, 33, 74, 0.6), rgba(10, 14, 34, 0.2)); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.door:hover { border-color: var(--gold); transform: translateY(-3px); }
.door h2 { font-size: clamp(24px, 2.5vw, 32px); }
.door .small { color: #cbc5b4; font-size: 17px; }
.door .go { font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.2em; color: var(--gold); }
.key { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; color: var(--muted); font-size: 16px; }

/* Shared frames */
.frame { background: var(--panel); border: 1px solid var(--line); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
svg { display: block; }
#map, #timeline { width: 100%; height: auto; }
#map { min-width: 700px; }
#timeline { min-width: 760px; }

/* Map */
.sphere { fill: var(--night); stroke: var(--line); stroke-width: 1; }
.grat { fill: none; stroke: var(--grat); stroke-width: 0.6; }
.land { fill: var(--land); stroke: var(--coast); stroke-width: 0.5; }
.borders { fill: none; stroke: var(--coast); stroke-width: 0.3; opacity: 0.45; }
.zone { fill: var(--tear-soft); stroke: none; }
.zone.pending { fill: none; stroke: var(--tear); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.8; }
.glyph { fill: var(--tear); stroke: var(--gold); stroke-width: 0.9; }
.glyph-halo { fill: var(--tear); opacity: 0.35; }
.badge-c { fill: var(--night); stroke: var(--gold); stroke-width: 1; }
.badge-t { fill: var(--ink); font-family: var(--font-data); font-size: 10px; font-weight: 500; text-anchor: middle; dominant-baseline: central; }
.lbl { fill: var(--ink); font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.08em; }
.lbl-sub { fill: var(--muted); font-family: var(--font-data); font-size: 10.5px; }
.site { cursor: pointer; }
.site:focus { outline: none; }
.site:focus-visible .badge-c, .site.is-active .badge-c { fill: var(--tear); }
.site.is-active .lbl { fill: var(--tear); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-data); font-size: 12px; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend svg { width: 14px; height: 22px; flex: none; }
.sw { width: 18px; height: 12px; border-radius: 6px; display: inline-block; }
.sw.zone-sw { background: var(--tear-soft); border: 1px solid var(--tear); }
.sw.pend-sw { border: 1px dashed var(--tear); }

/* Timeline */
.axis, .tick { stroke: var(--line); stroke-width: 1; }
.tick-t { fill: var(--muted); font-family: var(--font-data); font-size: 10px; text-anchor: middle; }
.day-t { fill: var(--gold); font-family: var(--font-caps); font-size: 11px; letter-spacing: 0.2em; }
.ev-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.ev-dot { fill: var(--muted); }
.ev-t { fill: var(--muted); font-family: var(--font-body); font-size: 12.5px; font-style: italic; }
.op-line { stroke: var(--tear); stroke-width: 1; }
.op-t { fill: var(--ink); font-family: var(--font-data); font-size: 10.5px; }
.ghost-t { fill: var(--muted); font-family: var(--font-data); font-size: 10px; }

/* Log */
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
th { font-family: var(--font-caps); font-size: 12px; font-weight: 400; letter-spacing: 0.18em; color: var(--gold); border-bottom-color: var(--line); }
td { font-size: 16.5px; }
td.num { font-family: var(--font-display); color: var(--gold); font-size: 20px; width: 2.2em; }
td.when { font-family: var(--font-data); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; color: #d3cdbd; }
td .place { font-family: var(--font-display); font-size: 18px; color: var(--ink); display: block; }
td .over { color: var(--muted); font-size: 14.5px; }
tbody tr { cursor: pointer; transition: background 0.15s; }
tbody tr.is-active { background: var(--tear-soft); }
tr.pending td { color: var(--muted); }

/* Cards and lists */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(24, 33, 74, 0.55), rgba(10, 14, 34, 0.15)); border: 1px solid var(--line); padding: 26px 24px 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card p { font-size: 17px; color: var(--text); }
.card .small { color: var(--muted); font-size: 15.5px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
ul.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
ul.plain li { display: block; padding-left: 20px; position: relative; font-size: 17px; }
ul.plain li .chips { margin-top: 6px; }
ul.plain li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }
.quote { font-style: italic; color: var(--gold-pale); }

/* Cost ladder: a real sequence, numbered in seals */
.ladder { margin: 0; padding: 0; list-style: none; display: grid; counter-reset: lv; }
.ladder li { counter-increment: lv; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.ladder li:last-child { border-bottom: 1px solid var(--line-soft); }
.ladder li::before { content: counter(lv); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; color: var(--gold); box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 5px var(--line); }
.ladder li:nth-child(n+3)::before { color: var(--tear); border-color: var(--tear); }
.ladder h3 { margin-bottom: 4px; }
.ladder p { color: var(--muted); font-size: 16.5px; }
.ladder .chip { margin-left: 6px; }
.aside { border-left: 1px solid var(--gold); padding: 6px 0 6px 20px; display: grid; gap: 8px; font-size: 17px; }
.aside > b { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--ink); }
.aside p b { color: var(--ink); font-weight: 500; }

/* People */
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 34px; align-items: start; padding: 30px; background: linear-gradient(180deg, rgba(24, 33, 74, 0.6), rgba(10, 14, 34, 0.2)); border: 1px solid var(--line); }
.feature-body { display: grid; gap: 16px; min-width: 0; }
.figure { margin: 0; display: grid; gap: 10px; }
.figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); box-shadow: 0 0 0 6px var(--night), 0 0 0 7px var(--line); background: #05060c; }
.figure figcaption { font-family: var(--font-caps); font-size: 12.5px; letter-spacing: 0.14em; color: var(--muted); }
.power-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.power-name .pn { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.04em; color: var(--tear); }
.power-name .deva { color: var(--gold); font-size: 20px; }
.who { font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.22em; color: var(--gold); }
dl.facts { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 18px; }
dl.facts dt { font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.16em; color: var(--muted); padding-top: 3px; }
dl.facts dd { margin: 0; font-size: 17px; }
.person { display: grid; gap: 12px; }
.person .pn { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.03em; color: var(--tear); }
.person .pn .deva { color: var(--gold); font-size: 17px; margin-left: 8px; letter-spacing: 0; }

.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 28px; }
.gloss div { padding: 14px 0; border-top: 1px solid var(--line-soft); display: grid; gap: 4px; }
.gloss b { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--ink); }
.gloss span { color: var(--muted); font-size: 16px; }

/* Story */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.book { background: linear-gradient(180deg, rgba(24, 33, 74, 0.55), rgba(10, 14, 34, 0.15)); border: 1px solid var(--line); padding: 26px; display: grid; gap: 10px; align-content: start; }
.book .bn { font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.22em; color: var(--muted); }
.book h3 { font-size: 30px; letter-spacing: 0.06em; }
.book h3 .deva { color: var(--gold); font-size: 18px; margin-left: 10px; letter-spacing: 0; }
.book.current { border-color: var(--gold); }
.movement { display: grid; }
.movement > h3 { font-family: var(--font-caps); font-size: 14px; letter-spacing: 0.26em; color: var(--gold); padding-bottom: 12px; }
.chapters { margin: 0; padding: 0; list-style: none; display: grid; }
.chapters li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.chapters li:last-child { border-bottom: 1px solid var(--line-soft); }
.ch-no { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; box-shadow: inset 0 0 0 5px var(--night), inset 0 0 0 6px var(--line); }
.ch-no .deva { font-size: 26px; color: var(--gold); line-height: 1; }
.ch-no[data-n]::after { content: attr(data-n); position: absolute; top: 72px; left: 0; right: 0; text-align: center; font-family: var(--font-data); font-size: 11px; color: var(--muted); }
.ch-body { display: grid; gap: 8px; min-width: 0; }
.ch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ch-title { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.03em; color: var(--ink); }
.ch-head .deva { color: var(--gold); font-size: 17px; }
.ch-gloss { font-style: italic; color: var(--muted); font-size: 17px; }
.ch-pov { font-family: var(--font-caps); font-size: 12.5px; letter-spacing: 0.14em; color: var(--muted); margin-left: auto; }
.ch-body p { font-size: 17.5px; max-width: 74ch; }
.ahead li { grid-template-columns: 84px minmax(0, 1fr); }
.ahead .ch-no { width: auto; height: auto; border: 0; box-shadow: none; place-items: start; font-family: var(--font-display); font-size: 22px; color: var(--muted); padding-top: 2px; }

.foot { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; max-width: 80ch; }


/* Truth emblems on the wheel and the truth pages */
.truth { cursor: pointer; outline: none; }
.truth .truth-ring { transition: stroke 0.2s; }
.truth .truth-glow { transition: opacity 0.25s; }
.truth:hover .truth-glow, .truth:focus-visible .truth-glow { opacity: 0.85; }
.truth:hover .truth-ring, .truth:focus-visible .truth-ring { stroke: var(--gold); }
.truth-label { opacity: 0; transition: opacity 0.2s; fill: var(--gold-pale); font-family: var(--font-caps); font-size: 17px; letter-spacing: 3px; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--night); stroke-width: 5px; }
.truth-label.show { opacity: 1; }
.truth:hover .truth-petal, .truth:focus-visible .truth-petal { fill: rgba(163, 130, 255, 0.4); }
.upright { transform-box: fill-box; transform-origin: center; transform: rotate(var(--a0, 0deg)); }
.wheel-hint { font-family: var(--font-caps); letter-spacing: 0.16em; font-size: 13px; color: var(--muted); text-align: center; margin: 6px 0 0; }
.back { font-family: var(--font-caps); letter-spacing: 0.16em; font-size: 13px; color: var(--gold); text-decoration: none; justify-self: start; }
.back:hover { color: var(--gold-pale); }
.more { font-family: var(--font-caps); letter-spacing: 0.18em; font-size: 13px; color: var(--gold); text-decoration: none; justify-self: start; }
.more:hover { color: var(--gold-pale); }
.truth-hero { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.truth-head { display: grid; gap: 18px; min-width: 0; }
.truth-head h1 { font-size: clamp(48px, 7vw, 92px); color: var(--tear); }
.truth-head .deva.big { font-size: 34px; color: var(--gold); margin-top: -10px; }
.truth-hero .figure img { max-height: 760px; object-fit: cover; }
.card .figure { margin-top: 4px; }
.card .figure img { max-height: 220px; object-fit: cover; }
.vortex-art { display: grid; place-items: center; min-width: 0; }
svg.vortex { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.vortex .spin { transform-origin: 0 0; }
.reader-note.big { font-family: var(--font-body); font-size: 19px; color: var(--st-canon); border: 1px dashed var(--st-canon); padding: 18px 22px; max-width: 60ch; }
@media (max-width: 860px) { .truth-hero { grid-template-columns: minmax(0, 1fr); } .truth-hero .figure { max-width: 360px; } }
@media (prefers-reduced-motion: no-preference) {
  .vortex .spin { animation: turn 70s linear infinite; }
  .wheel .upright { animation: upright 260s linear infinite; }
  @keyframes upright { from { transform: rotate(var(--a0, 0deg)); } to { transform: rotate(calc(var(--a0, 0deg) - 360deg)); } }
}

@media (max-width: 860px) {
  .hero, .feature, .two, .doors, .books { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .wheel-wrap { order: -1; }
  svg.wheel { max-width: 420px; }
  .toggle { margin-left: 0; }
  .ch-pov { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 6px; }
  dl.facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  dl.facts dd { margin-bottom: 10px; }
  .chapters li, .ahead li { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .ch-no { width: 48px; height: 48px; }
  .ch-no .deva { font-size: 20px; }
  .ch-no[data-n]::after { top: 54px; }
  .ladder li { grid-template-columns: 56px minmax(0, 1fr); }
  .ladder li::before { width: 42px; height: 42px; font-size: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .wheel .turn { animation: turn 260s linear infinite; }
  .wheel .turn-back { animation: turn 400s linear infinite reverse; }
  @keyframes turn { to { transform: rotate(360deg); } }
  .glyph-halo { animation: breathe 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes breathe { 0%, 100% { opacity: 0.22; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.35); } }
}
@media (prefers-reduced-motion: reduce) { .door, .btn { transition: none; } }

/* ---------- Public site: reader, contents, follow box, footer ---------- */
html, body { margin: 0; }
img { max-width: 100%; }
.reader-wrap { max-width: 780px; margin: 0 auto; padding-inline: 24px; padding-block: 36px 90px; display: grid; gap: 34px; }
.draft-note { font-family: var(--font-data); font-size: 12px; color: var(--muted); text-align: center; letter-spacing: 0.04em; }
.chapter-head { display: grid; gap: 10px; justify-items: center; text-align: center; }
.chapter-head .ch-no { margin-bottom: 6px; }
.chapter-head .ch-no[data-n]::after { content: none; }
.chapter-head .label { font-family: var(--font-caps); letter-spacing: 0.3em; font-size: 14px; color: var(--gold); }
.chapter-head h1 { font-size: clamp(44px, 7vw, 72px); }
.chapter-head .deva { font-size: 24px; color: var(--gold); }
.chapter-head .gloss { font-style: italic; color: var(--muted); font-size: 19px; }
.chapter-head .meta { font-family: var(--font-data); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.toolbar { display: flex; justify-content: center; gap: 10px; }
.toolbar button { font-family: var(--font-caps); letter-spacing: 0.1em; font-size: 14px; color: var(--gold); background: transparent; border: 1px solid var(--line); padding: 6px 14px; cursor: pointer; }
.toolbar button:hover { border-color: var(--gold); }
.prose { font-size: var(--prose-size, 20px); line-height: 1.78; color: #e8e1cf; }
.prose p { margin: 0; text-indent: 1.6em; }
.prose p.first { text-indent: 0; }
.prose p.first::first-letter { font-family: var(--font-display); float: left; font-size: 3.5em; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--gold); }
.prose em { font-style: italic; }
.prose strong { font-weight: 500; font-style: italic; color: var(--gold-pale); }
.scene-break { text-align: center; color: var(--gold); letter-spacing: 0.9em; margin: 1.5em 0 1.4em; font-size: 13px; }
.chapter-end { display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 28px; }
.chapter-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.chapter-nav .soon { font-family: var(--font-caps); letter-spacing: 0.14em; font-size: 14px; color: var(--muted); }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 0; background: var(--gold); z-index: 20; }
.follow { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(24, 33, 74, 0.6), rgba(10, 14, 34, 0.2)); padding: 26px; display: grid; gap: 14px; }
.follow h2 { font-size: 28px; }
.follow h2::after { content: none; }
.follow p { color: #d6d0bf; }
.follow form { display: flex; flex-wrap: wrap; gap: 10px; }
.follow input[type="email"] { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; background: var(--night); color: var(--ink); border: 1px solid var(--line); }
.follow .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contents { margin: 0; padding: 0; list-style: none; display: grid; }
.contents li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-soft); align-items: center; }
.contents li:last-child { border-bottom: 1px solid var(--line-soft); }
.contents a { text-decoration: none; }
.contents a:hover .ch-title { color: var(--gold); }
.contents .when { font-family: var(--font-data); font-size: 12.5px; color: var(--muted); }
.contents li.locked { opacity: 0.6; }
.contents li.locked .ch-no { border-style: dashed; }
.sealed { border: 1px dashed var(--line); padding: 34px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.sealed p { color: var(--muted); max-width: 52ch; }
.continue { font-family: var(--font-caps); letter-spacing: 0.14em; font-size: 13px; color: var(--muted); }
.continue a { color: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#page-story .ch-title a, #page-story a .ch-title { text-decoration: none; }
#page-story a:hover .ch-title { color: var(--gold); }
.site-foot { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 22px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; max-width: 80ch; }
@media (max-width: 520px) {
  .prose { font-size: var(--prose-size, 18.5px); }
  .contents li { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
}
