@font-face{font-family:"IM Fell English";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/im-fell-roman.248300df16.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IM Fell English";font-style:italic;font-weight:400;font-display:swap;src:url("fonts/im-fell-italic.8fc678575e.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IM Fell English SC";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/im-fell-sc.f0f85c4edd.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Alegreya";font-style:normal;font-weight:400 900;font-display:swap;src:url("fonts/alegreya-roman.2431eca3ed.woff2") format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Alegreya";font-style:italic;font-weight:400 900;font-display:swap;src:url("fonts/alegreya-italic.1846c30749.woff2") format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url("fonts/jetbrains-mono.18be452724.woff2") format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
/* FeedTheJoe Library: an atlas of the library.
   Day is vellum and iron gall ink; Night is the same chart drawn in light.
   Every colour is a token, defined for Day on :root and redefined for Night. */

:root {
  --bg: #ebe2cb;
  --bg-2: #e2d6ba;
  --paper: #f6efdd;
  --paper-2: #fbf6ea;
  --ink: #2a1f15;
  --ink-2: #5b4936;
  --ink-3: #85705a;
  --rule: #cbb791;
  --rule-2: #dccca9;
  --rubric: #9d2f1c;
  --gold: #8f6a1d;
  --gold-hi: #c9a24a;
  --gold-lo: #e8d39a;
  --lapis: #2b4878;
  --verdigris: #2c6658;
  --focus: #b07d0f;
  --shadow: 42 31 21;
  --sel: #e9cf8f;

  --sea: #d8d4bd;
  --sea-ink: #6e8781;
  --land: #f0e6cc;
  --map-ink: #3a2b1d;
  --coast-glow: #7da39b;
  --road: #7a5836;
  --tree-fill: #dfe0b8;
  --glyph-fill: #fbf5e4;
  --found: #c9a24a;
  --mist: #fbf8f1;
  --rh8: rgb(42 31 21 / .26);
  --rh16: rgb(44 102 88 / .3);
  --rh32: rgb(157 47 28 / .22);

  --r1: #a8473a; --r1-ink: #7a2a1f;
  --r2: #b3832a; --r2-ink: #7a5412;
  --r3: #5b7d37; --r3-ink: #3c5a1f;
  --r4: #3c5e98; --r4-ink: #233f6e;
  --r5: #7a4f8e; --r5-ink: #55306a;

  --wax-current: #9b2a1c;
  --wax-researched: #2c3d74;
  --wax-reference: #9c6d1a;
  --wax-baseline: #2e2924;
  --wax-hi: rgb(255 240 210 / .55);

  --slate: #121a22;
  --slate-2: #1a2430;
  --slate-ink: #cfe9e3;
  --slate-dim: #7fa39b;
  --slate-glow: #8ef0dc;

  --f-display: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-sc: "IM Fell English SC", "IM Fell English", "Palatino Linotype", Georgia, serif;
  --f-body: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1118; --bg-2: #111924; --paper: #131b26; --paper-2: #182231;
    --ink: #ebe0c7; --ink-2: #bcae93; --ink-3: #8b826f; --rule: #314052; --rule-2: #243142;
    --rubric: #e57f62; --gold: #e3bd67; --gold-hi: #f2d58c; --gold-lo: #5b4a24; --lapis: #92b3f0; --verdigris: #7ad3bf;
    --focus: #f2d58c; --shadow: 0 0 0; --sel: #3d5272;
    --sea: #0a1420; --sea-ink: #2f6470; --land: #131e2c; --map-ink: #d8c48e; --coast-glow: #1e7774;
    --road: #b39860; --tree-fill: #1d3a36; --glyph-fill: #1a2638; --found: #f2d58c; --mist: #070c14;
    --rh8: rgb(216 196 142 / .2); --rh16: rgb(122 211 191 / .2); --rh32: rgb(229 127 98 / .18);
    --r1: #e07d6c; --r1-ink: #f0a597; --r2: #e1b45a; --r2-ink: #f0cc85; --r3: #9cc46e; --r3-ink: #bfdc98;
    --r4: #7fa3e6; --r4-ink: #a9c3f2; --r5: #b88bd2; --r5-ink: #d2b0e6;
    --wax-current: #a63424; --wax-researched: #34488a; --wax-reference: #a8781e; --wax-baseline: #3a332c; --wax-hi: rgb(255 236 200 / .4);
    --slate: #070b10; --slate-2: #0d141c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1118; --bg-2: #111924; --paper: #131b26; --paper-2: #182231;
  --ink: #ebe0c7; --ink-2: #bcae93; --ink-3: #8b826f; --rule: #314052; --rule-2: #243142;
  --rubric: #e57f62; --gold: #e3bd67; --gold-hi: #f2d58c; --gold-lo: #5b4a24; --lapis: #92b3f0; --verdigris: #7ad3bf;
  --focus: #f2d58c; --shadow: 0 0 0; --sel: #3d5272;
  --sea: #0a1420; --sea-ink: #2f6470; --land: #131e2c; --map-ink: #d8c48e; --coast-glow: #1e7774;
  --road: #b39860; --tree-fill: #1d3a36; --glyph-fill: #1a2638; --found: #f2d58c; --mist: #070c14;
  --rh8: rgb(216 196 142 / .2); --rh16: rgb(122 211 191 / .2); --rh32: rgb(229 127 98 / .18);
  --r1: #e07d6c; --r1-ink: #f0a597; --r2: #e1b45a; --r2-ink: #f0cc85; --r3: #9cc46e; --r3-ink: #bfdc98;
  --r4: #7fa3e6; --r4-ink: #a9c3f2; --r5: #b88bd2; --r5-ink: #d2b0e6;
  --wax-current: #a63424; --wax-researched: #34488a; --wax-reference: #a8781e; --wax-baseline: #3a332c; --wax-hi: rgb(255 236 200 / .4);
  --slate: #070b10; --slate-2: #0d141c;
  color-scheme: dark;
}

.s-operating-model { --rc: var(--r1); --rc-ink: var(--r1-ink); }
.s-disciplines { --rc: var(--r2); --rc-ink: var(--r2-ink); }
.s-playbooks { --rc: var(--r3); --rc-ink: var(--r3-ink); }
.s-reference { --rc: var(--r4); --rc-ink: var(--r4-ink); }
.s-graph-systems { --rc: var(--r5); --rc-ink: var(--r5-ink); }


:root {
  --on-rubric: #fbf3e4;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .1 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .12 .22 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  --hdr: 3.75rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --on-rubric: #1b0e09;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .8 0 0 0 0 .65 .07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --mottle: none;
  }
}
:root[data-theme="dark"] {
  --on-rubric: #1b0e09;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .8 0 0 0 0 .65 .07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mottle: none;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 1rem); }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--grain), var(--mottle);
  background-size: 220px 220px, 900px 900px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
::selection { background: var(--sel); color: var(--ink); }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--rubric) 55%, transparent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rubric); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; font-family: var(--f-sc); }
.skip-link:focus { top: .6rem; }
.copy-scratch { position: fixed; opacity: 0; pointer-events: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px)); }
.wrap-wide { width: 100%; max-width: 1520px; margin-inline: auto; padding-left: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 3vw, 32px), env(safe-area-inset-right, 0px)); }
.mono, code, kbd, pre { font-family: var(--f-mono); font-variant-numeric: tabular-nums lining-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.note { color: var(--ink-2); font-style: italic; }

/* icons and sigils */
svg.icon, .brand-mark, .db-icon, .tt-sun, .tt-moon, .footer-mark, .lg-mist, .how-icon, .bp-mark {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none;
}
.sigil, .sigil-xs, .sigil-sm, .sigil-md, .sigil-lg, .sigil-xl {
  display: inline-block; vertical-align: middle; flex: none;
  fill: var(--glyph-fill); stroke: currentColor; stroke-width: 1.45; stroke-linejoin: round; stroke-linecap: round;
  color: var(--rc-ink, var(--ink));
}
.sigil-xs { width: 1.05rem; height: 1.05rem; margin-right: .38em; vertical-align: -.2em; }
.sigil-sm { width: 1.4rem; height: 1.4rem; margin-right: .4em; vertical-align: -.32em; }
.sigil-md { width: 2.1rem; height: 2.1rem; }
.sigil-lg { width: 3.2rem; height: 3.2rem; }
.sigil-xl { width: 4.8rem; height: 4.8rem; stroke-width: 1.1; }
.dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--rc, var(--ink-3)); margin-right: .45em; vertical-align: .05em; }
.orn { display: block; width: 7.5rem; height: 1.4rem; margin: 0 auto 1rem; fill: none; stroke: var(--ink-3); stroke-width: 1.1; stroke-linecap: round; }
.orn .orn-fill { fill: var(--rubric); stroke: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 3px 0 -2px var(--rule);
}
.header-bar {
  display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem);
  min-height: var(--hdr);
  padding-left: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 3vw, 32px), env(safe-area-inset-right, 0px));
  max-width: 1520px; margin-inline: auto;
}
.brand { display: inline-flex; align-items: baseline; gap: .45rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-mark { color: var(--gold); width: 1.45rem; height: 1.45rem; align-self: center; stroke-width: 1.3; }
.brand-ftj { font-family: var(--f-sc); font-size: 1.02rem; letter-spacing: .12em; }
.brand-lib { font-family: var(--f-display); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--rubric); }
.site-nav { display: flex; gap: clamp(.8rem, 1.8vw, 1.6rem); margin-left: auto; }
.site-nav a { font-family: var(--f-sc); font-size: 1rem; letter-spacing: .07em; color: var(--ink-2); text-decoration: none; padding-block: .3rem; border-bottom: 1px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--rubric); }
.nav-short, .nav-search { display: none; }
.header-search { position: relative; }
.header-search input {
  width: 13.5rem; font: inherit; font-size: .95rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 2px; padding: .42rem 2rem .42rem .7rem;
}
.header-search input::placeholder { color: var(--ink-3); font-style: italic; }
.header-search kbd { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); font-size: .72rem; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 2px; padding: 0 .3rem; }
.disc-badge {
  display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; color: var(--gold);
  font-family: var(--f-sc); font-size: .95rem; letter-spacing: .04em; padding: .25rem .6rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.disc-badge:hover { color: var(--ink); border-color: var(--gold); }
.db-of { color: var(--ink-3); }
.theme-toggle {
  display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-family: var(--f-sc); font-size: .95rem; letter-spacing: .05em;
  color: var(--ink-2); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: .25rem .7rem; cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle[data-mode="day"] .tt-moon, .theme-toggle[data-mode="night"] .tt-sun { display: none; }
.theme-toggle .tt-sun { color: var(--gold); }
.theme-toggle .tt-moon { color: var(--lapis); }

/* ---------- buttons, labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45em; font-family: var(--f-sc); font-size: 1rem; letter-spacing: .06em;
  padding: .52em 1.1em .56em; color: var(--ink); background: transparent; border: 1px solid var(--ink-2); border-radius: 2px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-seal { background: var(--rubric); border-color: transparent; color: var(--on-rubric); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 2px 0 color-mix(in srgb, var(--rubric) 55%, black); }
.btn-seal:hover { background: color-mix(in srgb, var(--rubric) 86%, black); color: var(--on-rubric); border-color: transparent; }
.btn-sm { font-size: .88rem; padding: .36em .85em .4em; }
.btn-quiet { border-color: var(--rule); color: var(--ink-2); }
.eyebrow { font-family: var(--f-sc); font-size: .95rem; letter-spacing: .12em; color: var(--rubric); margin: 0 0 .5rem; }
.tag { font-family: var(--f-sc); font-size: .85rem; letter-spacing: .05em; color: var(--ink-2); }
.code-sample { font-family: var(--f-sc); letter-spacing: .04em; color: var(--rubric); }
.more { font-family: var(--f-sc); letter-spacing: .05em; text-decoration: none; color: var(--rubric); display: inline-flex; align-items: center; gap: .35em; }
.more:hover { text-decoration: underline; }
.more svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.section-head { margin-bottom: 1.4rem; }
.section-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 3.1vw, 2.4rem); line-height: 1.1; margin: 0 0 .35rem; letter-spacing: -.005em; }
.section-title a { text-decoration: none; }
.section-note { color: var(--ink-2); font-style: italic; max-width: 62ch; margin: 0; }
.field-label { display: block; font-family: var(--f-sc); font-size: .9rem; letter-spacing: .06em; color: var(--ink-2); margin-bottom: .3rem; }
input[type="search"], select {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; padding: .5rem .7rem;
}
input[type="search"]:focus, select:focus { border-color: var(--ink-2); outline: 2px solid color-mix(in srgb, var(--focus) 55%, transparent); outline-offset: 1px; }

/* ---------- home: the chart ---------- */
.hero { position: relative; isolation: isolate; background: var(--sea); border-bottom: 1px solid var(--rule); box-shadow: 0 3px 0 -2px var(--rule); }
.hero-map { position: relative; height: clamp(560px, calc(100svh - var(--hdr)), 920px); overflow: hidden; touch-action: pan-y; }
.hero-map > .atlas, .realm-map-frame > .atlas, .atlas-stage > .atlas { position: absolute; inset: 0; transform-origin: 0 0; }
.hero-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 100% at 62% 48%, transparent 52%, rgb(var(--shadow) / .26) 100%); }
canvas.mist { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; align-items: center;
  padding-left: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.cartouche {
  pointer-events: auto; position: relative; width: min(29rem, 34vw);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  border: 1px solid var(--ink-2); outline: 1px solid color-mix(in srgb, var(--ink-2) 55%, transparent); outline-offset: 6px;
  padding: 2.1rem 2.2rem 1.7rem; box-shadow: 0 24px 50px -24px rgb(var(--shadow) / .6);
  animation: rise .9s var(--ease) both;
}
.cartouche::before, .cartouche::after {
  content: ""; position: absolute; left: 50%; width: 14px; height: 14px; background: var(--paper); border: 1px solid var(--ink-2); transform: translateX(-50%) rotate(45deg);
}
.cartouche::before { top: -14px; }
.cartouche::after { bottom: -14px; }
.hero-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.7rem, 4.9vw, 4.5rem); line-height: .96; letter-spacing: -.012em; margin: .25rem 0 .55rem; }
.ht-the { display: block; font-style: italic; font-size: .4em; letter-spacing: .02em; color: var(--ink-2); margin-bottom: .1em; }
.ht-lib { font-style: italic; color: var(--rubric); }
.hero-motto { font-family: var(--f-display); font-style: italic; font-size: 1.45rem; margin: 0 0 .9rem; display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.hero-motto em { color: var(--rubric); }
.hero-motto::before, .hero-motto::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ink-3)); }
.hero-motto::after { background: linear-gradient(90deg, var(--ink-3), transparent); }
.hero-deck { color: var(--ink-2); font-size: 1.06rem; margin: 0 0 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.1rem; }
.hero-meta { font-family: var(--f-sc); font-size: .86rem; letter-spacing: .04em; color: var(--ink-3); margin: 0; }
.map-hud { position: absolute; z-index: 3; right: max(clamp(16px, 3vw, 32px), env(safe-area-inset-right, 0px)); bottom: 1rem; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem; max-width: calc(100% - 32px); }
.hud-note, .hud-count { margin: 0; font-size: .9rem; font-style: italic; color: var(--ink-2); background: color-mix(in srgb, var(--paper) 86%, transparent); border: 1px solid var(--rule); padding: .3rem .7rem; border-radius: 2px; }
.hud-count { font-style: normal; font-family: var(--f-sc); letter-spacing: .04em; color: var(--gold); }
.hud-btn {
  display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-family: var(--f-sc); font-size: .92rem; letter-spacing: .05em; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 90%, transparent); border: 1px solid var(--ink-3); border-radius: 2px; padding: .32rem .75rem; cursor: pointer; text-decoration: none;
}
.hud-btn:hover { border-color: var(--ink); }
.hud-btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.hud-btn[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }

/* the first drawing of the chart */
@keyframes ink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.atlas.is-inking .coast { stroke-dasharray: 1 1; animation: ink 2.6s var(--ease) both; }
.atlas.is-inking .realms, .atlas.is-inking .borders, .atlas.is-inking .ripples { animation: fade 1.4s .7s var(--ease) both; }
.atlas.is-inking .terrain, .atlas.is-inking .waters { animation: fade 1.6s 1.1s var(--ease) both; }
.atlas.is-inking .roads, .atlas.is-inking .first-road, .atlas.is-inking .places { animation: fade 1s 1.7s var(--ease) both; }
.atlas.is-inking .realm-labels { animation: fade 1.2s 2.1s var(--ease) both; }

/* place cards */
.place-card {
  position: absolute; z-index: 6; width: min(21rem, calc(100% - 24px));
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-top: 3px solid var(--rc, var(--rubric));
  box-shadow: 0 18px 38px -16px rgb(var(--shadow) / .55); padding: .95rem 1.05rem 1rem; font-size: .95rem; line-height: 1.45;
  animation: card-in .5s var(--spring) both, card-fade .18s ease-out both;
}
@keyframes card-in { from { transform: translateY(8px) scale(.97); } }
@keyframes card-fade { from { opacity: 0; } }
.place-card.is-docked { left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; max-height: 60%; overflow: auto; }
.place-card p { margin: 0; }
.pc-realm { font-family: var(--f-sc); font-size: .86rem; letter-spacing: .05em; color: var(--rc-ink); margin-bottom: .2rem !important; padding-right: 1.6rem; }
.pc-title { font-family: var(--f-display); font-size: 1.32rem; line-height: 1.15; margin-bottom: .45rem !important; }
.pc-code { font-family: var(--f-sc); color: var(--rubric); letter-spacing: .04em; }
.pc-sum { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .55rem !important; }
.pc-meta { font-family: var(--f-sc); font-size: .84rem; letter-spacing: .03em; color: var(--ink-3); margin-bottom: .7rem !important; }
.pc-found { margin-left: .5rem; color: var(--gold); border: 1px solid currentColor; border-radius: 999px; padding: 0 .45rem; }
.pc-actions { display: flex; align-items: center; gap: .9rem; }
.pc-md { font-family: var(--f-sc); font-size: .9rem; letter-spacing: .04em; }
.pc-close { position: absolute; top: .45rem; right: .45rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; border-radius: 50%; }
.pc-close:hover { color: var(--ink); background: var(--bg-2); }
.pc-close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- home: two doors ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.door { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.door-read { background: var(--paper-2); border: 1px solid var(--rule); box-shadow: inset 0 0 0 7px var(--paper-2), inset 0 0 0 8px var(--rule); }
.door-corner { position: absolute; top: 18px; right: 18px; width: 64px; height: 64px; border-top: 1px solid var(--rubric); border-right: 1px solid var(--rubric); opacity: .7; }
.door-corner::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--rubric); transform: rotate(45deg); }
.door-kicker { font-family: var(--f-sc); letter-spacing: .1em; font-size: .92rem; color: var(--rubric); margin: 0; }
.door-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; margin: 0; }
.door-title a { text-decoration: none; }
.door-text { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.door-points { margin: .2rem 0 .4rem; padding: 0; list-style: none; display: grid; gap: .35rem; }
.door-points li { padding-left: 1.3rem; position: relative; }
.door-points li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .45rem; height: .45rem; transform: rotate(45deg); border: 1px solid var(--rubric); }
.door-cta { margin-top: auto; font-family: var(--f-sc); letter-spacing: .06em; text-decoration: none; color: var(--rubric); display: inline-flex; align-items: center; gap: .4rem; }
.door-cta svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.door-cta:hover svg { transform: translateX(4px); }
.door-pull {
  background: radial-gradient(120% 140% at 0% 0%, var(--slate-2), var(--slate) 62%); color: var(--slate-ink);
  border: 1px solid #2c3d4b; box-shadow: inset 0 0 60px rgb(142 240 220 / .05), 0 22px 40px -26px rgb(0 0 0 / .7);
}
.door-pull .door-kicker { color: var(--slate-glow); }
.door-pull .door-title a { color: #eaf7f3; text-shadow: 0 0 22px rgb(142 240 220 / .35); }
.door-pull .door-text { color: #a8c4bd; }
.door-pull .door-cta { color: var(--slate-glow); }
.cmd { display: flex; align-items: center; gap: .6rem; background: rgb(0 0 0 / .35); border: 1px solid #2a3b47; border-radius: 3px; padding: .55rem .7rem; min-width: 0; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: .86rem; color: var(--slate-ink); scrollbar-width: thin; }
.cmd .prompt { color: var(--slate-glow); margin-right: .4em; }
.copy-btn { font: inherit; font-family: var(--f-sc); font-size: .85rem; letter-spacing: .05em; cursor: pointer; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 2px; padding: .15rem .55rem; opacity: .85; }
.copy-btn:hover { opacity: 1; }
.cmd .copy-btn { color: var(--slate-glow); }
.vol-end .cmd, .pull-block .cmd { background: var(--slate); }

/* ---------- the first road ---------- */
.first-road { margin-block: clamp(2.5rem, 6vw, 4.5rem); }
.road { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.6rem 1.4rem; }
.road-step { position: relative; border-top: 2px dashed color-mix(in srgb, var(--rubric) 65%, transparent); padding-top: 1.7rem; min-width: 0; }
.road-step a { display: grid; gap: .35rem; text-decoration: none; color: var(--ink); }
.rs-no {
  position: absolute; top: -1.2rem; left: 0; width: 2.35rem; height: 2.35rem; display: grid; place-items: center;
  font-family: var(--f-sc); font-size: .95rem; letter-spacing: .02em; color: var(--on-rubric); background: var(--rubric); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), inset 0 0 0 2px rgb(255 255 255 / .2);
}
.rs-title { font-family: var(--f-display); font-size: 1.18rem; line-height: 1.2; }
.road-step a:hover .rs-title { color: var(--rubric); }
.rs-min { font-family: var(--f-sc); font-size: .86rem; color: var(--ink-3); letter-spacing: .04em; }
.road-step.is-found .rs-no { background: var(--gold); color: var(--paper); }
.road-step.is-found .rs-min::after { content: " · charted"; color: var(--gold); }

/* ---------- realm cards and the legend ---------- */
.realms { margin-block: clamp(2.5rem, 6vw, 4.5rem); }
.realm-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.2rem), 1fr)); gap: 1rem; }
.realm-card a {
  display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem 1.2rem; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--rc); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.realm-card a:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -22px rgb(var(--shadow) / .6); color: var(--ink); }
.rc-shape { width: 100%; height: 7.6rem; margin-bottom: .5rem; overflow: visible; }
.rc-shape path { fill: color-mix(in srgb, var(--rc) 16%, var(--land)); stroke: var(--map-ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rc-shape circle { fill: var(--rc); opacity: .85; }
.rc-mark { font-family: var(--f-sc); font-size: .9rem; letter-spacing: .06em; color: var(--rc-ink); }
.rc-title { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.rc-count { font-family: var(--f-sc); font-size: .85rem; letter-spacing: .03em; color: var(--ink-3); }
.rc-desc { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.legend { margin-block: clamp(2.5rem, 6vw, 4rem); }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.4rem 2rem; margin: 0; }
.legend-grid dt { display: flex; align-items: center; gap: .7rem; font-family: var(--f-display); font-size: 1.3rem; margin-bottom: .3rem; }
.legend-grid dd { margin: 0; color: var(--ink-2); }
.legend-grid .sigil-md { color: var(--r2-ink); }
.lg-road, .lg-border { width: 3.6rem; height: 1rem; fill: none; }
.lg-road path { stroke: var(--road); stroke-width: 1.8; stroke-dasharray: 5 3.5; }
.lg-border path { stroke: var(--map-ink); stroke-width: 1.6; stroke-dasharray: 8 4 1.5 4; }
.lg-mist { width: 2rem; height: 2rem; color: var(--ink-3); }
.edition-note { margin-block: clamp(3rem, 7vw, 5rem); max-width: 54rem; text-align: center; }
.edition-note p { color: var(--ink-2); }

/* ---------- page heads ---------- */
.page-head { padding-top: clamp(2.2rem, 5vw, 3.8rem); padding-bottom: 1.6rem; }
.page-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, 5.6vw, 4.2rem); line-height: 1; letter-spacing: -.012em; margin: .1em 0 .3em; }
.page-deck { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 62ch; margin: 0; }
.page-stats { font-family: var(--f-sc); font-size: .92rem; letter-spacing: .04em; color: var(--ink-3); margin: 1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 1rem; font-family: var(--f-sc); font-size: .9rem; letter-spacing: .05em; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin: 0 .55em; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--rubric); }
.realm-title-row { display: flex; align-items: center; gap: 1.2rem; }
.realm-title-row .page-title { margin-bottom: .1em; }

/* ---------- reading room, shelves, lists ---------- */
.how-to-read { margin-bottom: 2rem; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem 1.6rem; margin: 0; padding: 1.4rem; background: var(--paper); border: 1px solid var(--rule); }
.how-grid dt { display: flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-size: 1.22rem; margin-bottom: .25rem; }
.how-grid dd { margin: 0; color: var(--ink-2); font-size: .97rem; }
.how-grid .seal-sm { width: 1.8rem; height: 1.8rem; }
.how-icon { color: var(--gold); width: 1.6rem; height: 1.6rem; }
.shelf-block { margin-block: clamp(2.5rem, 5vw, 3.6rem); }
.realm-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1.2rem; }
.realm-head .sigil-lg { margin-top: .2rem; }
.realm-mark { font-family: var(--f-sc); font-size: .9rem; letter-spacing: .08em; color: var(--rc-ink); margin: 0 0 .15rem; }
.group-title { display: flex; align-items: center; gap: .8rem; font-family: var(--f-sc); font-weight: 400; font-size: 1.02rem; letter-spacing: .08em; color: var(--rc-ink, var(--ink-2)); margin: 1.8rem 0 .3rem; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.vol-list { list-style: none; margin: 0; padding: 0; }
.vol-row { padding: .8rem 0 .85rem; border-bottom: 1px solid var(--rule-2); display: grid; gap: .25rem; }
.vol-row-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; text-decoration: none; color: var(--ink); }
.vol-row-code { font-family: var(--f-sc); letter-spacing: .05em; color: var(--rc-ink); min-width: 2.4rem; }
.vol-row-title { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.2; }
.vol-row-link:hover .vol-row-title { color: var(--rubric); }
.vol-row-sub { flex-basis: 100%; font-style: italic; color: var(--ink-2); }
.vol-row-summary { margin: 0; color: var(--ink-2); font-size: .98rem; max-width: 76ch; }
.vol-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: 0; font-size: .9rem; color: var(--ink-3); }
.md-link { font-family: var(--f-mono); font-size: .82rem; color: var(--ink-3); }
.found-tick { font-family: var(--f-sc); font-size: .82rem; letter-spacing: .05em; color: var(--gold); border: 1px solid currentColor; border-radius: 999px; padding: 0 .5rem; }
.vol-row:not(.is-found) .found-tick { display: none; }
.realm-map { margin: .5rem auto 2.4rem; }
.realm-map-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: var(--sea); border: 1px solid var(--ink-2); outline: 1px solid var(--rule); outline-offset: 5px; touch-action: pan-y; }
.realm-map figcaption, .mini-map figcaption { font-style: italic; color: var(--ink-2); font-size: .95rem; margin-top: .9rem; }
.fig-no { font-family: var(--f-sc); font-style: normal; letter-spacing: .05em; color: var(--rubric); }
.code-grid { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: .6rem; }
.code-tile { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .7rem .8rem .8rem; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--rc); transition: transform .25s var(--ease), box-shadow .25s; position: relative; }
.code-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgb(var(--shadow) / .55); color: var(--ink); }
.ct-code { font-family: var(--f-sc); font-size: 1.3rem; letter-spacing: .04em; color: var(--rc-ink); line-height: 1; }
.ct-title { font-size: .92rem; line-height: 1.3; }
.ct-pri { font-family: var(--f-sc); font-size: .78rem; color: var(--ink-3); margin-top: auto; }
.code-grid li.is-found .code-tile::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }

/* ---------- a volume ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--rubric)); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @keyframes progress { to { transform: scaleX(1); } }
  .read-progress { animation: progress linear both; animation-timeline: scroll(root); }
}
.vol-header { padding-top: clamp(1.8rem, 4vw, 3rem); padding-bottom: 1rem; }
.vol-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: start; }
.vol-eyebrow { font-family: var(--f-sc); font-size: .95rem; letter-spacing: .06em; color: var(--rc-ink); margin: 0 0 .7rem; }
.vol-code { color: var(--rubric); }
.vol-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.03; letter-spacing: -.012em; margin: 0 0 .35rem; }
.vol-subtitle { font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: var(--ink-2); margin: 0 0 .7rem; }
.vol-summary { font-size: 1.16rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 .8rem; }
.vol-byline { font-family: var(--f-sc); font-size: .9rem; letter-spacing: .04em; color: var(--ink-3); margin: 0; }
.vol-seal { width: 9rem; text-align: center; }
.vol-seal .seal { width: 8.2rem; height: 8.2rem; animation: stamp .9s var(--spring) .25s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.45) rotate(-14deg); } }
.seal-note { margin: .4rem 0 0; font-size: .85rem; line-height: 1.35; color: var(--ink-2); display: grid; gap: .1rem; }
.seal-kind { font-family: var(--f-sc); letter-spacing: .05em; color: var(--ink); }
.vol-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.toc-mobile { display: none; }
.toc-mobile summary { list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] nav { position: absolute; z-index: 20; margin-top: .4rem; max-height: 60vh; overflow: auto; width: min(24rem, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 30px -20px rgb(var(--shadow) / .6); padding: .8rem 1rem; }
.vol-grid { display: grid; grid-template-columns: 12.5rem minmax(0, 68ch) minmax(0, 18.5rem); gap: 2.6rem; justify-content: center; align-items: start; margin-top: 1.4rem; max-width: 1480px; }
.rail-head { font-family: var(--f-sc); font-size: .9rem; letter-spacing: .1em; color: var(--rubric); margin: 0 0 .6rem; }
.toc { position: sticky; top: calc(var(--hdr) + 1.4rem); max-height: calc(100svh - var(--hdr) - 3rem); overflow: auto; font-size: .92rem; line-height: 1.35; scrollbar-width: thin; }
.toc ol, .toc-mobile ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.toc a, .toc-mobile a { color: var(--ink-2); text-decoration: none; display: block; padding-left: .7rem; border-left: 1px solid var(--rule); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--rubric); border-left-color: var(--rubric); font-style: italic; }
.toc .toc-l3 a { padding-left: 1.4rem; font-size: .88rem; }
.vol-aside { display: grid; gap: 1.6rem; align-content: start; position: sticky; top: calc(var(--hdr) + 1.4rem); }

/* the text */
.prose { font-size: 1.14rem; line-height: 1.7; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 1.95rem); line-height: 1.15; margin: 2.3em 0 .6em; position: relative; }
.prose h2::before { content: ""; display: block; width: 3.2rem; height: 2px; background: var(--rubric); margin-bottom: .6rem; }
.prose h3 { font-family: var(--f-sc); font-weight: 400; font-size: 1.22rem; letter-spacing: .04em; color: var(--rc-ink); margin: 1.9em 0 .45em; }
.prose h4 { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.15rem; margin: 1.5em 0 .4em; }
.h-anchor { margin-left: .4em; color: var(--ink-3); text-decoration: none; opacity: 0; font-size: .8em; transition: opacity .2s; }
.prose :is(h2, h3, h4):hover .h-anchor, .h-anchor:focus { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--rubric); }
.prose strong { font-weight: 700; }
.prose a.cite { font-family: var(--f-sc); letter-spacing: .03em; font-size: .95em; color: var(--rubric); text-decoration: none; border-bottom: 1px dotted currentColor; }
.prose a.xref { text-decoration-style: dotted; text-decoration-color: var(--gold); }
.prose a.ext::after { content: "↗"; font-size: .75em; margin-left: .15em; color: var(--ink-3); }
.prose code { font-size: .84em; background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: 2px; padding: .05em .3em; overflow-wrap: anywhere; }
.prose pre { position: relative; background: var(--slate); color: var(--slate-ink); border-radius: 3px; padding: 1rem 1.1rem; overflow-x: auto; font-size: .86rem; line-height: 1.55; margin: 0 0 1.3em; border: 1px solid #263644; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.pre-copy { position: absolute; top: .5rem; right: .5rem; color: var(--slate-glow); background: var(--slate); }
.prose blockquote { margin: 0 0 1.2em; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--rc); font-style: italic; color: var(--ink-2); }
.prose hr { border: 0; height: 22px; margin: 2em auto; background: center / 7.5rem 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M4 11H44M76 11H116M44 11c4-7 10-7 12-2-3-1-5 1-4 3M76 11c-4-7-10-7-12-2 3-1 5 1 4 3' fill='none' stroke='%23927c62' stroke-width='1.1'/%3E%3Cpath d='M60 4l5 7-5 7-5-7Z' fill='%239d2f1c'/%3E%3C/svg%3E"); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--rule); background: var(--paper); scrollbar-width: thin; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.45; font-variant-numeric: lining-nums; }
th, td { text-align: left; vertical-align: top; padding: .55rem .75rem; border-bottom: 1px solid var(--rule-2); }
thead th { font-family: var(--f-sc); font-weight: 400; letter-spacing: .05em; color: var(--ink-2); background: var(--paper-2); border-bottom: 1px solid var(--rule); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
.front-note { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--gold); padding: .8rem 1rem; font-size: .98rem; color: var(--ink-2); }
.prose .lede::first-letter {
  -webkit-initial-letter: 3; initial-letter: 3;
  font-family: var(--f-display); font-weight: 400; color: #f7e7b4;
  background: radial-gradient(circle at 28% 24%, rgb(255 255 255 / .22), transparent 55%), var(--rc, var(--rubric));
  border: 3px double #d9b866; padding: .04em .14em 0; margin-right: .16em;
  text-shadow: 0 1px 0 rgb(0 0 0 / .35);
}
@supports not ((initial-letter: 3) or (-webkit-initial-letter: 3)) {
  .prose .lede::first-letter { float: left; font-size: 3.6em; line-height: .86; margin: .06em .14em 0 0; padding: .06em .12em .02em; }
}
.agent-protocol { margin: 2em 0; border: 1px dashed var(--ink-3); background: var(--paper); }
.agent-protocol > summary { cursor: pointer; padding: .9rem 1.1rem; display: grid; gap: .15rem; list-style: none; position: relative; padding-left: 3.2rem; }
.agent-protocol > summary::-webkit-details-marker { display: none; }
.agent-protocol > summary::before { content: ""; position: absolute; left: 1rem; top: 1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .25), transparent 55%), var(--wax-researched); box-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.ap-kicker { font-family: var(--f-sc); font-size: .85rem; letter-spacing: .08em; color: var(--lapis); }
.ap-title { font-family: var(--f-display); font-size: 1.3rem; }
.ap-note { font-size: .92rem; color: var(--ink-2); font-style: italic; }
.ap-body { padding: 0 1.1rem 1rem; border-top: 1px dashed var(--rule); }

/* seals */
.seal { --wax: var(--wax-current); display: inline-block; overflow: visible; }
.seal-researched { --wax: var(--wax-researched); }
.seal-reference { --wax: var(--wax-reference); }
.seal-baseline { --wax: var(--wax-baseline); }
.seal .wax { fill: var(--wax); filter: drop-shadow(0 2px 2.5px rgb(0 0 0 / .38)); }
.seal .wax-lip { fill: none; stroke: rgb(0 0 0 / .22); stroke-width: 3; }
.seal .wax-ring { fill: none; stroke: rgb(255 238 205 / .38); stroke-width: 1.3; }
.seal .wax-ring.thin { stroke-width: .8; stroke: rgb(255 238 205 / .26); }
.seal .wax-text { font-family: var(--f-sc); font-size: 11.5px; fill: rgb(255 238 210 / .82); }
.seal .wax-gl { fill: rgb(255 238 210 / .1); stroke: rgb(255 238 210 / .85); stroke-width: 1.5; }
.seal .wax-text, .seal .wax-gl { filter: drop-shadow(.7px .9px 0 rgb(0 0 0 / .4)); }
.seal .wax-shine { fill: rgb(255 255 255 / .17); }
.seal-sm { width: 1.3rem; height: 1.3rem; vertical-align: -.3em; }
.seal-sm .wax { filter: none; }
.seal-sm .wax-ring { stroke-width: 4; }
.seal-sm .wax-gl { stroke-width: 2.4; filter: none; }

/* catalogue slip and the corner of the map */
.cat-card { margin: 0; background: var(--paper); border: 1px solid var(--rule); padding: .85rem 1rem; font-size: .9rem; line-height: 1.4; display: grid; gap: .32rem; box-shadow: 3px 4px 0 var(--rule-2); }
.cat-card > div { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: .6rem; padding-bottom: .32rem; border-bottom: 1px dotted var(--rule); }
.cat-card > div:last-child { border-bottom: 0; padding-bottom: 0; }
.cat-card dt { font-family: var(--f-sc); letter-spacing: .04em; color: var(--ink-3); }
.cat-card dd { margin: 0; min-width: 0; }
.cat-found dd { color: var(--gold); }
.mini-map { margin: 0; }
.mini-frame { position: relative; aspect-ratio: 470 / 320; overflow: hidden; background: var(--sea); border: 1px solid var(--ink-2); outline: 1px solid var(--rule); outline-offset: 3px; }
.mini-frame .atlas { width: 100%; height: 100%; }
.mini-map figcaption { font-size: .86rem; line-height: 1.45; }
.k-out, .k-in, .k-both { font-style: normal; font-family: var(--f-sc); letter-spacing: .03em; border-bottom: 2px solid; }
.k-out { border-color: var(--gold); }
.k-in { border-color: var(--lapis); }
.k-both { border-color: var(--rubric); }

/* end matter */
.vol-end { display: grid; gap: 2.6rem; margin-top: 3.5rem; padding-bottom: 3rem; grid-template-columns: minmax(0, 1fr); max-width: 64rem; }
.end-block { min-width: 0; padding-top: 1.6rem; border-top: 1px solid var(--rule); position: relative; }
.end-block::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--rubric); transform: rotate(45deg); }
.end-title { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; margin: 0 0 1rem; }
.biblio { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; font-size: .95rem; }
.biblio li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .6rem; }
.b-id { font-family: var(--f-sc); color: var(--rubric); letter-spacing: .04em; }
.b-body { overflow-wrap: anywhere; }
.b-note { color: var(--ink-2); font-style: italic; }
.b-reg { font-family: var(--f-sc); font-size: .85rem; letter-spacing: .03em; color: var(--ink-3); white-space: nowrap; }
.conn-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem 2.5rem; }
.conn-head { font-family: var(--f-sc); font-weight: 400; font-size: 1rem; letter-spacing: .07em; color: var(--ink-2); margin: 0 0 .6rem; }
.conn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.conn-list li { display: flex; align-items: baseline; }
.conn-list a { text-decoration: none; }
.conn-list a:hover { text-decoration: underline; }
.conn-code { font-family: var(--f-sc); letter-spacing: .04em; color: var(--rc-ink); }
.conn-list li.is-found a::after { content: " ✓"; color: var(--gold); }
.cite-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.cite-tabs [role="tab"], .recipe-tabs [role="tab"] { font: inherit; font-family: var(--f-sc); letter-spacing: .05em; color: var(--ink-2); background: transparent; border: 1px solid var(--rule); border-radius: 2px; padding: .3rem .8rem; cursor: pointer; }
.cite-tabs [aria-selected="true"], .recipe-tabs [aria-selected="true"] { color: var(--on-rubric); background: var(--rubric); border-color: var(--rubric); }
.cite-panel { margin-bottom: 1rem; }
.cite-panel.is-tabbed .cite-label { display: none; }
.cite-label { font-family: var(--f-sc); color: var(--ink-3); margin: 0 0 .3rem; }
.cite-text { background: var(--paper); border: 1px solid var(--rule); padding: .8rem 1rem; margin: 0 0 .6rem; overflow-wrap: anywhere; font-size: .98rem; }
pre.cite-text { font-size: .85rem; white-space: pre-wrap; }
.history-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.history-list li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; }
.history-list time { font-family: var(--f-sc); letter-spacing: .03em; color: var(--ink-3); }
.history-prev { color: var(--ink-2); font-size: .95rem; }
.prev-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pn { display: grid; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--rule); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease); }
.pn:hover { border-color: var(--ink-3); transform: translateY(-2px); color: var(--ink); }
.pn-next { text-align: right; }
.pn-dir { font-family: var(--f-sc); font-size: .88rem; letter-spacing: .06em; color: var(--rubric); }
.pn-title { font-family: var(--f-display); font-size: 1.18rem; line-height: 1.2; }

/* reference cards, toasts, discoveries */
.ref-card { position: fixed; z-index: 70; width: min(23rem, calc(100vw - 24px)); background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--gold); box-shadow: 0 16px 34px -16px rgb(var(--shadow) / .55); padding: .8rem 1rem; display: grid; gap: .25rem; font-size: .92rem; line-height: 1.45; pointer-events: none; }
.rc-kind { font-family: var(--f-sc); font-size: .85rem; letter-spacing: .05em; color: var(--rubric); }
.rc-title { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.2; }
.rc-meta { color: var(--ink-3); font-size: .86rem; }
.rc-note { color: var(--ink-2); font-style: italic; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 150%); opacity: 0; visibility: hidden; background: var(--slate); color: var(--slate-ink); border: 1px solid #2c3d4b; padding: .55rem 1rem; border-radius: 3px; font-size: .95rem; transition: transform .5s var(--spring), opacity .3s, visibility .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.discovery {
  position: fixed; z-index: 85; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom, 0px)); width: min(29rem, calc(100vw - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center;
  padding: .85rem 1rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-top: 3px solid var(--gold);
  box-shadow: 0 24px 46px -18px rgb(var(--shadow) / .6); transform: translate(-50%, 160%); opacity: 0;
  transition: transform .8s var(--spring), opacity .35s;
}
.discovery:not(.is-on) { visibility: hidden; transition: transform .8s var(--spring), opacity .35s, visibility 0s .8s; }
.discovery.is-on { transform: translate(-50%, 0); opacity: 1; }
.dc-seal { width: 2.7rem; height: 2.7rem; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.discovery.is-on .dc-seal { animation: turn 1.4s var(--ease) both; }
@keyframes turn { from { transform: rotate(-200deg) scale(.6); opacity: 0; } }
.dc-body p { margin: 0; }
.dc-kicker { font-family: var(--f-sc); font-size: .85rem; letter-spacing: .08em; color: var(--rubric); }
.dc-title { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.2; }
.dc-count { font-size: .88rem; color: var(--ink-2); }
.dc-close { width: 2rem; height: 2rem; display: grid; place-items: center; background: transparent; border: 0; color: var(--ink-3); cursor: pointer; border-radius: 50%; }
.dc-close:hover { background: var(--bg-2); color: var(--ink); }
.dc-close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- the source desk ---------- */
.desk-hero { padding-block: clamp(2.2rem, 5vw, 3.8rem) 2rem; }
.desk-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem; align-items: center; }
.desk-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.2rem 0 0; font-family: var(--f-sc); letter-spacing: .04em; color: var(--ink-3); font-size: .95rem; }
.desk-facts strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); margin-right: .3rem; font-variant-numeric: lining-nums; }
.slate { min-width: 0; border-radius: 4px; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, var(--slate-2), var(--slate) 65%); border: 1px solid #2c3d4b; box-shadow: 0 26px 50px -26px rgb(0 0 0 / .75), inset 0 0 50px rgb(142 240 220 / .05); }
.slate-bar { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .5rem .8rem; border-bottom: 1px solid #263644; font-family: var(--f-sc); letter-spacing: .1em; font-size: .85rem; color: var(--slate-dim); }
.slate-bar .sigil-xs { color: var(--slate-glow); fill: none; margin: 0; }
.slate pre { margin: 0; padding: 1.1rem 1.2rem 1.3rem; overflow-x: auto; color: var(--slate-ink); font-size: .86rem; line-height: 1.6; text-shadow: 0 0 12px rgb(142 240 220 / .18); }
.slate .prompt { color: var(--slate-glow); }
.slate .out { color: var(--slate-dim); }
.desk-section { margin-block: 2.6rem; }
.endpoints .mono a, .endpoints td.mono { font-size: .85rem; }
.copy-sm { font-size: .78rem; padding: 0 .4rem; margin-left: .3rem; color: var(--ink-3); }
.recipe-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.recipe.is-tabbed .recipe-title { display: none; }
.recipe-title { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; margin: 1rem 0 .3rem; }
.code-block { position: relative; min-width: 0; }
.code-block pre { margin: 0; background: var(--slate); color: var(--slate-ink); border: 1px solid #263644; border-radius: 3px; padding: 1rem 1.1rem; overflow-x: auto; font-size: .85rem; line-height: 1.55; }
.code-block .copy-btn { position: absolute; top: .55rem; right: .55rem; color: var(--slate-glow); background: var(--slate); }
.desk-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
.field-list { margin: 1rem 0 0; display: grid; gap: .55rem; }
.field-list div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1rem; }
.field-list dt { font-size: .85rem; color: var(--rubric); }
.field-list dd { margin: 0; color: var(--ink-2); }
.rights { font-style: italic; color: var(--ink-2); }

/* ---------- catalogue, search ---------- */
.cat-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.4rem; margin-bottom: 1.2rem; }
.cat-controls .field { display: grid; }
.cat-controls input { width: min(22rem, 70vw); }
.cat-count { margin: 0 0 .5rem auto; font-family: var(--f-sc); letter-spacing: .04em; color: var(--ink-3); }
.cat-table th button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.cat-table th[aria-sort="ascending"] button::after { content: " ▲"; font-size: .7em; color: var(--rubric); }
.cat-table th[aria-sort="descending"] button::after { content: " ▼"; font-size: .7em; color: var(--rubric); }
.cat-table td a { text-decoration: none; }
.cat-table td a:hover { text-decoration: underline; }
.cat-sub { display: block; font-size: .88rem; font-style: italic; color: var(--ink-2); }
.cat-table tr.is-found > td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.search-form { display: flex; gap: .6rem; max-width: 46rem; }
.search-form input { flex: 1; min-width: 0; font-size: 1.15rem; padding: .7rem 1rem; }
.search-status { font-family: var(--f-sc); letter-spacing: .04em; color: var(--ink-3); margin: 1.2rem 0 .6rem; }
.results { list-style: none; padding: 0; margin: 0 0 4rem; display: grid; gap: 1.1rem; max-width: 52rem; }
.results li { padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--rc, var(--rule)); }
.res-meta { margin: 0 0 .2rem; font-family: var(--f-sc); font-size: .88rem; letter-spacing: .04em; color: var(--ink-3); }
.res-title { font-family: var(--f-display); font-size: 1.3rem; text-decoration: none; }
.res-snippet { margin: .35rem 0 0; color: var(--ink-2); font-size: .98rem; }
.res-snippet mark, .results mark { background: color-mix(in srgb, var(--gold-hi) 45%, transparent); color: inherit; padding: 0 .1em; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 20rem); gap: 3rem; justify-content: center; padding-bottom: 4rem; }
.about-aside { display: grid; gap: 1.6rem; align-content: start; position: sticky; top: calc(var(--hdr) + 1.4rem); }
.bookplate { text-align: center; padding: 1.6rem 1.2rem; background: var(--paper); border: 1px solid var(--ink-2); outline: 1px solid var(--rule); outline-offset: -8px; }
.bp-ex { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; margin: 0 0 .4rem; color: var(--ink-2); }
.bp-mark { width: 3.6rem; height: 3.6rem; color: var(--gold); stroke-width: 1; }
.bp-name { font-family: var(--f-sc); letter-spacing: .12em; margin: .5rem 0 0; }

/* ---------- the atlas page ---------- */
.atlas-app { position: relative; }
.atlas-stage { position: relative; height: max(520px, calc(100svh - var(--hdr))); overflow: hidden; background: var(--sea); touch-action: none; cursor: grab; outline: none; }
.atlas-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); }
.atlas-stage.is-dragging { cursor: grabbing; }
.is-moving > .atlas { will-change: transform; }
.atlas-stage.is-dragging .place-card { display: none; }
.atlas-panel {
  position: absolute; z-index: 5; top: 1.1rem; left: max(clamp(16px, 2.5vw, 32px), env(safe-area-inset-left, 0px)); width: min(22.5rem, calc(100% - 32px)); max-height: calc(100% - 2.2rem); overflow: auto;
  background: color-mix(in srgb, var(--paper) 94%, transparent); border: 1px solid var(--ink-2); outline: 1px solid color-mix(in srgb, var(--ink-2) 50%, transparent); outline-offset: 5px;
  padding: 1.3rem 1.3rem 1.1rem; box-shadow: 0 24px 50px -26px rgb(var(--shadow) / .6); scrollbar-width: thin;
}
.panel-title { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; margin: 0 0 .5rem; }
.panel-deck { color: var(--ink-2); margin: 0 0 1rem; font-size: 1rem; }
.panel-keys { font-size: .86rem; color: var(--ink-3); font-style: italic; margin: 1rem 0 0; }
.finder { position: relative; margin-bottom: 1rem; }
.finder input { width: 100%; }
.finder-list { position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: .3rem; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 16px 30px -18px rgb(var(--shadow) / .6); max-height: 18rem; overflow: auto; }
.finder-list li { display: flex; align-items: baseline; gap: .45rem; padding: .4rem .5rem; cursor: pointer; border-radius: 2px; font-size: .95rem; line-height: 1.3; }
.finder-list li[aria-selected="true"], .finder-list li:hover { background: var(--bg-2); }
.fo-code { font-family: var(--f-sc); color: var(--rc-ink); letter-spacing: .03em; }
.fo-none { color: var(--ink-3); font-style: italic; cursor: default !important; }
.realm-toggles { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.rt { display: inline-flex; align-items: center; font: inherit; font-size: .9rem; color: var(--ink-2); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .65rem .2rem .45rem; cursor: pointer; }
.rt:hover { border-color: var(--rc); color: var(--ink); }
.rt[aria-pressed="true"] { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); color: var(--ink); }
.panel-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.zoom-ctl { position: absolute; z-index: 4; right: max(clamp(16px, 2.5vw, 32px), env(safe-area-inset-right, 0px)); bottom: 1.1rem; display: grid; gap: .35rem; }
.zoom-ctl button { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; color: var(--ink); background: color-mix(in srgb, var(--paper) 92%, transparent); border: 1px solid var(--ink-3); border-radius: 2px; cursor: pointer; }
.zoom-ctl button:hover { border-color: var(--ink); }
.zoom-ctl svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.gazetteer { margin-block: 3rem 4rem; }
.gaz-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 2rem; }
.gaz-title { display: flex; align-items: center; gap: .2rem; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.gaz-title span { font-family: var(--f-sc); font-size: .85rem; letter-spacing: .06em; color: var(--rc-ink); margin-right: .45rem; }
.gaz-realm ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .95rem; line-height: 1.35; }
.gaz-realm a { text-decoration: none; }
.gaz-realm a:hover { text-decoration: underline; }
.gaz-realm li:target a { background: color-mix(in srgb, var(--gold-hi) 35%, transparent); }
.gz-code { font-family: var(--f-sc); color: var(--rc-ink); letter-spacing: .03em; }
.gaz-realm li.is-found a::after { content: " ✓"; color: var(--gold); }
.atlas.one-realm .pl.is-dim { opacity: .18; }

/* ---------- the journal ---------- */
.journal { padding-bottom: 4rem; }
.j-top { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 2.5rem; align-items: center; margin-bottom: 2.5rem; }
.j-sigil { position: relative; margin: 0; aspect-ratio: 1; }
.j-rings { width: 100%; height: 100%; overflow: visible; }
.jr-track { fill: none; stroke: var(--rule-2); stroke-width: 9; }
.jr-fill { fill: none; stroke: var(--rc); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray 1.2s var(--ease); }
.j-sigil figcaption { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.j-n { font-family: var(--f-display); font-size: 2.8rem; line-height: 1; font-variant-numeric: lining-nums; }
.j-of { font-family: var(--f-sc); font-size: .78rem; letter-spacing: .05em; color: var(--ink-3); max-width: 6.5rem; margin-inline: auto; }
.j-realms { display: grid; gap: .9rem; }
.j-realm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: baseline; }
.jr-name { margin: 0; font-family: var(--f-display); font-size: 1.15rem; display: flex; align-items: center; }
.jr-count { margin: 0; font-family: var(--f-sc); letter-spacing: .04em; color: var(--ink-3); font-variant-numeric: lining-nums tabular-nums; }
.jr-bar { grid-column: 1 / -1; height: 6px; background: var(--rule-2); border-radius: 3px; overflow: hidden; }
.jr-bar span { display: block; height: 100%; background: var(--rc); border-radius: 3px; transition: width 1s var(--ease); }
.j-empty { padding: 1.4rem 1.6rem; background: var(--paper); border: 1px dashed var(--ink-3); margin-bottom: 2rem; }
.j-empty p { margin: 0 0 .8rem; }
.j-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.j-next, .j-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.j-next li, .j-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: baseline; padding: .55rem .2rem; border-bottom: 1px solid var(--rule-2); }
.j-next li .sigil-xs, .j-list li .sigil-xs { margin: 0; }
.j-code { font-family: var(--f-sc); color: var(--rc-ink); letter-spacing: .03em; }
.j-why, .j-date { font-family: var(--f-sc); font-size: .82rem; letter-spacing: .03em; color: var(--ink-3); text-align: right; }
.j-none { color: var(--ink-3); font-style: italic; grid-template-columns: 1fr !important; }
.j-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2.5rem; }
.j-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem 1rem; border: 1px solid var(--rubric); background: var(--paper); }
.j-confirm p { margin: 0; }

/* ---------- uncharted (404) ---------- */
.uncharted { padding-block: clamp(2rem, 6vw, 4rem) 5rem; text-align: center; display: grid; justify-items: center; }
.serpent { width: min(36rem, 100%); height: auto; margin-bottom: 1rem; }
.sp-sea { fill: none; stroke: var(--sea-ink); stroke-width: 2; stroke-linecap: round; }
.sp-sea.thin { stroke-width: 1.2; opacity: .6; }
.sp-body, .sp-tail { fill: none; stroke: var(--map-ink); stroke-width: 9; stroke-linecap: round; }
.sp-fin { fill: none; stroke: var(--rubric); stroke-width: 2; stroke-linejoin: round; }
.sp-head { fill: var(--map-ink); }
.sp-eye { fill: var(--gold-hi); }
.uncharted .page-deck { margin-inline: auto; }
.uncharted .search-form { margin: 1.6rem auto 1rem; width: min(34rem, 100%); }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 2rem; background: var(--bg-2); border-top: 1px solid var(--rule); box-shadow: 0 -3px 0 -2px var(--rule); padding-block: 2.6rem max(1.6rem, env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-name { font-family: var(--f-display); font-size: 1.35rem; margin: 0 0 .5rem; display: flex; align-items: center; gap: .45rem; }
.footer-mark { color: var(--gold); width: 1.3rem; height: 1.3rem; }
.footer-about p { color: var(--ink-2); font-size: .95rem; }
.footer-small { font-family: var(--f-sc); font-size: .85rem !important; letter-spacing: .04em; color: var(--ink-3) !important; }
.footer-head { font-family: var(--f-sc); letter-spacing: .08em; color: var(--rubric); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .95rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .86rem; color: var(--ink-3); }
.footer-base p { margin: 0; }

/* ---------- page to page ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
::view-transition-group(vt-title) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .vol-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); }
  .toc { display: none; }
  .toc-mobile { display: inline-block; position: relative; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .header-search { display: none; }
  .nav-search { display: inline; }
}
@media (max-width: 900px) {
  .header-bar { flex-wrap: wrap; row-gap: 0; padding-top: .45rem; }
  .brand { margin-right: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: .35rem; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  :root { --hdr: 5.6rem; }
  .vol-grid { grid-template-columns: minmax(0, 1fr); }
  .vol-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .doors, .desk-hero-grid, .desk-split, .j-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-aside { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-map { height: 64svh; min-height: 420px; }
  .hero-inner { position: relative; inset: auto; display: block; padding-right: max(16px, env(safe-area-inset-right, 0px)); margin-top: -4.5rem; padding-bottom: 2rem; }
  .cartouche { width: 100%; padding: 1.6rem 1.3rem 1.3rem; }
  .map-hud { top: .8rem; bottom: auto; }
  .hud-note { display: none; }
  .atlas-stage { height: 70svh; min-height: 400px; }
  .atlas-panel { position: relative; top: auto; left: auto; width: auto; max-height: none; margin: -1.5rem max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px)); }
  .j-top { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .j-sigil { width: min(15rem, 70vw); }
  .j-realms { width: 100%; }
}
@media (max-width: 620px) {
  body { font-size: 1.02rem; }
  .vol-head-grid { grid-template-columns: minmax(0, 1fr); }
  .vol-seal { width: auto; display: flex; align-items: center; gap: 1rem; text-align: left; }
  .vol-seal .seal { width: 5.4rem; height: 5.4rem; flex: none; }
  .prose { font-size: 1.07rem; }
  .road { grid-template-columns: minmax(0, 1fr); gap: 2.3rem; }
  .prev-next { grid-template-columns: minmax(0, 1fr); }
  .pn-next { text-align: left; }
  .history-list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .field-list div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .cat-card > div { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .realm-title-row .sigil-xl { width: 3.4rem; height: 3.4rem; }
  .db-of { display: none; }
  .tt-value { display: none; }
}

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media print {
  .site-header, .site-footer, .toc, .vol-actions, .vol-aside, .read-progress, .copy-btn, .cite-tabs, .hero-map, .map-hud, .discovery, .toast { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .vol-grid { display: block; }
  .prose a { color: #000; }
  .cite-panel { display: block !important; }
}
/* ---------- the map ---------- */
.atlas { display: block; width: 100%; height: 100%; background: var(--sea); user-select: none; -webkit-user-select: none; }
.atlas .sea { fill: var(--sea); }
.atlas .sea-tex { opacity: .45; }
.atlas .wave { fill: none; stroke: var(--sea-ink); stroke-width: .9; stroke-linecap: round; }
.atlas .rhumbs path { fill: none; stroke-width: .75; }
.atlas .rh-8 { stroke: var(--rh8); }
.atlas .rh-16 { stroke: var(--rh16); }
.atlas .rh-32 { stroke: var(--rh32); stroke-dasharray: 5 4; }
.atlas .coast-glow use { fill: none; stroke: var(--coast-glow); stroke-linejoin: round; }
.atlas .cg1 { stroke-width: 74; opacity: .1; }
.atlas .cg2 { stroke-width: 38; opacity: .14; }
.atlas .cg3 { stroke-width: 15; opacity: .2; }
.atlas .rp { fill: none; stroke: var(--sea-ink); stroke-linejoin: round; }
.atlas .rp0 { stroke-width: 1; opacity: .75; }
.atlas .rp1 { stroke-width: .8; opacity: .48; }
.atlas .rp2 { stroke-width: .7; opacity: .3; }
.atlas .land { fill: var(--land); }
.atlas .realm .rw { fill: var(--rc); opacity: .045; }
.atlas .realm .rb { fill: none; stroke: var(--rc); stroke-linejoin: round; }
.atlas .rb1 { stroke-width: 26; opacity: .17; }
.atlas .rb2 { stroke-width: 8; opacity: .3; }
.atlas .coast { fill: none; stroke: var(--map-ink); stroke-width: 1.7; stroke-linejoin: round; }
.atlas .borders { fill: none; stroke: var(--map-ink); stroke-width: 1.15; stroke-dasharray: 7 3.5 1.2 3.5; stroke-linecap: round; opacity: .62; }
.atlas .terrain path { stroke: var(--map-ink); stroke-linejoin: round; stroke-linecap: round; }
.atlas .trees { fill: var(--tree-fill); stroke-width: .7; }
.atlas .trunks, .atlas .hills, .atlas .mtn-ink { fill: none; stroke-width: .8; }
.atlas .hills { opacity: .75; }
.atlas .mtn-fill { fill: var(--land); stroke: none !important; }
.atlas .road { fill: none; stroke: var(--road); stroke-width: 1.15; stroke-dasharray: 4 3; opacity: .75; }
.atlas .sea-route { stroke: var(--rubric); stroke-dasharray: 1 4.5; stroke-width: 1.5; }
.atlas .first-road { fill: none; stroke: var(--rubric); stroke-width: 2.6; stroke-dasharray: 8 5; stroke-linecap: round; opacity: .85; }
.atlas .rl-name { font-family: var(--f-sc); letter-spacing: .3em; fill: var(--rc-ink); opacity: .82; paint-order: stroke; stroke: var(--land); stroke-width: 5px; stroke-linejoin: round; }
.atlas .rl-mark { font-family: var(--f-display); font-style: italic; font-size: 15px; fill: var(--rc-ink); opacity: .75; paint-order: stroke; stroke: var(--land); stroke-width: 4px; stroke-linejoin: round; }
.atlas .compass .cr-ring, .atlas .compass .cr-tick { fill: none; stroke: var(--map-ink); stroke-width: .9; }
.atlas .compass .thin { stroke-width: .5; }
.atlas .compass .cr-tick { stroke-width: .6; }
.atlas .cr-p { stroke: var(--map-ink); stroke-width: .5; stroke-linejoin: round; }
.atlas .cr-p.dk { fill: var(--map-ink); }
.atlas .cr-p.lt { fill: var(--land); }
.atlas .cr-p.half.dk { fill: var(--verdigris); }
.atlas .cr-p.quarter.dk { fill: var(--rubric); }
.atlas .cr-p.inter.dk { fill: var(--gold); }
.atlas .cr-hub { fill: var(--gold-hi); stroke: var(--map-ink); stroke-width: .8; }
.atlas .cr-lily { fill: var(--rubric); stroke: var(--map-ink); stroke-width: .7; }
.atlas .sh-hull { fill: var(--map-ink); }
.atlas .sh-rig { fill: none; stroke: var(--map-ink); stroke-width: .9; }
.atlas .sh-sail { fill: var(--land); stroke: var(--map-ink); stroke-width: .8; }
.atlas .sh-wake { fill: none; stroke: var(--sea-ink); stroke-width: .9; }
.atlas .neatline rect { fill: none; stroke: var(--map-ink); }
.atlas .nl-o { stroke-width: 2.2; }
.atlas .nl-i { stroke-width: .9; }
.atlas .nl-t { fill: none; stroke: var(--map-ink); stroke-width: 6; opacity: .85; }

.atlas .pl { cursor: pointer; outline: none; }
.atlas .pl-hit { fill: transparent; }
.atlas .pl-halo { fill: var(--land); stroke: var(--rc); stroke-width: 1.3; transition: stroke-width .2s var(--ease), fill .3s; }
.atlas .pl-gl { fill: var(--glyph-fill); stroke: var(--map-ink); stroke-width: 1.35; stroke-linejoin: round; transition: fill .3s; }
.atlas .pl-flag { fill: var(--rubric); stroke: var(--map-ink); stroke-width: .9; stroke-linejoin: round; }
.atlas .pl text, .atlas .edge-mark text { fill: var(--map-ink); paint-order: stroke; stroke: var(--land); stroke-width: 3.2px; stroke-linejoin: round; pointer-events: none; }
.atlas .t0 { font-family: var(--f-display); font-style: italic; font-size: 13px; }
.atlas .t1 { font-family: var(--f-sc); font-size: 11px; letter-spacing: .05em; }
.atlas .t2 { font-family: var(--f-display); font-style: italic; font-size: 10.5px; }
.atlas .t0, .atlas .t1, .atlas .t2 { display: none; }
.atlas[data-lod="0"] .t0, .atlas[data-lod="1"] .t1, .atlas[data-lod="2"] .t2, .atlas .lbl-on { display: inline; }
.atlas[data-lod="2"] .realm-labels { opacity: .35; }
.atlas .pl.cap .pl-halo { stroke-width: 2; }
.atlas .pl.first .pl-halo { stroke: var(--rubric); }
.atlas .pl.is-found .pl-halo { fill: var(--gold-lo); stroke: var(--gold); stroke-width: 2; }
.atlas .pl.is-found .pl-gl { fill: var(--found); }
.atlas .pl:hover .pl-halo, .atlas .pl.is-hot .pl-halo { stroke-width: 3; }
.atlas .pl.is-dim { opacity: .28; }
.atlas.has-hot .pl:not(.is-hot):not(.is-linked) { opacity: .45; }
.atlas.has-hot .roads, .atlas.has-hot .first-road { opacity: .35; }
.atlas .ll { fill: none; stroke-width: calc(1.9px / var(--k, 1)); stroke-linecap: round; }
.atlas .ll-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink .7s var(--ease) forwards; }
.atlas .ll-out { stroke: var(--gold); }
.atlas .ll-in { stroke: var(--lapis); }
.atlas .ll-both { stroke: var(--rubric); }
.atlas .ll-off { stroke-dasharray: 2 4; opacity: .7; }
.atlas .focus-ring { fill: none; stroke: var(--rubric); stroke-width: 1.5; stroke-dasharray: 3 3; }
.atlas .pl.far { opacity: .5; }
.atlas .em-arrow { fill: var(--rc); stroke: var(--map-ink); stroke-width: .6; }
.atlas .em-t { font-family: var(--f-sc); font-size: 10px; letter-spacing: .04em; }
.atlas-crop .t1 { font-size: 10.5px; }
.atlas .river-bed { fill: none; stroke: var(--sea); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.atlas .river { fill: none; stroke: var(--sea-ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.atlas .lake { fill: var(--sea); stroke: var(--map-ink); stroke-width: 1.2; }
.atlas .lake-rp { fill: none; stroke: var(--sea-ink); stroke-width: .7; opacity: .6; }
.atlas .pl .pl-halo { opacity: 0; }
.atlas .pl.cap .pl-halo, .atlas .pl.first .pl-halo, .atlas .pl.is-found .pl-halo, .atlas .pl:hover .pl-halo, .atlas .pl.is-hot .pl-halo, .atlas .pl.focus .pl-halo { opacity: 1; }
:root { --lake: #cfd5c3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lake: #12313d; } }
:root[data-theme="dark"] { --lake: #12313d; }
.atlas .lake { fill: var(--lake); }
