/* As the Papers Told It: the shared shell for every subject.
   Hand-authored. build.py copies it into site/ and never writes it.

   The look follows Byron's book cover (reference/billy-the-kid-cover-2026-09-30.jpg): aged
   newsprint, the subject's name in red wood type between ornamental rules, the series name in
   black capitals, clippings with torn edges laid down like a collage. The colours are sampled
   from that cover. It is one light theme on purpose: this is printed paper.

   Red is the headline ink, as on the cover, and the WRONG stamp. The stamp is always labelled,
   so the red never has to carry the meaning on its own. */

:root {
  --paper: #e4d6bc;
  --paper-2: #dccbad;
  --paper-3: #cdb996;
  --clip: #efe6d3;
  --ink: #211d17;
  --ink-2: #463c30;
  --muted: #736551;
  --rule: #2a241c;
  --hair: #b9a684;
  --red: #7a2414;
  --wrong: #8a2616;
  --wrong-bg: #ecd3c3;
  --bar: #3a3027;

  --f-wood: 'Rokkitt', 'Rockwell', 'Clarendon', serif;
  --f-body: 'Source Serif 4', Georgia, serif;
  --f-label: 'Rokkitt', 'Rockwell', serif;

  --wrap: 1100px;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  margin: 0; color: var(--ink); font: 400 18px/1.62 var(--f-body); font-optical-sizing: auto;
  background-color: var(--paper);
  /* age: faint foxing at the edges and a paper grain, both too quiet to fight the text */
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(120, 80, 30, .16), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(120, 80, 30, .14), transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(120, 80, 30, .08), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed, scroll;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
p { margin: 0 0 1em; }
.meta, .eyebrow { font: 700 13px/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.meta b { color: var(--ink); }

/* ornamental rule: two lines with a diamond, as on the cover */
.orn { display: flex; align-items: center; gap: 12px; color: var(--rule); margin: 0; }
.orn::before, .orn::after { content: ''; flex: 1; height: 4px; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); }
.orn span { font-size: 11px; line-height: 1; }

/* ---------- top bar ---------- */
.top { border-bottom: 1px solid var(--hair); }
.top .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px; }
.brand { font: 800 16px/1.2 var(--f-wood); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font: 700 14px/1.4 var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

/* ---------- the cover: the explanation up front starts here ---------- */
.cover { text-align: center; padding: 34px 0 6px; }
.woodtype { font: 900 clamp(52px, 12vw, 138px)/.92 var(--f-wood); color: var(--red); text-transform: uppercase;
  letter-spacing: -.005em; margin: 14px 0 12px; text-wrap: balance; }
.woodtype.ink { color: var(--ink); }
/* a word flanked by a pair of cuts (subjects.json "flank"): on its own line, the cuts facing it */
.woodtype .flanked { display: flex; justify-content: center; align-items: center; gap: .1em; white-space: nowrap; }
.woodtype .flank { display: inline-block; width: 1.6em; color: var(--ink); line-height: 0; transform: translateY(.1em); }
.woodtype .flank svg { width: 100%; height: auto; display: block; }
.woodtype .flank.right { transform: translateY(.1em) scaleX(-1); }
.series-line { font: 800 clamp(22px, 4.4vw, 46px)/1.1 var(--f-wood); letter-spacing: .06em; text-transform: uppercase; margin: 12px 0 0; }
.cover-sub { font: 700 clamp(20px, 3vw, 30px)/1.25 var(--f-wood); margin: 14px auto 0; max-width: 24em; text-wrap: balance; }
.cover-facts { font: 700 13px/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px; margin: 12px 0 0; }
.cover-facts a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* the collage: our own clippings, torn and laid down at slight angles */
.collage { display: flex; justify-content: center; align-items: flex-start; gap: 0; margin: 26px auto 22px; padding: 0 10px; }
.collage a { display: block; flex: 0 1 230px; margin: 0 -10px; filter: drop-shadow(0 3px 5px rgba(40, 25, 5, .3)); }
.collage img { width: 100%; height: 280px; object-fit: cover; object-position: top; background: var(--clip); filter: sepia(.25) contrast(1.05); }
.collage a:nth-child(1) { transform: rotate(-3deg) translateY(8px); }
.collage a:nth-child(2) { transform: rotate(1.5deg); z-index: 1; }
.collage a:nth-child(3) { transform: rotate(-1deg) translateY(12px); }
.collage a:nth-child(4) { transform: rotate(2.5deg) translateY(4px); }

/* torn edges: four shapes, assigned per report so neighbours differ */
.torn-a { clip-path: polygon(0 1.2%, 7% 0, 14% 1%, 22% .2%, 31% 1.4%, 39% .3%, 47% 1.1%, 56% 0, 64% 1.3%, 73% .4%, 81% 1.2%, 90% .1%, 100% 1%, 100% 98.8%, 93% 100%, 84% 98.9%, 76% 99.8%, 67% 98.6%, 58% 99.7%, 49% 98.8%, 41% 100%, 32% 98.7%, 24% 99.6%, 15% 98.8%, 7% 99.9%, 0 98.9%); }
.torn-b { clip-path: polygon(0 .4%, 9% 1.3%, 17% .1%, 26% 1.2%, 34% .5%, 43% 1.4%, 52% .2%, 61% 1%, 69% 0, 78% 1.3%, 86% .3%, 94% 1.1%, 100% .2%, 100% 99.6%, 92% 98.7%, 85% 99.9%, 77% 98.8%, 68% 99.5%, 60% 98.6%, 51% 99.8%, 43% 98.9%, 34% 99.7%, 26% 98.6%, 17% 99.6%, 9% 98.8%, 0 99.7%); }
.torn-c { clip-path: polygon(0 .8%, 6% .1%, 13% 1.4%, 21% .4%, 28% 1.1%, 37% .1%, 45% 1.3%, 53% .5%, 62% 1.2%, 70% 0, 79% 1%, 87% .3%, 95% 1.3%, 100% .5%, 100% 99.2%, 94% 99.9%, 86% 98.7%, 79% 99.6%, 70% 98.9%, 62% 99.8%, 54% 98.6%, 45% 99.5%, 37% 98.8%, 28% 99.9%, 20% 98.7%, 12% 99.5%, 5% 98.9%, 0 99.6%); }
.torn-d { clip-path: polygon(0 0, 8% 1.1%, 16% .3%, 25% 1.4%, 33% .6%, 42% 1.2%, 50% 0, 59% 1.3%, 67% .4%, 76% 1.1%, 84% .1%, 92% 1.2%, 100% .4%, 100% 99%, 91% 99.8%, 83% 98.8%, 74% 99.7%, 66% 98.7%, 57% 99.9%, 48% 98.9%, 40% 99.6%, 31% 98.7%, 23% 99.8%, 14% 98.8%, 6% 99.6%, 0 98.8%); }

/* ---------- the explanation ---------- */
.intro { max-width: 36em; margin: 30px auto 0; font-size: 21px; line-height: 1.6; }
.intro p:first-child::first-letter { font: 900 3.4em/.78 var(--f-wood); color: var(--red); float: left; margin: .06em .08em 0 0; }
.draft-note { max-width: 36em; margin: 10px auto 0; text-align: left; }

/* ---------- section heads ---------- */
.sec { text-align: center; margin: 64px 0 22px; }
.sec h2 { font: 800 clamp(28px, 4vw, 40px)/1.1 var(--f-wood); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0; }
.sec .meta { display: block; margin-top: 6px; }
.sec-sub { color: var(--ink-2); max-width: 44em; margin: 0 auto 22px; text-align: center; }

/* ---------- the data ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule); margin: 0 0 32px; }
.stats div { padding: 14px 12px 12px; text-align: center; border-left: 1px solid var(--hair); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 900 36px/1 var(--f-wood); color: var(--red); }
.stats span { font: 700 12px/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.stats-key { font-size: 15px; color: var(--ink-2); text-align: center; max-width: 46em; margin: -18px auto 30px; }
.figs { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px 44px; align-items: start; }
figure { margin: 0; }
.fig h3 { font: 800 21px/1.2 var(--f-wood); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.fig .cap { font-size: 15px; color: var(--ink-2); margin: 10px 0 0; }
.fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig .axis { font: 700 12px var(--f-label); fill: var(--muted); letter-spacing: .06em; }
.fig .peak { font: 700 13px var(--f-label); fill: var(--ink); letter-spacing: .04em; }
.fig .b { fill: var(--bar); }
.fig .tick { stroke: var(--wrong); stroke-width: 2.5; }
.fig .tick.on { stroke: var(--ink); stroke-width: 2; }
.fig .base { stroke: var(--rule); stroke-width: 1.5; }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.tiles .t { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font: 700 10px/1 var(--f-label);
  color: var(--muted); background: rgba(255, 250, 235, .35); border: 1px solid var(--hair); }
.tiles .t.l1 { background: #cbb893; color: var(--ink); border-color: transparent; }
.tiles .t.l2 { background: #a88f68; color: var(--ink); border-color: transparent; }
.tiles .t.l3 { background: #6b573d; color: var(--clip); border-color: transparent; }
.tiles .t.l4 { background: var(--bar); color: var(--clip); border-color: transparent; }
.tiles .gap { visibility: hidden; }
.legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font: 700 12px var(--f-label); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.legend i { width: 18px; height: 10px; display: inline-block; }

/* ---------- how it unfolded ---------- */
.unfold ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); }
.unfold li { margin: 0; box-shadow: 0 0 0 .5px var(--hair); }
.unfold a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px 14px; text-decoration: none; text-align: center; }
.unfold a:hover { background: rgba(255, 250, 235, .4); }
/* the act you are reading, in the act nav on every story page */
.unfold li.on { background: var(--ink); }
.unfold li.on .u-num, .unfold li.on .u-what, .unfold li.on .u-when { color: var(--clip); }
.unfold li.on a:hover { background: transparent; }
.acthead { padding-bottom: 0; margin-bottom: 18px; }
/* the foot of an act: "The story continues in Act Two..." */
.continues { max-width: 780px; margin: 56px auto 0; }
.continues a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none;
  padding: 26px 20px 24px; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.continues a:hover { background: rgba(255, 250, 235, .4); }
.continues .lead { font: italic 400 20px/1.35 var(--f-body); color: var(--ink-2); }
.continues b { font: 900 clamp(28px, 4vw, 42px)/1.05 var(--f-wood); color: var(--red); text-transform: uppercase; }
.continues .when { font: 700 13px var(--f-label); color: var(--ink-2); letter-spacing: .1em; text-transform: uppercase; }
.continues .go { font: 700 13px var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  margin-top: 6px; border-bottom: 1.5px solid var(--ink); }
.back { text-align: center; margin: 18px 0 0; font: 700 13px var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.back a { color: var(--muted); }
.unfold .u-num { font: 700 12px/1 var(--f-label); letter-spacing: .18em; color: var(--red); }
.unfold .u-what { font: 800 20px/1.15 var(--f-wood); text-transform: uppercase; letter-spacing: .02em; }
.unfold .u-when { font: 700 12px/1.3 var(--f-label); color: var(--muted); letter-spacing: .06em; }

/* ---------- the timeline ---------- */
.part-head { text-align: center; margin: 60px 0 12px; }
.part-head .num { font: 700 13px/1 var(--f-label); letter-spacing: .2em; color: var(--red); }
.part-head h2 { font: 900 clamp(30px, 4.4vw, 46px)/1.05 var(--f-wood); color: var(--red); text-transform: uppercase; margin: 6px 0 4px; }
.part-head .when { font: 700 13px var(--f-label); color: var(--ink-2); letter-spacing: .1em; text-transform: uppercase; }
.part-head .orn { max-width: 360px; margin: 10px auto 0; }

.tl { position: relative; max-width: 780px; margin: 0 auto; padding: 26px 0 26px 30px; border-left: 2px solid var(--hair); }
.tl::before { content: ''; position: absolute; left: -8px; top: 32px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--paper); border: 2px solid var(--ink); }
.tl.is-wrong::before { background: var(--wrong); border-color: var(--wrong); }
.tl-date { font: 800 17px/1.3 var(--f-wood); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.tl-why { font-size: 20px; line-height: 1.5; margin: 0 0 8px; }
.tl-paper { font: 700 13px/1.4 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.tl-paper b { color: var(--ink); }
.flags { font-size: 16px; color: var(--ink-2); margin: -4px 0 14px; }
.flags .fix { font: 700 12px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; border: 1.5px solid var(--ink);
  padding: 3px 6px 2px; margin-right: 8px; }
.tl.is-wrong .flags, .tl.is-wrong .flags a { color: var(--wrong); }
/* flagged by an editor but corrected by nothing in the collection: quieter than WRONG, never red */
.flags .unconf { font: 700 12px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  border: 1.5px solid var(--hair); padding: 3px 6px 2px; margin-right: 8px; display: inline-block; }

/* the paper's own words: a torn clipping laid on the page */
.doc-wrap { filter: drop-shadow(0 2px 4px rgba(40, 25, 5, .28)); margin: 0 0 14px; }
.doc { position: relative; background: var(--clip); padding: 24px 24px 22px; }
.doc .docmark { font: 700 12px/1.4 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; padding-right: 90px; }
.damage { font: italic 400 15px/1.45 var(--f-body); color: var(--ink-2); margin: 6px 0 10px; padding-left: 10px; border-left: 3px solid var(--hair); }
.warning { font: italic 400 15px/1.45 var(--f-body); color: var(--ink); margin: 6px 0 10px; padding: 6px 0 6px 10px; border-left: 3px solid var(--ink); }
.warning b { font: 700 12px var(--f-label); letter-spacing: .14em; text-transform: uppercase; font-style: normal; margin-right: 6px; }
.doc .keynote { font-style: italic; color: var(--ink-2); font-size: 14px; margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--hair); }
.doc .contnote { font-style: italic; color: var(--ink-2); text-align: center; margin: 0 0 12px; font-size: 15px; }
.doc .printedhead { font: 800 21px/1.18 var(--f-wood); text-transform: uppercase; letter-spacing: .02em; text-align: center;
  margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--hair); text-wrap: balance; }
.doc p { font: 400 17px/1.62 var(--f-body); margin: 0 0 .8em; hyphens: auto; }
.doc .no-text { font: italic 400 16px/1.5 var(--f-body); color: var(--muted); }
.doc .stamp { position: absolute; top: 18px; right: 16px; font: 900 15px/1 var(--f-wood); letter-spacing: .18em; text-transform: uppercase;
  color: var(--wrong); border: 3px double var(--wrong); padding: 6px 9px 4px; transform: rotate(-6deg); opacity: .9; }
.doc details.more > summary { list-style: none; cursor: pointer; display: inline-block; font: 700 13px/1 var(--f-label);
  letter-spacing: .14em; text-transform: uppercase; border: 1.5px solid var(--ink-2); padding: 7px 11px; margin: 2px 0 6px; }
.doc details.more > summary::-webkit-details-marker { display: none; }
.doc details.more > summary:hover { background: var(--paper-2); }
.doc details.more .close, .doc details.more[open] .open { display: none; }
.doc details.more[open] .close { display: inline; }
.doc details.more[open] > summary { margin-bottom: 12px; }
.doc > :last-child { margin-bottom: 0; }

.tl-look { margin: 0; }
.see { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--f-label); letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; background: var(--ink); color: var(--clip); padding: 10px 14px 9px; }
.see:hover { background: var(--red); }
.see.pending { background: transparent; color: var(--muted); border: 1px dashed var(--hair); }
.to-archive { text-align: center; margin: 44px 0 0; font: 800 22px/1.3 var(--f-wood); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- the full archive ---------- */
.pagehead { text-align: center; padding: 30px 0 10px; margin-bottom: 26px; }
.pagehead h1 { font: 900 clamp(38px, 7vw, 80px)/1 var(--f-wood); color: var(--red); text-transform: uppercase; margin: 12px 0 10px; }
.pagehead .sub { color: var(--ink-2); max-width: 40em; margin: 12px auto; }
.pagehead .eyebrow a { color: var(--muted); }
/* a tall clipping, in sections, read top to bottom */
.pagehead .cliphead { font-size: clamp(28px, 5vw, 48px); }
.ribbon { max-width: 1100px; margin: 0 auto; background: var(--clip); box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.ribbon img { display: block; width: 100%; height: auto; }
.months { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; border-top: 2px solid var(--rule); }
.months li { display: grid; grid-template-columns: 11em 7em 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.months .m-name { font: 800 20px/1.2 var(--f-wood); text-transform: uppercase; letter-spacing: .02em; }
.months .m-name a { text-decoration: none; }
.months .m-name a:hover { color: var(--red); }
.months .m-count { font: 700 13px var(--f-label); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.months .m-bar { height: 10px; background: rgba(255, 250, 235, .35); border: 1px solid var(--hair); }
.months .m-bar i { display: block; height: 100%; background: var(--bar); }
.months .m-parts { grid-column: 1 / -1; font: 700 13px var(--f-label); color: var(--muted); }
.ar .ar-sum { color: var(--ink-2); font-size: 17px; margin: 0 0 12px; }
.ar .on-story { margin-left: 10px; font-size: 13px; color: var(--red); }
details.printings-list { margin: 12px 0 0; }
details.printings-list > summary { cursor: pointer; font: 700 13px var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
details.printings-list ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; color: var(--ink-2); columns: 2 20rem; column-gap: 28px; }
details.printings-list .extract { font-style: italic; color: var(--muted); }
details.printings-list li { break-inside: avoid; margin: 0 0 3px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 780px; margin: 40px auto 0; border-top: 2px solid var(--rule); padding-top: 14px; }
.pager a { text-decoration: none; }
.pager a:hover h4 { color: var(--red); }
.pager .next { text-align: right; }
.pager h4 { font: 800 21px/1.2 var(--f-wood); text-transform: uppercase; margin: 4px 0 0; }

/* ---------- prose pages (the legal pages, built by Master publishing in this frame) ---------- */
.prose { max-width: 40em; margin: 0 auto; }
.prose h2 { font: 800 24px/1.2 var(--f-wood); text-transform: uppercase; margin: 34px 0 10px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0 0 .4em; }

/* ---------- method, footer, series ---------- */
.method { margin: 56px auto 0; padding: 14px 18px; border: 1px solid var(--hair); background: rgba(255, 250, 235, .3); max-width: 46em; font-size: 16px; }
.method h2 { font: 800 18px/1.2 var(--f-wood); text-transform: uppercase; margin: 0 0 6px; }
.method p { margin: 0; color: var(--ink-2); }
footer.foot { margin: 64px 0 0; border-top: 2px solid var(--rule); padding: 14px 0 40px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px 24px; font: 700 13px/1.5 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
footer.foot a { color: var(--ink-2); }
footer.foot .legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 30px 0 0; }
.card { display: block; text-decoration: none; background: var(--clip); padding: 20px 18px 18px; text-align: center; filter: drop-shadow(0 2px 4px rgba(40, 25, 5, .25)); }
.card h2 { font: 900 34px/1 var(--f-wood); color: var(--red); text-transform: uppercase; margin: 10px 0; }
.card:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- narrow screens ---------- */
@media (max-width: 800px) {
  .figs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .collage a:nth-child(n+4) { display: none; }
  .collage img { height: 190px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .intro { font-size: 19px; }
  .tl { padding-left: 20px; }
  .tl-why { font-size: 18px; }
  .doc { padding: 20px 16px 18px; }
  .doc .docmark { padding-right: 0; }
  .doc .stamp { position: static; display: inline-block; margin: 0 0 10px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .months li { grid-template-columns: 1fr auto; }
  .months .m-bar { grid-column: 1 / -1; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .tiles .t { font-size: 8px; }
  .stats b { font-size: 30px; }
  .collage a { margin: 0 -14px; }
  .collage a:nth-child(n+3) { display: none; }
}
@media print {
  .top, .nav, .pager, footer.foot, .see { display: none; }
  body { background: #fff; }
}

/* letters supplied by the transcriber where the printing is damaged (keyed text only) */
.supplied { font-style: italic; color: var(--muted); }
.doc .gap { font-style: italic; color: var(--muted); text-align: center; text-indent: 0; margin: 14px 0; }

/* the story layer: each entry's head (what we're looking at) and each act's one-line intro */
.tl-head { font: 800 25px/1.2 var(--f-wood); color: var(--ink); margin: 0 0 6px; text-wrap: balance; }
.tl.is-wrong .tl-head { color: var(--ink); }
.act-intro { font: italic 400 19px/1.55 var(--f-body); color: var(--ink-2); max-width: 36em; margin: 12px auto 4px; text-wrap: pretty; }
@media (max-width: 560px) { .tl-head { font-size: 21px; } .act-intro { font-size: 17px; } }

/* "Read just the story": hide the papers' text and keep the heads, notes and dates */
.brief-toggle { text-align: center; margin: 18px 0 0; }
.brief-toggle button { font: 700 14px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 10px 16px 9px; }
.brief-toggle button:hover { background: var(--ink); color: var(--clip); }
body.brief .tl .doc-wrap, body.brief .tl .tl-look, body.brief .tl .flags { display: none; }
body.brief .tl { padding-bottom: 14px; }
