/* Blegscope — long-read magazine feature theme
   Lora (body) + Sofia Sans Extra Condensed (story headlines) + Sofia Sans Condensed (labels)
   Warm off-white paper, charcoal ink. Terracotta is reserved for pull-quotes only. */

:root {
  --paper: #F4EEE4;
  --paper-2: #EAE1D3;
  --paper-3: #E0D5C4;
  --ink: #24201D;
  --ink-2: #473F38;
  --mute: #6F655B;
  --rule: #D3C7B6;
  --rule-strong: #24201D;
  --terra: #B04E2B;          /* pull-quotes only */
  --night: #1C1815;
  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --label: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --gutter: 20px;
  --max: 1320px;
  --measure: 40rem;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- shared bits ---------- */
.kicker, .meta, .crumbs, .sechead__note, .chap__no, .chap__count, .toc__head, .foot__head, .chapnav__head,
.story__by, .story__chap, .tldr__head, .rail__head, .endnote__head, .cover__issue, .standfirst__label {
  font-family: var(--label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem;
}
.kicker { display: block; color: var(--mute); margin-bottom: .45rem; }
.meta { display: block; color: var(--mute); margin-top: .7rem; letter-spacing: .06em; font-weight: 500; }
.crumbs { color: var(--mute); margin: 0 0 1.4rem; font-weight: 500; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }

/* photos: every generated image sits on a hand-made fallback so the layout is finished without it */
.ph { margin: 0; position: relative; overflow: hidden; background: #2b2521 url(/assets/window-light.svg) center / cover no-repeat; }
.ph--portrait { background-image: url(/assets/silhouette.svg); aspect-ratio: 4 / 5; }
.ph--portrait.ph--v1 { background-image: url(/assets/desk-lamp.svg); }
.ph--portrait.ph--v2 { background-image: url(/assets/doorway.svg); }
.ph--wide { aspect-ratio: 16 / 9; }
.ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; filter: saturate(.92) contrast(1.02); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
a:hover .ph img { transform: scale(1.03); }

.btn {
  display: inline-block; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem;
  padding: 1rem 1.5rem; background: var(--ink); color: var(--paper); text-decoration: none; border: 1px solid var(--ink);
}
.btn:hover { background: transparent; color: var(--ink); }

.sechead { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto 2rem; padding: 1rem 0 0;
  display: grid; gap: .6rem; border-top: 3px solid var(--rule-strong); }
.sechead__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: .95; margin: 0; letter-spacing: -.005em; }
.sechead__note { color: var(--mute); margin: 0; font-weight: 500; letter-spacing: .06em; }
.sechead__note a { color: var(--ink); }
@media (min-width: 760px) { .sechead { grid-template-columns: 1fr auto; align-items: end; } .sechead__note { text-align: right; max-width: 30rem; } }

/* ---------- top bar ---------- */
.top { position: relative; z-index: 20; border-bottom: 1px solid var(--rule); background: var(--paper); }
.top__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 22px; height: 26px; }
.brand__word { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
.brand__word em { font-style: normal; font-weight: 500; }
.top__nav { display: none; gap: 1.6rem; }
.top__nav a { font-family: var(--label); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.top__nav a:hover { text-decoration: underline; }
@media (min-width: 760px) { .top__nav { display: flex; order: 3; } .toc { order: 2; } }

.toc { position: relative; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; border: 1px solid currentColor;
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc__icon { width: 14px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.toc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.toc[open] .toc__icon { border-color: transparent; }
.toc[open] .toc__icon::after { top: 2px; transform: rotate(45deg); }
.toc[open] .toc__icon::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; transform: rotate(-45deg); }
.toc__panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(92vw, 440px); background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(28,24,21,.45); padding: 1.4rem 1.4rem 1.2rem; }
@media (min-width: 760px) { .toc__panel { right: auto; left: 50%; transform: translateX(-50%); } }
.toc__head { margin: 0 0 .6rem; color: var(--mute); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: baseline; gap: .5rem; padding: .55rem 0; border-top: 1px solid var(--rule); text-decoration: none; }
.toc li a:hover .toc__name { text-decoration: underline; }
.toc__no { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.toc__name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.toc__count { font-family: var(--label); font-size: .75rem; color: var(--mute); }
.toc__about { display: block; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--ink); font-style: italic; }

/* home: bar floats over the cover photo */
.top--over { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 1px solid rgba(244,238,228,.22); color: #F4EEE4; }
.top--over .brand__mark { filter: invert(1) sepia(.2); }

/* ---------- cover (home hero) ---------- */
.cover { position: relative; min-height: min(94vh, 1000px); height: auto; padding-top: 6.5rem; color: #F7F1E8; display: flex; align-items: flex-end;
  background: var(--night) url(/assets/window-light.svg) center / cover no-repeat; isolation: isolate; }
.cover__art { position: absolute; inset: 0; z-index: -2; }
.cover__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,13,.55) 0%, rgba(20,16,13,.08) 28%, rgba(20,16,13,.25) 50%, rgba(20,16,13,.9) 100%); }
.cover__in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(2.2rem, 6vh, 4.5rem); }
.cover__issue { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 1.2rem; font-weight: 600; }
.cover__issue span:first-child { background: #F4EEE4; color: var(--ink); padding: .25rem .55rem; }
.cover__issue span:last-child { opacity: .85; padding: .25rem 0; }
.cover__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, min(5.6vw, 11vh), 5.6rem); line-height: .92; letter-spacing: -.01em;
  margin: 0; max-width: 22ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.cover__title a { text-decoration: none; }
.cover__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.cover__dek { font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 38rem; margin: 1.4rem 0 0; opacity: .94; }
.cover__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 1.6rem 0 0; font-family: var(--label); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.cover__cat { border-right: 1px solid rgba(244,238,228,.5); padding-right: 1.2rem; }
.cover__read { margin-left: auto; border-bottom: 1px solid currentColor; text-decoration: none; padding-bottom: 2px; }
@media (max-width: 759px) { .cover { height: auto; min-height: 88vh; } .cover__read { margin-left: 0; } .cover__cat { border: 0; padding: 0; } }

/* ---------- standfirst ---------- */
.standfirst { padding: clamp(3rem, 8vw, 6.5rem) var(--gutter); border-bottom: 1px solid var(--rule); }
.standfirst__in { max-width: 54rem; margin: 0 auto; display: grid; gap: 1rem; }
.standfirst__label { margin: 0; color: var(--mute); }
.standfirst__text { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.45; font-weight: 400; text-wrap: pretty; }
.standfirst__text::first-line { font-weight: 600; }
@media (min-width: 900px) { .standfirst__in { grid-template-columns: 12rem 1fr; gap: 2.5rem; } .standfirst__label { padding-top: .8rem; border-top: 1px solid var(--ink); } }

/* ---------- in this issue ---------- */
.issue, .chapters, .more, .related { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.issue__grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .issue__grid { grid-template-columns: 7fr 5fr; gap: 3.5rem; } }
.feat__link { display: grid; gap: 1.4rem; text-decoration: none; }
.feat__img { aspect-ratio: 3 / 2; }
.feat__img img { object-position: center 35%; }
.feat__title { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: .93; text-wrap: balance; }
.feat__dek { display: block; margin-top: .9rem; color: var(--ink-2); font-size: 1.1rem; line-height: 1.6; max-width: 36rem; }
.feat__link:hover .feat__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.contents__item a { display: grid; grid-template-columns: 3.4rem 1fr; gap: .8rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.contents__no { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: .85; color: var(--ink); font-feature-settings: "lnum"; }
.contents__title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.02; text-wrap: balance; }
.contents__item .meta { margin-top: .45rem; }
.contents__item a:hover .contents__title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- pull-quotes (the only terracotta on the site) ---------- */
.pull { margin: 3rem 0; padding: 1.6rem 0 0; border-top: 2px solid var(--terra); position: relative; }
.pull blockquote { margin: 0; }
.pull p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--terra);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; text-wrap: balance; }
.pull p::before { content: "\201C"; }
.pull p::after { content: "\201D"; }
.pull figcaption { margin-top: 1rem; font-family: var(--label); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.pull figcaption a { color: var(--ink); }
.principle { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) 0; }
.pull--xl { max-width: 60rem; margin: 0 auto; text-align: center; border-top: 0; padding: 0; }
.pull--xl::before { content: "\201C"; display: block; font-family: var(--serif); font-style: italic; color: var(--terra); font-size: 7rem; line-height: .6; height: 3rem; }
.pull--xl p { font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.16; }
.pull--xl p::before, .pull--xl p::after { content: none; }

/* ---------- chapters ---------- */
.chapters__grid { list-style: none; margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
@media (min-width: 900px) { .chapters__grid { grid-template-columns: repeat(4, 1fr); gap: 3rem 1.6rem; } }
.chap a { display: block; text-decoration: none; }
.chap__img { margin-bottom: .9rem; }
.chap__no { display: block; color: var(--mute); padding-top: .6rem; border-top: 1px solid var(--ink); }
.chap__name { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: .98; margin: .35rem 0 .4rem; }
.chap__count { color: var(--mute); font-weight: 500; }
.chap a:hover .chap__name { text-decoration: underline; text-underline-offset: 4px; }
.chap:nth-child(even) .chap__img { margin-top: 0; }
@media (min-width: 900px) { .chap:nth-child(even) { margin-top: 3rem; } }

/* ---------- story rows ---------- */
.rows { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); border-top: 0; }
.row__link { display: grid; grid-template-columns: 2.6rem 1fr 84px; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: start; }
.row:first-child .row__link { border-top: 1px solid var(--ink); }
.row__no { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: .9; }
.row__title { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.55rem, 2.6vw, 2.35rem); line-height: .98; text-wrap: balance; }
.row__dek { display: none; color: var(--ink-2); margin-top: .6rem; max-width: 44rem; }
.row__img { width: 84px; }
.row__link:hover .row__title { text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 760px) {
  .row__link { grid-template-columns: 5rem 1fr 150px; gap: 2rem; padding: 2rem 0; }
  .row__no { font-size: 3rem; }
  .row__dek { display: block; }
  .row__img { width: 150px; }
}

/* ---------- closing ---------- */
.closing { padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); margin-top: clamp(3.5rem, 8vw, 6rem); background: var(--paper-2); border-top: 1px solid var(--rule); }
.closing__in { max-width: 44rem; margin: 0 auto; text-align: center; }
.closing__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .92; margin: 0 0 1rem; }
.closing p { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 2rem; }

/* ---------- category opener ---------- */
.opener { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0; display: grid; gap: 2rem; }
@media (min-width: 900px) { .opener { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; } }
.opener__no { font-family: var(--display); font-weight: 900; font-size: clamp(7rem, 18vw, 15rem); line-height: .72; margin: 0 0 1.4rem; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 2px var(--ink); }
.opener__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, min(5.6vw, 12vh), 5rem); line-height: .92; margin: 0; text-wrap: balance; }
.opener__dek { font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-style: italic; line-height: 1.55; color: var(--ink-2); max-width: 34rem; margin: 1.4rem 0 0; }
.opener__img { width: 100%; }
@media (min-width: 900px) { .opener__img { aspect-ratio: 1 / 1.08; } }
@media (max-width: 899px) { .opener__img { aspect-ratio: 3 / 2; } }

.catlist { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.lead { max-width: var(--max); margin: 0 auto 3.5rem; padding: 0 var(--gutter); }
.lead__link { display: grid; gap: 2rem; align-items: center; text-decoration: none; background: var(--paper-2); padding: clamp(1.6rem, 4vw, 3.2rem); border-left: 6px solid var(--ink); }
.lead__no { display: none; font-family: var(--display); font-weight: 900; font-size: 13rem; line-height: .75; color: transparent; -webkit-text-stroke: 2px var(--ink); text-align: right; letter-spacing: -.03em; }
@media (min-width: 900px) { .lead__link { grid-template-columns: 1fr 15rem; } .lead__no { display: block; } }
.catlist .row__img { display: none; }
.catlist .row__link { grid-template-columns: 2.6rem 1fr; }
@media (min-width: 760px) { .catlist .row__link { grid-template-columns: 5rem 1fr; } }
.lead__title { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: .92; text-wrap: balance; max-width: 22ch; }
.lead__dek { display: block; margin-top: 1rem; font-size: 1.12rem; color: var(--ink-2); max-width: 42rem; }
.lead__go { color: var(--ink); margin-left: .8rem; border-bottom: 1px solid currentColor; }
.lead__link:hover .lead__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.catlist__head { max-width: var(--max); margin: 0 auto 1rem; padding: 0 var(--gutter); font-family: var(--label); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.empty { max-width: 44rem; margin: 0 auto; padding: 2.5rem var(--gutter); border-top: 1px solid var(--ink); }
.empty__title { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; margin: 0 0 .6rem; }

/* ---------- chapter nav strip ---------- */
.chapnav { max-width: var(--max); margin: clamp(3.5rem, 8vw, 6rem) auto 0; padding: 0 var(--gutter); }
.chapnav__head { margin: 0 0 1rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
.chapnav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) { .chapnav ol { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
@media (min-width: 1000px) { .chapnav ol { grid-template-columns: repeat(4, 1fr); } }
.chapnav a { display: flex; gap: .7rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.05; }
.chapnav a span { font-weight: 800; color: var(--mute); min-width: 1.6rem; }
.chapnav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.chapnav .is-current a { color: var(--mute); }

/* ---------- article ---------- */
.story__head { max-width: var(--max); margin: 0 auto; padding: clamp(1.6rem, 4vw, 3rem) var(--gutter) clamp(1.8rem, 4vw, 3rem); }
@media (min-width: 1100px) {
  .is-article .story__head, .is-about .about__head { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); column-gap: 4.5rem; align-items: end; }
  .is-article .story__head .crumbs, .is-article .story__chap, .is-about .crumbs, .is-about .story__chap { grid-column: 1 / -1; }
  .is-about .story__title { grid-column: 1; }
  .is-about .story__dek { grid-column: 2; margin: 0; font-size: 1.3rem; padding-top: 1.1rem; border-top: 3px solid var(--ink); }
  .is-article .story__title { grid-column: 1; grid-row: 3 / span 2; max-width: none; }
  .is-article .story__dek { grid-column: 2; grid-row: 3; margin: 0; font-size: 1.3rem; padding-top: 1.1rem; border-top: 3px solid var(--ink); }
  .is-article .story__by { grid-column: 2; grid-row: 4; flex-direction: column; gap: .35rem; margin-top: 1.4rem; align-self: end; }
  .is-article .story__by span + span::before { content: none; }
}
.story__chap { margin: 0 0 1rem; }
.story__chap a { text-decoration: none; border-bottom: 1px solid currentColor; }
.story__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, min(5.6vw, 12vh), 5.4rem); line-height: .92; letter-spacing: -.01em; margin: 0; max-width: 18ch; text-wrap: balance; }
.story__dek { font-style: italic; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; color: var(--ink-2); max-width: 44rem; margin: 1.5rem 0 0; }
.story__by { display: flex; flex-wrap: wrap; gap: .4rem 0; margin: 1.8rem 0 0; color: var(--ink-2); font-weight: 500; }
.story__by span + span::before { content: "\2014"; margin: 0 .7rem; color: var(--rule); }
.story__img { max-width: var(--max); margin: 0 auto; aspect-ratio: 21 / 9; }
@media (max-width: 759px) { .story__img { aspect-ratio: 4 / 3; } }
.story__img img { object-position: center 35%; }

.story__grid { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0; display: grid; gap: 2rem; }
@media (min-width: 1000px) { .story__grid { grid-template-columns: 17rem minmax(0, var(--measure)); gap: 5rem; justify-content: center; } .story__side { position: sticky; top: 2rem; align-self: start; } }

.tldr { border-top: 3px solid var(--ink); padding-top: 1rem; }
.tldr__head { margin: 0 0 .6rem; }
.tldr p:last-child { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--ink-2); }
.rail { margin-top: 2.2rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.rail__head { margin: 0 0 .5rem; color: var(--mute); }
.rail__list { list-style: none; margin: 0; padding: 0; counter-reset: part; }
.rail__list li { counter-increment: part; }
.rail__list a { display: grid; grid-template-columns: 1.8rem 1fr; padding: .4rem 0; font-family: var(--label); font-weight: 500; font-size: .92rem; line-height: 1.3; text-decoration: none; color: var(--ink-2); }
.rail__list a::before { content: counter(part, decimal-leading-zero); font-weight: 700; color: var(--mute); }
.rail__list a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 999px) { .rail { display: none; } }

/* prose */
.prose { font-size: 1.14rem; line-height: 1.78; min-width: 0; }
@media (min-width: 760px) { .prose { font-size: 1.2rem; } }
.prose > p { margin: 0 0 1.35em; hanging-punctuation: first; }
.prose > p:first-child::first-letter {
  font-family: var(--display); font-weight: 900; float: left; font-size: 5.6em; line-height: .78; margin: .06em .1em 0 0; color: var(--ink);
}
.prose > p:first-child { font-size: 1.08em; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: .98; margin: 2.2em 0 .7em; text-wrap: balance; }
.prose h2::before { content: ""; display: block; width: 3rem; border-top: 3px solid var(--ink); margin-bottom: .9rem; }
.prose h3 { font-family: var(--label); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin: 2em 0 .6em; }
.prose a { color: var(--ink); text-decoration-color: var(--mute); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.5em; padding: 0; list-style: none; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 1.8rem; margin-bottom: .6em; }
.prose ul > li::before { content: "\2014"; position: absolute; left: 0; color: var(--mute); }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: .05em; font-family: var(--display); font-weight: 800; font-size: 1.25em; line-height: 1.3; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--terra); font-style: italic; color: var(--terra); font-size: 1.15em; }
.prose hr { border: 0; text-align: center; margin: 2.5em 0; }
.prose hr::before { content: "\2022\2003\2022\2003\2022"; color: var(--mute); }

/* tables: set like a magazine data box */
.prose table { width: 100%; border-collapse: collapse; margin: 2.2em 0; font-family: var(--label); font-size: .95rem; line-height: 1.4;
  font-variant-numeric: tabular-nums lining-nums; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); display: block; overflow-x: auto; }
@media (min-width: 760px) { .prose table { display: table; } }
.prose thead th { text-align: left; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; color: var(--ink-2);
  padding: .8rem .9rem .7rem 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.prose td { padding: .8rem .9rem .8rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-weight: 500; min-width: 8rem; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 700; color: var(--ink); }
.prose caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: .5rem; }

/* in-story pull-quote */
.prose .pull { margin: 2.8em 0; padding-top: 1.4rem; }
.prose .pull blockquote { border: 0; padding: 0; margin: 0; font-size: 1rem; color: var(--terra); }
.prose .pull p { font-size: clamp(1.6rem, 2.9vw, 2.2rem); line-height: 1.25; margin: 0; }
@media (min-width: 1300px) { .prose .pull { margin-right: -9rem; } }

/* FAQ */
.faq { margin-top: 3.5rem; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1.6rem; gap: 1rem; align-items: start; padding: 1.1rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-family: var(--serif); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1.12rem; line-height: 1.45; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: .9; text-align: right; }
.faq__item[open] summary::after { content: "\2013"; }
.faq__item p { margin: 0 0 1.3rem; font-size: 1.02rem; color: var(--ink-2); }

.endnote { margin-top: 3rem; padding: 1.4rem 1.5rem; background: var(--paper-2); font-size: .98rem; line-height: 1.6; color: var(--ink-2); }
.endnote__head { margin: 0 0 .4rem; color: var(--ink); }
.endnote p:last-child { margin: 0; }

/* related */
.related__grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 2rem; }
@media (min-width: 760px) { .related__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.card a { display: block; text-decoration: none; border-top: 1px solid var(--ink); padding-top: 1rem; height: 100%; }
.card__no { display: block; font-family: var(--display); font-weight: 900; font-size: 4.2rem; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 1rem; }
.card__title { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; text-wrap: balance; }
.card a:hover .card__title { text-decoration: underline; text-underline-offset: 4px; }

/* about + 404 */
.about__head { max-width: var(--max); margin: 0 auto; padding: clamp(1.6rem, 4vw, 3rem) var(--gutter) clamp(1.8rem, 4vw, 3rem); }
.about__img { aspect-ratio: 21 / 8; }
@media (max-width: 759px) { .about__img { aspect-ratio: 4 / 3; } }
.about__grid { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0; display: grid; gap: 2rem; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: minmax(0, var(--measure)) 20rem; gap: 5rem; justify-content: center; } .pull--side { position: sticky; top: 2rem; align-self: start; margin-top: .4rem; } }
.lost { max-width: 50rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0; }
.lost .opener__dek { margin-bottom: 2rem; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(4rem, 9vw, 7rem); background: var(--paper-3); border-top: 3px solid var(--ink); }
.foot__in { max-width: var(--max); margin: 0 auto; padding: 3rem var(--gutter); display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .foot__in { grid-template-columns: 1.1fr 1.3fr 1fr; gap: 3.5rem; } }
.foot__word { font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: .85; text-transform: uppercase; margin: 0; }
.foot__word em { font-style: normal; font-weight: 500; }
.foot__tag { font-style: italic; color: var(--ink-2); margin: 1rem 0 0; }
.foot__head { margin: 0 0 .8rem; }
.foot__chapters ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.foot__chapters li { break-inside: avoid; margin-bottom: .5rem; }
.foot__chapters a { text-decoration: none; font-family: var(--label); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.foot__chapters a span { color: var(--mute); margin-right: .2rem; }
.foot__chapters a:hover { text-decoration: underline; }
.foot__note p { font-size: .95rem; color: var(--ink-2); margin: 0 0 .8rem; }
.foot__base { max-width: var(--max); margin: 0 auto; padding: 1.2rem var(--gutter) 2rem; border-top: 1px solid var(--rule); font-family: var(--label); font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 480px) { .foot__chapters ol { columns: 1; } }

/* home ends on the closing panel */
.is-home .foot { margin-top: 0; }

/* reading progress on long reads (progressive enhancement, no JS) */
@supports (animation-timeline: scroll()) {
  .is-article .top::after { content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--ink); transform-origin: 0 50%;
    transform: scaleX(0); animation: read linear both; animation-timeline: scroll(root); z-index: 30; }
  @keyframes read { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot, .chapnav, .related, .story__side .rail { display: none; } }
