/* Trust Signals — styles
   Palette: slate #1C3540 · ivory #F2EADB · copper #C17A5D · seafoam #70AE9F
   Text-safe derivatives are defined below and contrast-checked (see README). */

:root {
  --slate: #1C3540;
  --slate-2: #234452;
  --slate-3: #2E5566;
  --ivory: #F2EADB;
  --paper: #FBF7EF;
  --copper: #C17A5D;          /* decorative, large text on slate */
  --copper-ink: #8A4529;      /* text on ivory/paper */
  --copper-light: #E7B49B;    /* text on slate */
  --sea: #70AE9F;             /* decorative; text on slate */
  --sea-light: #A3D2C6;       /* text on slate-2 panels */
  --sea-ink: #2B6457;         /* text on ivory/paper */
  --sea-wash: #DCEBE5;
  --ink: #1D2B31;
  --muted: #4A5A60;
  --line: #CBBFA9;
  --on-dark: #F2EADB;
  --on-dark-muted: #C8D3D4;
  --focus: #E7B49B;
  --focus-dark: #8A4529;

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

  --measure: 68ch;
  --radius: 6px;
  --shadow: 0 1px 0 rgba(28,53,64,.06), 0 10px 28px -14px rgba(28,53,64,.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.18rem);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--sea-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus-dark); outline-offset: 3px; border-radius: 3px; }
.hero :focus-visible, .casebook :focus-visible, .open-q :focus-visible, .footer :focus-visible, .topbar :focus-visible { outline-color: var(--focus); }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); margin: 2rem 0 .6rem; }
h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 .75rem; }
em { font-style: italic; }
p { margin: 0 0 1.1rem; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.wrap.prose { width: min(100% - 2rem, var(--measure)); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: .7rem 1rem; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28,53,64,.96);
  border-bottom: 1px solid rgba(112,174,159,.35);
  font-family: var(--sans);
}
.topbar__inner {
  width: min(100% - 2rem, 72rem); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem;
  padding: .45rem 0;
}
.back { color: var(--on-dark); font-weight: 600; font-size: .95rem; text-decoration: none; padding: .5rem 0; display: inline-block; min-height: 44px; line-height: 28px; }
.back:hover { color: var(--copper-light); text-decoration: underline; }
.topnav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .2rem; }
.topnav a {
  display: inline-block; color: var(--on-dark-muted); text-decoration: none; font-size: .9rem;
  padding: .55rem .6rem; min-height: 44px; line-height: 28px; border-radius: 4px;
}
.topnav a:hover { color: var(--on-dark); background: var(--slate-2); }
.topnav__mail { color: var(--copper-light) !important; font-weight: 600; }
@media (max-width: 560px) {
  .topbar { position: static; }
  .topnav a { padding: .5rem .45rem; font-size: .85rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px; padding: .7rem 1.2rem; border-radius: 999px;
  font-family: var(--sans); font-size: .98rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--copper-ink); color: #FFF8F1; }
.btn--primary:hover { background: #723822; color: #FFF8F1; }
.btn--ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: var(--ivory); }
.btn--warn { background: transparent; color: var(--copper-ink); border-color: var(--copper-ink); }
.btn--warn:hover { background: var(--copper-ink); color: #FFF8F1; }
.hero .btn--primary, .open-q .btn--primary, .footer .btn--primary { background: var(--copper-light); color: var(--slate); }
.hero .btn--primary:hover, .open-q .btn--primary:hover, .footer .btn--primary:hover { background: var(--ivory); color: var(--slate); }
.hero .btn--ghost, .btn--onDark { color: var(--on-dark); border-color: var(--sea); }
.hero .btn--ghost:hover, .btn--onDark:hover { background: var(--sea); color: var(--slate); }
.btn:active { transform: translateY(1px); }
[data-needs-js] { display: none !important; }
.js [data-needs-js] { display: inline-flex !important; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; vertical-align: .1em;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .45rem; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.5;
}
.tag--evidence { color: #1F5A4D; background: #E3F0EB; }
.tag--frame { color: #24465A; background: #E4ECF0; }
.tag--interp { color: #7D3F24; background: #F6E6DC; }
.tag--hypo { color: #5E4A12; background: #F4ECCF; }
.tag--illus { color: #4A4E57; background: #ECEAE4; }
.tag--fiction { color: #6A3550; background: #F3E3EB; }
.tag--onDark { color: var(--on-dark); background: transparent; border-color: var(--sea); }

/* ---------- Hero ---------- */
.hero { background: var(--slate); color: var(--on-dark); position: relative; padding: clamp(1.5rem, 4vw, 3rem) 0 0; }
.hero__inner { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.crumbs { font-family: var(--sans); font-size: .85rem; color: var(--on-dark-muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--on-dark-muted); }
.crumbs a:hover { color: var(--copper-light); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); margin-bottom: .8rem; }
.hero h1 { font-size: clamp(2.8rem, 1.6rem + 6vw, 5.6rem); line-height: 1; margin: 0 0 1.4rem; font-weight: 500; letter-spacing: -0.025em; }
.hero h1 em { color: var(--copper-light); }
.lede { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.55; max-width: 38ch; }
.lede strong { color: var(--copper-light); font-weight: 600; }
.hero__benefit { color: var(--on-dark-muted); max-width: 46ch; font-size: 1.02rem; border-left: 2px solid var(--sea); padding-left: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 0; }
.hero__art { margin: 0; }
.figcap { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .6rem; line-height: 1.5; }
.hero .figcap { color: var(--on-dark-muted); }

.bridge-svg { width: 100%; display: block; }
.bridge-svg .water { fill: var(--slate-3); }
.bridge-svg .water--2 { fill: var(--slate-2); }
.bridge-svg .pier { fill: #3A6170; stroke: var(--sea); stroke-width: 1.5; }
.hatch-line { stroke: var(--sea); stroke-width: 1; opacity: .4; }
.bridge-svg .arch { fill: none; stroke: var(--copper-light); stroke-width: 3; stroke-linecap: round; }
.bridge-svg .deck { stroke: var(--ivory); stroke-width: 4; stroke-linecap: round; }
.bridge-svg .hangers line { stroke: var(--copper-light); stroke-width: 1.4; opacity: .85; }
.svg-label { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--on-dark); letter-spacing: .02em; }
.svg-label--deck { fill: var(--copper-light); font-size: 15px; font-family: var(--serif); font-style: italic; }
.svg-pencil { font-family: var(--serif); font-style: italic; font-size: 13px; fill: var(--sea); }
.bridge-svg .pencil { fill: none; stroke: var(--sea); stroke-width: 1.2; stroke-dasharray: 3 3; }

.disclosure {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 1.4rem 1.6rem;
  background: var(--slate-2); border: 1px solid rgba(112,174,159,.35); border-radius: var(--radius);
  font-family: var(--sans); font-size: .95rem; line-height: 1.55;
}
.disclosure__h { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-light); margin: 0 0 .5rem; font-weight: 600; }
.disclosure ul { margin: 0; padding-left: 1.1rem; }
.disclosure li { margin-bottom: .35rem; }

.seam { height: 64px; background: linear-gradient(180deg, var(--slate) 0%, #2E5A5E 45%, var(--sea-wash) 85%, var(--ivory) 100%); }
.seam--top { height: 56px; background: linear-gradient(180deg, var(--ivory) 0%, var(--sea-wash) 25%, #3A6B6A 70%, var(--slate) 100%); }
.seam--bottom { height: 56px; background: linear-gradient(180deg, var(--slate) 0%, #3A6B6A 30%, var(--sea-wash) 75%, var(--paper) 100%); }

/* ---------- TOC + key ---------- */
.toc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: clamp(1.5rem, 4vw, 3rem); }
.toc, .key {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; box-shadow: var(--shadow); font-family: var(--sans); font-size: .95rem;
}
.toc__h { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink); margin: 0 0 .8rem; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.4rem; columns: 1; }
.toc li { margin: .15rem 0; }
.toc a { display: inline-block; padding: .3rem 0; min-height: 32px; }
.key__list { margin: 0; display: grid; gap: .55rem; }
.key__list div { display: grid; grid-template-columns: 8.2rem 1fr; gap: .6rem; align-items: baseline; }
.key__list dd { margin: 0; color: var(--muted); line-height: 1.45; }

/* ---------- Chapters ---------- */
.chapter { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.chapter--open { padding-top: clamp(3rem, 7vw, 5rem); }
.chapter__num { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink); margin-bottom: .6rem; }
.chapter__num--light { color: var(--sea); }
.chapter h2 em { color: var(--copper-ink); }
.dropcap::first-letter { font-size: 3.4em; float: left; line-height: .85; padding: .08em .1em 0 0; color: var(--copper-ink); }

.note {
  margin: 1.6rem 0; padding: 1.1rem 1.3rem 1.1rem 1.3rem; background: var(--paper);
  border: 1px solid var(--line); border-left: 4px solid var(--sea-ink); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .97em; box-shadow: var(--shadow);
}
.note p { margin: .55rem 0 0; }
.note--frame { border-left-color: #24465A; }
.note--evidence { border-left-color: var(--sea-ink); }
.note--hypo { border-left-color: #8B6D19; }
.cite { font-family: var(--mono); font-size: .8em; white-space: nowrap; }

.pull { margin: 2.2rem 0 .5rem; padding: 0; border: 0; }
.pull p {
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); line-height: 1.3; font-style: italic; color: var(--slate);
  margin: 0; padding: 1rem 0 1rem 1.4rem; border-left: 3px solid var(--copper);
}
.signals { padding-left: 1.2rem; }
.signals li { margin-bottom: .7rem; }
.signals strong { color: var(--copper-ink); }
.aside-line { font-size: .95em; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.sub { margin-top: 2.4rem; }

/* figures */
.figure { margin: 2rem 0; }
.trustmap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); font-family: var(--sans); font-size: .93rem; box-shadow: var(--shadow); }
.trustmap__row { display: grid; grid-template-columns: 9rem 1fr 9.5rem; gap: .8rem; padding: .7rem 1rem; border-top: 1px solid #E5DCCB; align-items: center; }
.trustmap__row--head { border-top: 0; background: var(--slate); color: var(--on-dark); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.trustmap__row span:first-child { font-weight: 600; }
.level { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid currentColor; }
.level--hi { color: #1F5A4D; background: #E3F0EB; }
.level--lo { color: #7D3F24; background: #F6E6DC; }
.level--un { color: #4A4E57; background: #ECEAE4; border-style: dashed; }

.ladder-svg, .strip-svg { width: 100%; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; box-shadow: var(--shadow); }
.step { stroke: var(--slate); stroke-width: 1.2; }
.step--1 { fill: #DCEBE5; } .step--2 { fill: #E7EFE6; } .step--3 { fill: #F3E7DB; } .step--4 { fill: #EED8CC; }
.step-t { font-family: var(--sans); font-weight: 700; font-size: 15px; fill: var(--ink); }
.step-s { font-family: var(--serif); font-style: italic; font-size: 13px; fill: var(--muted); }
.ladder-svg .svg-pencil, .strip-svg .svg-pencil { fill: var(--copper-ink); }
.strip-svg .svg-label { fill: var(--ink); font-size: 18px; font-family: var(--serif); font-style: italic; }
.dot-kept { fill: var(--sea-ink); }
.dot-miss { fill: var(--paper); stroke: var(--copper-ink); stroke-width: 2.5; }
.flag { font-size: 16px; fill: var(--copper-ink); font-family: var(--sans); }
.legend { list-style: none; padding: 0; margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: var(--sans); font-size: .88rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.legend__dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.legend__dot--kept { background: var(--sea-ink); }
.legend__dot--miss { border: 2.5px solid var(--copper-ink); background: var(--paper); }
.legend__flag { color: var(--copper-ink); }

/* drill */
.drill { margin: 2.4rem 0 0; padding: 1.4rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.drill h3 { margin-top: 0; }
.drill__intro { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.drill__list { list-style: none; counter-reset: d; padding: 0; margin: 0; }
.drill__item { counter-increment: d; padding: .9rem 0; border-top: 1px dashed var(--line); }
.drill__q { margin: 0 0 .45rem; font-style: italic; }
.drill__q::before { content: counter(d) ". "; font-style: normal; font-family: var(--mono); font-size: .85em; color: var(--copper-ink); }
.drill__ans summary { font-family: var(--sans); font-size: .9rem; color: var(--sea-ink); cursor: pointer; padding: .3rem 0; min-height: 32px; }
.drill__ans p { margin: .3rem 0 0; font-size: .95em; }
.drill__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .3rem; }
.chip {
  font-family: var(--sans); font-size: .9rem; font-weight: 600; min-height: 44px; padding: .45rem 1rem;
  border-radius: 999px; border: 2px solid var(--slate); background: transparent; color: var(--slate); cursor: pointer;
}
.chip:hover { background: var(--sea-wash); }
.chip[aria-pressed="true"] { background: var(--slate); color: var(--ivory); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.drill__you { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: .2rem 0 0; }
.js .drill__ans > summary { display: none; }
.drill__status { font-family: var(--sans); font-size: .9rem; color: var(--sea-ink); margin: .8rem 0 0; min-height: 1.4em; }

.fourway { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.fourway div { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--copper); border-radius: var(--radius); padding: 1rem 1.1rem; }
.fourway dt { font-family: var(--sans); font-weight: 700; font-size: .95rem; color: var(--copper-ink); margin-bottom: .3rem; }
.fourway dd { margin: 0; font-size: .95em; line-height: 1.5; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.7rem; position: relative; margin-bottom: .5rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 2px solid var(--sea-ink); border-bottom: 2px solid var(--sea-ink); transform: rotate(-45deg); }

.testcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.5rem 0; box-shadow: var(--shadow); transform: rotate(-.4deg); }
.testcard__h { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink); margin: 0 0 .5rem; }
.testcard ol { margin: 0; padding-left: 1.3rem; }

/* ---------- Casebook ---------- */
.casebook { background: var(--slate); color: var(--on-dark); }
.casebook > .wrap { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.casebook h2 { color: var(--on-dark); }
.casebook__intro { max-width: 62ch; color: var(--on-dark-muted); }
.casebook__after { max-width: 62ch; color: var(--on-dark-muted); font-style: italic; margin-top: 1.5rem; }

.case-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.6rem 0 1rem; padding: 0; list-style: none; }
.case-tab {
  font-family: var(--sans); font-size: .9rem; font-weight: 600; min-height: 44px; padding: .5rem .95rem;
  border-radius: 999px; border: 1.5px solid rgba(112,174,159,.6); background: transparent; color: var(--on-dark-muted); cursor: pointer;
}
.case-tab:hover { color: var(--on-dark); border-color: var(--sea); }
.case-tab[aria-selected="true"] { background: var(--ivory); color: var(--slate); border-color: var(--ivory); }
.case-tab__n { font-family: var(--mono); font-size: .8em; opacity: .85; margin-right: .3rem; }

.case {
  background: var(--paper); color: var(--ink); border-radius: 8px; padding: clamp(1.2rem, 3vw, 2.2rem);
  margin: 1.5rem 0; box-shadow: 0 18px 40px -20px rgba(0,0,0,.55); position: relative;
}
.case::before { content: ""; position: absolute; inset: 10px; border: 1px dashed #DDD0BB; border-radius: 5px; pointer-events: none; }
.js .case { margin-top: 0; }
.case__head h3 { margin: .2rem 0 1.2rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.case__tag { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-ink); margin: 0; }
.case__step { position: relative; padding: 1.1rem 0 .3rem; border-top: 1px solid #E5DCCB; }
.case__step h4 { color: var(--slate); }
.obs { margin: 0 0 1rem; padding-left: 1.2rem; }
.obs li { margin-bottom: .35rem; }
.obs li::marker { content: "◉  "; color: var(--sea-ink); font-size: .8em; }
.leap { background: #F6E6DC; border-radius: var(--radius); padding: .75rem 1rem; font-style: italic; margin-bottom: 1rem; }
.leap__k { display: block; font-family: var(--mono); font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-ink); margin-bottom: .2rem; }
.readings { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.readings li { padding: .7rem .9rem; border: 1px solid #E5DCCB; border-radius: var(--radius); background: #FFFDF8; line-height: 1.5; }
.readings li.is-chosen { border: 2px solid var(--sea-ink); background: var(--sea-wash); }
.reading-pick {
  width: 100%; text-align: left; display: block; font: inherit; color: inherit; line-height: 1.5;
  padding: .75rem .95rem; border: 1.5px solid #D9CCB6; border-radius: var(--radius); background: #FFFDF8; cursor: pointer; min-height: 44px;
}
.reading-pick:hover { border-color: var(--sea-ink); background: #F2F7F4; }
.lean-note { font-family: var(--sans); font-size: .92rem; color: var(--sea-ink); margin: .2rem 0 .8rem; }
.lean-skip { font-family: var(--sans); font-size: .9rem; background: none; border: 0; color: var(--sea-ink); text-decoration: underline; cursor: pointer; padding: .5rem 0; min-height: 44px; }
.unknown { font-size: .95em; color: var(--muted); }

.resp { border: 1px solid #DCCFB9; border-radius: var(--radius); margin-bottom: .6rem; background: #FFFDF8; }
.resp[open] { border-color: var(--sea-ink); box-shadow: 0 0 0 1px var(--sea-ink); }
.resp summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.2rem 1fr 1.4rem; gap: .2rem .8rem;
  padding: .85rem 1rem; min-height: 44px; align-items: start;
}
.resp summary::-webkit-details-marker { display: none; }
.resp summary::after { content: "+"; grid-column: 3; grid-row: 1; font-family: var(--sans); font-size: 1.3rem; line-height: 1; color: var(--copper-ink); justify-self: end; }
.resp[open] summary::after { content: "–"; }
.resp__k { grid-row: 1 / span 2; font-family: var(--mono); font-weight: 700; color: var(--paper); background: var(--slate); border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center; font-size: .85rem; }
.resp__t { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--ink); }
.resp__q { grid-column: 2 / span 2; font-style: italic; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.resp__dl { margin: 0; padding: 0 1rem 1rem 3.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
.resp__dl dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-ink); }
.resp__dl dd { margin: .15rem 0 0; font-size: .95rem; line-height: 1.5; }
.next { margin: 0 1rem 1rem 3.4rem; padding: .7rem .9rem; background: #F3EEE4; border-left: 3px solid var(--sea-ink); border-radius: 0 var(--radius) var(--radius) 0; font-size: .94rem; }
.case-progress { font-family: var(--sans); font-size: .9rem; color: var(--sea-ink); margin: .6rem 0 0; min-height: 1.4em; }
.case-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; border-top: 1px solid #E5DCCB; margin-top: 1rem; padding-top: 1rem; }
.case-tools .btn { font-size: .9rem; min-height: 44px; padding: .55rem 1rem; }
.case-nav { display: flex; gap: .5rem; }
[hidden] { display: none !important; }

/* ---------- Worksheet ---------- */
.worksheet { background: var(--paper); padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.worksheet h2 { margin-bottom: .6rem; }
.worksheet__intro { max-width: 62ch; }
.ws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
.ws__card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; position: relative; }
.ws__card--1 { border-top: 4px solid var(--sea-ink); }
.ws__card--2 { border-top: 4px solid var(--copper); }
.ws__card--3 { border-top: 4px solid var(--slate); }
.ws label { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: .5rem; }
.ws__n { font-family: var(--mono); width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--slate); color: var(--ivory); display: grid; place-items: center; font-size: .8rem; }
.ws__hint { font-family: var(--sans); font-size: .87rem; color: var(--muted); margin: .4rem 0 .6rem; line-height: 1.45; }
.ws textarea {
  width: 100%; flex: 1; min-height: 11rem; resize: vertical; font: inherit; font-size: 1rem; line-height: 1.55; color: var(--ink);
  padding: .75rem .85rem; border: 1.5px solid #B9AC95; border-radius: 4px;
  background-color: #FFFDF8;
  box-shadow: inset 0 1px 3px rgba(28,53,64,.08);
}
.ws textarea:focus-visible { outline: 3px solid var(--focus-dark); outline-offset: 1px; border-color: var(--slate); }
.ws__check { font-family: var(--sans); font-size: .87rem; color: var(--copper-ink); margin: .55rem 0 0; min-height: 1.3em; line-height: 1.45; }
.ws__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .7rem; }
.ws__status { grid-column: 1 / -1; font-family: var(--sans); font-size: .92rem; color: var(--sea-ink); margin: 0; min-height: 1.4em; }
.ws__privacy { grid-column: 1 / -1; font-family: var(--sans); font-size: .88rem; color: var(--muted); max-width: 70ch; margin: 0; }

/* ---------- Objections ---------- */
.objection { margin: 1.8rem 0; padding-left: 1.2rem; border-left: 3px solid var(--copper); }
.objection h3 { margin-top: 0; }
.myths { display: grid; gap: .7rem; margin: 1rem 0 0; }
.myths div { display: grid; grid-template-columns: 15rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px dashed var(--line); }
.myths dt { font-style: italic; color: var(--copper-ink); }
.myths dd { margin: 0; }

/* ---------- Open question ---------- */
.open-q { background: var(--slate); color: var(--on-dark); padding: clamp(3rem, 7vw, 5rem) 0; }
.open-q h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.3rem); font-weight: 500; line-height: 1.3; }
.open-q h2 em { color: var(--copper-light); }
.open-q p { color: var(--on-dark-muted); }

/* ---------- Sources ---------- */
.sources { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.sources__intro { max-width: 66ch; }
.srclist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.srclist li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 4rem; position: relative; font-size: .97rem; }
.srclist li:target { box-shadow: 0 0 0 3px var(--sea-ink); }
.srclist__k { position: absolute; left: 1.1rem; top: 1.1rem; font-family: var(--mono); font-weight: 700; color: var(--copper-ink); }
.srclist__cite { margin-bottom: .55rem; }
.srclist p:last-child { margin: 0; color: var(--muted); font-family: var(--sans); font-size: .9rem; line-height: 1.5; }
.srclist a { word-break: break-word; }
.sources__note { font-size: .95rem; color: var(--muted); }

/* ---------- Related ---------- */
.related { padding: 0 0 clamp(2.5rem, 6vw, 4.5rem); }
.relgrid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.relcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.relcard:hover { transform: translateY(-2px); }
.relcard a { text-decoration: none; display: block; margin-bottom: .5rem; }
.relcard__t { display: block; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.relcard a:hover .relcard__t { color: var(--copper-ink); text-decoration: underline; }
.relcard__u { display: block; font-family: var(--mono); font-size: .78rem; color: var(--sea-ink); word-break: break-word; }
.relcard p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--slate); color: var(--on-dark-muted); padding: 2.5rem 0; font-family: var(--sans); font-size: .93rem; }
.footer a { color: var(--copper-light); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem 2rem; align-items: start; }
.footer__title { font-family: var(--serif); font-size: 1.4rem; color: var(--on-dark); margin: 0 0 .4rem; }
.footer__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }
.footer__actions .btn { text-decoration: none; }
.footer__actions .btn--primary { color: var(--slate); }
.footer__actions .btn--onDark { color: var(--on-dark); }
.footer__small { grid-column: 1 / -1; margin: 0; font-size: .85rem; border-top: 1px solid var(--slate-3); padding-top: 1rem; }

/* ---------- Reveal (JS only) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.draw { stroke-dasharray: 320; stroke-dashoffset: 0; }
.js .draw { stroke-dashoffset: 320; animation: draw 1.8s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 30rem; }
  .ws { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .toc-wrap { grid-template-columns: 1fr; }
  .disclosure { grid-template-columns: 1fr; padding: 1.1rem 1.1rem; }
  .fourway { grid-template-columns: 1fr; }
  .resp__dl { grid-template-columns: 1fr; padding-left: 1rem; }
  .next { margin-left: 1rem; }
  .myths div { grid-template-columns: 1fr; gap: .2rem; }
  .trustmap__row { grid-template-columns: 1fr; gap: .25rem; }
  .trustmap__row--head { display: none; }
  .key__list div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 420px) {
  .resp summary { grid-template-columns: 2rem 1fr 1.2rem; gap: .2rem .6rem; padding: .8rem .8rem; }
  .srclist li { padding-left: 1.1rem; padding-top: 2.4rem; }
  .case::before { inset: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw { stroke-dashoffset: 0; animation: none; }
  .testcard { transform: none; }
}

@media print {
  .topbar, .hero__actions, .case-tabs, .case-tools, .ws__actions, .seam, .footer__actions { display: none !important; }
  body { background: #fff; }
  .hero, .casebook, .open-q, .footer { background: #fff; color: #000; }
  .js .case[hidden] { display: block !important; }
  .resp { break-inside: avoid; }
}

/* 404 */
.notfound { min-height: 72vh; padding-bottom: 3rem; display: flex; align-items: center; }
.notfound .lede { max-width: 46ch; }

/* Enhanced readings: the button is the card */
.js .readings li { padding: 0; border: 0; background: none; }
.js .readings li.is-chosen { border: 0; background: none; }
.reading-pick[aria-pressed="true"] { border: 2px solid var(--sea-ink); background: var(--sea-wash); }
.reading-pick[aria-pressed="true"]::after { content: "  ← your first read"; font-family: var(--sans); font-size: .82rem; color: var(--sea-ink); font-weight: 600; }
