/* Veritas, concept "The Study" (website/2026-10-28-site-ideas-and-inventory.md, section 3):
   walnut and brass bands like the studio wall, cream reading pages for long text.
   Colours: logo red #AA1C20 is a measured value from that file.
   BRASS (Geol 2026-10-28: Harris likes it; the lights, the emblem and the coming handrail are brass): the three tones are
   sampled from the emblem in production/checks-2026-10-27/1057-logo-clean-5min-proof.jpg (layout review section 6):
   body #AB9876, upper quartile #C8B485, highlights #E4CF9C, a pale champagne, not the old orange #B58A2C. Rules, frames and
   bands use a brass TEXTURE (assets/img/brass-tile.jpg and brass-rule.jpg: ambientCG Metal032, CC0, graded to those three
   tones; see README); the flat hex is the fallback. TEXT is always a solid colour chosen for contrast (ratios in README):
   #E3C77E on dark, #7A5A16 / #6B4E12 on cream. */

@font-face{font-family:"EB Garamond";src:url(assets/fonts/eb-garamond.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:"EB Garamond";src:url(assets/fonts/eb-garamond-italic.woff2) format("woff2");font-weight:400 800;font-style:italic;font-display:swap}
@font-face{font-family:"Cinzel";src:url(assets/fonts/cinzel.woff2) format("woff2");font-weight:400 900;font-style:normal;font-display:swap}

:root{
  --paper:#faf7f2; --paper-2:#f1eadf; --ink:#1b1b1b; --muted:#5a5048;
  --red:#9e1a1e; --red-hover:#7a1215; --brass:#ab9876; --brass-light:#c8b485; --brass-hi:#e4cf9c; --brass-text:#7a5a16; --brass-text-strong:#6b4e12; --stage:#14100d;
  --walnut:#3b2a20; --walnut-deep:#2e2019; --slat:#47332a;
  --on-walnut:#f3ebdd; --brass-on-walnut:#e3c77e;
  --line:#e2d8c8; --card:#fffdf9; --focus:#1f5fbf; --ok:#2e6b30; --warn:#8a2a12;
  --serif:"EB Garamond",Georgia,"Iowan Old Style","Palatino Linotype",serif;
  --caps:"Cinzel","Trajan Pro",Georgia,serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root{
    --paper:#15100d; --paper-2:#1c1511; --ink:#efe7da; --muted:#bdb2a3;
    --red:#e8898c; --red-hover:#f2b0b2; --brass-text:#d9b866; --brass-text-strong:#e3c77e;
    --line:#3a2e26; --card:#1e1713; --focus:#8ab4ff; --ok:#9fd3a0; --warn:#f2a98f;
    color-scheme:dark;
  }
}

*,*::before,*::after{box-sizing:border-box}
/* Reading size. Every size below is in rem, so the root alone sets the whole page's scale: the
   "Larger text" switch changes one number and everything follows (before, only body text did).
   Guidance found (one search, 2026-10-28, ~/bin/websearch): 16 px is the usual minimum body size, line-height
   1.4-1.6, 45-75 characters a line (agentys.io summary citing WCAG, Nielsen Norman, Bringhurst); WCAG 1.4.4 asks
   that text resize to 200 %; NN/g's senior-citizen research (nngroup.com/reports/senior-citizens-on-the-web/)
   is the older-reader source (its figures are behind a paywall, not read). 16 px is a floor, not a target.
   Geol (2026-10-28): keep the Normal / Larger switch; normal "too small and cramped, especially with the border", so
   normal is 20 px everywhere with line-height 1.5 and the gain comes from the full-width column; Larger is 26 px on a
   phone (+30 %) and 25 px on tablet and desktop (+25 %). These sizes were chosen to suit him, not researched numbers. */
html{font-size:125%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.large{font-size:162.5%}
/* Three layouts. Breakpoints in px (not rem, so a larger text size never switches layout): phone up to 600,
   tablet 601-1024, desktop 1025 and up. Source: common device-width ranges, e.g. BrowserStack "Responsive design
   breakpoints" (browserstack.com/guide/responsive-design-breakpoints; phones 360-430, tablets 768-834, desktops
   1366-1920) and the usual 600 / 1024 / 1025 cut-offs of Material's window classes and Bootstrap-style grids.
   Geol 2026-10-28: a desktop window at half the screen (about 900-960 px of 1920) must get the TABLET layout. */
@media (min-width:601px){html{font-size:125%}html.large{font-size:156.25%}}   /* tablet 20px, large 25px */
/* Desktop: viewed from further away on a big screen, so 22 px normal and 27.5 px large (layout review section 2, judgement, not a researched figure). */
@media (min-width:1025px){html{font-size:137.5%}html.large{font-size:171.875%}}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.5 var(--serif);font-variant-numeric:oldstyle-nums;overflow-wrap:break-word}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--red);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--red-hover);text-decoration-thickness:2px;text-decoration-color:var(--brass)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:2px}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:var(--paper);padding:.5rem 1rem;z-index:10}
.skip:focus{left:16px}
.wrap{max-width:68rem;margin:0 auto;padding:0 16px}
/* Reading column: on a phone the column is the whole width minus the 16px gutter of .wrap. On tablet and desktop it is left-aligned
   and capped at 31 rem (tablet 32 rem). The review proposed 36 rem "about 75 characters", but measured in this EB Garamond a 36 rem
   column holds about 89 characters a line (2026-10-28, checks/measure.py + a whole-paragraph count), so it is cut to 31 rem to reach
   about 76. Guidance: 50-75 (uxpin.com/studio/blog/optimal-line-length-for-readability/), WCAG 1.4.8 AAA at most 80. */
.read{max-width:31rem;margin:0}

/* Header: the logo keeps its own red-to-black colours, so it sits on paper (a cream plate in dark mode). */
header.site{background:var(--paper);border-bottom:4px solid var(--brass);border-image:url(assets/img/brass-rule.jpg) 0 0 24 0/0 0 4px 0/0 round}
header.site .bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;padding-top:.6rem;padding-bottom:.6rem}
.brand{display:inline-block;line-height:0;border-radius:6px}
.brand img{height:56px;width:auto}
/* The header logo is the brass PNG (2026-10-28), readable on the light and dark paper, so no white box in dark mode. */
nav.main{display:flex;flex-wrap:wrap;gap:.1rem .25rem;align-items:center}
nav.main a{font-family:var(--caps);font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;color:var(--ink);padding:.7rem .55rem;min-height:44px;display:inline-flex;align-items:center;border-bottom:2px solid transparent}
nav.main a:hover{border-bottom-color:var(--brass-text)}
nav.main a[aria-current="page"]{border-bottom-color:var(--red)}
.textsize{font:inherit;font-size:.85rem;font-family:var(--caps);letter-spacing:.08em;background:transparent;color:var(--ink);border:2px solid var(--brass-text);border-radius:4px;min-height:44px;padding:.3rem .7rem;cursor:pointer}
.textsize[aria-pressed="true"]{border-color:var(--brass-text);color:var(--brass-text-strong);background:var(--paper-2)}
/* Phone width: logo and text-size button on one row, the four links spread across the next. */
@media (max-width:600px){
  header.site .bar{display:grid;grid-template-columns:1fr auto;align-items:center}
  nav.main{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:0}
  nav.main a{padding:.6rem .2rem;font-family:var(--serif);font-size:1.05rem;letter-spacing:0;text-transform:none}
  .textsize{grid-column:2;grid-row:1}
}

/* Walnut slats, drawn in CSS (no image): the studio's panel wall. */
.study{background-color:var(--walnut);background-image:repeating-linear-gradient(90deg,var(--slat) 0 9px,var(--walnut) 9px 12px,#24170f 12px 14px);color:var(--on-walnut)}
.study a{color:var(--brass-on-walnut)}
/* Hero: a plain dark surround behind any video (the slatted studio wall in the picture dissolved into slatted CSS behind it;
   layout review section 5, SMPTE neutral-surround practice). Slats only in a thin strip above it, with a brass rule under it. */
.hero{position:relative;padding:0 0 2.75rem;background-color:var(--stage);background-image:none}
.hero::before{content:"";display:block;height:34px;margin-bottom:2rem;
  background:url(assets/img/brass-rule.jpg) left bottom/auto 6px repeat-x,repeating-linear-gradient(90deg,var(--slat) 0 9px,var(--walnut) 9px 12px,#24170f 12px 14px);
  background-color:var(--brass)}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:var(--brass) url(assets/img/brass-rule.jpg) left top/auto 6px repeat-x}
.hero .kicker{font-family:var(--caps);letter-spacing:.2em;text-transform:uppercase;font-size:.8rem;color:var(--brass-on-walnut);margin:0 0 .6rem}
.hero h1{font-family:var(--caps);font-weight:500;font-size:clamp(1.2rem,5vw,2.2rem);line-height:1.25;letter-spacing:.04em;margin:0 0 .4rem;color:var(--on-walnut);text-wrap:balance}
.hero .by{margin:0 0 1.5rem;color:var(--brass-on-walnut);font-style:italic}

/* Video: one frame style everywhere. A slot without a source shows its poster and the note under it. */
.player{margin:0}
.player .frame{padding:6px;border-radius:5px;overflow:hidden;aspect-ratio:16/9;
  background:linear-gradient(135deg,rgba(255,255,255,.38),rgba(255,255,255,0) 38%,rgba(0,0,0,.30)) ,url(assets/img/brass-tile.jpg) var(--brass);
  box-shadow:0 0 0 12px var(--stage),0 12px 34px rgba(0,0,0,.65)}
/* the dark ring inside the brass, so the picture's own edge never meets the metal or the page */
.player video{border:3px solid var(--stage)}
.player .frame.tall{aspect-ratio:9/16;max-width:22rem;margin:0 auto}
.player{padding:12px}
.player video{width:100%;height:100%;object-fit:contain;background:#000}
.player figcaption{font-size:.95rem;margin-top:.6rem;color:inherit;opacity:.92}
.pending{font-style:italic}

main{display:block}
.layout > section{padding:2.5rem 0}
.layout > section + aside{border-top:0}
section{padding:2.5rem 0}
section + section{border-top:1px solid var(--line)}
.study + section{border-top:0}
h1,h2,h3{line-height:1.25;text-wrap:balance}
h1.page{font-family:var(--caps);font-weight:500;letter-spacing:.04em;font-size:clamp(1.2rem,5vw,2rem);margin:2rem 0 .3rem}
h2{font-family:var(--caps);font-weight:500;letter-spacing:.06em;font-size:clamp(1.1rem,3.5vw,1.4rem);color:var(--red);margin:0 0 1rem}
h3{font-weight:600;font-size:1.1rem;margin:1.6rem 0 .4rem}
p{margin:0 0 1rem}
.meta{color:var(--muted);font-size:.9rem;margin:0 0 1.5rem}
.lede{font-size:1.15em}
.dropcap::first-letter{float:left;font-family:var(--caps);font-size:3.1em;line-height:.9;padding:.08em .1em 0 0;color:var(--red)}

blockquote{margin:1.25rem 0;padding:.2rem 0 .2rem 1.1rem;border-left:3px solid var(--brass-light)}
blockquote p:last-child{margin-bottom:.3rem}
blockquote cite,.cite{display:block;font-style:normal;color:var(--muted);font-size:.95rem}
.words p{margin-bottom:1.1rem}

/* Full transcript under an episode (2026-10-29, Stage B). The time label plays the video from there; brass-text on cream is
   5.95:1 and 7.22:1 strong (README contrast list), and the label is at least 24 px tall for a finger (WCAG 2.5.8). */
.transcript .note{margin-bottom:1.5rem}
.transcript p{margin-bottom:1.1rem}
a.ts{display:inline-block;min-height:1.5rem;margin:0 .45rem .1rem 0;padding:.05rem .45rem;border:1px solid var(--brass);border-radius:3px;
  font-size:.8rem;line-height:1.4rem;font-variant-numeric:tabular-nums;letter-spacing:.02em;color:var(--brass-text-strong);text-decoration:none;vertical-align:.08em}
a.ts:hover,a.ts:focus-visible{background:var(--paper-2);color:var(--red)}
a.ts::before{content:"\25B6\FE0E";font-size:.7em;margin-right:.3em}

.verse{text-align:center;padding:2.75rem 0}
.verse blockquote{border:0;border-top:2px solid var(--brass-light);border-bottom:2px solid var(--brass-light);padding:1.4rem .5rem;max-width:40rem;margin:0 auto;font-style:italic;font-size:1.15em;color:var(--brass-on-walnut)}
.verse cite{color:var(--on-walnut);margin-top:.6rem;font-size:.95rem}

/* Episode cards */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1.25rem;list-style:none;margin:0;padding:0}
.card{background:var(--card);border:1px solid var(--line);border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
.card img{aspect-ratio:16/9;object-fit:cover;width:100%}
.card .body{padding:.9rem 1rem 1.1rem}
.card .num{font-family:var(--caps);letter-spacing:.14em;text-transform:uppercase;font-size:.85rem;color:var(--brass-text-strong);margin:0 0 .2rem}
.card h3{margin:0 0 .4rem;font-size:1.2rem}
.card h3 a{text-decoration:none;color:var(--ink)}
.card h3 a:hover{color:var(--red)}
.card p{font-size:1rem;margin:0;color:var(--muted)}

/* Scripture reference list */
ul.refs{list-style:none;padding:0;margin:0;columns:2 14rem;column-gap:2rem}
ul.refs li{padding:.3rem 0;border-bottom:1px dotted var(--line);break-inside:avoid}
.note{font-size:.95rem;color:var(--muted)}

/* About: the record and the photographs */
dl.record{display:grid;grid-template-columns:1fr;gap:.2rem 1.5rem;margin:0}
dl.record dt{font-weight:700;margin-top:.7rem}
dl.record dd{margin:0}
@media (min-width:40rem){dl.record{grid-template-columns:9rem 1fr}dl.record dt{margin-top:.35rem}dl.record dd{margin-top:.35rem}}
figure.photo{margin:1.5rem 0}
figure.photo img{border-radius:4px;border:1px solid var(--line);width:100%}
figure.photo figcaption{font-size:.95rem;color:var(--muted);margin-top:.4rem}
.pair{display:grid;grid-template-columns:1fr;gap:1.25rem}
@media (min-width:44rem){.pair{grid-template-columns:1fr 1fr}.pair figure.photo{margin:0}}
.portrait{max-width:24rem}

.stand{background:var(--paper-2)}
.pager{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1rem 0 0;padding:1rem 0 0;border-top:1px solid var(--line);font-size:1rem}
.crumb{font-size:.95rem;margin:1.25rem 0 0;color:var(--muted)}

/* Footer: a brass plate (Geol 2026-10-28, on the slatted footer: "not fond of the slats at the bottom. What about if we did a
   brass plate with the Veritas logo etched in it with that on top?"). The plate is the brass tile with a bevelled edge, mounted
   on the hero's plain dark surround; the wings (assets/img/footer-wings.svg, the eight bars of the designer's vector) are etched
   ABOVE the words, never under them. The colours below are fixed, not theme variables: the plate is metal in both schemes.
   Text is dark etched brass, measured >= 4.5:1 against the lightest AND the darkest brass pixel under each line (checks/footer.py;
   README). The tile alone runs down to about #7a6646 in its dark streaks (3.0:1 with this text), so a 38 % wash of the highlight
   tone #E4CF9C lifts the darkest streak to about #a7946c while the brushed grain stays visible. */
footer.site{margin-top:0;padding:1.25rem 0 1.5rem;font-size:.95rem;background:var(--stage);color:#1f1506}
footer.site .plate{position:relative;border-radius:5px;padding:1.4rem 1.5rem 1.1rem;
  border:3px solid;border-color:#eadbb0 #8c774c #6e5c38 #d6c394;
  background:linear-gradient(180deg,rgba(255,248,225,.14),rgba(255,248,225,0) 40%),linear-gradient(rgba(228,207,156,.38),rgba(228,207,156,.38)),url(assets/img/brass-tile.jpg) var(--brass);
  box-shadow:inset 0 0 0 1px rgba(70,50,15,.35),inset 0 2px 3px rgba(255,248,225,.25),0 2px 8px rgba(0,0,0,.55)}
footer.site .etch{display:block;width:11rem;max-width:62%;height:auto;margin:0 auto 1rem}
footer.site .cols{display:grid;gap:1rem 2rem;grid-template-columns:1fr}
@media (min-width:44rem){footer.site .cols{grid-template-columns:2fr 1fr}}
footer.site p{margin:0 0 .6rem}
footer.site .mark{font-family:var(--caps);font-weight:700;letter-spacing:.3em;font-size:1.2rem;color:#24180a;margin:0 0 .3rem}
footer.site .mark,footer.site p,footer.site a{text-shadow:0 1px 0 rgba(255,246,214,.4)}
footer.site a{color:#1f1506;text-decoration-color:#4a3510;text-underline-offset:.18em}
footer.site a:hover{color:#000;text-decoration-thickness:2px;text-decoration-color:#1f1506}
footer.site a:focus-visible{outline:3px solid #14100d;outline-offset:2px}
footer.site nav a{display:inline-block;margin-right:1rem;min-height:44px;line-height:44px}
footer.site .small{font-size:.85rem}
/* desktop: the etch sits to the left of the words, still never under them */
@media (min-width:1025px){
  footer.site .plate{display:grid;grid-template-columns:auto 1fr;gap:0 2.5rem;align-items:center;padding:1.4rem 2rem}
  footer.site .etch{width:11rem;max-width:none;margin:0}
}

/* Footer: VERITAS centred under the etched wings (Geol, 2026-10-28). */
footer.site .emblem{text-align:center;margin:0 auto 1rem}
footer.site .emblem .etch{margin:0 auto .5rem}
footer.site .emblem .mark{margin:0;padding-left:.3em}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.study,footer.site,footer.site .plate{background:none;color:#000;box-shadow:none}footer.site .etch{display:none}header.site nav,.textsize,.player{display:none}}

/* Phone: the reading column, hero, cards and every section use the full width minus the 16px gutter. */
@media (max-width:600px){
  .wrap{padding-left:16px;padding-right:16px}
  section{padding:1.75rem 0}
  .hero{padding:0 0 1.75rem}
  .verse blockquote{padding-left:0;padding-right:0}
  .cards{grid-template-columns:1fr}
}
/* Tablet (and a half-screen desktop window): 32px gutters, a 32 rem column left-aligned, the cards use the width: two across with
   the first one full width (no orphan card), laid out as a row. */
@media (min-width:601px) and (max-width:1024px){
  .wrap{max-width:none;padding-left:32px;padding-right:32px}
  .read{max-width:32rem}
  .cards{grid-template-columns:repeat(2,1fr)}
  .cards li:first-child{grid-column:1/-1;flex-direction:row;align-items:stretch}
  .cards li:first-child img{width:44%;aspect-ratio:16/9;height:auto;align-self:flex-start}
  .layout aside{padding-top:2.5rem;border-top:1px solid var(--line)}
}
/* Desktop: two columns. The reading column is 31 rem (about 76 characters), the episodes sit in a side column.
   The video is height-capped so its control bar stays above the fold on a 1080 screen. */
@media (min-width:1025px){
  .wrap{max-width:84rem;padding-left:40px;padding-right:40px}
  .layout{display:grid;grid-template-columns:minmax(0,31rem) minmax(16rem,1fr);gap:3rem;align-items:start}
  .layout aside{container-type:inline-size;padding:2.5rem 0}
  .layout aside .cards{grid-template-columns:1fr}
  /* the 30 rem floor keeps the picture usable on a short window or at the large text size (22 rem of page furniture grows with the root) */
  .player .frame{max-width:min(100%,max(30rem,calc((100vh - 22rem)*16/9)));margin-inline:0}
  .hero .read{max-width:60rem}
}
@media (min-width:1500px){.layout aside{position:sticky;top:1rem}}
@container (min-width:30rem){
  .layout aside .card{flex-direction:row;align-items:flex-start}
  .layout aside .card img{width:42%;flex:none}
}


.qwrap{max-width:46rem;margin:0;padding-bottom:2.5rem}
.qload:empty{display:none}
.qload{font-weight:600;color:var(--ok)}
.qload.warn{color:var(--warn)}
.qcard{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--brass);border-radius:6px;padding:1.1rem 1.1rem 1.25rem;margin:0 0 1.5rem}
section.qcard + section.qcard{border-top:1px solid var(--line)}
.qcard .qnum{font-family:var(--caps);letter-spacing:.14em;text-transform:uppercase;font-size:.85rem;color:var(--brass-text-strong);margin:0 0 .3rem}
.qcard h2.qtext{font-family:var(--serif);font-weight:600;letter-spacing:0;font-size:1.2rem;line-height:1.35;color:var(--ink);margin:0 0 .6rem}
.qcard .qhint{color:var(--muted);font-size:.95rem;margin:0 0 .8rem}
.listen{display:grid;grid-template-columns:1fr;gap:.9rem;margin:0 0 1.1rem}
.clip{margin:0;padding:.7rem .8rem .8rem;background:var(--paper-2);border-radius:6px}
.clip figcaption{font-weight:600;margin:0 0 .4rem}
.clip audio{display:block;width:100%;height:48px}
.choices{display:grid;grid-template-columns:1fr;gap:.7rem;margin:0 0 1.2rem}
button.choice{font:inherit;font-size:1.05rem;line-height:1.3;text-align:left;width:100%;min-height:3.2rem;padding:.75rem 1rem .75rem 2.6rem;position:relative;
  background:var(--paper);color:var(--ink);border:2px solid var(--brass-text);border-radius:8px;cursor:pointer}
button.choice::before{content:"";position:absolute;left:.9rem;top:50%;width:1.05rem;height:1.05rem;margin-top:-.525rem;border:2px solid var(--brass-text);border-radius:50%;background:var(--paper)}
button.choice:hover{background:var(--paper-2)}
button.choice[aria-pressed="true"]{background:var(--walnut);color:var(--on-walnut);border-color:var(--walnut);font-weight:600}
button.choice[aria-pressed="true"]::before{background:var(--brass-on-walnut);border-color:var(--brass-on-walnut);box-shadow:inset 0 0 0 3px var(--walnut)}
.notelabel{display:block;font-weight:600;margin:0 0 .35rem}
textarea.note-box{display:block;width:100%;font:inherit;font-size:1rem;line-height:1.45;padding:.6rem .7rem;min-height:5.5rem;resize:vertical;
  background:var(--paper);color:var(--ink);border:2px solid var(--line);border-radius:6px}
textarea.note-box:focus{border-color:var(--brass-text)}
.qfoot{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin-top:.7rem}
button.savenote{font:inherit;font-size:1rem;min-height:3rem;padding:.5rem 1.1rem;background:var(--red);color:#fff;border:0;border-radius:6px;cursor:pointer}
button.savenote:hover{background:var(--red-hover)}
.saved{font-weight:600;color:var(--ok)}
.saved.warn{color:var(--warn)}
.qthanks{color:var(--muted)}
@media (prefers-color-scheme:dark){button.savenote{color:#15100d}}
@media (min-width:601px){.listen{grid-template-columns:1fr 1fr}}
@media print{.clip audio,.savenote{display:none}}

@media (min-width:601px) and (max-width:1024px){}
