/* King Over All: page styles on top of scrollcraft.css (the engine stays untouched).
   Layout concept: a small book. A title page faces an arched photographic plate; chapters cut hard
   between stone paper and ink navy; Scripture sits in the margins like a study Bible.
   Single visual world on purpose (paper and ink are both part of the design), so no dark-mode remap. */

:root {
  /* palette */
  --paper:        #EEF0EE;  /* stone paper, cool so it never reads as cream */
  --paper-raised: #F8F9F8;
  --ink:          #15213A;  /* ink navy */
  --ink-soft:     #46526A;
  --navy:         #13203A;  /* chapter ground */
  --navy-raised:  #1B2A47;
  --on-navy:      #F2F1EC;
  --on-navy-soft: #B3BCCD;
  --red:          #C2362B;  /* crown red, the one hue: deep stop for paper */
  --red-deep:     #A82C22;
  --coral:        #FF8A73;  /* same hue, light stop for ink navy */
  --stone-line:   color-mix(in oklab, var(--ink) 16%, transparent);

  /* engine roles */
  --sc-canvas: var(--paper);
  --sc-surface: var(--paper-raised);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--red);
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sc-font-text: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sc-font-mono: "Figtree", "Segoe UI", Arial, sans-serif;
  --sc-shadow-color: 222 45% 12%;
  --sc-r-sm: 8px; --sc-r-md: 8px; --sc-r-lg: 8px;
  --r: 8px;

  /* page-only */
  --folio-w: 9.5rem;
  --margin-left: var(--sc-gutter);
  color-scheme: light;
}
@media (min-width: 1100px) {
  :root { --margin-left: calc(var(--folio-w) + 2.5rem); }
}

html { background: var(--paper); }
body { background: var(--paper); color: var(--ink); }

/* Grounds. Restate color wherever the tokens change (inherited computed values). */
.ground-paper { --sc-canvas: var(--paper); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--red); --sc-accent-ink: #FFFFFF; background: var(--paper); color: var(--ink); }
.ground-ink { --sc-canvas: var(--navy); --sc-surface: var(--navy-raised); --sc-ink: var(--on-navy);
  --sc-ink-soft: var(--on-navy-soft); --sc-accent: var(--coral); --sc-accent-ink: var(--navy);
  --stone-line: color-mix(in oklab, var(--on-navy) 18%, transparent);
  background: var(--navy); color: var(--on-navy); }

.sc-grain { opacity: 0.035; }
[data-sc-progress] { height: 3px; }

/* ------------------------------------------------------------------ type */
.disp { font-family: var(--sc-font-display); font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.02; text-wrap: balance; margin: 0; font-optical-sizing: auto; }
.disp em, .disp i { font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.8rem); line-height: 0.98; letter-spacing: -0.032em; }
.h2 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem); }
.h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.015em; }
.lede { font-family: var(--sc-font-display); font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.9rem);
  line-height: 1.32; letter-spacing: -0.012em; color: var(--sc-ink); margin: 0; max-width: 34ch; text-wrap: pretty; }
.body { font-size: clamp(1.05rem, 1rem + 0.2vw, 1.18rem); line-height: 1.65; color: var(--sc-ink-soft);
  max-width: 60ch; margin: 0; text-wrap: pretty; }
.body strong { color: var(--sc-ink); font-weight: 600; }
.smallcaps { font-family: var(--sc-font-text); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--sc-ink-soft); }
.lord { font-variant: small-caps; letter-spacing: 0.02em; }
.ref { font-family: var(--sc-font-text); font-style: normal; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }

/* the friendly mark under one word: a hand-drawn crown-red stroke */
.mark { position: relative; white-space: nowrap; color: var(--sc-accent); }
.mark::after { content: ""; position: absolute; left: -0.06em; right: -0.08em; bottom: -0.02em; height: 0.2em;
  background: no-repeat center / 100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M3 14 C 40 6, 90 4, 197 9' stroke='%23C2362B' stroke-width='5' fill='none' stroke-linecap='round'/></svg>");
  pointer-events: none; }

/* ------------------------------------------------------------------ links and buttons */
a { color: inherit; }
.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--sc-font-text); font-weight: 600;
  font-size: 1.02rem; line-height: 1; padding: 0.95rem 1.35rem; border-radius: var(--r); border: 1px solid transparent;
  background: var(--sc-accent); color: var(--sc-accent-ink); text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 0 color-mix(in oklab, #fff 22%, transparent) inset, var(--sc-e1);
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out); }
.btn:hover { background: color-mix(in oklab, var(--sc-accent) 86%, #000); }
.ground-ink .btn:hover { background: color-mix(in oklab, var(--sc-accent) 88%, #fff); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 1em; height: 1em; }
.btn--quiet { background: transparent; color: var(--sc-ink); border-color: var(--stone-line); box-shadow: none; }
.btn--quiet:hover { background: color-mix(in oklab, var(--sc-ink) 6%, transparent); }
.btn--sm { font-size: 0.92rem; padding: 0.7rem 1rem; }
.textlink { color: var(--sc-ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--sc-accent) 70%, transparent);
  text-decoration-thickness: 2px; text-underline-offset: 0.2em; font-weight: 600; }
.textlink:hover { text-decoration-color: var(--sc-accent); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ masthead (inside the frontispiece) */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; max-width: 88rem; margin-inline: auto; padding: 1.25rem var(--sc-gutter); position: relative; z-index: 5; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); white-space: nowrap;
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.wordmark svg { width: 1.7rem; height: 1.7rem; flex: none; }
.masthead nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.8rem); }
.masthead nav a:not(.btn) { font-weight: 500; font-size: 0.98rem; text-decoration: none; color: var(--ink-soft); }
.masthead nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }

/* ------------------------------------------------------------------ frontispiece */
.front { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: clip; }
.front__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: clamp(2rem, 5vw, 6rem); width: 100%; max-width: 88rem; margin-inline: auto;
  padding: clamp(0.5rem, 2vh, 2rem) var(--sc-gutter) clamp(1rem, 3vh, 2.5rem); }
.titlepage { display: flex; flex-direction: column; gap: 1.6rem; max-width: 40rem; }
.titlepage .sub { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.32rem); line-height: 1.55; color: var(--ink-soft); max-width: 33ch; margin: 0; text-wrap: pretty; }
.titlepage .actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.4rem; }
.titlepage .rule { width: 4.5rem; height: 2px; background: var(--red); border: 0; margin: 0; }

/* the plate: an arch window with a layered scene, plus the escape copy that lets the kids' feet over the sill */
.plate-col { display: flex; justify-content: center; }
.plate { position: relative; width: min(100%, calc((100svh - 9rem) * 0.7467 / 0.98)); aspect-ratio: 1344 / 1800;
  --arch: 76%; }
.plate::before { content: ""; position: absolute; left: -12px; right: -12px; top: -12px; bottom: calc(100% - var(--arch) - 12px);
  border: 1px solid var(--stone-line); border-radius: 999px 999px 12px 12px; pointer-events: none; }
.arch { position: absolute; left: 0; right: 0; top: 0; height: var(--arch); border-radius: 999px 999px 4px 4px;
  overflow: hidden; background: #c9cfd0; box-shadow: var(--sc-e3); isolation: isolate; }
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 18%, transparent), inset 0 -40px 60px -40px color-mix(in oklab, var(--navy) 35%, transparent); }
.layer { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none;
  transform-origin: 55% 72%; will-change: transform; }
.sill { position: absolute; left: -16px; right: -16px; top: var(--arch); height: 11px; z-index: 2;
  background: var(--paper-raised); border-top: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
  border-radius: 0 0 6px 6px; box-shadow: 0 7px 14px -8px color-mix(in oklab, var(--navy) 55%, transparent); }
.escape { position: absolute; inset: 0; z-index: 3; clip-path: inset(var(--arch) 0 0 0); pointer-events: none;
  filter: drop-shadow(0 10px 9px color-mix(in oklab, var(--navy) 30%, transparent)); }
.plate figcaption { position: absolute; left: 0; top: calc(var(--arch) + 26px); max-width: 30%;
  font-family: var(--sc-font-display); font-style: italic; font-size: 0.98rem; line-height: 1.35; color: var(--ink-soft); }

/* ------------------------------------------------------------------ chapters */
.chapter { position: relative; }
.wrap { width: 100%; max-width: 92rem; margin-inline: auto; padding-left: var(--margin-left); padding-right: var(--sc-gutter); }
.chapter-head { display: flex; align-items: baseline; gap: 1.1rem; margin: 0 0 2rem; }
.numeral { font-family: var(--sc-font-display); font-style: italic; font-weight: 400; color: var(--sc-accent);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.3rem); line-height: 1; min-width: 1.6em; }

/* I. Consider your ways */
.ch1 { padding-block: clamp(5rem, 11vw, 10rem) clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--stone-line); }
.ch1 .cols { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.ch1 .cols > * { min-width: 0; }
.ch1 .stack { display: flex; flex-direction: column; gap: 1.4rem; }
.verse { margin: clamp(2.5rem, 5vw, 4.5rem) 0; padding: 0; max-width: 54rem; }
.verse blockquote { margin: 0; font-family: var(--sc-font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.3rem); line-height: 1.14; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.verse blockquote::before { content: "\201C"; color: var(--red); margin-right: 0.04em; }
.verse blockquote::after { content: "\201D"; color: var(--red); }
.verse figcaption { margin-top: 1rem; }
.reveal-box { padding: 0.1em 0.2em 0.3em 0; }
.aside-note { border-left: 1px solid var(--stone-line); padding: 0.2rem 0 0.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; max-width: 22rem; }
.aside-note p { margin: 0; font-family: var(--sc-font-display); font-size: 1.12rem; line-height: 1.45; color: var(--ink); }
.closing-q { font-family: var(--sc-font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.25;
  letter-spacing: -0.015em; margin: 0; max-width: 30ch; text-wrap: balance; color: var(--ink); }

/* II. The peak: pinned scrub inside a framed plate, with the self-finishing sentence */
.peak .stage-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  align-items: center; gap: clamp(2rem, 4vw, 4.5rem); max-width: 100rem; margin-inline: auto;
  padding: clamp(4.5rem, 9vh, 6rem) var(--sc-gutter) clamp(3rem, 7vh, 5rem) var(--margin-left); }
.sentence { display: flex; flex-direction: column; gap: 1.8rem; min-width: 0; }
.sentence__line { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(2.2rem, 1.1rem + 2.7vw, 4.3rem);
  line-height: 1.04; letter-spacing: -0.03em; margin: 0; color: var(--on-navy); }
.sentence__fixed { display: block; }
.sentence__slot { display: block; position: relative; min-height: 1.1em; white-space: nowrap; }
.phrase { display: inline-block; font-style: italic; font-weight: 400; color: var(--coral); letter-spacing: -0.02em; }
.phrase.is-new { animation: phrase-in 360ms var(--sc-ease-out) both; }
@keyframes phrase-in { from { opacity: 0; transform: translate3d(0, 0.28em, 0); } to { opacity: 1; transform: none; } }
.ledger { display: flex; flex-wrap: wrap; gap: 0.35rem 0; margin: 0; padding: 0; list-style: none; max-width: 30rem;
  border-top: 1px solid var(--stone-line); padding-top: 1rem; }
.ledger li { font-family: var(--sc-font-text); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--on-navy-soft); opacity: 0.38; transition: opacity 240ms var(--sc-ease-out), color 240ms var(--sc-ease-out); }
.ledger li:not(:last-child)::after { content: "\00B7"; padding: 0 0.6em; opacity: 0.6; }
.ledger li.on { opacity: 1; }
.ledger li.now { color: var(--coral); }
.peak .authority { margin: 0; max-width: 30rem; }
.peak .authority p { margin: 0 0 0.4rem; font-family: var(--sc-font-display); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); line-height: 1.35; color: var(--on-navy); }
.frame-col { min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.frame { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: calc(100svh - 12rem); border-radius: var(--r);
  overflow: hidden; background: #2a3a55; box-shadow: var(--sc-e3); outline: 1px solid color-mix(in oklab, var(--on-navy) 18%, transparent); outline-offset: 10px; }
.frame .peak-end { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; z-index: 2; }
.frame-cap { font-family: var(--sc-font-display); font-style: italic; color: var(--on-navy-soft); font-size: 0.98rem; margin: 0.6rem 0 0; }

/* III. Study-Bible spread: argument in the main column, Scripture in the margin */
.ch3 { padding-block: clamp(5rem, 11vw, 10rem); }
.study { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 19rem); column-gap: clamp(2.5rem, 6vw, 6.5rem); row-gap: 1.6rem; align-items: start; }
.study > * { min-width: 0; }
.study .t { grid-column: 1; }
.study .n { grid-column: 2; }
.study .t--wide { grid-column: 1 / -1; }
.kuyper { margin: 1rem 0; padding: 2rem 0; border-top: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line); }
.kuyper blockquote { margin: 0; font-family: var(--sc-font-display); font-weight: 400; font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.7rem);
  line-height: 1.18; letter-spacing: -0.018em; color: var(--ink); text-wrap: balance; max-width: 30ch; }
.kuyper blockquote em { color: var(--red); }
.kuyper figcaption { margin-top: 1.1rem; }
.mnote { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 0.9rem; border-top: 1px solid var(--stone-line); }
.mnote p { margin: 0; font-family: var(--sc-font-display); font-size: 1.06rem; line-height: 1.45; color: var(--ink); }
.mnote small { font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); }

/* IV. The wall: lateral pan along five sections */
.wall .sc-stage { display: flex; align-items: center; }
.rail-window { width: 100%; }
@media (min-width: 1100px) {
  /* the folio lives in the left margin; let the rail fade out before it reaches it */
  .rail-window { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--folio-w) + 1rem), #000 calc(var(--folio-w) + 4rem));
    mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--folio-w) + 1rem), #000 calc(var(--folio-w) + 4rem)); }
}
.rail { gap: clamp(1.25rem, 2.2vw, 2.25rem); align-items: stretch; padding-left: var(--margin-left); padding-right: var(--sc-gutter); }
.rail > * { flex: none; }
.rail__lead { width: clamp(18rem, 30vw, 27rem); display: flex; flex-direction: column; justify-content: center; gap: 1.3rem; padding-right: 1rem; }
.stone { width: clamp(15.5rem, 21vw, 20.5rem); display: flex; flex-direction: column; gap: 0.8rem; }
.stone img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); box-shadow: var(--sc-e2); }
.stone h3 { margin: 0.4rem 0 0; }
.stone .over { margin: 0; font-weight: 600; color: var(--coral); font-size: 1rem; }
.stone .step { margin: 0; color: var(--on-navy); font-size: 1rem; line-height: 1.5; }
.stone .status { margin: auto 0 0; padding-top: 0.75rem; border-top: 1px solid var(--stone-line); font-size: 0.92rem; color: var(--on-navy-soft); line-height: 1.45; }
.stone .status a { color: var(--on-navy); }
.status .tag { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; display: block; margin-bottom: 0.2rem; }
.tag--ready { color: var(--coral); }
.tag--soon { color: var(--on-navy-soft); }
.rail__end { width: clamp(15rem, 20vw, 19rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.rail__end blockquote { margin: 0; font-family: var(--sc-font-display); font-style: italic; font-size: 1.55rem; line-height: 1.25; color: var(--on-navy); }
@media (prefers-reduced-motion: no-preference) {
  .wall .stone { opacity: clamp(0.55, calc(var(--sc-p, 0) * 9 - var(--i) + 1.6), 1);
    transform: translate3d(0, calc(clamp(0, calc(var(--i) - var(--sc-p, 0) * 9 - 0.6), 1) * 18px), 0); }
}

/* the last page: finish the sentence */
.finish { padding-block: clamp(5rem, 11vw, 10rem) 0; border-top: 1px solid var(--stone-line); }
.finish .wrap { display: flex; flex-direction: column; gap: 2.2rem; }
.blank-line { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(2.3rem, 1.3rem + 3.6vw, 5rem);
  line-height: 1.08; letter-spacing: -0.03em; margin: 0; color: var(--ink); text-wrap: balance; }
.blank { display: inline-block; min-width: 3.4em; border-bottom: 3px solid var(--red); padding: 0 0.08em; line-height: 1;
  font-style: italic; font-weight: 400; color: var(--red); text-align: left; }
.blank.is-new { animation: phrase-in 360ms var(--sc-ease-out) both; }
.choices { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: 0.9rem; padding: 0; }
.choice { font-family: var(--sc-font-display); font-size: 1.3rem; font-style: italic; padding: 0.6rem 1.15rem; border-radius: var(--r);
  border: 1px solid var(--stone-line); background: var(--paper-raised); color: var(--ink); cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out); }
.choice:hover { border-color: var(--red); }
.choice:active { transform: translateY(1px); }
.choice[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.step-panel { max-width: 44rem; min-height: 10rem; padding: 1.8rem; border-radius: var(--r); background: var(--paper-raised);
  box-shadow: var(--sc-e1), var(--sc-edge); border: 1px solid var(--stone-line); display: flex; flex-direction: column; gap: 1rem; }
.step-panel h3 { margin: 0; }
.step-panel p { margin: 0; }
.step-panel .hint { color: var(--ink-soft); font-size: 1.05rem; }

/* preview sign-up form */
.preview-form { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 14rem; min-width: 0; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--sc-ink-soft); }
.field input, .field select { width: 100%; font: inherit; font-size: 1rem; padding: 0.8rem 0.9rem; border-radius: var(--r);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 28%, transparent); background: var(--sc-surface); color: var(--sc-ink); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 1px; }
.form-note { flex-basis: 100%; font-size: 0.9rem; color: var(--sc-ink-soft); margin: 0.2rem 0 0; }
.form-status { flex-basis: 100%; margin: 0; font-weight: 600; color: var(--sc-ink); }
.form-status.is-error { color: var(--red-deep); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.preview-form { position: relative; }

/* colophon */
.colophon { margin-top: clamp(4rem, 9vw, 7rem); padding-block: 2.5rem 3rem; border-top: 1px solid var(--stone-line); }
.colophon .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem 3rem; }
.colophon p { margin: 0 0 0.5rem; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.colophon .motto { font-family: var(--sc-font-display); font-style: italic; font-size: 1.15rem; color: var(--ink); }
.colophon nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.4rem; }
.colophon nav a { font-size: 0.95rem; font-weight: 500; }
.email { font-weight: 600; color: var(--ink); user-select: all; }
.copy-btn { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 0.25rem 0.6rem; margin-left: 0.4rem; border-radius: 6px;
  border: 1px solid var(--stone-line); background: transparent; color: var(--ink-soft); cursor: pointer; }
.copy-btn:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ------------------------------------------------------------------ folio (desktop) and the phone bar */
.folio { position: fixed; left: 1.5rem; top: 50%; transform: translateY(-50%); width: var(--folio-w); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity 260ms var(--sc-ease-out); display: none; }
.folio.is-on { opacity: 1; pointer-events: auto; }
.folio ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.folio a { display: grid; grid-template-columns: 2.1rem 1fr; align-items: baseline; text-decoration: none; color: var(--ink-soft); opacity: 0.6;
  transition: opacity 200ms var(--sc-ease-out), color 200ms var(--sc-ease-out); }
.folio a .n { font-family: var(--sc-font-display); font-style: italic; font-size: 1.05rem; }
.folio a .t { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3;
  opacity: 0; transform: translateX(-4px); transition: opacity 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out); }
.folio a[aria-current="true"] { opacity: 1; color: var(--ink); }
.folio a[aria-current="true"] .n { color: var(--red); }
.folio a[aria-current="true"] .t, .folio:hover a .t, .folio:focus-within a .t { opacity: 1; transform: none; }
.folio:hover a, .folio:focus-within a { opacity: 1; }
.folio[data-ground="ink"] a { color: var(--on-navy-soft); }
.folio[data-ground="ink"] a[aria-current="true"] { color: var(--on-navy); }
.folio[data-ground="ink"] a[aria-current="true"] .n { color: var(--coral); }
@media (min-width: 1100px) { .folio { display: block; } }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.65rem max(16px, env(safe-area-inset-right, 0px)) calc(0.65rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in oklab, var(--paper-raised) 94%, transparent); border-top: 1px solid var(--stone-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform 280ms var(--sc-ease-out); }
.mbar.is-on { transform: none; }
.mbar .where { display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.mbar .where .n { font-family: var(--sc-font-display); font-style: italic; color: var(--red); font-size: 0.95rem; line-height: 1.1; }
.mbar .where .t { font-size: 0.9rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .mbar { display: flex; } }

/* ------------------------------------------------------------------ inner pages (your kids, about) */
.page-top { padding-bottom: clamp(3rem, 7vw, 6rem); }
.page-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center;
  max-width: 88rem; margin-inline: auto; padding: clamp(1rem, 3vw, 3rem) var(--sc-gutter) 0; }
.page-hero .titlepage { gap: 1.4rem; }
.mini-arch { position: relative; width: min(100%, 30rem); justify-self: center; }
.panel[hidden] { display: none; }
.arch-frame { position: relative; }
.arch-frame::before { content: ""; position: absolute; inset: -11px; border: 1px solid var(--stone-line); border-radius: 999px 999px 12px 12px; pointer-events: none; }
.mini-arch img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px var(--r) var(--r); box-shadow: var(--sc-e3); }
.mini-arch figcaption { margin-top: 1.4rem; font-family: var(--sc-font-display); font-style: italic; color: var(--ink-soft); font-size: 0.98rem; }
.article { max-width: 88rem; margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) var(--sc-gutter); border-top: 1px solid var(--stone-line); }
.article .study { margin-top: 2.5rem; }
.article h2 { margin-bottom: 1.2rem; }
.vlist { display: flex; flex-direction: column; gap: 2.6rem; margin: 0; padding: 0; list-style: none; }
.vlist li { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 19rem); column-gap: clamp(2.5rem, 6vw, 6.5rem); row-gap: 0.8rem; align-items: start; }
.vlist li > * { min-width: 0; }
.vlist blockquote { margin: 0; font-family: var(--sc-font-display); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.22; color: var(--ink); letter-spacing: -0.012em; }
.vlist .ref { display: block; margin-top: 0.6rem; }
.paths { display: flex; flex-direction: column; gap: 1.6rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tab { font-family: var(--sc-font-text); font-weight: 600; font-size: 1rem; padding: 0.8rem 1.15rem; border-radius: var(--r);
  border: 1px solid var(--stone-line); background: var(--paper-raised); color: var(--ink); cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out); }
.tab:hover { border-color: var(--red); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r); background: var(--paper-raised); border: 1px solid var(--stone-line);
  box-shadow: var(--sc-e1); display: flex; flex-direction: column; gap: 1.1rem; max-width: 52rem; }
.panel h3 { margin: 0; }
.panel ol, .panel ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; color: var(--ink-soft); line-height: 1.6; }
.panel li::marker { color: var(--red); font-weight: 700; }
.panel li strong { color: var(--ink); }
.statenote { border-left: 1px solid var(--red); padding: 0.3rem 0 0.3rem 1.1rem; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; margin: 0; }
.statenote b { color: var(--ink); }
.signup { max-width: 52rem; display: flex; flex-direction: column; gap: 1.2rem; }
.believe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 5vw, 5rem); margin-top: 2.5rem; }
.believe > div { min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.believe h3 { margin: 0; }
.believe ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; color: var(--ink-soft); line-height: 1.6; }
.believe li::marker { color: var(--red); }
.foot-plain { max-width: 88rem; margin-inline: auto; padding-inline: var(--sc-gutter); }

/* ------------------------------------------------------------------ phone */
@media (max-width: 860px) {
  :root { --margin-left: var(--sc-gutter); }
  body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); }
  .masthead { padding-block: 0.9rem; }
  .masthead nav .hide-sm { display: none; }
  .masthead nav { gap: 0.9rem; }
  .wordmark { font-size: 1.12rem; gap: 0.45rem; }
  .wordmark svg { width: 1.4rem; height: 1.4rem; }
  .front { min-height: auto; }
  .front__grid { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 0.2rem; }
  .plate-col { order: -1; }
  .plate { width: min(74vw, 20rem); --arch: 76%; margin-bottom: -15%; }
  .plate figcaption { display: none; }
  .titlepage { gap: 1.1rem; }
  .h1 { font-size: clamp(2.3rem, 1.4rem + 4.6vw, 3.2rem); }
  .titlepage .rule { display: none; }
  .ch1 .cols, .study, .vlist li, .page-hero, .believe, .colophon .grid { grid-template-columns: minmax(0, 1fr); }
  .study .n, .vlist .n { grid-column: 1; margin: -0.4rem 0 0.8rem 1rem; padding-left: 1rem; border-top: 0; border-left: 1px solid var(--stone-line); }
  .peak .stage-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 1.4rem; padding-top: 4.2rem; padding-bottom: 5.4rem; }
  .peak .frame-col { order: -1; }
  .frame { aspect-ratio: 1 / 1; max-height: 44svh; width: auto; outline-offset: 6px; }
  .frame-cap { display: none; }
  .sentence { gap: 1rem; }
  .sentence__line { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); }
  .ledger { padding-top: 0.7rem; }
  .ledger li { font-size: 0.72rem; }
  .peak .authority p { font-size: 1.05rem; }
  .rail { padding-left: var(--sc-gutter); }
  .rail__lead { width: min(78vw, 20rem); }
  .stone { width: min(70vw, 16.5rem); }
  .stone img { aspect-ratio: 4 / 3; }
  .rail__end { width: min(70vw, 16rem); }
  .mini-arch { width: min(72vw, 19rem); }
  .page-hero .mini-arch { order: -1; }
}
@media (max-width: 380px) {
  .masthead nav a:not(.btn) { display: none; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .frame { max-height: 36svh; }
}

/* ------------------------------------------------------------------ reduced motion: fewer and gentler, nothing hidden */
@media (prefers-reduced-motion: reduce) {
  .layer { transform: none !important; }
  .phrase.is-new, .blank.is-new { animation: none; }
  .peak.sc-act--pinned { height: auto !important; }
  .peak .sc-stage { position: relative; height: auto; min-height: 100svh; }
  .frame .peak-end { display: block; }
  /* the wall is a sideways scroll region here (engine floor); drop its long pinned hold too */
  .wall.sc-act--pinned { height: auto !important; }
  .wall .sc-stage { position: relative; height: auto; min-height: 0; padding-block: clamp(4rem, 9vh, 6rem); }
  .rail-window { -webkit-mask-image: none !important; mask-image: none !important; width: max-content; }
  .peak [data-sc-cue] { opacity: 1 !important; transform: none !important; }
  .ledger li { opacity: 1; }
  .mbar { transition: none; }
}
