/* ==========================================================================
   Anatomy of a Cult — stylesheet
   Plain CSS, no build step, no external requests.
   ========================================================================== */

/* --- Design tokens: light (warm paper) --- */
:root {
  --ink:            #2b2723;
  --ink-soft:       #56504a;
  --ink-faint:      #6f665c;
  --paper:          #f4efe7;
  --paper-raised:   #fbf7f1;
  --paper-sunk:     #ece4d8;
  --paper-tint:     #eee8dd;
  --rule:           #ded3c3;
  --rule-strong:    #c6b8a4;
  --accent:         #2f6f66;
  --accent-soft:    #e2ece7;
  --accent-ink:     #245c54;
  --warn:           #9a5a33;
  --warn-soft:      #f6e8da;
  --focus:          #2f6f66;
  --glow:           rgba(47,111,102,.07);
  --glow-2:         rgba(154,90,51,.06);

  --bar-1: #3f8a78;
  --bar-2: #6e9459;
  --bar-3: #a98a3f;
  --bar-4: #a3663c;
  --bar-5: #96473f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 34rem;
  --wide: 62rem;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(64,50,36,.04), 0 8px 24px rgba(64,50,36,.05);
  --shadow-soft: 0 1px 3px rgba(64,50,36,.05);
}

/* --- Design tokens: dark (warm charcoal) --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:          #ece5da;
    --ink-soft:     #c5bcae;
    --ink-faint:    #9a9082;
    --paper:        #1b1815;
    --paper-raised: #24211c;
    --paper-sunk:   #15130f;
    --paper-tint:   #201d18;
    --rule:         #37312a;
    --rule-strong:  #50483e;
    --accent:       #7cc3b3;
    --accent-soft:  #1f2c28;
    --accent-ink:   #9fd8c8;
    --warn:         #d99a6a;
    --warn-soft:    #2c2219;
    --focus:        #7cc3b3;
    --glow:         rgba(124,195,179,.06);
    --glow-2:       rgba(217,154,106,.05);

    --bar-1: #74c2ac;
    --bar-2: #a3c078;
    --bar-3: #d5bc6d;
    --bar-4: #d99a6a;
    --bar-5: #d47f6f;

    --shadow: 0 1px 2px rgba(0,0,0,.28), 0 8px 24px rgba(0,0,0,.3);
    --shadow-soft: 0 1px 3px rgba(0,0,0,.25);
  }
}

:root[data-theme="dark"] {
  --ink:          #ece5da;
  --ink-soft:     #c5bcae;
  --ink-faint:    #9a9082;
  --paper:        #1b1815;
  --paper-raised: #24211c;
  --paper-sunk:   #15130f;
  --paper-tint:   #201d18;
  --rule:         #37312a;
  --rule-strong:  #50483e;
  --accent:       #7cc3b3;
  --accent-soft:  #1f2c28;
  --accent-ink:   #9fd8c8;
  --warn:         #d99a6a;
  --warn-soft:    #2c2219;
  --focus:        #7cc3b3;
  --glow:         rgba(124,195,179,.06);
  --glow-2:       rgba(217,154,106,.05);

  --bar-1: #74c2ac;
  --bar-2: #a3c078;
  --bar-3: #d5bc6d;
  --bar-4: #d99a6a;
  --bar-5: #d47f6f;

  --shadow: 0 1px 2px rgba(0,0,0,.28), 0 8px 24px rgba(0,0,0,.3);
  --shadow-soft: 0 1px 3px rgba(0,0,0,.25);
}

/* --- Reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(58rem 34rem at 78% -8%, var(--glow), transparent 62%),
    radial-gradient(46rem 30rem at 4% 12%, var(--glow-2), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 2.4em 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-top: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); }
h3 { font-size: 1.2rem; margin-top: 2em; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 700; margin-top: 1.8em; }

p, ul, ol, dl, blockquote, figure, table { margin: 0 0 1.1em; }
li { margin-bottom: .4em; }
ul, ol { padding-left: 1.3em; }

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { font-weight: 650; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

blockquote {
  border-left: 3px solid var(--accent);
  background: var(--paper-tint);
  border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
  padding: .9em 1.2em;
  margin-left: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.08em;
}
blockquote > :first-child { margin-top: 0; }
blockquote > p:last-of-type { margin-bottom: 0; }
blockquote cite { display: block; font-family: var(--sans); font-size: .82rem; font-style: normal; color: var(--ink-faint); margin-top: .6em; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

code { font-family: var(--mono); font-size: .9em; background: var(--paper-sunk); padding: .1em .35em; border-radius: 3px; }

/* --- Skip link --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: .7em 1.2em;
  z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --- Layout --- */
.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.prose { width: min(100%, var(--measure)); }
.prose--wide { width: 100%; max-width: 46rem; }

main { display: block; padding-bottom: 5rem; }

/* --- Top bar --- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
@supports not (backdrop-filter: blur(4px)) { .topbar { background: var(--paper); } }

/* The bar gets a wider container than the prose, so eight nav items fit on one line. */
.topbar .wrap { width: min(100% - 2.5rem, 78rem); }

.topbar__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 3.75rem;
}

.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--accent-ink); }
.brand__mark { flex: none; width: 1.6rem; height: 1.6rem; color: var(--accent); }

.topbar__spacer { flex: 1 1 auto; order: 1; }

/* Desktop ordering: brand … nav | theme | quick exit */
.brand { order: 0; }
.nav { order: 2; }
[data-theme-toggle] { order: 3; }
.exit-btn { order: 4; }

.nav { display: flex; align-items: center; gap: .1rem; flex-wrap: nowrap; }
.nav a {
  display: block; padding: .4rem .6rem;
  font-size: .875rem; color: var(--ink-soft); text-decoration: none;
  border-radius: var(--radius); white-space: nowrap;
}
.nav a:hover { background: var(--paper-sunk); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--accent); }

.icon-btn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; padding: 0;
  background: transparent; border: 1px solid var(--rule);
  border-radius: var(--radius); color: var(--ink-soft); cursor: pointer;
}
.icon-btn:hover { background: var(--paper-sunk); color: var(--ink); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }

.nav-toggle { display: none; }

.exit-btn {
  flex: none;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem;
  font: inherit; font-size: .82rem; font-weight: 650;
  background: var(--warn-soft); color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  border-radius: var(--radius); cursor: pointer; white-space: nowrap;
}
.exit-btn:hover { background: var(--warn); color: var(--paper); border-color: var(--warn); }
.exit-btn svg { width: .9rem; height: .9rem; }

@media (max-width: 70rem) {
  .nav-toggle { display: inline-flex; order: 2; }
  [data-theme-toggle] { order: 3; }
  .exit-btn { order: 4; }
  .nav {
    order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch;
    flex-wrap: wrap; gap: 0; padding: .5rem 0 1rem; border-top: 1px solid var(--rule);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .65rem .4rem; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .topbar__inner { flex-wrap: wrap; }
  .topbar .wrap { width: min(100% - 2.5rem, var(--wide)); }
}

/* Keep the bar to a single row on phones. */
@media (max-width: 34rem) {
  .topbar .wrap { width: calc(100% - 1.6rem); }
  .topbar__inner { gap: .5rem; min-height: 3.4rem; }
  .brand { font-size: .92rem; gap: .45rem; }
  .brand__mark { width: 1.4rem; height: 1.4rem; }
  .icon-btn { width: 2.1rem; height: 2.1rem; }
  .exit-btn { padding: .4rem .6rem; font-size: .78rem; gap: .3rem; }
  .q-progress { top: 3.4rem; }
}

/* Anchor targets clear the sticky bar. */
[id] { scroll-margin-top: 5rem; }
#results { scroll-margin-top: 8rem; }
#questionnaire { scroll-margin-top: 8rem; }
.q-item { scroll-margin-top: 9rem; }

/* --- Hero --- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }

/* Faint concentric rings echoing the site mark — decorative only. */
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  right: -7rem; top: 50%; transform: translateY(-50%);
  width: 36rem; height: 36rem;
  background: repeating-radial-gradient(circle at center,
              var(--rule-strong) 0 1px, transparent 1px 2.3rem);
  opacity: .45;
  -webkit-mask-image: radial-gradient(circle at center, #000 34%, transparent 70%);
          mask-image: radial-gradient(circle at center, #000 34%, transparent 70%);
}
@media (max-width: 70rem) { .hero::after { display: none; } }
.hero__kicker {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 700; margin: 0 0 1.2rem;
}
.hero h1 { max-width: 18ch; }
.hero__lede {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  color: var(--ink-soft); max-width: 40ch; line-height: 1.55;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem;
  font: inherit; font-size: .95rem; font-weight: 650;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
:root[data-theme="dark"] .btn--primary,
:root[data-theme="dark"] .btn--primary:hover { color: #0f1214; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary,
  :root:not([data-theme="light"]) .btn--primary:hover { color: #0f1214; }
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--paper-sunk); }
.btn--sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0; }

/* --- Cards & grids --- */
.grid { display: grid; gap: 1.25rem; margin: 2rem 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin: 0 0 .5rem; font-size: 1.08rem; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  display: block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; color: var(--accent-ink); margin-bottom: .6rem;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
a.card h3 { color: var(--accent-ink); }

/* --- Callouts --- */
.note {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background: var(--paper-raised);
  border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
  font-size: .96rem;
  box-shadow: var(--shadow-soft);
}
.note--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note--quiet { border-left-color: var(--rule-strong); background: var(--paper-sunk); color: var(--ink-soft); }
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
.note h3, .note h4 { margin-top: 0; }

/* --- Section headers --- */
/* Sections are separated by a soft hairline that fades at the edges,
   rather than a hard full-width rule. */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; }
.section::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 18%, var(--rule) 82%, transparent);
}
.section--sunk { background: var(--paper-tint); }
.section--sunk::before { left: 0; right: 0; background: var(--rule); }
.section__eyebrow {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin: 0 0 .8rem;
}

/* --- Definition list (terminology) --- */
.terms { margin: 2rem 0 0; }
.term {
  border-top: 1px solid var(--rule);
  padding: 1.8rem 0;
}
.term:last-child { border-bottom: 1px solid var(--rule); }
.term h3 { margin: 0 0 .1rem; font-size: 1.25rem; }
.term__alt { font-size: .85rem; color: var(--ink-faint); margin: 0 0 .9rem; }
.term__def { max-width: 44rem; }
.term__example {
  margin-top: .9rem; padding: .8rem 1rem;
  background: var(--paper-sunk); border-radius: var(--radius);
  font-size: .93rem; color: var(--ink-soft);
}
.term__example strong { color: var(--ink); }

/* --- Table of contents --- */
.toc {
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 2rem 0 3rem;
  font-size: .93rem;
}
.toc h2 { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .7rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .25em; }

/* --- Questionnaire --- */
.q-progress {
  position: sticky; top: 3.75rem; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: .7rem 0;
  font-size: .82rem; color: var(--ink-soft);
}
@supports not (backdrop-filter: blur(4px)) { .q-progress { background: var(--paper); } }
.q-progress__bar { height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; margin-top: .4rem; }
.q-progress__fill { height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }

.q-section { margin: 3rem 0; }
.q-section__head { border-bottom: 2px solid var(--rule-strong); padding-bottom: .5rem; margin-bottom: .5rem; }
.q-section__head h2 { margin: 0; font-size: 1.3rem; }
.q-section__head p { margin: .4rem 0 0; font-size: .9rem; color: var(--ink-faint); }

fieldset.q-item {
  border: 0; border-bottom: 1px solid var(--rule);
  margin: 0; padding: 1.4rem 0;
}
.q-item legend {
  padding: 0; margin-bottom: .9rem;
  font-size: 1.02rem; color: var(--ink); font-weight: 500;
  display: flex; gap: .6rem;
}
.q-item legend .q-num { color: var(--ink-faint); font-family: var(--mono); font-size: .8rem; padding-top: .25rem; flex: none; }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.scale label {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: .35rem; padding: .55rem .3rem; text-align: center;
  font-size: .78rem; color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer; background: var(--paper-raised);
  line-height: 1.25;
}
.scale label:hover { border-color: var(--rule-strong); background: var(--paper-sunk); }
.scale input { margin: 0; accent-color: var(--accent); width: 1rem; height: 1rem; }
.scale input:checked + span { font-weight: 700; color: var(--ink); }
.scale label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.scale label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 34rem) {
  .scale { grid-template-columns: 1fr; gap: .3rem; }
  .scale label { flex-direction: row; justify-content: flex-start; gap: .6rem; text-align: left; font-size: .9rem; padding: .6rem .8rem; }
}

.q-unanswered legend { color: var(--warn); }
.q-unanswered { background: var(--warn-soft); border-radius: var(--radius); padding-inline: .8rem; }

/* --- Results --- */
.results { margin-top: 1rem; }
.result-band {
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper-raised);
  padding: 1.5rem 1.6rem;
  margin-bottom: 2rem;
}
.result-band h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.result-band__score { font-family: var(--mono); font-size: .82rem; color: var(--ink-faint); letter-spacing: .05em; }
.result-band[data-level="1"] { border-left-color: var(--bar-1); }
.result-band[data-level="2"] { border-left-color: var(--bar-2); }
.result-band[data-level="3"] { border-left-color: var(--bar-3); }
.result-band[data-level="4"] { border-left-color: var(--bar-4); }
.result-band[data-level="5"] { border-left-color: var(--bar-5); }

.domain-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.domain-row { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.domain-row__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.domain-row__name { font-weight: 650; font-size: .98rem; }
.domain-row__val { font-family: var(--mono); font-size: .82rem; color: var(--ink-faint); white-space: nowrap; }
.domain-row__track { height: 8px; background: var(--paper-sunk); border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); }
.domain-row__fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.domain-row__note { font-size: .88rem; color: var(--ink-soft); margin: .5rem 0 0; }

/* --- Story cards --- */
.story {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper-raised); padding: 1.6rem 1.7rem; margin-bottom: 1.25rem;
}
.story blockquote { border-left-color: var(--accent); margin-bottom: .9rem; }
.story__meta { font-size: .82rem; color: var(--ink-faint); }
.story__meta span + span::before { content: " · "; }

/* Collapsible stories. Works without JS; open state is never persisted. */
.story > summary { cursor: pointer; list-style: none; display: block; }
.story > summary::-webkit-details-marker { display: none; }
.story > summary h3 { margin: 0 0 .55rem; }
.story__pull {
  margin: 0 0 .8rem; color: var(--ink-soft);
  border-left: 3px solid var(--accent); padding-left: .9rem;
}
.story__cue {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .86rem; font-weight: 650; color: var(--accent);
}
.story__cue::after {
  content: ""; width: .45rem; height: .45rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px); transition: transform .18s ease;
}
.story[open] > summary .story__cue::after { transform: rotate(-135deg) translate(-1px, -1px); }
.story__cue--open { display: none; }
.story[open] > summary .story__cue--shut { display: none; }
.story[open] > summary .story__cue--open { display: inline; }
.story[open] > summary .story__pull { margin-bottom: .8rem; }
.story[open] > summary { margin-bottom: 1.1rem; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
.story > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.story__body > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .story__cue::after { transition: none; } }
.placeholder {
  border: 1px dashed var(--rule-strong); background: transparent;
  color: var(--ink-faint); text-align: center; padding: 2.5rem 1.5rem;
  border-radius: var(--radius); font-size: .95rem;
}

/* --- Resource list --- */
.res-group { margin: 2.5rem 0; }
.res-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.res-list > li {
  padding: 1rem 0; border-top: 1px solid var(--rule);
}
.res-list > li:last-child { border-bottom: 1px solid var(--rule); }
.res-list h3 { margin: 0 0 .25rem; font-size: 1.02rem; font-family: var(--sans); font-weight: 650; }
.res-list p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.res-list .res-where { font-size: .8rem; color: var(--ink-faint); letter-spacing: .02em; }

.reading { list-style: none; padding: 0; }
.reading > li { padding: .8rem 0; border-top: 1px solid var(--rule); font-size: .95rem; }
.reading > li:last-child { border-bottom: 1px solid var(--rule); }
.reading .title { font-style: italic; }
.reading .why { display: block; color: var(--ink-soft); font-size: .9rem; margin-top: .2rem; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-sunk);
  padding: 3rem 0 4rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.site-footer h2 { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .8rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--ink-faint); }
.footer-bottom p { margin: 0 0 .5rem; }

/* --- Utility --- */
.lede { font-size: 1.12rem; color: var(--ink-soft); line-height: 1.6; }
.small { font-size: .87rem; color: var(--ink-faint); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Print --- */
@media print {
  .topbar, .site-footer, .exit-btn, .icon-btn, .no-print, .q-progress { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { width: 100%; }
  a { color: #000; text-decoration: none; }
  .card, .note, .result-band, .story { border: 1px solid #999; box-shadow: none; }
  .story > summary { list-style: none; }
  .story__cue { display: none; }
  .domain-row__fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
