/* Threshold: a rebuild of divyarann.com.
   One object (the wheel) carried through every page as navigation and memory; two colours and one accent; crimson only
   for what is sealed. Display: Instrument Serif, one weight, large. Reading: Source Serif 4. Labels: Instrument Sans, sentence case, never smaller than 14px and
   never tracked. Devanagari: Tiro Devanagari Hindi (one weight, matched in contrast to the display). The four faces are the CSS variables --f-display, --f-body,
   --f-deva and --f-ui, so the pairing can be changed in :root alone (alternatives: specimens/fonts2.html).
   Type scale: a label is --fs-label 15px and carries information only (a point of view, a reading time, a state); there are no decorative captions. Small text comes in
   three sizes: fine print 15, secondary text 17, lead 19; the reader's own size (--rs) sets the prose.
   Motion tokens: micro .25s, hover .45s, reveal .8s, transition 1.2s, eased out; nothing bounces. */
:root {
  --ground: #010005;   /* the page's own background: the wheel's ground (wheel_prerender.js --pbg), so nothing changes when the wheel's layer arrives over the first paint */
  --ink: #07060b; --ink-2: #0e0c15; --bone: #e9e3d8; --bone-2: #c9c2b7; --muted: #8b8593; --line: rgba(233, 227, 216, 0.12); --line-2: rgba(233, 227, 216, 0.24);
  --accent: #b9a8ff; --seal: #c2384b; --seal-ink: #e2606f;   /* --seal for lines and borders; --seal-ink for sealed text, which has to clear 4.5:1 on the ground (--seal reached 3.9) */
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif; --f-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --f-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Nirmala UI", serif; --f-ui: "Instrument Sans", "Segoe UI", system-ui, sans-serif;   /* the four faces, changed here only (round 2, 2026-10-26) */
  --fs-label: 15px; --fs-fine: 15px; --fs-text: 17px; --fs-lead: 19px; --ls-label: 0.01em; --ls-kicker: 0.01em;
  --w-deva-display: 400; --w-deva: 400;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --t-micro: 0.25s; --t-hover: 0.45s; --t-reveal: 0.8s;
  --gutter: clamp(16px, 4vw, 56px); --rs: 20px; --bar-h: 60px; --tap: 44px;
  color-scheme: dark;
}
:root[data-palette="grahan"] { --ground: #030101; --ink: #0a0606; --ink-2: #150c0c; --bone: #ede2d2; --bone-2: #d2c4b2; --muted: #9a8c82; --line: rgba(237, 226, 210, 0.12); --line-2: rgba(237, 226, 210, 0.24); --accent: #c9a25a; --seal: #d2453a; --seal-ink: #ee7d70; }
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--ground); color: var(--bone); transition: background-color 1.2s var(--ease), color 1.2s var(--ease); }
html { -webkit-tap-highlight-color: transparent; scrollbar-color: color-mix(in srgb, var(--bone) 22%, transparent) var(--ground); }   /* P8, I15 */
body { margin: 0; font-family: var(--f-body); font-size: 20px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, .cta, .menu a { touch-action: manipulation; -webkit-user-select: none; user-select: none; }   /* P16 */
[hidden] { display: none !important; }
.pal-switching, .pal-switching *, .pal-switching *::before, .pal-switching *::after { transition: none !important; }   /* the colour switch lands in one step (setPalette) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }   /* 2px, not a hairline: it has to be seen on the black from across a room; keyboard use only (:focus-visible), the shape follows the control */
#view:focus { outline: 0; }   /* the page takes focus when it changes or when Skip is used: no ring round the whole page */
::selection { background: var(--accent); color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 0; z-index: 70; padding: 12px 18px; background: var(--ink-2); border: 1px solid var(--accent); font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--bone); transform: translateY(-120%); }
.skip:focus { transform: none; }
[lang="hi"], [lang="sa"] { font-family: var(--f-deva); }

canvas#gl { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; display: block; }
#app { position: relative; z-index: 1; }
html.is-intro #app, html.is-intro .bar { visibility: hidden; }

/* ---------- labels ---------- */
.kicker { font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-kicker); line-height: 1.5; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 0.2em 0.7em; }
.kicker span + span::before { content: "\00b7"; margin-right: 0.7em; opacity: 0.7; }   /* the one line above a heading that still says something (a chapter's number, point of view, reading time): the label face, sentence case, a dot between */

/* ---------- the bar ---------- */
/* Every control carries a word (2026-10-25): the lit count says what it counts and opens the chapters, the two colours are named, the sound says on or off, Menu says
   Close while it is open. Each is at least 44px to touch. On a phone the text size, the colours and the sound fold into one Display sheet behind an Aa button. */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gutter) 0; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar { transition: transform var(--t-reveal, .8s) var(--ease), opacity .45s var(--ease); }
.bar::before { content: ""; position: absolute; inset: 0 0 -36px; background: linear-gradient(var(--ink) 60%, transparent); opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; z-index: -1; }
html.bar-solid .bar::before { opacity: 0.92; }
html.on-tears.bar-solid .bar::before { inset: 0; background: var(--ink); opacity: 1; box-shadow: 0 1px 0 var(--line); }   /* on the atlas page the bar is solid once it has scrolled: the page's text no longer shows through it */
@media (max-width: 760px) { html.bar-solid .bar::before { inset: 0; background: var(--ink); opacity: 1; box-shadow: 0 1px 0 var(--line); } }   /* 29 October: on a phone every page's bar is solid once scrolled (the fade let the text show through it); a computer keeps the fade outside the atlas */
html.bar-away .bar { transform: translateY(-110%); opacity: 0; }
html.menu-open .bar { transform: none; opacity: 1; }
.mark { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--f-display); font-weight: 400; letter-spacing: 0; font-size: 28px; line-height: 1; }   /* the wordmark is a name, not a caption: display type, 28px */
.bar-r { display: flex; align-items: center; margin-right: -10px; gap: clamp(2px, 1vw, 14px); font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--bone-2); }
.bar-r button, .lit-count { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: var(--tap); min-height: var(--tap); padding: 0 10px; border-radius: 999px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; transition: color var(--t-micro) var(--ease), background var(--t-micro) var(--ease); }
@media (hover: hover) and (pointer: fine) { .bar-r button:hover, .lit-count:hover { color: var(--bone); } }
.bar-r button:active { background: color-mix(in srgb, var(--bone) 8%, transparent); }
.bar-r :focus-visible { outline-offset: -2px; }   /* the controls sit close together: the ring stays inside each one's own box */
.lit-count b { color: var(--accent); font-weight: 500; }
.lit-count { white-space: nowrap; }
.lit-ring { width: 22px; height: 22px; flex: none; overflow: visible; }
.lit-ring line { stroke: var(--line-2); stroke-width: 1.6; stroke-linecap: round; transition: stroke var(--t-hover) var(--ease); }
.lit-ring line.on { stroke: var(--accent); }
.bt { display: inline-flex; align-items: center; gap: 4px; }
.bt-v { display: inline-flex; align-items: center; gap: 0; }
.bt-k { display: none; color: var(--muted); margin-right: 4px; }
@media (min-width: 1180px) { .bt-k { display: inline; } }
.reader-tools { display: none; } .on-reader .reader-tools { display: inline-flex; }
.reader-tools button { font-family: var(--f-body); font-size: 17px; letter-spacing: 0; text-transform: none; padding: 0; }
.reader-tools #aMinus { font-size: 14px; } .reader-tools button[disabled] { opacity: 0.3; cursor: default; }
.pal button[aria-pressed="false"] { color: var(--muted); } .pal button[aria-pressed="false"]:hover { color: var(--bone); }
.pal .sw { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.pal button[data-p="akash"] .sw { background: radial-gradient(circle at 35% 35%, #e6dfff, #7c66d9 70%); }
.pal button[data-p="grahan"] .sw { background: radial-gradient(circle at 35% 35%, #f3e2b8, #8a5a22 70%); }
.pal button[aria-pressed="true"] { color: var(--bone); }
.pal button[aria-pressed="true"] .sw::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--bone-2); }
.pal .pn { display: none; } .pal button[aria-pressed="true"] .pn { display: inline; }
@media (min-width: 1180px) { .pal .pn { display: inline; } }
.snd svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.snd .sp { fill: currentColor; stroke: none; }
.snd .w { opacity: 0; transition: opacity var(--t-hover) var(--ease); } .snd .x { transition: opacity var(--t-hover) var(--ease); }
.snd[aria-pressed="true"] .w { opacity: 1; animation: snd 1.8s ease-in-out infinite; } .snd[aria-pressed="true"] .w2 { animation-delay: -0.6s; } .snd[aria-pressed="true"] .x { opacity: 0; }
.snd .snd-t { display: none; } .snd .snd-t::before { content: "Sound "; } .snd .snd-t::after { content: "off"; } .snd[aria-pressed="true"] .snd-t::after { content: "on"; }
@media (min-width: 1180px) { .snd .snd-t { display: inline; } .snd-row .bt-k { display: none; } }
@keyframes snd { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }   /* PERF 4: opacity only, which the compositor does without laying out the bar */
.menu-btn { gap: 12px; padding-right: 4px; }
.menu-btn .lines { display: grid; gap: 4px; } .menu-btn .lines i { display: block; width: 18px; height: 1px; background: currentColor; transition: transform var(--t-hover) var(--ease); }
.menu-open .menu-btn .lines i:first-child { transform: translateY(2.5px) rotate(20deg); } .menu-open .menu-btn .lines i:last-child { transform: translateY(-2.5px) rotate(-20deg); }
.bar-r .tools-btn { display: none; font-family: var(--f-display); font-size: 19px; letter-spacing: 0; text-transform: none; }
.bar-r .tools-btn[aria-expanded="true"] { color: var(--bone); background: color-mix(in srgb, var(--bone) 8%, transparent); }
.bar-tools { display: contents; }
@media (max-width: 760px) {
  .lit-of { display: none; }
  .bar-r .tools-btn { display: inline-flex; }
  .bar-tools { display: none; position: absolute; top: calc(100% - 6px); right: var(--gutter); width: min(340px, calc(100vw - 2 * var(--gutter))); flex-direction: column; padding: 2px 18px; background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 22px 60px -14px #000; z-index: 31; }
  html.tools-open .bar-tools { display: flex; animation: sheetIn 0.3s var(--ease); }
  .bar-tools .bt { display: flex; justify-content: space-between; min-height: 60px; border-top: 1px solid var(--line); }
  .bar-tools .bt.reader-tools { display: none; } .on-reader .bar-tools .bt.reader-tools { display: flex; border-top: 0; } .on-reader .bar-tools .bt.reader-tools + .bt { border-top: 1px solid var(--line); }
  html:not(.on-reader) .bar-tools .bt.pal { border-top: 0; }
  .bt-k { display: inline; margin: 0; color: var(--bone-2); }
  .bt-v { gap: 6px; } .bar-tools button { border: 1px solid var(--line-2); } .bar-tools button[aria-pressed="true"] { border-color: var(--accent); } .bar-tools .snd { padding: 0 14px; }
  .pal .pn, .snd .snd-t { display: inline; } .bar-tools .snd .snd-t::before { content: none; } .bar-tools .snd-row .bt-k { display: inline; }
  .reader-tools button { min-width: 48px; }
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } }
html:not(.js) .bar-r button, html:not(.js) .bar-tools { display: none; }   /* without scripts these controls do nothing */
.about .verse { margin: 2.2em 0 0; font-family: var(--f-deva); font-weight: var(--w-deva-display); font-size: 1.15em; line-height: 1.95; color: var(--bone-2); }
/* ---------- the menu ---------- */
.menu { position: fixed; inset: 0; z-index: 28; background: color-mix(in srgb, var(--ink-2) 94%, transparent); clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease); display: grid; align-content: center; overflow-y: auto; padding: calc(var(--bar-h) + 36px) var(--gutter) 40px; }
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-snap .menu, .menu-snap .menu a, .menu-snap #app { transition: none !important; }   /* the menu goes at once behind the closed tear */
#app { transition: opacity 0.7s var(--ease); } html.menu-open #app { opacity: 0; }
.menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: clamp(38px, min(8.6vw, 8.4vh), 124px); line-height: 1; }   /* the size is on the list now (the descender room below is in em), so the lines must not inherit the body's 1.65 */
.menu li { overflow: hidden; padding-bottom: 0.12em; }   /* each line is cut off at its own box to let the words rise into it: room below the baseline keeps the tail of a y whole (The Story) */
.menu a { display: inline-flex; align-items: baseline; gap: 0.5em; min-height: var(--tap); font-family: var(--f-display); font-weight: 400; font-size: 1em; line-height: 0.96; letter-spacing: -0.01em; word-spacing: 0.06em; transform: translateY(105%); transition: transform 0.9s var(--ease), color var(--t-hover) var(--ease); }
.menu-open .menu a { transform: none; }
.menu li:nth-child(2) a { transition-delay: 0.05s; } .menu li:nth-child(3) a { transition-delay: 0.1s; } .menu li:nth-child(4) a { transition-delay: 0.15s; } .menu li:nth-child(5) a { transition-delay: 0.2s; } .menu li:nth-child(6) a { transition-delay: 0.25s; } .menu li:nth-child(7) a { transition-delay: 0.3s; } .menu li:nth-child(8) a { transition-delay: 0.35s; }
.menu a .dv { font-family: var(--f-deva); font-weight: var(--w-deva); font-size: max(16px, 0.36em); letter-spacing: 0; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .menu ol:hover a { color: var(--muted); } .menu ol a:hover { color: var(--bone); } } .menu a.is-on, .menu ol a:focus-visible { color: var(--bone); }
.menu a.is-on .dv { color: var(--accent); }
.menu a:focus-visible { outline-offset: -2px; }

/* ---------- home ---------- */
/* the hero: the wheel stands in the space above the title, never under it (the title across the wheel was distracting, 2026-10-21). The title has its own band at the
   foot of the first screen, sized by the screen's height as well as its width, and the wheel, whose outer ring reaches about 1.36 times its box, fills what is left */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; --tsize: clamp(64px, min(19vw, 24vh), 270px); --tfoot: clamp(24px, 5vh, 56px); --tband: calc(var(--tsize) * 0.8 + 58px + var(--tfoot)); padding: 64px 0 var(--tband); }
.hero-wheel { width: min(92vw, calc((100vh - 64px - var(--tband)) / 1.36)); width: min(92vw, calc((100svh - 64px - var(--tband)) / 1.36)); aspect-ratio: 1; }
.hero-type { position: absolute; left: max(var(--gutter), calc((100% - 1560px) / 2)); right: max(var(--gutter), calc((100% - 1560px) / 2)); bottom: var(--tfoot); display: grid; gap: 10px; pointer-events: none; }
/* the title spreads across the screen up to 1560px and is then centred: at 1920 its letters stood further apart than they are wide */
.title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--tsize); line-height: 0.8; letter-spacing: -0.01em; display: flex; justify-content: space-between; }   /* the optical size follows the font size (capped at 144 by the font): a forced 144 made the hairlines of a phone-sized title too thin */
.title span { display: inline-block; transform: translateY(110%); opacity: 0; }
.entered .title span { animation: rise 1.2s var(--ease) forwards; animation-delay: calc(var(--i) * 0.045s + 0.15s); }
@keyframes rise { to { transform: none; opacity: 1; } }
.dv-still .title span, .no-webgl .title span { animation: none; transform: none; opacity: 1; }
.hero-sub { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.title-deva { margin: 0; font-family: var(--f-deva); font-weight: var(--w-deva); color: var(--accent); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.section { position: relative; padding: clamp(90px, 16vh, 180px) var(--gutter); }
.premise-text { margin: 18px 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.3vw, 66px); line-height: 1.16; letter-spacing: -0.01em; word-spacing: 0.04em; max-width: 20ch; text-wrap: pretty; }
@media (min-width: 900px) { .premise-text { max-width: min(20ch, calc(50vw - var(--gutter) - 64px)); } }   /* on a computer the premise stays left of the tear, which keeps its light beside it */
.premise-text .ln { display: block; overflow: hidden; } .premise-text .ln > span { display: inline-block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 44px; align-items: center; }
.cta { position: relative; font-family: var(--f-ui); font-size: 16px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.6; padding: 14px 28px; border: 1px solid var(--bone-2); border-radius: 999px; transition: background var(--t-hover) var(--ease), color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .cta:hover { background: var(--bone); color: var(--ink); } }   /* the shape, its fill and its focus ring are the leaf's (button shapes, at the end) */
.cta:active { background: var(--bone-2); border-color: var(--bone-2); color: var(--ink); }
.cta.ghost { border-color: transparent; padding-left: 0; padding-right: 0; border-radius: 0; } .cta.ghost::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform-origin: right; transition: transform var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .cta.ghost:hover { background: none; color: var(--bone); } .cta.ghost:hover::after { transform: scaleX(0.3); } }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 7vh, 72px); }
.sec-head h2, .page-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 7.4vw, 120px); line-height: 0.92; letter-spacing: -0.01em; word-spacing: 0.08em; text-wrap: balance; }   /* tight tracking closed the gaps between words (The chapters read as one): a little word space, and balanced lines so a heading does not end on one word */
/* ---------- the thread: the tear down the home page, the chapters hanging on it ---------- */
.torn { position: relative; }
.torn > section { position: relative; z-index: 1; }
.thread { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.thread-pulse { z-index: 0; will-change: transform, opacity; }   /* under the text, over the thread; it passes behind each chapter node, which lights as it goes */
.th-hub { position: absolute; left: 0; top: 0; z-index: 0; width: 68px; height: 68px; pointer-events: none; opacity: 0; will-change: opacity;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 95%, transparent), color-mix(in srgb, var(--accent) 45%, transparent) 30%, transparent); }
.perf-hud { position: fixed; right: 10px; bottom: 10px; z-index: 60; margin: 0; padding: 8px 10px; background: rgba(0, 0, 0, 0.75); color: #d6f5d6; font: 14px/1.5 ui-monospace, Consolas, monospace; border-radius: 6px; pointer-events: none; white-space: pre; }
.th-base { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-linejoin: round; }
.th-glow { fill: none; stroke: var(--accent); stroke-width: 10; opacity: 0.1; stroke-linejoin: round; }   /* static: a breathing glow repainted the whole page every frame */
.th-glow2 { fill: none; stroke: var(--accent); stroke-width: 3.2; opacity: 0.32; stroke-linejoin: round; }
.th-core { fill: none; stroke: var(--bone); stroke-width: 1.1; opacity: 0.92; stroke-linejoin: round; }
.th-branch { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.55; stroke-linecap: round; }
.th-tail { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.th-dot { fill: #fff; } .th-drop { display: none; fill: #c4121f; }
html[data-rakta="on"] .th-dot { display: none; } html[data-rakta="on"] .th-drop { display: inline; }
.index .sec-head { text-align: center; } .index .sec-head .kicker { justify-content: center; }
.ix { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; }
.ix-row { position: relative; }
.ix-link { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); align-items: center; column-gap: 30px; padding: 30px 0; transition: opacity var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .ix:hover .ix-link { opacity: 0.7; } .ix .ix-link:hover { opacity: 1; } } .ix .ix-link:focus-visible { opacity: 1; }
.ix-side { display: grid; gap: 7px; min-width: 0; }
.ix-l { justify-items: end; text-align: right; }
.ix-r { justify-items: start; }
.ix-t { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 66px); line-height: 1; letter-spacing: -0.01em; transition: transform var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .ix-link:hover .ix-l .ix-t { transform: translateX(-8px); } }
.ix-g { font-style: italic; color: var(--muted); font-size: var(--fs-text); }
.ix-teaser { color: var(--bone-2); font-size: var(--fs-text); line-height: 1.5; max-width: 42ch; text-wrap: pretty; }
.ix-meta { font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--muted); white-space: nowrap; }
.is-read .ix-meta, .is-next .ix-meta { color: var(--accent); }
.ix-node { position: relative; justify-self: center; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line-2); transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.ix-no { font-size: 18px; line-height: 1; font-weight: var(--w-deva); color: var(--muted); }
.is-read .ix-node { border-color: color-mix(in srgb, var(--accent) 75%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 9%, transparent), 0 0 26px color-mix(in srgb, var(--accent) 30%, transparent); }
.is-read .ix-no { color: var(--bone); }
.is-next .ix-node { border-color: var(--bone-2); }
.is-next .ix-node::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--accent); animation: nodeCall 2.6s var(--ease) infinite; pointer-events: none; }
.is-locked .ix-t { color: var(--muted); font-family: var(--f-body); font-style: italic; font-size: calc(clamp(34px, 4.4vw, 66px) * 1.08); }   /* the word Sealed is set in the body face's italic, which the page loads anyway for the glosses: the display face has no italic file to download */
.is-locked .ix-node { border-style: dashed; border-color: color-mix(in srgb, var(--seal) 65%, transparent); } .is-locked .ix-no { color: var(--seal-ink); }
@media (hover: hover) and (pointer: fine) { .ix-link:hover .ix-node { border-color: var(--accent); } } .ix-link:focus-visible .ix-node { border-color: var(--accent); }
.ix-link:focus-visible { outline: 0; } .ix-link:focus-visible .ix-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; text-decoration-color: var(--accent); }   /* the row is wide: the ring goes round the title, where the eye is */
.ix-node.ping { animation: nodePing 0.75s var(--ease); }
.ix-node.land::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--accent); animation: nodeLand 1.4s var(--ease) forwards; pointer-events: none; }
@keyframes nodePing { 35% { transform: scale(1.14); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 44px color-mix(in srgb, var(--accent) 62%, transparent); } }
@keyframes nodeLand { from { transform: scale(1); opacity: 0.95; } to { transform: scale(2.7); opacity: 0; } }
@keyframes nodeCall { 0% { transform: scale(0.88); opacity: 0.7; } 100% { transform: scale(1.55); opacity: 0; } }
@media (max-width: 899px) {
  .index .sec-head { text-align: left; } .index .sec-head .kicker { justify-content: flex-start; }
  .ix-link { grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; align-items: start; padding: 22px 0; }
  .ix-node { grid-column: 1; grid-row: 1 / span 2; width: 46px; height: 46px; margin-top: 2px; }
  .ix-l { grid-column: 2; grid-row: 1; justify-items: start; text-align: left; } .ix-r { grid-column: 2; grid-row: 2; }
  .ix-link:hover .ix-l .ix-t { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .is-next .ix-node::after { animation: none; } }
/* PERF 4: the endless decorative loops (scroll cue, next chapter's ring, sound bars) rest with the page (html.dv-rest, a few seconds after the last input) and only run
   while on screen (.is-off, set by an observer); on a weak device (html.dv-weak) they do not loop at all. Each costs a main-thread frame per vsync while any frame loop runs. */
html.dv-rest .is-next .ix-node::after, html.dv-rest .snd[aria-pressed="true"] .w, .ix-node.is-off::after { animation-play-state: paused; }
html.dv-weak .is-next .ix-node::after { animation: none; }
html.dv-weak .is-next .ix-node::after { opacity: 0.45; transform: scale(1.2); }
/* PERF 4: on a weak device the title rises as one piece. Nine separate letter animations cost the main thread about 15 points of every second while they run (4x throttling, 144 Hz). */
html.dv-weak.entered .title span { animation: none; transform: none; opacity: 1; }
html.dv-weak.entered:not(.dv-still):not(.no-webgl) .title { animation: riseAll 1.2s var(--ease) 0.15s backwards; }
@keyframes riseAll { from { transform: translateY(32%); opacity: 0; } }
.four-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.four-card { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 40px; min-height: 290px; padding: 28px 24px 30px; border-right: 1px solid var(--line); transition: background var(--t-hover) var(--ease); }   /* the name stands at the same height in every card whatever the length of its line */
.four-card:first-child { border-left: 1px solid var(--line); }
.four-card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-reveal) var(--ease); }
@media (hover: hover) and (pointer: fine) { .four-card:hover { background: rgba(255, 255, 255, 0.02); } .four-card:hover::before { transform: none; } } .four-card:focus-visible { background: rgba(255, 255, 255, 0.02); } .four-card:focus-visible::before { transform: none; }
.four-card:focus-visible { outline-offset: -3px; }
.four-name { align-self: end; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3.6vw, 58px); line-height: 1; letter-spacing: -0.01em; }
.four-line { color: var(--bone-2); font-size: var(--fs-text); line-height: 1.5; min-height: 4.5em; text-wrap: pretty; }
.follow { text-align: center; display: grid; justify-items: center; gap: 22px; }
.follow h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 5.6vw, 92px); line-height: 1; letter-spacing: -0.01em; word-spacing: 0.06em; max-width: 14ch; text-wrap: balance; }
/* read ahead and support: shown only once config.json gives them an address */
.ahead { display: grid; justify-items: center; gap: 8px; width: min(520px, 100%); margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.ahead .fine { margin: 0; }
.ahead-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin: 10px 0 0; }
.ix-meta a { color: var(--accent); }
.follow-form { display: flex; align-items: center; gap: 12px; width: min(520px, 100%); min-width: 0; border-bottom: 1px solid var(--line-2); margin-top: 8px; transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.follow-form:focus-within { border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }   /* the field has no box of its own: its line lights while it has the keyboard */
.follow-form input { flex: 1; min-width: 0; min-height: 52px; background: none; border: 0; color: var(--bone); font: inherit; font-size: 19px; outline: none; }
.follow-form input::placeholder { color: var(--muted); }
.follow-form input, .acct input { caret-color: var(--accent); }   /* I14 */
.follow-form:has(input:user-invalid) { border-bottom-color: var(--seal); box-shadow: 0 1px 0 0 var(--seal); }   /* I12 */
.follow-form button { min-height: var(--tap); padding: 0 4px 0 14px; font-family: var(--f-ui); font-size: 16px; font-weight: 500; letter-spacing: 0.01em; color: var(--bone); transition: color var(--t-hover) var(--ease); }
.follow-form button:hover { color: var(--accent); }
.fine { font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--muted); margin: 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 36px var(--gutter) 48px; border-top: 1px solid var(--line); font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--muted); }

/* ---------- pages ---------- */
.page-head { padding: clamp(150px, 24vh, 240px) var(--gutter) clamp(50px, 8vh, 90px); display: grid; gap: 22px; max-width: 1200px; }
.page-lede { margin: 0; font-size: clamp(19px, 1.6vw, 23px); color: var(--bone-2); max-width: 46ch; text-wrap: pretty; }
.toc { list-style: none; margin: 0; padding: 0 var(--gutter) 120px; max-width: min(900px, 64vw); }
.toc-row { border-top: 1px solid var(--line); }
.toc-row > a, .toc-row > span { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 8px 22px; padding: 32px 0 34px; }   /* the Devanagari word stands beside the title, not at the far edge of the column */
.toc-n { font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--muted); grid-column: 1 / -1; }
.toc-t { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5.2vw, 84px); line-height: 1; letter-spacing: -0.01em; word-spacing: 0.06em; transition: transform var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .toc-row a:hover .toc-t { transform: translateX(12px); } } .toc-row a:focus-visible .toc-t { transform: translateX(12px); }
.toc-row > a:focus-visible { outline-offset: -3px; }
.toc-d { font-family: var(--f-deva); font-weight: var(--w-deva-display); color: var(--accent); font-size: clamp(22px, 2vw, 32px); }
.toc-s { grid-column: 1 / -1; color: var(--bone-2); font-size: var(--fs-text); line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.toc-m { grid-column: 1 / -1; font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--muted); }
.toc-row.is-read .toc-m { color: var(--accent); }
.toc-row.is-locked .toc-t { color: var(--muted); font-family: var(--f-body); font-style: italic; font-size: calc(clamp(40px, 5.2vw, 84px) * 1.08); letter-spacing: -0.01em; }

/* ---------- reading ---------- */
.ch-card { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 0; padding: 120px var(--gutter) 90px; position: relative; }
.ch-title { margin: 26px 0 0; padding-bottom: 0.2em; font-family: var(--f-display); font-weight: 400; font-size: clamp(72px, 16vw, 280px); line-height: 0.82; letter-spacing: -0.01em; }   /* room under the baseline: the tail of the y in Adya ran into the Devanagari below it */
.ch-deva { margin: 0; font-family: var(--f-deva); font-weight: var(--w-deva-display); color: var(--accent); font-size: clamp(26px, 3vw, 44px); line-height: 1.3; }
.ch-gloss { margin: 16px 0 0; font-style: italic; color: var(--bone-2); font-size: clamp(19px, 1.8vw, 26px); }
.prose { max-width: 34em; margin: 0 auto; padding: 0 var(--gutter) 80px; font-size: var(--rs); line-height: 1.7; hyphens: auto; }
.prose p { margin: 0 0 0.95em; text-wrap: pretty; }
.prose p.first::first-letter { font-family: var(--f-display); font-weight: 400; float: left; font-size: 4.4em; line-height: 0.8; padding: 0.06em 0.1em 0 0; color: var(--bone); }
.prose p.first::after { content: ""; display: block; clear: both; }
.prose .scene-break { text-align: center; color: var(--accent); letter-spacing: 0; word-spacing: 0.9em; margin: 2.4em 0; font-size: 22px; text-wrap: initial; }   /* the break's marks stand apart by word space, not by tracking */
.prose em { font-style: italic; }
.prose .w { border-bottom: 1px dotted var(--line-2); cursor: help; }
@media (hover: hover) and (pointer: fine) { .prose .w:hover { border-bottom-color: var(--accent); } }
.tearline { position: fixed; left: max(10px, calc(var(--gutter) * 0.45)); top: 0; height: 100vh; width: 16px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease); }
.on-reader .tearline { opacity: 1; }
.tearline { overflow: visible; }
.tearline path { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tearline-tip { position: fixed; left: 0; top: 0; z-index: 2; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--bone); box-shadow: 0 0 8px 2px var(--accent), 0 0 22px 6px color-mix(in srgb, var(--accent) 45%, transparent); opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; }
.on-reader .tearline-tip.show { opacity: 1; }
.tearline .base { stroke: var(--line-2); } .tearline .lit { stroke: var(--accent); }
/* PERF 6: the glow is two wider, fainter strokes under the line; a drop-shadow filter was repainted on every scroll event */
.tearline .lit .h1 { stroke-width: 7px; opacity: 0.12; } .tearline .lit .h2 { stroke-width: 3px; opacity: 0.3; }
/* the bookmark: a word lit from under the type, violet in Akash and a reddish gold in Grahan */
:root { --bm: #a68aff; --bm-glow: rgba(146, 110, 255, 0.5); --bm-ink: #e4d8f6; --bm-a: rgba(166, 138, 255, 0.62); --bm-b: rgba(166, 138, 255, 0.28); --bm-c: rgba(166, 138, 255, 0.24); }
:root[data-palette="grahan"] { --bm: #e3874a; --bm-glow: rgba(230, 114, 56, 0.5); --bm-ink: #f7d8c0; --bm-a: rgba(227, 135, 74, 0.62); --bm-b: rgba(227, 135, 74, 0.28); --bm-c: rgba(227, 135, 74, 0.24); }   /* plain rgba, not color-mix: older Samsung Internet has none */
.prose mark.bm { color: var(--bm-ink); background: radial-gradient(closest-side, var(--bm-a), var(--bm-b) 62%, transparent) center / 100% 100% no-repeat;
  padding: 0.06em 0.3em; margin: 0 -0.3em; border-radius: 0.6em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  text-shadow: 0 0 8px var(--bm), 0 0 22px var(--bm-glow); box-shadow: 0 0 26px 4px var(--bm-c); transition: color 1.2s var(--ease); }
.prose mark.bm.bm-in { animation: bmIn 1.1s var(--ease) both; }
.prose mark.bm.bm-flare { animation: bmFlare 2s var(--ease); }
.prose mark.bm.bm-out { animation: bmOut 0.7s var(--ease) forwards; }
@keyframes bmIn { 0% { background-size: 0% 30%; color: var(--bone); text-shadow: 0 0 0 transparent; box-shadow: 0 0 0 0 transparent; }
  40% { background-size: 150% 150%; text-shadow: 0 0 12px var(--bm), 0 0 34px var(--bm-glow); box-shadow: 0 0 40px 8px var(--bm-glow); } }
@keyframes bmFlare { 30% { background-size: 160% 160%; text-shadow: 0 0 12px var(--bm), 0 0 34px var(--bm-glow); box-shadow: 0 0 46px 10px var(--bm-glow); } }
@keyframes bmOut { to { background-size: 0% 20%; color: var(--bone); text-shadow: 0 0 0 transparent; box-shadow: 0 0 0 0 transparent; } }
.bm-charge { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 30; pointer-events: none; border-radius: 999px; opacity: 0; transform: scale(0.55);
  background: radial-gradient(closest-side, var(--bm-a), var(--bm-b) 62%, transparent);
  box-shadow: 0 0 30px 6px var(--bm-glow); mix-blend-mode: screen; transition: opacity 0.18s var(--ease), transform 0.18s var(--ease); }
.bm-charge.go { opacity: 1; transform: none; transition: opacity 0.85s linear, transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bm-charge.off { transform: scale(1.35); background: radial-gradient(closest-side, transparent 48%, var(--bm-b) 70%, transparent); box-shadow: none; }
.bm-charge.off.go { transform: scale(0.85); }
.tearline-mark { position: fixed; left: 0; top: 0; z-index: 3; width: var(--tap); height: var(--tap); margin: calc(var(--tap) / -2) 0 0 calc(var(--tap) / -2); padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); -webkit-appearance: none; appearance: none; }
.tearline-mark::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; transform: rotate(45deg); background: var(--bm); box-shadow: 0 0 8px 2px var(--bm-glow), 0 0 20px 4px var(--bm-glow); transition: transform 0.3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .tearline-mark:hover::before { transform: rotate(45deg) scale(1.35); } }
.tearline-mark:not(.show) { visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s; }   /* I16 */
.on-reader .tearline-mark.show { opacity: 1; pointer-events: auto; }
/* the reading line is a scroll bar too: with a mouse the whole line takes a click (glide there) or a drag; on a touch screen only its point of light can be dragged,
   so the edge of the screen still scrolls the page */
.tearline-hit { position: fixed; top: 0; left: calc(max(10px, calc(var(--gutter) * 0.45)) - 10px); width: 36px; height: 100vh; z-index: 2; display: none; cursor: pointer; touch-action: none; }
@media (hover: hover) and (pointer: fine) { html:not(.dv-touch).on-reader .tearline-hit { display: block; } }
.on-reader .tearline-tip.show { pointer-events: auto; cursor: grab; touch-action: none; }
.tearline-tip::after { content: ""; position: absolute; inset: -16px; }
.tl-hover .tearline .base, .tl-drag .tearline .base { stroke: var(--muted); }
.tl-hover .tearline-tip, .tl-drag .tearline-tip { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
.tl-drag, .tl-drag * { cursor: grabbing !important; user-select: none; }
.dv-touch .prose { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }   /* the hold is the bookmark, not a text selection */
@media (hover: none) and (pointer: coarse) { .prose { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .prose mark.bm { animation: none !important; } .bm-charge { transition: none !important; } }
.dv-still .prose mark.bm { animation: none !important; }
.ch-end { max-width: 34em; margin: 0 auto; padding: 60px var(--gutter) 140px; display: grid; gap: 26px; text-align: center; justify-items: center; }
.end-mark { margin: 0; color: var(--accent); font-size: 18px; }
.unlock { display: grid; gap: 22px; text-align: left; width: 100%; border-top: 1px solid var(--line); padding-top: 26px; }
.u-k { font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-kicker); color: var(--accent); margin: 0 0 10px; }
.unlock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: var(--fs-text); line-height: 1.55; color: var(--bone-2); }
.unlock b { color: var(--bone); font-weight: 500; }
.u-words { margin: 0; color: var(--bone-2); font-size: var(--fs-text); }
.ch-next { display: grid; gap: 10px; justify-items: center; margin-top: 30px; }
.ch-next a { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 6vw, 96px); line-height: 1; letter-spacing: -0.01em; word-spacing: 0.06em; transition: color var(--t-hover) var(--ease); }
.ch-next a:hover, .ch-next a:focus-visible { color: var(--accent); }
.ch-next .ch-prev { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); line-height: 1.2; color: var(--muted); transition: color var(--t-hover) var(--ease); }
.ch-next .ch-prev:hover { color: var(--bone); }
.pop { position: fixed; z-index: 40; max-width: 320px; background: var(--ink-2); border: 1px solid var(--line-2); padding: 14px 18px 16px; font-size: var(--fs-text); line-height: 1.5; color: var(--bone-2); opacity: 0; transform: translateY(6px); transition: opacity var(--t-micro) var(--ease), transform var(--t-micro) var(--ease); pointer-events: none; }
.pop.show { opacity: 1; transform: none; } .pop b { display: block; color: var(--bone); font-family: var(--f-display); font-weight: 400; font-size: 20px; margin-bottom: 4px; }

/* ---------- codex ---------- */
.dial { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.dial-b { display: contents; }   /* the numbers: part of the row on computers; on phones their own row that swipes sideways once the chapters outgrow it (17 November 2026, Chapter Seven made eight) */
.dial-k { margin-right: 8px; font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--muted); }
.dial button { width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--f-deva); font-weight: var(--w-deva); font-size: 20px; line-height: 1; color: var(--bone-2); transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .dial button:hover { border-color: var(--accent); color: var(--bone); } }
.dial button[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.dial-now { margin-left: 8px; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; color: var(--bone); }   /* what the buttons say in words: the numerals are Devanagari */
@media (max-width: 480px) { .dial { gap: 8px 6px; } .dial-k { flex: 0 0 100%; margin-bottom: 2px; } .dial-now { flex: 0 0 100%; margin: 6px 0 0; }
  .dial-b { display: flex; flex: 0 0 100%; width: 100%; min-width: 0; contain: inline-size; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x; padding: 2px 0; } .dial-b::-webkit-scrollbar { display: none; } .dial-b button { flex: 0 0 auto; } }   /* phones: the label above, the six buttons on one line, the words below */
/* the lines between the cards (and the books) are drawn by the items, so they arrive with them: the grid's own background, showing through 1 px gaps, stood as a
   grey slab while the cards faded in after a page change */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--line); margin: 0 var(--gutter); }
.cards > :nth-child(odd), .trilogy > :nth-child(odd) { border-right: 1px solid var(--line); } .cards > :nth-child(n+3), .trilogy > :nth-child(n+3) { border-top: 1px solid var(--line); }
.card { background: var(--ink); padding: clamp(26px, 3vw, 44px); display: grid; gap: 14px; align-content: start; }
.card h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 5.4vw, 88px); line-height: 0.95; letter-spacing: -0.01em; }
.card-line { margin: 0; color: var(--bone-2); font-size: var(--fs-lead); text-wrap: pretty; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.facts li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; font-size: var(--fs-text); color: var(--bone-2); line-height: 1.5; }
.facts li span { font-family: var(--f-ui); font-size: var(--fs-label); color: var(--accent); padding-top: 2px; }
.sealed-note { margin: 8px 0 0; font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--seal-ink); }
.map { position: relative; z-index: 1; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--ink-2) 94%, transparent); }   /* its own ground: the wheel behind must not show through */
.map-pan { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.map svg { display: block; width: 100%; height: auto; }
.map .blk { fill: none; stroke: var(--line); } .map .rail { fill: none; stroke: var(--line-2); stroke-dasharray: 1 7; stroke-linecap: round; }
.map .pin circle { fill: var(--accent); } .map .pin text { fill: var(--bone-2); font-family: var(--f-ui); font-size: 15px; letter-spacing: 0; }
@media (max-width: 700px) { .map svg { min-width: 760px; } .map .pin text { font-size: 15px; letter-spacing: 0; } .map .pin circle { stroke: var(--ink-2); stroke-width: 6px; paint-order: stroke; } }   /* phones: pan the map sideways, labels big enough to read */
.map .pin.sealed circle { fill: none; stroke: var(--seal); stroke-dasharray: 2 2; } .map .pin.sealed text { display: none; }
.map .pin circle.hit, .map .pin.sealed circle.hit { fill: transparent; stroke: none; stroke-dasharray: none; }   /* a pin is 10px across: its invisible disc makes the touch target 44px */
.map-note { padding: 16px 20px; border-top: 1px solid var(--line); font-size: var(--fs-text); color: var(--bone-2); min-height: 3.2em; }
.cx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(30px, 5vw, 80px); padding: 0 var(--gutter) 140px; }
.cx h3 { margin: 0 0 12px; font-family: var(--f-display); font-size: 34px; font-weight: 400; line-height: 1.1; letter-spacing: 0; color: var(--accent); }
.cx dl { margin: 0; display: grid; gap: 4px; }
.cx dt { font-family: var(--f-display); font-size: 24px; font-weight: 400; margin-top: 14px; }
.cx dd { margin: 0; color: var(--bone-2); font-size: var(--fs-text); line-height: 1.55; }
.cx dd .cx-go { display: inline-block; margin-top: 6px; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding: 6px 0; min-height: 44px; }   /* the bow's entry opens its own page (30 November 2026) */
.cx dt.is-sealed { margin-top: 18px; font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 400; letter-spacing: var(--ls-label); color: var(--seal-ink); }
.cx dd.is-sealed { margin: 0; font-style: italic; font-size: var(--fs-fine); color: var(--muted); }   /* a sealed entry says so in two quiet lines, not in a wall of capitals */

/* ---------- story, tears, powers, about ---------- */
.beats { padding: 0 var(--gutter); }
.beat { min-height: 70vh; display: grid; align-content: center; max-width: 22ch; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.15; letter-spacing: -0.01em; }
.trilogy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 var(--gutter); border-block: 1px solid var(--line); }
.book { background: var(--ink); padding: 34px; display: grid; gap: 12px; }
.book h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 4.4vw, 70px); line-height: 1; }
.book h3 span { font-size: 0.45em; font-weight: var(--w-deva); color: var(--accent); }
.book p:not(.kicker) { margin: 0; color: var(--bone-2); font-size: var(--fs-text); text-wrap: pretty; }   /* :not(.kicker): the body rule had made the book's kicker 17.5px */
.book.later h3 { color: var(--muted); font-family: var(--f-body); font-style: italic; font-size: calc(clamp(40px, 4.4vw, 70px) * 1.08); letter-spacing: -0.01em; }
.sums { list-style: none; padding: 80px var(--gutter) 140px; margin: 0; display: grid; gap: 0; max-width: 980px; }
.sums li { border-top: 1px solid var(--line); padding: 30px 0; display: grid; gap: 12px; }
.sums h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 54px); line-height: 1; }
.sums h3 span { font-size: 0.5em; font-weight: var(--w-deva); color: var(--accent); }
.sums p:not(.kicker) { margin: 0; color: var(--bone-2); font-size: var(--fs-text); max-width: 62ch; text-wrap: pretty; }
.sums .is-veiled p:not(.kicker) { color: var(--muted); font-style: italic; font-size: var(--fs-fine); }   /* a sentence is not set in capitals of mono */
.sealed-page { min-height: 100vh; min-height: 100svh; align-content: end; padding-bottom: clamp(60px, 12vh, 120px); }
.sealed-line { margin: 0; font-style: italic; font-size: var(--fs-text); color: var(--seal-ink); }
.about { padding: 0 var(--gutter) 140px; max-width: 34em; display: grid; gap: 8px; }
.about h2 { margin: 40px 0 4px; font-family: var(--f-display); font-size: 34px; font-weight: 400; line-height: 1.1; letter-spacing: 0; color: var(--accent); }
.about p { margin: 0; color: var(--bone-2); }

/* ---------- the tear between pages ---------- */
.tear-t { position: fixed; inset: 0; z-index: 35; pointer-events: none; }
.tear-t .half { position: absolute; top: 0; bottom: 0; width: 60%; background: var(--ink); }   /* 60%: each wall reaches past the seam wherever it wanders (up to about 7% from the middle); at 50.5% the page showed between them */
.tear-t .half.l { left: 0; transform: translateX(-101%); } .tear-t .half.r { right: 0; transform: translateX(101%); }
.tear-t svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; }
.tear-t svg path { fill: none; stroke: var(--accent); stroke-width: 1.4; filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 18px var(--accent)); vector-effect: non-scaling-stroke; }

/* ---------- the threshold (first visit) ---------- */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; }
html:not(.js) .intro { display: none; }
html.dv-direct .intro { display: none; }   /* tagged links and chapter addresses go straight in (reader-growth plan, week one, 12 November 2026) */   /* without JavaScript: just the words */
/* the bolt's box is twice as wide as its zigzag, lets it overflow, and carries the glow: on the path the glow stopped at the path's own bounds, and where the bolt swung
   past its old 40 px box (the middle of the screen) the glow and the line itself were cut off */
.intro-line { position: absolute; left: 50%; top: 0; height: 100%; width: 80px; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 0 3px var(--accent)) drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 55%, transparent)); }
.intro-line path { fill: none; stroke: var(--bone); stroke-width: 1; vector-effect: non-scaling-stroke; }
.intro-count { position: absolute; left: var(--gutter); bottom: calc(clamp(24px, 6vh, 56px) + env(safe-area-inset-bottom, 0px)); font-family: var(--f-ui); font-size: 16px; letter-spacing: var(--ls-kicker); color: var(--bone-2); }
.intro-count b { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6vw, 88px); letter-spacing: -0.01em; color: var(--bone); display: block; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.intro-word { position: absolute; right: var(--gutter); bottom: calc(clamp(24px, 6vh, 56px) + env(safe-area-inset-bottom, 0px)); text-align: right; font-family: var(--f-display); font-size: 30px; letter-spacing: 0; line-height: 1; color: var(--bone-2); }
.hold { position: absolute; left: 50%; bottom: calc(clamp(30px, 9vh, 92px) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; justify-items: center; gap: 14px; opacity: 0; pointer-events: none; transition: opacity 0.8s var(--ease); }
.hold.ready { opacity: 1; pointer-events: auto; }
@media (max-width: 700px) { .hold { bottom: calc(clamp(24px, 6vh, 56px) + 64px + env(safe-area-inset-bottom, 0px)); } }   /* above the count and the book's name, which now stand taller (13px) and would touch the skip link */
.hold-btn { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-ui); font-size: 18px; letter-spacing: 0.01em; color: var(--bone); touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-btn svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hold-btn { background: var(--ink); } .hold-skip { position: relative; background: var(--ink); padding: 4px 10px; }
.hold-btn:focus-visible { outline-offset: 5px; }
.hold-btn circle { fill: none; stroke-width: 1; } .hold-btn .bg { stroke: var(--line-2); } .hold-btn .fg { stroke: var(--accent); stroke-dasharray: 264; stroke-dashoffset: 264; }
.hold-skip { min-height: var(--tap); padding: 0 12px; font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--bone-2); border-bottom: 0; transition: color var(--t-hover) var(--ease); }
.hold-skip::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 11px; height: 1px; background: var(--line-2); transition: background var(--t-hover) var(--ease); }
.hold-skip:hover { color: var(--bone); } .hold-skip:hover::after { background: var(--accent); }

/* ---------- small things ---------- */
.hint, .toast { position: fixed; z-index: 45; background: var(--ink-2); border: 1px solid var(--line-2); color: var(--bone); font-size: var(--fs-text); line-height: 1.4; text-align: center; padding: 11px 20px; opacity: 0; transition: opacity var(--t-micro) var(--ease); pointer-events: none; }   /* a toast is a sentence: the body face, wrapped and centred, and kept inside the screen (it was mono capitals on one line, wider than a phone for the longer ones) */
.hint { transform: translate(16px, -140%); max-width: calc(100vw - 32px); }
.hint.show, .toast.show { opacity: 1; }
.hint b { color: var(--bone); font-family: var(--f-display); font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; margin-right: 6px; }
.toast { left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: min(calc(100vw - 32px), 460px); }
/* finishing a chapter: the docked shield flares, and a note beside it says what opened in the codex */
.dock-glow { position: fixed; z-index: 2; pointer-events: none; border-radius: 50%; opacity: 0; mix-blend-mode: screen; background: radial-gradient(circle, color-mix(in srgb, var(--bone) 70%, var(--accent)) 0, var(--accent) 16%, color-mix(in srgb, var(--accent) 45%, transparent) 34%, transparent 66%); }
.dock-glow::after { content: ""; position: absolute; inset: 37.5%; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; }
.dock-glow.go { animation: dockGlow 2.8s var(--ease) forwards; } .dock-glow.go::after { animation: dockRing 1.6s ease-out 0.15s 2; }
@keyframes dockGlow { 0% { opacity: 0; transform: scale(0.4); } 18% { opacity: 1; transform: scale(1); } 55% { opacity: 0.85; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes dockRing { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.unlock-note { position: fixed; z-index: 44; display: grid; gap: 4px; max-width: min(300px, calc(100vw - 110px)); padding: 14px 16px; background: color-mix(in srgb, var(--ink-2) 98%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line-2)); box-shadow: 0 0 34px -10px var(--accent); opacity: 0; visibility: hidden; transform: translateX(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s; pointer-events: none; }
.unlock-note.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0.35s, 0.35s, 0s; }
.unlock-note .u-k { margin: 0 0 2px; }
.unlock-note b { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--bone); }
.unlock-note .un-more { font-size: var(--fs-fine); color: var(--bone-2); }
.unlock-note .un-go { font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--accent); margin-top: 6px; }
.unlock-note:focus-visible { outline-offset: 3px; }
/* reader accounts (2026-10-25): the account window, the small choice at the threshold, the menu's line and the end of a chapter */
.acct { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--ground, #000) 72%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s var(--ease); }
.acct.show { opacity: 1; }
.acct-in { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 0 60px -20px var(--accent); padding: 30px 28px 24px; transform: translateY(14px); transition: transform 0.4s var(--ease); }
.acct.show .acct-in { transform: none; }
.acct-out, .acct-on { display: grid; gap: 14px; }
.acct h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(25px, 3vw, 31px); line-height: 1.12; letter-spacing: -0.01em; color: var(--bone); padding-right: 24px; text-wrap: balance; }
.acct-lead, .acct-who { margin: 0; font-size: var(--fs-text); line-height: 1.5; color: var(--bone-2); }
.acct-who { color: var(--bone); overflow-wrap: anywhere; }
.acct-state { margin: 0; font-size: var(--fs-fine); line-height: 1.5; color: var(--bone-2); }
.acct-x { position: absolute; top: 6px; right: 8px; width: var(--tap); height: var(--tap); font-size: 26px; line-height: 1; color: var(--bone-2); }
.acct-x:hover { color: var(--bone); } .acct-x:focus-visible { outline-offset: -4px; }
.acct-g { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #1f1f1f; font-family: var(--f-ui); font-size: 16px; font-weight: 500; transition: background var(--t-hover) var(--ease); }
.acct-g:hover { background: #ececec; } .acct-g svg { width: 20px; height: 20px; flex: none; }
.acct-g.is-off { opacity: 0.45; cursor: not-allowed; }
.acct-or { margin: 4px 0 0; display: flex; align-items: center; gap: 12px; font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--muted); }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.acct-form { display: grid; gap: 6px; }
.acct-form label { font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--bone-2); margin-top: 8px; }
.acct-form input { width: 100%; min-width: 0; min-height: 48px; background: none; border: 0; border-bottom: 1px solid var(--line-2); color: var(--bone); font: inherit; font-size: 18px; padding: 8px 0 9px; outline: none; border-radius: 0; transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.acct-form input:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.acct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 10px; }
.acct .cta { padding: 13px 22px; }
.acct .cta.ghost { padding-left: 0; padding-right: 0; }
.acct-link { position: relative; justify-self: start; min-height: var(--tap); font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--accent); border-bottom: 0; padding: 0; }
.acct-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 11px; height: 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.acct-link:hover { color: var(--bone); }
.acct-msg { margin: 0; min-height: 1.5em; font-size: var(--fs-text); line-height: 1.5; color: var(--bone); overflow-wrap: anywhere; }
.acct-msg:empty { min-height: 0; }
.acct-note { margin: 0; font-size: var(--fs-fine); line-height: 1.55; color: var(--bone-2); border-left: 2px solid var(--accent); padding-left: 12px; }
.acct-fine { margin: 0; font-size: var(--fs-fine); line-height: 1.55; color: var(--muted); }
.acct-fine a { color: var(--bone-2); border-bottom: 1px solid var(--line-2); display: inline-block; padding: 11px 0 0; margin-top: -11px; }
.acct-guest-row { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: var(--fs-fine); color: var(--muted); }
.acct-guest { position: relative; min-height: var(--tap); font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--bone-2); border-bottom: 0; padding: 0; }
.acct-guest::after { content: ""; position: absolute; left: 0; right: 0; bottom: 11px; height: 1px; background: var(--line-2); transition: background var(--t-hover) var(--ease); }
.acct-guest:hover { color: var(--bone); } .acct-guest:hover::after { background: var(--bone-2); }
.acct-del { color: var(--seal-ink); margin-top: 6px; } .acct-del::after { background: color-mix(in srgb, var(--seal-ink) 45%, transparent); }
.acct-confirm { display: grid; gap: 4px; border: 1px solid color-mix(in srgb, var(--seal) 50%, var(--line-2)); padding: 14px 16px; }
.acct-confirm p { margin: 0; font-size: var(--fs-text); line-height: 1.5; color: var(--bone-2); }
.acct-ask { position: fixed; z-index: 26; left: max(var(--gutter, 18px), env(safe-area-inset-left, 0px)); top: 84px; width: min(372px, calc(100vw - 36px));   /* the empty corner under the bar: the title's band and the wheel stay clear */ display: grid; gap: 4px; padding: 18px 46px 16px 18px; background: color-mix(in srgb, var(--ink-2) 94%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line-2)); box-shadow: 0 0 34px -12px var(--accent); opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.acct-ask.show { opacity: 1; transform: none; }
.acct-ask-t { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--bone); text-wrap: balance; }
.acct-ask .acct-row { margin-top: 8px; gap: 10px 20px; }
.acct-ask .cta { padding: 11px 22px; }
.acct-ask .acct-x { top: 2px; right: 2px; }
html.acct-open .acct-ask, html.menu-open .acct-ask { opacity: 0; pointer-events: none; }
.menu-acct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: clamp(20px, 4.5vh, 44px); opacity: 0; transition: opacity 0.5s var(--ease); }
.menu-open .menu-acct { opacity: 1; transition-delay: 0.45s; }
.menu-acct-btn { min-height: var(--tap); font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--bone); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 22px; transition: background var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.menu-acct-btn:hover { background: var(--bone); color: var(--ink); }
.menu-acct-who { font-size: var(--fs-text); color: var(--muted); overflow-wrap: anywhere; }
.acct-nudge { width: 100%; border-top: 1px solid var(--line); padding-top: 22px; }
.ch-ask { width: 100%; border-top: 1px solid var(--line); padding-top: 26px; display: grid; gap: 12px; justify-items: center; }   /* the email ask at the end of Chapter One and the latest chapter (week one, 12 November 2026) */
.ch-ask .u-k { margin: 0; }
.ch-ask-t { margin: 0; font-size: var(--fs-text); line-height: 1.6; color: var(--bone-2); }
.ch-ask .follow-form { margin-top: 4px; }
.ch-ask .fine { margin: 0; text-align: center; }
.acct-nudge p { margin: 0; font-size: var(--fs-text); line-height: 1.6; color: var(--bone-2); }
.acct-nudge .acct-link { display: inline; min-height: 0; font-size: var(--fs-label); margin: 0 2px; padding: 8px 0; } .acct-nudge .acct-link::after { bottom: 6px; }
@media (max-width: 700px) {
  .acct-ask { top: calc(62px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: auto; background: var(--ink-2); }   /* above the wheel, where the screen is empty; the title below stays whole */
  .acct-in { padding: 24px 20px 14px; } .acct-out, .acct-on { gap: 10px; } .acct-form input { min-height: 44px; }
}
.proto { position: fixed; left: 14px; bottom: 14px; z-index: 46; font-family: var(--f-ui); font-size: 15px; letter-spacing: 0; color: var(--bone-2); }
.proto summary { cursor: pointer; list-style: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; background: var(--ink-2); display: inline-block; }
.proto summary::-webkit-details-marker { display: none; }
.proto .in { margin-top: 8px; background: var(--ink-2); border: 1px solid var(--line-2); padding: 12px; display: grid; gap: 10px; width: min(330px, calc(100vw - 28px)); }
.proto .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.proto button { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 9px; font-size: 15px; letter-spacing: 0; }
.proto button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.proto p { margin: 0; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: 15px; line-height: 1.45; color: var(--muted); }
.fallback-wheel { display: none; }
html.no-webgl .fallback-wheel { display: block; width: 100%; height: 100%; animation: spin 236s linear infinite; }
html.no-webgl canvas#gl { display: none; }
.nogl-note { display: none; } html.no-webgl .nogl-note { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  body { font-size: 18px; } :root { --rs: 18px; }
  .ix, .toc { max-width: none; }
  .page-head { padding-top: clamp(104px, 16vh, 150px); }   /* phones: the title was a fifth of the screen down */

  .four-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .four-card { min-height: 240px; border-bottom: 1px solid var(--line); }
  .four-card:nth-child(3) { border-left: 1px solid var(--line); }
  .cards, .trilogy, .cx { grid-template-columns: minmax(0, 1fr); }
  .cards > *, .trilogy > * { border-right: 0 !important; } .cards > * + *, .trilogy > * + * { border-top: 1px solid var(--line); }
  .hero-wheel { width: min(94vw, 64vh, calc((100svh - 64px - var(--tband)) / 1.36)); }
  .tearline { left: 4px; width: 10px; }
  .tearline-hit { left: 0; width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .title span { transform: none; opacity: 1; }
}
.follow-lead { margin: 0; max-width: 46ch; color: var(--bone-2); font-size: var(--fs-lead); text-wrap: pretty; }
.follow .fine { max-width: 54ch; font-family: var(--f-body); font-size: var(--fs-fine); text-transform: none; letter-spacing: 0; line-height: 1.6; text-wrap: pretty; }   /* the promise under the form is a sentence: the body face, not the label face */
.follow-links { margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); }
.follow-links a { position: relative; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px; color: var(--bone-2); transition: color var(--t-hover) var(--ease); }
.follow-links a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 10px; height: 1px; background: var(--line-2); transition: background var(--t-hover) var(--ease); }
.follow-links a:hover { color: var(--bone); } .follow-links a:hover::after { background: var(--accent); }
.foot { display: block; }
.foot-in { display: grid; gap: 10px; max-width: 900px; }
.foot-in p { margin: 0; text-transform: none; letter-spacing: 0.01em; font-family: var(--f-body); font-size: var(--fs-fine); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.foot-in p:first-child, .foot-in .foot-links { font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 10px; margin-inline: -8px; }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px; color: var(--bone-2); transition: color var(--t-hover) var(--ease); } .foot-links a:hover { color: var(--bone); }

/* ================= button shapes: the leaf (26 October 2026; the six directions reviewed are in artwork/codex/directions/buttons_2026-10-26/) =================
   The pill is gone: a button's ends are pointed, their sides curving like the leaves round the wheel. A button is three layers: the element carries the text only,
   its ::before is the FRAME (the line colour, clipped to the outline polygon) and its ::after the PLATE (the page colour, one pixel in, clipped to the same polygon
   moved in by one pixel), so the 1px edge between them is a border that follows the curves; clip-path would clip a border, an outline and a box-shadow, so none is used.
   The straight runs of every polygon lie 3px outside their own box, so they are the browser's pixel-snapped box edges and stay crisp at any width and scale.
   Each end is a curve from the tip at mid-height into the flat top edge (34px long on a button, 13px on a bar control), sampled into 8 points for a 52px button. */
:root { --btn-fill: var(--ground); --bt-line: var(--bone-2); }
:root :is(.acct-in, .acct-ask, .menu, .bar-tools) { --btn-fill: var(--ink-2); }

/* the big buttons: .cta, the menu's account button (the pill's box: its 1px border became 1px of padding) */
:root :is(.cta:not(.ghost), .menu-acct-btn) { position: relative; isolation: isolate; border: 0; border-radius: 0; background: none; transition: color var(--t-hover) var(--ease), transform 160ms var(--ease); }
:root .cta:not(.ghost) { padding: 15px 29px; }
:root .acct .cta:not(.ghost) { padding: 14px 23px; }
:root .acct-ask .cta:not(.ghost) { padding: 12px 23px; }
:root .menu-acct-btn { padding: 0 23px; --bt-line: var(--line-2); }
:root :is(.cta:not(.ghost), .menu-acct-btn)::before, :root :is(.cta:not(.ghost), .menu-acct-btn)::after { content: ""; position: absolute; pointer-events: none; transition: background-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
:root :is(.cta:not(.ghost), .menu-acct-btn)::before { z-index: -2; inset: 0; background: var(--bt-line); clip-path: polygon(var(--bt-f)); }
:root :is(.cta:not(.ghost), .menu-acct-btn)::after { z-index: -1; inset: 1px; background: var(--btn-fill); clip-path: polygon(var(--bt-p)); }
@media (hover: hover) and (pointer: fine) { :root :is(.cta:not(.ghost), .menu-acct-btn):hover { color: var(--ink); }
:root :is(.cta:not(.ghost), .menu-acct-btn):hover::before, :root :is(.cta:not(.ghost), .menu-acct-btn):hover::after { background: var(--bone); } }
:root :is(.cta:not(.ghost), .menu-acct-btn):active { color: var(--ink); transform: scale(0.97); }
:root :is(.cta:not(.ghost), .menu-acct-btn):active::before, :root :is(.cta:not(.ghost), .menu-acct-btn):active::after { background: var(--bone-2); transition-duration: 0s; }
:root :is(.cta:not(.ghost), .menu-acct-btn):focus-visible { outline: 0; }
:root :is(.cta:not(.ghost), .menu-acct-btn):focus-visible::before { inset: -1px; background: var(--accent); clip-path: polygon(var(--bt-ff)); transition: none; }

/* the bar's controls (and the lit count): nothing at rest, as before; on hover the shape appears as a hairline plate, pressed it fills, focused it rings */
:root :is(.bar-r button, .lit-count) { position: relative; isolation: isolate; border-radius: 0; }
:root :is(.bar-r button, .lit-count)::before, :root :is(.bar-r button, .lit-count)::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity var(--t-micro) var(--ease), background-color var(--t-micro) var(--ease); }
:root :is(.bar-r button, .lit-count)::before { z-index: -2; inset: 0; background: var(--line-2); clip-path: polygon(var(--bs-f)); }
:root :is(.bar-r button, .lit-count)::after { z-index: -1; inset: 1px; background: var(--ink-2); clip-path: polygon(var(--bs-p)); }
@media (hover: hover) and (pointer: fine) { :root :is(.bar-r button, .lit-count):hover::before, :root :is(.bar-r button, .lit-count):hover::after { opacity: 1; } }
:root :is(.bar-r button, .lit-count):active::before, :root :is(.bar-r button, .lit-count):active::after { opacity: 1; }
:root :is(.bar-r button, .lit-count):active::after { background: color-mix(in srgb, var(--bone) 12%, var(--ink-2)); }
:root .bar-r .tools-btn[aria-expanded="true"]::before, :root .bar-r .tools-btn[aria-expanded="true"]::after { opacity: 1; }
:root .bar-r button:active, :root .bar-r .tools-btn[aria-expanded="true"] { background: none; }
:root :is(.bar-r button, .lit-count):focus-visible { outline: 0; }
:root :is(.bar-r button, .lit-count):focus-visible::before { opacity: 1; background: var(--accent); transition: none; }
:root :is(.bar-r button, .lit-count):focus-visible::after { opacity: 1; inset: 2px; clip-path: polygon(var(--bs-p2)); transition: none; }
/* on a phone the Display sheet's buttons carried a border; here they carry the frame all the time (accent when chosen) */
@media (max-width: 760px) {
  :root .bar-tools button { border: 0; padding-inline: 11px; }
  :root .bar-tools .snd { padding: 0 15px; }
  :root .bar-tools button::before, :root .bar-tools button::after { opacity: 1; }
  :root .bar-tools button[aria-pressed="true"]::before { background: var(--accent); }
}
/* Windows high-contrast mode drops backgrounds, so the layers would paint as opaque boxes over the border: they are switched off, the big buttons keep a plain border and every focus gets a system outline */
@media (forced-colors: active) {
  :root :is(.cta:not(.ghost), .menu-acct-btn, .bar-tools button) { border: 1px solid ButtonText; }
  :root :is(.cta:not(.ghost), .menu-acct-btn, .bar-r button, .lit-count)::before, :root :is(.cta:not(.ghost), .menu-acct-btn, .bar-r button, .lit-count)::after { display: none; }
  :root :is(.cta, .menu-acct-btn, .bar-r button, .lit-count):focus-visible { outline: 2px solid Highlight !important; outline-offset: 3px !important; }
}

/* the leaf's outlines: --bt-* for the big buttons (frame, plate, focus ring), --bs-* for the bar's controls */
:root {
  --bt-f: 34px -3px, calc(100% - 34px) -3px, calc(100% - 29.6px) calc(50% - 25.54px), calc(100% - 25.64px) calc(50% - 24.24px), calc(100% - 22px) calc(50% - 22.19px), calc(100% - 18.56px) calc(50% - 19.5px), calc(100% - 15.19px) calc(50% - 16.27px), calc(100% - 11.78px) calc(50% - 12.61px), calc(100% - 8.19px) calc(50% - 8.6px), calc(100% - 4.3px) calc(50% - 4.37px), 100% 50%, calc(100% - 4.3px) calc(50% + 4.37px), calc(100% - 8.19px) calc(50% + 8.6px), calc(100% - 11.78px) calc(50% + 12.61px), calc(100% - 15.19px) calc(50% + 16.27px), calc(100% - 18.56px) calc(50% + 19.5px), calc(100% - 22px) calc(50% + 22.19px), calc(100% - 25.64px) calc(50% + 24.24px), calc(100% - 29.6px) calc(50% + 25.54px), calc(100% - 34px) calc(100% + 3px), 34px calc(100% + 3px), 29.6px calc(50% + 25.54px), 25.64px calc(50% + 24.24px), 22px calc(50% + 22.19px), 18.56px calc(50% + 19.5px), 15.19px calc(50% + 16.27px), 11.78px calc(50% + 12.61px), 8.19px calc(50% + 8.6px), 4.3px calc(50% + 4.37px), 0px 50%, 4.3px calc(50% - 4.37px), 8.19px calc(50% - 8.6px), 11.78px calc(50% - 12.61px), 15.19px calc(50% - 16.27px), 18.56px calc(50% - 19.5px), 22px calc(50% - 22.19px), 25.64px calc(50% - 24.24px), 29.6px calc(50% - 25.54px);
  --bt-p: 33.05px -3px, calc(100% - 33.05px) -3px, calc(100% - 28.81px) calc(50% - 24.56px), calc(100% - 25.04px) calc(50% - 23.32px), calc(100% - 21.56px) calc(50% - 21.36px), calc(100% - 18.22px) calc(50% - 18.75px), calc(100% - 14.91px) calc(50% - 15.57px), calc(100% - 11.52px) calc(50% - 11.93px), calc(100% - 7.93px) calc(50% - 7.93px), calc(100% - 4.03px) calc(50% - 3.68px), calc(100% - 0.4px) 50%, calc(100% - 4.03px) calc(50% + 3.68px), calc(100% - 7.93px) calc(50% + 7.93px), calc(100% - 11.52px) calc(50% + 11.93px), calc(100% - 14.91px) calc(50% + 15.57px), calc(100% - 18.22px) calc(50% + 18.75px), calc(100% - 21.56px) calc(50% + 21.36px), calc(100% - 25.04px) calc(50% + 23.32px), calc(100% - 28.81px) calc(50% + 24.56px), calc(100% - 33.05px) calc(100% + 3px), 33.05px calc(100% + 3px), 28.81px calc(50% + 24.56px), 25.04px calc(50% + 23.32px), 21.56px calc(50% + 21.36px), 18.22px calc(50% + 18.75px), 14.91px calc(50% + 15.57px), 11.52px calc(50% + 11.93px), 7.93px calc(50% + 7.93px), 4.03px calc(50% + 3.68px), 0.4px 50%, 4.03px calc(50% - 3.68px), 7.93px calc(50% - 7.93px), 11.52px calc(50% - 11.93px), 14.91px calc(50% - 15.57px), 18.22px calc(50% - 18.75px), 21.56px calc(50% - 21.36px), 25.04px calc(50% - 23.32px), 28.81px calc(50% - 24.56px);
  --bt-ff: 34.95px -3px, calc(100% - 34.95px) -3px, calc(100% - 30.39px) calc(50% - 26.53px), calc(100% - 26.23px) calc(50% - 25.16px), calc(100% - 22.44px) calc(50% - 23.03px), calc(100% - 18.9px) calc(50% - 20.26px), calc(100% - 15.48px) calc(50% - 16.98px), calc(100% - 12.04px) calc(50% - 13.28px), calc(100% - 8.45px) calc(50% - 9.28px), calc(100% - 4.58px) calc(50% - 5.06px), calc(100% + 0.4px) 50%, calc(100% - 4.58px) calc(50% + 5.06px), calc(100% - 8.45px) calc(50% + 9.28px), calc(100% - 12.04px) calc(50% + 13.28px), calc(100% - 15.48px) calc(50% + 16.98px), calc(100% - 18.9px) calc(50% + 20.26px), calc(100% - 22.44px) calc(50% + 23.03px), calc(100% - 26.23px) calc(50% + 25.16px), calc(100% - 30.39px) calc(50% + 26.53px), calc(100% - 34.95px) calc(100% + 3px), 34.95px calc(100% + 3px), 30.39px calc(50% + 26.53px), 26.23px calc(50% + 25.16px), 22.44px calc(50% + 23.03px), 18.9px calc(50% + 20.26px), 15.48px calc(50% + 16.98px), 12.04px calc(50% + 13.28px), 8.45px calc(50% + 9.28px), 4.58px calc(50% + 5.06px), -0.4px 50%, 4.58px calc(50% - 5.06px), 8.45px calc(50% - 9.28px), 12.04px calc(50% - 13.28px), 15.48px calc(50% - 16.98px), 18.9px calc(50% - 20.26px), 22.44px calc(50% - 23.03px), 26.23px calc(50% - 25.16px), 30.39px calc(50% - 26.53px);
  --bs-f: 18.69px -3px, calc(100% - 18.69px) -3px, calc(100% - 10.61px) calc(50% - 20.74px), calc(100% - 8.41px) calc(50% - 17.49px), calc(100% - 6.31px) calc(50% - 13.01px), calc(100% - 4.26px) calc(50% - 8.09px), calc(100% - 2.18px) calc(50% - 3.49px), 100% 50%, calc(100% - 2.18px) calc(50% + 3.49px), calc(100% - 4.26px) calc(50% + 8.09px), calc(100% - 6.31px) calc(50% + 13.01px), calc(100% - 8.41px) calc(50% + 17.49px), calc(100% - 10.61px) calc(50% + 20.74px), calc(100% - 18.69px) calc(100% + 3px), 18.69px calc(100% + 3px), 10.61px calc(50% + 20.74px), 8.41px calc(50% + 17.49px), 6.31px calc(50% + 13.01px), 4.26px calc(50% + 8.09px), 2.18px calc(50% + 3.49px), 0px 50%, 2.18px calc(50% - 3.49px), 4.26px calc(50% - 8.09px), 6.31px calc(50% - 13.01px), 8.41px calc(50% - 17.49px), 10.61px calc(50% - 20.74px);
  --bs-p: 17.94px -3px, calc(100% - 17.94px) -3px, calc(100% - 10.3px) calc(50% - 19.97px), calc(100% - 8.28px) calc(50% - 16.99px), calc(100% - 6.23px) calc(50% - 12.61px), calc(100% - 4.18px) calc(50% - 7.69px), calc(100% - 2.06px) calc(50% - 3.02px), calc(100% - 0.18px) 50%, calc(100% - 2.06px) calc(50% + 3.02px), calc(100% - 4.18px) calc(50% + 7.69px), calc(100% - 6.23px) calc(50% + 12.61px), calc(100% - 8.28px) calc(50% + 16.99px), calc(100% - 10.3px) calc(50% + 19.97px), calc(100% - 17.94px) calc(100% + 3px), 17.94px calc(100% + 3px), 10.3px calc(50% + 19.97px), 8.28px calc(50% + 16.99px), 6.23px calc(50% + 12.61px), 4.18px calc(50% + 7.69px), 2.06px calc(50% + 3.02px), 0.18px 50%, 2.06px calc(50% - 3.02px), 4.18px calc(50% - 7.69px), 6.23px calc(50% - 12.61px), 8.28px calc(50% - 16.99px), 10.3px calc(50% - 19.97px);
  --bs-p2: 17.19px -3px, calc(100% - 17.19px) -3px, calc(100% - 9.99px) calc(50% - 19.21px), calc(100% - 8.15px) calc(50% - 16.5px), calc(100% - 6.14px) calc(50% - 12.2px), calc(100% - 4.09px) calc(50% - 7.29px), calc(100% - 1.95px) calc(50% - 2.55px), calc(100% - 0.36px) 50%, calc(100% - 1.95px) calc(50% + 2.55px), calc(100% - 4.09px) calc(50% + 7.29px), calc(100% - 6.14px) calc(50% + 12.2px), calc(100% - 8.15px) calc(50% + 16.5px), calc(100% - 9.99px) calc(50% + 19.21px), calc(100% - 17.19px) calc(100% + 3px), 17.19px calc(100% + 3px), 9.99px calc(50% + 19.21px), 8.15px calc(50% + 16.5px), 6.14px calc(50% + 12.2px), 4.09px calc(50% + 7.29px), 1.95px calc(50% + 2.55px), 0.36px 50%, 1.95px calc(50% - 2.55px), 4.09px calc(50% - 7.29px), 6.14px calc(50% - 12.2px), 8.15px calc(50% - 16.5px), 9.99px calc(50% - 19.21px);
}
:root .acct-g { border-radius: 8px; }

/* ================= the Seven Tears atlas (proposal, 28 October 2026) =================
   A globe (atlas.js: three.js and 3DTilesRendererJS, loaded only when this page opens) with HTML labels over it, a card for the chosen place, and the list of places.
   On a wide screen the title, the list and the legend stand in a column and the globe is sticky beside them; on a phone the globe follows the title and the list comes
   after it. The canvas carries no CSS filter and no backdrop blur: the globe is darkened and tinted in the renderer. Colours are the site's tokens, so both palettes work. */
.atlas { --atlas-top: clamp(88px, 10vh, 100px); display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); grid-template-areas: "head stage" "side stage"; grid-template-rows: auto 1fr; column-gap: clamp(28px, 4vw, 64px); align-items: start; max-width: 1760px; margin: 0 auto; padding: var(--atlas-top) var(--gutter) 90px; }
.atlas-head { grid-area: head; display: grid; gap: 18px; padding-bottom: 26px; }
.atlas-head .page-title { font-size: clamp(46px, 4.4vw, 72px); }
.atlas-head .page-lede { font-size: clamp(18px, 1.35vw, 21px); max-width: 34ch; }
.atlas-side { grid-area: side; display: grid; gap: 22px; min-width: 0; }
.atlas-stage { grid-area: stage; grid-row: 1 / span 2; position: sticky; top: calc(var(--bar-h) + 16px); height: calc(100vh - var(--atlas-top) - 28px); height: calc(100svh - var(--atlas-top) - 28px); min-height: 460px; max-height: 940px; display: flex; flex-direction: column; min-width: 0; }
.atlas-view { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(120% 95% at 50% 46%, color-mix(in srgb, var(--accent) 9%, var(--ink-2)) 0%, var(--ink) 58%, var(--ground) 100%); }
.atlas-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: 0; }
.atlas-canvas:active { cursor: grabbing; }
.atlas-wait { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-ui); font-size: var(--fs-label); color: var(--muted); pointer-events: none; transition: opacity 0.8s var(--ease); }
.atlas-view.is-ready .atlas-wait { opacity: 0; }
.atlas-stars { position: absolute; inset: 0; background-size: cover; background-position: center; pointer-events: none; }
.atlas-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tl-mark { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform; }
.tl-mark.is-off { visibility: hidden; }
.tl-mark .tl-pt { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 75%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 60%, transparent); pointer-events: auto; cursor: pointer; transition: transform var(--t-micro) var(--ease); }
.tl-mark .tl-pt::before { content: ""; position: absolute; inset: -17px; border-radius: 50%; }   /* the touch target: 42px round the 8px point */
.tl-mark .tl-lab { position: absolute; left: 15px; top: -12px; padding: 0; white-space: nowrap; font-family: var(--f-ui); font-size: var(--fs-label); line-height: 24px; letter-spacing: var(--ls-label); color: var(--bone); text-shadow: 0 1px 3px #000, 0 0 10px #000; pointer-events: none; transition: opacity var(--t-micro) var(--ease); }   /* the words never catch a drag meant for the globe: only a station's point does, and the list reaches every place */
.tl-mark.is-left .tl-lab { left: auto; right: 15px; }
.tl-mark.is-top .tl-lab, .tl-mark.is-bot .tl-lab { left: 0; right: auto; transform: translateX(-50%); }   /* the city's labels may also stand above or below their point (city.js tries four sides) */
.tl-mark.is-top .tl-lab { top: -38px; }
.tl-mark.is-bot .tl-lab { top: 14px; }
.tl-mark.is-conc .tl-lab { left: 0; transform: translateX(-50%); font-family: var(--f-display); font-size: 22px; line-height: 26px; top: -13px; color: color-mix(in srgb, var(--bone) 86%, var(--accent)); }
.tl-mark.is-conc.is-focus .tl-lab { color: var(--bone); }
.tl-mark.is-conc.is-faint .tl-lab { color: var(--bone-2); font-style: italic; }
.tl-mark.no-lab .tl-lab { opacity: 0; }
.tl-mark.is-on .tl-pt { transform: scale(1.45); background: var(--bone); }
.tl-mark.is-on .tl-lab { color: var(--bone); }
.atlas-credit { position: absolute; right: 0; bottom: 0; max-width: min(100%, 680px); padding: 2px 10px 3px 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 12px; font-family: var(--f-ui); font-size: 14px; line-height: 22px; color: var(--bone-2); text-align: right; background: color-mix(in srgb, var(--ink) 80%, transparent); }
.atlas-credit:empty { display: none; }
.atlas-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.atlas-credit a:hover { color: var(--bone); }
.atlas-credit img { height: 18px; width: auto; max-width: 120px; vertical-align: middle; margin: 0 2px 2px; }
.atlas-credit-more { font: inherit; color: inherit; padding: 0 2px; min-height: 22px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.atlas-credit-more:hover, .atlas-credit-more[aria-expanded="true"] { color: var(--bone); }
.atlas-credit-more:focus-visible { outline-offset: 1px; }
.atlas-credit-data { position: absolute; right: 0; bottom: 100%; width: 440px; max-width: calc(100vw - 32px); max-height: min(42vh, 280px); overflow-y: auto; padding: 10px 14px 11px; display: grid; gap: 8px; text-align: left; line-height: 1.4; color: var(--bone-2); background: color-mix(in srgb, var(--ink) 95%, transparent); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.atlas-credit-data[hidden] { display: none; }
.atlas-bing img { height: 17px; margin-right: 4px; }
.atlas-card { position: absolute; left: 16px; bottom: 48px; width: min(400px, calc(100% - 32px)); padding: 16px 20px 18px; display: grid; gap: 6px; background: color-mix(in srgb, var(--ink) 88%, transparent); border: 1px solid var(--line-2); }
.atlas-card[hidden] { display: none; }
.atlas-card .u-k { margin: 0; }
.atlas-card h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; letter-spacing: 0; }
.atlas-card p:not(.u-k) { margin: 0; color: var(--bone-2); font-size: var(--fs-text); line-height: 1.55; text-wrap: pretty; }
.atlas-tools { display: grid; gap: 16px; justify-items: start; }
.atlas-hint { margin: 0; }
.atlas-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.atlas-legend li { display: inline-flex; align-items: center; gap: 9px; }
.tl-glyph { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; }
.tl-glyph.is-station { width: 7px; height: 7px; margin: 0 4.5px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }
.tl-glyph.is-conc { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 85%, transparent) 0%, color-mix(in srgb, var(--accent) 18%, transparent) 62%, transparent 72%); }
.tl-glyph.is-faint { border: 1px dashed color-mix(in srgb, var(--accent) 80%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 70%); }
.tl-group { margin: 0 0 4px; }
.tl-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.tl-list li { border-bottom: 1px solid var(--line); }
.tl-item { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 4px 14px; width: 100%; min-height: var(--tap); padding: 9px 2px; text-align: left; color: var(--bone-2); transition: color var(--t-micro) var(--ease); }
.tl-item .tl-name { font-family: var(--f-body); font-size: var(--fs-text); line-height: 1.3; }
.tl-item .tl-meta { grid-column: 2; font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--muted); margin-top: -2px; }
.tl-item:hover, .tl-item:focus-visible, .tl-item[aria-pressed="true"] { color: var(--bone); }
.tl-item[aria-pressed="true"] .tl-name { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tl-item:focus-visible { outline-offset: -2px; }
.tl-text { display: none; margin: 0 0 14px 30px; color: var(--bone-2); font-size: var(--fs-text); line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.atlas-note { grid-area: note; margin: 0 0 8px; font-style: italic; color: var(--bone-2); font-size: var(--fs-text); }
.atlas:not(.is-plain) .atlas-note { display: none; }
/* without a globe (no WebGL, or the map could not be loaded): the same list, with each place's text, in one column */
.atlas.is-plain { grid-template-columns: minmax(0, 760px); grid-template-areas: "head" "note" "side"; grid-template-rows: auto; }
.atlas.is-plain .atlas-stage, .atlas.is-plain .atlas-tools { display: none; }
.atlas.is-plain .tl-text { display: block; }
.atlas.is-plain .tl-item { cursor: default; }
@media (max-width: 999px) {
  .atlas { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "side"; grid-template-rows: auto; --atlas-top: 92px; padding-bottom: 70px; }
  .atlas-head { padding-bottom: 20px; }
  .atlas-head .page-lede { max-width: 46ch; }
  .atlas-stage { grid-row: auto; position: static; height: auto; min-height: 0; max-height: none; margin-bottom: 26px; }
  .atlas-view { flex: none; aspect-ratio: 1 / 1; max-height: 66vh; max-height: 66svh; width: 100%; }
  .atlas-card { position: static; width: auto; margin-top: -1px; background: var(--ink-2); }
  .atlas.is-plain { grid-template-columns: minmax(0, 1fr); }
  .tl-mark .tl-lab { font-size: 14px; }
  .tl-mark.is-conc .tl-lab { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .tl-mark .tl-pt, .tl-mark .tl-lab, .atlas-wait, .tl-item { transition: none; } }
.dv-still .tl-mark .tl-pt, .dv-still .tl-mark .tl-lab, .dv-still .atlas-wait, .dv-still .tl-item { transition: none; }
@media (forced-colors: active) { .tl-mark .tl-pt { background: Highlight; } .atlas-card, .atlas-view { border-color: CanvasText; } }

/* ================= Dwarka at night: the city view of the atlas (proposal, 28 October 2026) =================
   Two layers in one view: the globe (#globeHost) and the city (#cityHost, fading over it). The side column shows the lists of the mode that is on. */
.atlas-layer { position: absolute; inset: 0; }
.atlas-view:has(.is-ready) .atlas-wait { opacity: 0; }
.city-layer { opacity: 0; pointer-events: none; transition: opacity 1s var(--ease); }
.city-layer.is-on { opacity: 1; pointer-events: auto; }
.city-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: 0; }
.city-canvas:active { cursor: grabbing; }
.city-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }   /* the map takes the keyboard: arrows move it, Shift turns it, plus and minus zoom */
.city-keys { position: absolute; left: 10px; top: 10px; z-index: 2; margin: 0; padding: 8px 14px; max-width: min(440px, calc(100% - 20px)); font-family: var(--f-ui); font-size: var(--fs-label); line-height: 1.45; color: var(--bone-2); background: color-mix(in srgb, var(--ink) 90%, transparent); border: 1px solid var(--line-2); opacity: 0; pointer-events: none; transition: opacity var(--t-micro) var(--ease); }
.city-canvas:focus-visible ~ .city-keys { opacity: 1; }
@media (hover: none) { .atlas-hint.is-keys { display: none; } }
.atlas[data-mode="city"]:not(.is-diving) #globeHost { visibility: hidden; }   /* during a dive or a climb both maps stay drawn: one fades over the other */
.atlas[data-mode="city"] .side-globe, .atlas[data-mode="globe"] .side-city { display: none; }
.atlas.is-plain .side-globe, .atlas.is-plain .side-city { display: block; }
.atlas.is-plain .city-lines, .atlas.is-plain .city-chars, .atlas.is-plain .city-chips { display: block; }
.atlas.is-plain .side-city .atlas-tools { display: none; }
.atlas:not(.is-plain) .city-lines { display: none; }
.atlas.is-plain .city-lines .tl-text { margin-left: 0; }
.atlas-btns { margin: 0; display: flex; flex-wrap: wrap; gap: 12px 16px; }
.cy-sec { position: absolute; left: 0; top: 0; translate: -50% -50%; font-family: var(--f-display); font-size: 22px; line-height: 20px; color: color-mix(in srgb, var(--bone) 26%, transparent); pointer-events: none; will-change: transform; text-shadow: 0 0 8px #000; }
.cy-mark .tl-pt { background: var(--bone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 70%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 16px 4px color-mix(in srgb, var(--accent) 55%, transparent); }
.city-credit { left: 0; right: auto; justify-content: flex-start; text-align: left; padding: 2px 12px 3px 10px; }
.tl-mark.is-city .tl-lab { font-family: var(--f-display); font-size: 22px; color: var(--bone); }
.tl-glyph.is-city { width: 9px; height: 9px; margin: 0 3.5px; background: var(--bone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.tl-glyph.is-place { width: 7px; height: 7px; margin: 0 4.5px; background: var(--accent); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--accent) 70%, transparent); }
/* a layer's marks (what an event leaves on the map: small, no beam) and its quiet moments (the places' labels step back while an event plays) */
.tl-glyph.is-trace { width: 7px; height: 7px; margin: 0 4.5px; border-radius: 1px; background: color-mix(in srgb, var(--bone) 55%, var(--ink)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.cy-mark.is-trace .tl-pt { width: 6px; height: 6px; left: -3px; top: -3px; border-radius: 1px; background: color-mix(in srgb, var(--bone) 60%, var(--ink)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 70%, transparent), 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.city-labels.is-day .tl-lab { text-shadow: 0 0 2px #000, 0 1px 3px #000, 0 0 8px rgb(0 0 0 / 0.75), 0 0 14px rgb(0 0 0 / 0.45); }   /* by day (30 October) the labels stand on bright ground */
.city-labels.ev-quiet .tl-mark:not(.is-on):not(.no-lab) .tl-lab { opacity: 0.22; }   /* the dimmed set is still decluttered: a label the placement hid stays hidden */
.city-labels.ev-quiet .tl-mark:not(.is-on) .tl-pt { opacity: 0.4; }
.tl-mark.ev-hide { visibility: hidden; }
/* the tears (29 October): a city's marker with a tear is a ring round its point (dashed where the place is a draft); the other cities' names on their maps are faint words on the ground */
.side-city[hidden] { display: none; }
.tl-mark.is-tear .tl-pt { background: transparent; box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in srgb, var(--ink) 70%, transparent), 0 0 14px 4px color-mix(in srgb, var(--accent) 55%, transparent); }
.tl-mark.is-tear.is-draft .tl-pt { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 70%, transparent), 0 0 14px 3px color-mix(in srgb, var(--accent) 40%, transparent); outline: 1.5px dashed var(--accent); outline-offset: 0; }
.tl-mark.is-tear.is-on .tl-pt { background: transparent; box-shadow: 0 0 0 2px var(--bone), 0 0 0 5px color-mix(in srgb, var(--ink) 70%, transparent), 0 0 16px 5px color-mix(in srgb, var(--accent) 65%, transparent); }
.tl-glyph.is-city.is-tear { width: 11px; height: 11px; margin: 0 2.5px; background: transparent; box-shadow: 0 0 0 2px var(--accent), 0 0 10px 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.tl-glyph.is-city.is-tear.is-draft { box-shadow: none; border: 1.5px dashed var(--accent); }
.cy-geo { font-family: var(--f-ui); font-size: 13px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--bone) 72%, transparent); text-shadow: 0 1px 4px #000, 0 0 12px #000; }
.cy-geo.is-water { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0.2em; font-size: 20px; line-height: 22px; color: color-mix(in srgb, var(--accent) 42%, var(--bone) 40%); }
.cy-geo.is-island, .cy-geo.is-city, .cy-geo.is-station, .cy-geo.is-hills { font-size: 14px; letter-spacing: 0.14em; color: var(--bone); }
.cy-geo.is-ice { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0.2em; font-size: 20px; line-height: 22px; color: color-mix(in srgb, var(--bone) 62%, transparent); }
.cy-geo.is-generic { color: color-mix(in srgb, var(--bone) 60%, transparent); }
@media (max-width: 999px) { .cy-geo { font-size: 12px; } .cy-geo.is-water, .cy-geo.is-ice { font-size: 17px; } }
.city-bar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 12px 0 0; }
.city-bar[hidden] { display: none; }
.city-bar .cta { flex: none; }
#cityScrub { flex: 1 1 200px; min-width: 120px; height: var(--tap); accent-color: var(--accent); background: transparent; cursor: pointer; }
.city-cap { flex: 1 1 100%; margin: 0; min-height: 1.5em; color: var(--bone-2); font-size: var(--fs-text); line-height: 1.5; }
.city-tip { position: absolute; left: 0; top: 0; z-index: 3; max-width: 280px; margin: 0; padding: 7px 11px; background: color-mix(in srgb, var(--ink) 90%, transparent); border: 1px solid var(--line-2); color: var(--bone); font-family: var(--f-body); font-size: 15px; line-height: 1.4; pointer-events: none; }
.city-tip[hidden] { display: none; }
.city-chars { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.city-char, .city-chip { display: inline-flex; align-items: center; gap: 9px; min-height: var(--tap); padding: 6px 12px 6px 4px; font-family: var(--f-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--bone); transition: opacity var(--t-micro) var(--ease), color var(--t-micro) var(--ease); }
.city-char[aria-pressed="false"] { opacity: 0.42; }
.city-char.is-hot, .city-char:hover, .city-char:focus-visible { color: var(--bone); }
.city-sw { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--accent)) 28%, transparent), 0 0 12px 1px color-mix(in srgb, var(--c, var(--accent)) 60%, transparent); }
.city-chips { display: flex; flex-wrap: wrap; gap: 0 8px; }
.city-chip { padding: 6px 10px; color: var(--bone-2); border-bottom: 1px solid transparent; }
.city-chip[aria-pressed="true"] { color: var(--bone); border-bottom-color: var(--accent); }
.city-chip:hover, .city-chip:focus-visible { color: var(--bone); }
.city-lines .tl-text { display: block; margin: 0 0 8px; }
.city-lines .tl-list li { border-bottom: 0; }
@media (max-width: 999px) { .city-bar { padding-top: 10px; } .cy-sec { font-size: 19px; } .tl-mark.is-city .tl-lab { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .city-layer, .city-char, .city-chip { transition: none; } }
.dv-still .city-layer, .dv-still .city-char, .dv-still .city-chip { transition: none; }
@media (forced-colors: active) { .cy-mark .tl-pt { background: Highlight; } .city-sw { background: CanvasText; } }

/* the skills pass, 2026-11-08 (Emil Kowalski's skills and Impeccable; apply_skills_pass.py) */
@media (max-width: 359px) { .menu-btn .mb-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }   /* P2: the hamburger was cut off at 320 px; the word stays the button's name */
.hint, .toast { overflow-wrap: anywhere; }   /* P5 */
.ch-card .kicker { justify-content: center; }   /* P7 */
.bar { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }   /* P13 */
.tearline-tip { will-change: transform; }   /* M14 */
.lit-count, .ix-meta, .kicker { font-variant-numeric: tabular-nums; }   /* I13 */
html:not(.menu-open) .menu { transition-duration: 0.5s; }   /* M4: the menu leaves faster than it came, all at once */
html:not(.menu-open) .menu li a { transition-delay: 0s; }
.unlock-note { transition-duration: 0.3s, 0.3s, 0s; transition-delay: 0s, 0s, 0.3s; } .unlock-note.show { transition-duration: 0.6s, 0.6s, 0s; }   /* M11 */
.acct-ask:not(.show) { transition-duration: 0.25s; }   /* M12 */
@media (max-width: 480px) { .four-grid { grid-template-columns: 1fr; } .four-card { min-height: 0; gap: 18px; } }   /* I10 */
@media (min-width: 900px) { .premise-text { max-width: min(18ch, calc(50vw - var(--gutter) - 140px)); } }   /* I17 */

/* the Prologue (8 November 2026): above Chapter One on its page; its card is lower than a chapter's, and Chapter One's own card follows it */
.prologue .ch-card.is-prologue { min-height: 72vh; min-height: 72svh; }
.prologue .ch-card.is-prologue .ch-title { font-size: clamp(44px, 7vw, 96px); }
.prologue + .chapter { margin-top: clamp(40px, 8vh, 96px); }

/* How to read here (8 November 2026) */
.guide-line { margin: 22px 0 0; font-family: var(--f-ui); font-size: var(--fs-text); color: var(--bone-2); }
.guide-line a { color: var(--bone); border-bottom: 1px solid var(--line-2); }
/* the countdown to the next chapter (8 November 2026) */
.cd { display: inline-block; margin-left: 0.45em; font-family: var(--f-ui); font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.cd a { color: inherit; border-bottom: 1px solid currentColor; }
.cd-line { margin: 22px 0 0; font-family: var(--f-ui); font-size: var(--fs-text); color: var(--bone-2); }
.cd-line .cd { margin-left: 0.3em; }
