
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/EBGaramond-VF.woff2") format("woff2-variations"), url("/assets/fonts/EBGaramond-VF.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/EBGaramond-Italic-VF.woff2") format("woff2-variations"), url("/assets/fonts/EBGaramond-Italic-VF.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font-book: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-book-alt: "Iowan Old Style", "Charter", "Bitstream Charter", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Courier Prime", "Courier New", monospace;
  --read-size: 1.1875rem;     
  --read-leading: 1.6;
  --read-measure: 34em;
  --ui-caption: 0.75rem;
  --ui-footnote: 0.8125rem;
  --ui-body: 1.0625rem;
  --ui-title3: 1.25rem;
  --ui-title2: 1.375rem;
  --ui-title1: 1.75rem;
  --ui-large: 2.125rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 22px; --r-pill: 999px;
  --hairline: 0.5px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);   
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms; --t-med: 280ms; --t-slow: 450ms;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --bar-h: 44px;
  color-scheme: light dark;
}
:root, [data-theme="light"] {
  --paper: #F4ECD8;
  --paper-2: #EDE3CB;         
  --paper-3: #E3D6B8;         
  --ink: #2B2118;
  --ink-2: #5A4A3A;           
  --ink-3: #625244;           
  --rule: rgba(43, 33, 24, 0.18);
  --gold: #B08D57;            
  --gold-text: #7A5A28;       
  --rubric: #8C2F1C;
  --accent: #7A5A28;          
  --bar-bg: rgba(244, 236, 216, 0.82);
  --sheet-bg: #F8F2E4;
  --scrim: rgba(20, 14, 8, 0.32);
  --mark: rgba(214, 170, 60, 0.38);
  --shadow: 0 1px 2px rgba(43,33,24,.08), 0 8px 24px rgba(43,33,24,.12);
  --archive-paper: #EFE6CF;
}
[data-theme="sepia"] {
  --paper: #EADBC0;
  --paper-2: #E2D0B0;
  --paper-3: #D6C29E;
  --ink: #3A2A1A;
  --ink-2: #5B4630;
  --ink-3: #5C4730;
  --rule: rgba(58, 42, 26, 0.2);
  --gold: #A07E48;
  --gold-text: #6E4F1F;
  --rubric: #84301B;
  --accent: #6E4F1F;
  --bar-bg: rgba(234, 219, 192, 0.84);
  --sheet-bg: #EFE2CA;
  --scrim: rgba(30, 20, 8, 0.34);
  --mark: rgba(200, 150, 40, 0.36);
  --shadow: 0 1px 2px rgba(58,42,26,.1), 0 8px 24px rgba(58,42,26,.14);
  --archive-paper: #E6D6B6;
}
[data-theme="dark"] {
  --paper: #000000;
  --paper-2: #121112;
  --paper-3: #1E1C1D;
  --ink: #E9E2D3;
  --ink-2: #B9B0A0;
  --ink-3: #9C9384;
  --rule: rgba(233, 226, 211, 0.16);
  --gold: #C9A96E;
  --gold-text: #C9A96E;
  --rubric: #D0775F;
  --accent: #C9A96E;
  --bar-bg: rgba(10, 10, 11, 0.78);
  --sheet-bg: #161516;
  --scrim: rgba(0, 0, 0, 0.55);
  --mark: rgba(201, 169, 110, 0.32);
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 28px rgba(0,0,0,.6);
  --archive-paper: #17150F;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #000000; --paper-2: #121112; --paper-3: #1E1C1D;
    --ink: #E9E2D3; --ink-2: #B9B0A0; --ink-3: #9C9384;
    --rule: rgba(233, 226, 211, 0.16);
    --gold: #C9A96E; --gold-text: #C9A96E; --rubric: #D0775F; --accent: #C9A96E;
    --bar-bg: rgba(10, 10, 11, 0.78); --sheet-bg: #161516; --scrim: rgba(0, 0, 0, 0.55);
    --mark: rgba(201, 169, 110, 0.32);
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 28px rgba(0,0,0,.6);
    --archive-paper: #17150F;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; --t-slow: 0ms; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--ui-body)/1.4 var(--font-ui);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t-med) ease, color var(--t-med) ease;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mark); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: calc(var(--sat) + var(--s2)); z-index: 100; padding: var(--s2) var(--s3); background: var(--sheet-bg); border-radius: var(--r-s); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.page {
  padding: calc(var(--sat) + var(--bar-h) + var(--s4)) calc(var(--sar) + var(--s5)) calc(var(--sab) + var(--s16)) calc(var(--sal) + var(--s5));
}
.prose {
  max-width: var(--read-measure);
  margin-inline: auto;
  font-family: var(--font-book);
  font-size: var(--read-size);
  line-height: var(--read-leading);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  font-feature-settings: "liga", "kern";
  hyphens: auto;
  -webkit-hyphens: auto;
  hanging-punctuation: first;
  text-wrap: pretty;
}
[data-font="alt"] .prose { font-family: var(--font-book-alt); }
[data-font="ui"] .prose { font-family: var(--font-ui); }
.prose p { margin: 0; }
.prose p + p { text-indent: 1.4em; }
.prose h2 {
  margin: 2.6em 0 1.2em;
  font-weight: 500;
  font-size: 1.05em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-text);
  font-variant-numeric: lining-nums;
}
.prose h2::before, .prose h2::after { content: "❧"; display: inline-block; margin: 0 0.6em; color: var(--gold); font-size: 0.9em; letter-spacing: 0; text-transform: none; }
.prose h2::before { transform: scaleX(-1); }
.prose h3 { margin: 2em 0 0.8em; font-style: italic; font-weight: 500; font-size: 1em; text-align: center; }
.prose em { font-style: italic; }
.prose strong { font-weight: 600; }
.prose hr { border: 0; margin: 2em auto; text-align: center; color: var(--gold); }
.prose hr::after { content: "⁂"; font-size: 1.1em; }
.prose sup.fn a { text-decoration: none; font-family: var(--font-ui); font-size: 0.62em; font-weight: 600; color: var(--gold-text); padding-inline: 0.1em; }
.chapter-head { text-align: center; margin: var(--s8) auto var(--s10); max-width: var(--read-measure); font-family: var(--font-book); }
.chapter-head .kicker { font: 600 var(--ui-caption)/1 var(--font-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.chapter-head h1 { margin: 0.35em 0 0.15em; font-weight: 500; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.08; letter-spacing: 0.01em; }
.chapter-head .theme { font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.chapter-head .vignette { width: min(220px, 60%); margin: var(--s6) auto 0; color: var(--ink); }
@media (min-width: 768px) {
  :root { --read-size: 1.25rem; }
  .page { padding-inline: calc(var(--sal) + var(--s10)) calc(var(--sar) + var(--s10)); }
}
@media print {
  body { background: #fff; color: #000; }
}
.navbar, .toolbar {
  position: fixed; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s2);
  padding-inline: calc(var(--sal) + var(--s2)) calc(var(--sar) + var(--s2));
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) ease;
}
.navbar { top: 0; height: calc(var(--bar-h) + var(--sat)); padding-top: var(--sat); border-bottom: var(--hairline) solid var(--rule); }
.toolbar { bottom: 0; height: calc(var(--bar-h) + var(--sab) + var(--s1)); padding-bottom: var(--sab); border-top: var(--hairline) solid var(--rule); justify-content: space-around; }
.navbar .title { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-size: var(--ui-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-immersive .navbar { transform: translateY(-100%); opacity: 0; }
.is-immersive .toolbar { transform: translateY(100%); opacity: 0; }
.progress-line { position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--gold); transition: width var(--t-fast) linear; }
.icon-btn {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 var(--s2);
  border: 0; background: none; color: var(--accent); border-radius: var(--r-pill);
  font-size: var(--ui-body);
}
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { opacity: 0.45; }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 50px; padding: 0 var(--s6);
  border: 0; border-radius: var(--r-m);
  background: var(--accent); color: var(--paper);
  font-weight: 600; font-size: var(--ui-body); text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast);
}
.btn:active { transform: scale(0.97); opacity: 0.85; }
.btn.secondary { background: var(--paper-2); color: var(--accent); }
.btn.plain { background: none; color: var(--accent); padding-inline: var(--s2); }
.btn.destructive { color: var(--rubric); background: var(--paper-2); }
.list-header { margin: var(--s6) var(--s4) var(--s2); font-size: var(--ui-footnote); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-3); }
.list { list-style: none; margin: 0; padding: 0; background: var(--paper-2); border-radius: var(--r-m); overflow: hidden; }
.list > li { position: relative; }
.list > li + li::before { content: ""; position: absolute; top: 0; left: var(--s4); right: 0; border-top: var(--hairline) solid var(--rule); }
.list-row {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 48px; padding: var(--s3) var(--s4);
  color: var(--ink); text-decoration: none;
}
a.list-row:active, button.list-row:active { background: var(--paper-3); }
button.list-row { width: 100%; border: 0; background: none; text-align: left; }
.list-row .meta { margin-left: auto; color: var(--ink-3); font-size: var(--ui-footnote); white-space: nowrap; }
.list-row .chev { width: 8px; height: 13px; color: var(--ink-3); flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.list-footer { margin: var(--s2) var(--s4) 0; font-size: var(--ui-footnote); color: var(--ink-3); }
.toc-row { align-items: flex-start; }
.toc-row .num { flex: none; width: 2.2em; font: 500 1.35rem/1.2 var(--font-book); color: var(--gold-text); font-variant-numeric: lining-nums; }
.toc-row .txt { flex: 1; min-width: 0; }
.toc-row .t { display: block; font: 500 1.15rem/1.25 var(--font-book); }
.toc-row .s { display: block; margin-top: 2px; font-size: var(--ui-footnote); color: var(--ink-2); }
.toc-row .ring { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.toc-row .ring circle { fill: none; stroke-width: 2.5; }
.toc-row .ring .bg { stroke: var(--paper-3); }
.toc-row .ring .fg { stroke: var(--gold); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.toc-row[aria-disabled="true"] { opacity: 0.6; }
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: var(--paper-3); color: var(--ink-2); font: 600 var(--ui-caption)/1.4 var(--font-ui); letter-spacing: 0.02em; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0; border-radius: var(--r-pill); background: var(--paper-3); transition: background var(--t-fast); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform var(--t-med) var(--ease); }
.switch:checked { background: var(--gold); }
.switch:checked::after { transform: translateX(20px); }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 9px; background: var(--paper-3); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; padding: 6px 8px; border-radius: 7px; text-align: center; font-size: var(--ui-footnote); font-weight: 500; transition: background var(--t-fast); }
.segmented input:checked + span { background: var(--sheet-bg); box-shadow: 0 1px 3px rgba(0,0,0,.14); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
.slider { flex: 1; accent-color: var(--gold); height: 28px; }
.swatches { display: flex; gap: var(--s4); justify-content: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; font: 500 1rem var(--font-book); }
.swatch[data-v="light"] { background: #F4ECD8; color: #2B2118; }
.swatch[data-v="sepia"] { background: #EADBC0; color: #3A2A1A; }
.swatch[data-v="dark"] { background: #000; color: #E9E2D3; }
.swatch[data-v="auto"] { background: linear-gradient(135deg, #F4ECD8 50%, #000 50%); color: #B08D57; }
input:checked + .swatch { outline: 2px solid var(--gold); outline-offset: 3px; }
.sheet-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--t-med) ease; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: calc(100dvh - var(--sat) - 24px);
  margin-inline: auto; max-width: 640px;
  padding: var(--s2) calc(var(--sar) + var(--s4)) calc(var(--sab) + var(--s6)) calc(var(--sal) + var(--s4));
  background: var(--sheet-bg); color: var(--ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(105%);
  transition: transform var(--t-slow) var(--ease);
}
.sheet::before { content: ""; display: block; width: 36px; height: 5px; margin: 0 auto var(--s3); border-radius: 3px; background: var(--paper-3); }
.sheet h2 { margin: 0 0 var(--s3); font-size: var(--ui-title3); font-weight: 600; text-align: center; }
.sheet-open .sheet-scrim { opacity: 1; pointer-events: auto; }
.sheet-open .sheet[aria-hidden="false"] { transform: none; }
@media (min-width: 768px) { .sheet { bottom: var(--s6); border-radius: var(--r-xl); } }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--sab) + var(--bar-h) + var(--s4)); z-index: 60;
  padding: var(--s3) var(--s5); border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper); font-size: var(--ui-footnote); font-weight: 500;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.searchfield { display: flex; align-items: center; gap: var(--s2); height: 38px; padding: 0 var(--s3); border-radius: 10px; background: var(--paper-3); }
.searchfield svg { width: 16px; height: 16px; stroke: var(--ink-3); fill: none; stroke-width: 2; flex: none; }
.searchfield input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: var(--ui-body); }
.search-hit mark { background: var(--mark); color: inherit; border-radius: 2px; }
.verse { margin: 0; text-indent: 0 !important; }
.verse + .verse { margin-top: 0.25em; }
p + .verse, .verse + p { margin-top: 0.9em; }
.verse .vn {
  display: inline-block; min-width: 2.1em; margin-right: 0.25em;
  font: 600 0.62em/1 var(--font-ui); letter-spacing: 0.02em;
  color: var(--gold-text); text-decoration: none; vertical-align: 0.42em;
  font-variant-numeric: tabular-nums lining-nums;
}
.verse:target, .verse.is-flash { background: var(--mark); border-radius: 4px; box-shadow: 0 0 0 4px var(--mark); transition: background var(--t-slow); }
.prose mark.hl { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.prose mark.hl[data-note]::after { content: "✎"; font: 600 0.6em var(--font-ui); color: var(--gold-text); vertical-align: 0.5em; margin-left: 1px; }
.initial { float: left; width: 3.35em; height: 3.35em; margin: 0.08em 0.45em 0 0; color: var(--ink); }
.initial svg { width: 100%; height: 100%; }
.initial use { color: var(--gold); }
.initial .letter { font: 500 64px/1 var(--font-book); fill: var(--ink); }
p.has-initial { text-indent: 0 !important; }
.initial + .first-word, p.has-initial .first-word { font-variant: small-caps; letter-spacing: 0.04em; }
.dialogue { margin: 1.1em 0; padding-left: 1.2em; border-left: 1px solid var(--gold); }
.dialogue p { text-indent: 0 !important; margin: 0.3em 0 !important; }
.dialogue .who { font-variant: small-caps; letter-spacing: 0.06em; font-weight: 600; color: var(--gold-text); margin-right: 0.35em; }
.dialogue .who.kifflom { color: var(--ink); letter-spacing: 0.22em; }
.dialogue .kifflom-line { font-variant: small-caps; letter-spacing: 0.08em; }
.archive {
  position: relative; margin: 1.8em -0.25em; padding: 1.1em 1.1em 1.3em;
  background: var(--archive-paper);
  border: 1px solid var(--rule); border-radius: 3px;
  font: 400 0.8em/1.55 var(--font-mono); color: var(--ink);
  hyphens: manual; text-wrap: wrap;
  box-shadow: 0 1px 0 var(--rule), 3px 4px 0 -1px var(--paper-3);
}
.archive header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3em 1em; padding-bottom: 0.6em; margin-bottom: 0.8em; border-bottom: 1px dashed var(--rule); font-size: 0.86em; text-transform: uppercase; letter-spacing: 0.06em; }
.archive header .az { color: var(--rubric); }
.archive p { text-indent: 0 !important; margin: 0 0 0.55em !important; }
.archive dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.15em 0.8em; margin: 0 0 0.8em; }
.archive dt { font-weight: 700; }
.archive dd { margin: 0; }
.archive .stamp {
  position: absolute; right: 0.9em; bottom: 0.7em; width: 5.2em; height: 5.2em;
  color: var(--rubric); opacity: 0.8; transform: rotate(-12deg);
}
.letter { margin: 1.8em 0; padding: 1.2em 1.3em; background: var(--paper-2); border-radius: 2px; font-style: italic; }
.letter header { font-style: normal; font: 600 var(--ui-caption)/1.3 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.8em; }
.letter p { text-indent: 0 !important; margin-bottom: 0.6em !important; }
.science {
  margin: 1.6em 0; padding: 0.9em 1em 1em;
  border-radius: var(--r-m); background: var(--paper-2);
  font: 400 0.84em/1.5 var(--font-ui); hyphens: auto;
}
.science header { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.45em; font: 600 var(--ui-caption)/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.science .level { padding: 3px 8px; border-radius: var(--r-pill); letter-spacing: 0.04em; color: var(--paper); }
.science[data-level="gesichert"] .level { background: #3F6B4A; }
.science[data-level="gut-gestuetzt"] .level { background: #4A5F7D; }
.science[data-level="spekulativ"] .level { background: #8A6A2A; }
.science[data-level="fiktion"] .level { background: var(--rubric); }
[data-theme="dark"] .science .level { color: #000; filter: brightness(1.6) saturate(.8); }
.science p { text-indent: 0 !important; margin: 0 0 0.45em !important; }
.parable { margin: 2em 0; padding: 0 1.4em; text-align: left; }
.parable .ptitle { display: block; margin-bottom: 0.6em; text-align: center; font-variant: small-caps; letter-spacing: 0.1em; color: var(--gold-text); }
.parable .ptitle::before, .parable .ptitle::after { content: "—"; margin: 0 0.5em; color: var(--gold); }
.parable p { font-style: italic; }
.commandment { margin: 2.2em auto; max-width: 26em; text-align: center; }
.commandment p { text-indent: 0 !important; font-variant: small-caps; letter-spacing: 0.08em; font-size: 1.08em; color: var(--gold-text); }
.commandment::before, .commandment::after { content: ""; display: block; width: 4em; height: 1px; margin: 0.9em auto; background: var(--gold); }
.figure { margin: 2em 0; text-align: center; }
.figure .plate { padding: 0.8em; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.figure .plate svg { width: 100%; height: auto; max-height: min(70vh, 620px); }
.figure figcaption { margin-top: 0.7em; font-style: italic; font-size: 0.86em; color: var(--ink-2); }
.figure svg .gold { stroke: var(--gold); }
.figure svg .gold-fill { fill: var(--gold); }
.footnotes { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--rule); font-size: 0.84em; color: var(--ink-2); }
.footnotes ol { padding-left: 1.4em; }
.draft-note { max-width: 28em; margin: var(--s12) auto; text-align: center; font-family: var(--font-book); color: var(--ink-2); }
.draft-note .badge { margin-bottom: var(--s3); }
.cover {
  min-height: 100dvh; display: grid; place-items: center;
  padding: calc(var(--sat) + var(--s8)) var(--s6) calc(var(--sab) + var(--s8));
  background:
    radial-gradient(ellipse at 50% 38%, rgba(201,169,110,.16), transparent 60%),
    var(--paper);
  text-align: center; font-family: var(--font-book);
}
.cover-inner { max-width: 26rem; }
.cover .emblem { width: min(64vw, 260px); margin: 0 auto var(--s8); color: var(--ink); }
.cover .over { font: 600 var(--ui-caption)/1 var(--font-ui); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-text); }
.cover h1 { margin: 0.4em 0 0.25em; font-weight: 500; font-size: clamp(2.3rem, 10vw, 3.4rem); line-height: 1.02; letter-spacing: 0.01em; }
.cover h1 span { display: block; font-size: 0.42em; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.4em; }
.cover .sub { font-style: italic; font-size: 1.2rem; color: var(--ink-2); }
.cover .rule { width: 5rem; height: 1px; margin: var(--s6) auto; background: var(--gold); }
.cover .actions { display: grid; gap: var(--s3); margin-top: var(--s8); font-family: var(--font-ui); }
.archive:has(.stamp) { padding-bottom: 5.4em; }
.large-title { max-width: 640px; margin: var(--s2) auto var(--s4); font: 700 var(--ui-large)/1.15 var(--font-ui); letter-spacing: -0.01em; }
.toc-page > .list-header, .toc-page > .list, .toc-page > .toc-continue, .search-page > * { max-width: 640px; margin-inline: auto; }
.toc-continue { margin-block: var(--s2) var(--s4); }
.toc-continue .btn { width: 100%; }
.book-release { max-width: 640px; margin: var(--s4) auto var(--s6); color: var(--ink-2); font: var(--ui-footnote)/1.5 var(--font-ui); }
.book-release p { margin: 0 0 var(--s1); }
.book-release summary { cursor: pointer; }
.book-release ul { padding-inline-start: var(--s5); }
.list-row .segmented { margin-left: auto; min-width: 0; flex: 0 1 15rem; }
.aa-small { font-size: 0.8em; } .aa-large { font-size: 1.3em; }
.end-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); max-width: var(--read-measure); margin: var(--s16) auto 0; font-family: var(--font-ui); }
.end-link { display: flex; flex-direction: column; gap: 2px; padding: var(--s3) var(--s4); border-radius: var(--r-m); background: var(--paper-2); color: var(--ink); text-decoration: none; }
.end-link.next { text-align: right; grid-column: 2; }
.end-link .dir { font-size: var(--ui-caption); color: var(--accent); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.end-link .name { font: 500 1.05rem/1.25 var(--font-book); }
.end-link:active { background: var(--paper-3); }
.search-form { margin-bottom: var(--s3); }
.search-status { color: var(--ink-3); font-size: var(--ui-footnote); }
.search-results:empty { display: none; }
.plate svg .gold, .emblem svg .gold { stroke: var(--gold); }
.plate svg .gold-fill, .emblem svg .gold-fill { fill: var(--gold); }
.plate svg .pf, .emblem svg .pf { fill: var(--paper); }
.plate svg text { font-family: var(--font-book); fill: currentColor; stroke: none; }
.plate svg .cap { font-size: 22px; letter-spacing: 0.18em; }
.plate svg .sub { font-size: 14px; font-style: italic; }
.sprite { display: none; }
@media (min-width: 768px) { .toolbar { justify-content: center; gap: clamp(24px, 8vw, 88px); } }
