/* ============================================================
   Paying Attention — Ghost theme
   E. T. Brooking. "Declassified Modern".

   Charter: brand/website/DESIGN.md (binding). Tokens are law.
   Ported from etbrooking.com (Astro, src/styles/global.css) so the
   newsletter reads as the same property: same faces, same tokens,
   same index rows, same document header, same flat surfaces.

   Nothing here is loaded from a CDN. All three faces are self-hosted
   in assets/fonts/.
   ============================================================ */

/* ---------- Fonts (self-hosted, no CDN — DESIGN.md §3) ---------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/newsreader.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/newsreader-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/newsreader-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/newsreader-italic-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/public-sans-v.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/public-sans-ext-v.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/courier-prime-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/courier-prime-400-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/courier-prime-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/courier-prime-700-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (DESIGN.md §2, verbatim) ---------- */
:root {
  --paper: #F8F8F5;
  --well: #EFEFEA;
  --ink: #1B1E20;
  --body: #33383B;
  --muted: #6C7176;
  --rule: #D9DBD4;
  --accent: #8A2433;
  --accent-hover: #6F1D29;
  --accent-deep: #560015;
  --signal: #3E6B66; /* inside figures/charts only, never UI chrome */

  /* Ghost's Koenig cards read these; pinning them keeps injected card
     CSS inside the palette instead of Ghost's blues and greys. */
  --color-primary-text: var(--body);
  --ghost-accent-color: var(--accent);
}

/* The charter has no dark scheme. One is not invented here; the
   declaration only stops the UA from painting dark form controls. */
:root { color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
/* Full-bleed cards use 100vw; clip the scrollbar-width overshoot. */
html { overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--body);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.mono { font-family: "Courier Prime", "Courier New", monospace; }
em, i { font-style: italic; } /* cited work titles and quotations only */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--accent);
  padding: 8px 14px; z-index: 10;
  font-family: "Public Sans", sans-serif; font-size: .85rem;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Masthead ---------- */
header.masthead { border-bottom: 1px solid var(--rule); }
/* One frame, 1080px — the charter's grid cap (§5) — governs masthead,
   apparatus rail, index pages and footer. The 720 measure centres
   inside it. Content wider than the frame is a bug. */
.bar {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 20px 32px; gap: 12px 24px;
}
.wordmark {
  font-family: "Public Sans", sans-serif; font-weight: 800;
  font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--accent-deep); }
a.wordmark:hover { color: var(--accent-deep); text-decoration: none; }
nav.sitenav { display: flex; gap: 26px; align-items: baseline; flex-wrap: wrap; }
nav.sitenav a {
  font-family: "Public Sans", sans-serif; font-weight: 600;
  font-size: .88rem; color: var(--body); white-space: nowrap;
}
nav.sitenav a:hover { color: var(--accent); text-decoration: none; }
nav.sitenav a[aria-current="page"] { color: var(--accent); }
/* Social marks beside Subscribe: quiet at rest, accent under the
   pointer (Base.astro). */
nav.sitenav a.socialicon { display: inline-flex; align-items: center; color: var(--muted); }
nav.sitenav a.socialicon:hover { color: var(--accent); }
nav.sitenav a.socialicon svg { width: 15px; height: 15px; display: block; }
/* The page's single solid button (DESIGN.md §4). */
nav.sitenav a.subscribe {
  background: var(--accent); color: var(--paper);
  padding: 7px 14px; border-radius: 2px;
}
nav.sitenav a.subscribe:hover { background: var(--accent-hover); color: var(--paper); text-decoration: none; }
.apparatus {
  max-width: 1080px; margin: 0 auto; padding: 10px 32px 0;
  font-size: .72rem; color: var(--muted); letter-spacing: .02em;
}

/* ---------- Layout containers (DESIGN.md §5 — two widths, exactly) ----------
   Ported verbatim from the Astro site: articles run the 720 measure
   (main.measure), index pages ride the 1080 site frame so their edges
   register with the masthead (main.idxwide). Gutters 32px, 20px below
   720. No third width. */
.measure { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.idxwide { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ---------- Plate (site signature, DESIGN.md §4) ---------- */
figure.plate { margin: 0; border: 1px solid var(--rule); padding: 10px; background: #fff; }
figure.plate img { display: block; width: 100%; height: auto; }
figure.plate figcaption {
  padding: 9px 2px 1px; font-size: .72rem; line-height: 1.5; color: var(--muted);
  font-family: "Courier Prime", "Courier New", monospace;
}
figure.plate figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule); }
figure.plate figcaption a:hover { color: var(--accent); text-decoration-color: currentColor; }
/* Off-site marker inside credits — the /writing/ Sisyphus caption's ↗. */
figure.plate figcaption .outmark { font-size: .9em; padding-left: 2px; }
/* Feature images ride bare, like the banner plate — no hairline frame,
   no white ground (Emerson 2026-09-08: the editor crops/treats feature
   images too many ways for a forced box motif). The Courier caption
   keeps the plate grammar. In-content image cards (.kg-image-card)
   still get the framed plate. */
.plate.feature { margin: 26px 0 6px; border: none; padding: 0; background: transparent; }

/* ---------- Section rules ---------- */
hr.divider { border: none; border-top: 1px dashed var(--rule); margin: 0 0 14px; }
hr.divider.act { margin: 56px 0 14px; }

/* ---------- Issue number (see partials/issue-serial.hbs) ---------- */
/* Only internal tags whose slug starts `hash-issue-` are shown. Every
   other internal tag renders nothing at all — no number is ever
   invented (DESIGN.md §7). */
.serial { display: none; }
.serial[data-tag^="hash-issue-"] { display: inline; text-transform: none; }
/* In the document header the separator lives inside the span so it
   disappears with it when a post carries no issue tag. */
.doc-meta .serial[data-tag^="hash-issue-"]::before { content: "\00a0\00B7\00a0"; }
/* Clip the fixed 11-character `hash-issue-` prefix. Courier Prime is
   monospace, so 11ch is the exact advance of those 11 glyphs; the
   negative margin reclaims the space the clipped run would occupy.
   letter-spacing must be 0 here or the ch arithmetic drifts. */
.serial-n {
  display: inline-block;
  font-family: "Courier Prime", "Courier New", monospace;
  letter-spacing: 0;
  margin-left: -11ch;
  clip-path: inset(0 0 0 11ch);
}

/* ---------- Index pages (the archive) ---------- */
/* Rhythm ported from /writing/: 30px above the banner renders a ~24px
   visual gap to the plate, symmetric with the caption-to-h1 gap. */
.idx { padding: 30px 0 24px; }

/* Page title — the About/Writing convention exactly (global.css
   .page-h1): Public Sans 800, 3.4rem, line-height 1, -.022em. */
.page-h1 {
  font-family: "Public Sans", sans-serif; font-weight: 800;
  font-size: 3.4rem; line-height: 1.0; letter-spacing: -.022em;
  color: var(--ink); margin: 0 0 18px;
}
.lead { font-size: 1.35rem; line-height: 1.45; color: var(--ink); margin: 0 0 24px; }

/* The banner plate. Full content width, bare canvas — no frame, no
   padding, no ground: registration with the h1 and index edges does the
   alignment work (site v3, 2026-07-14). Courier provenance caption
   beneath, right-aligned. */
/* Two classes deep: the base `figure.plate` frame must not win here. */
figure.plate.bannerplate { margin: 0 0 24px; border: none; padding: 0; background: transparent; }
figure.plate.bannerplate img { display: block; width: 100%; height: auto; }
figure.plate.bannerplate figcaption {
  padding: 6px 0 0;
  font-size: .68rem; color: var(--muted); letter-spacing: .02em;
  text-align: right; line-height: 1.5;
}

/* Plain text filter links, never pills (DESIGN.md §4). */
.filters {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  font-size: .74rem; color: var(--muted);
  padding: 2px 0 18px;
}
.filters a { color: var(--muted); }
.filters a:hover { color: var(--accent); text-decoration: none; }
.filters a.current { color: var(--accent); font-weight: 700; }
.emptynote { font-size: .74rem; color: var(--muted); letter-spacing: .02em; padding: 26px 0 10px; }

.pa-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px 24px;
  border-top: 1px solid var(--ink); padding: 10px 0 8px;
  font-size: .74rem; color: var(--muted); text-transform: uppercase;
}
.pa-head b { color: var(--accent); font-weight: 700; }

/* No ink rule above the archive (Emerson 2026-09-09: "no underline
   under the featured image before the editions start") — the banner
   hands straight to the rows; hairlines between entries remain. */
table.index { width: 100%; border-collapse: collapse; }
table.index td { border-top: 1px solid var(--rule); padding: 15px 0; vertical-align: baseline; }
table.index tbody:first-child tr:first-child td { border-top: none; }
/* Hovering anywhere in an entry lights the title and its destination;
   clicking stays on the links themselves. No motion, no underline
   animation, no card lift. */
table.index tbody.entry:hover td.t a,
table.index tbody.entry:hover td.m a.onsite { color: var(--accent); }
table.index td.c {
  white-space: nowrap; font-size: .72rem; color: var(--muted);
  padding-right: 22px; width: 1%;
}
table.index td.c .cstack { display: inline-flex; flex-direction: column; align-items: flex-start; }
table.index td.t { font-size: 1.22rem; line-height: 1.35; color: var(--ink); font-family: "Newsreader", Georgia, serif; }
table.index td.t a { color: var(--ink); }
table.index td.t a:hover { color: var(--accent); text-decoration: none; }
table.index td.m {
  text-align: right; white-space: nowrap; font-size: .74rem;
  color: var(--muted); padding-left: 24px; text-transform: uppercase;
}
/* Date under the title, over the lede — the site-wide index-row
   grammar. The meta cell holds destinations only. */
table.index td.t .idate {
  font-size: .7rem; color: var(--muted); letter-spacing: .02em;
  margin: 3px 0 8px; line-height: 1.4; text-transform: uppercase;
}
table.index td.m a.onsite { color: var(--muted); }
table.index td.m a.onsite:hover { color: var(--accent); text-decoration: none; }
table.index td.m a.onsite .inmark { font-size: .9em; padding-left: 2px; }
.lede-excerpt { font-size: 1rem; line-height: 1.55; color: var(--body); margin: 8px 0 0; max-width: 58ch; }
.lede-excerpt.clamped {
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Broadsheet archive grid (index, layout study B) ----------
   Front-page pair over ruled 3-up rows. Column rules are borders on
   the items (newsprint), never boxes around them; plates are bare
   cover-crops on the well; all flat, DESIGN.md §4. */
.bitem { display: block; color: var(--ink); }
.bitem:hover { text-decoration: none; }
.gplate { background: var(--well); overflow: hidden; position: relative; }
.gplate img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Hover event on plates (Emerson 2026-09-10): color, never motion —
   an inset accent hairline appears, the way the site's framed cards
   turn their borders accent. No zoom, no lift, per DESIGN.md §4. */
.bitem:hover .gplate, .glead:hover .gplate {
  outline: 1px solid var(--accent); outline-offset: -1px;
}
.bdeck .gplate { aspect-ratio: 5 / 3; }
/* Type-lead (v2): text-dominant newest issue with a modest side plate. */
.glead {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0 34px;
  align-items: center; padding: 40px 0 38px; color: var(--ink);
}
.glead:hover { text-decoration: none; }
.glead.glead-noimg { grid-template-columns: 1fr; }
.glead-plate { aspect-ratio: 4 / 3; }
.glead-t {
  font-family: "Newsreader", Georgia, serif; font-weight: 700;
  font-size: 2.5rem; line-height: 1.12; letter-spacing: -.01em;
  color: var(--ink); margin: 6px 0 14px;
}
.glead:hover .glead-t { color: var(--accent); }
.glatest::before { content: "\00a0\00B7\00a0"; }
.gread {
  font-size: .72rem; letter-spacing: .04em; color: var(--muted);
  text-transform: uppercase; margin: 18px 0 0;
}
.glead:hover .gread { color: var(--accent); }
.noimg {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 700; color: var(--rule);
}
.gmeta {
  font-size: .7rem; color: var(--muted); letter-spacing: .02em;
  text-transform: uppercase; margin: 12px 0 0;
}
/* Serials ride ink, not accent (Emerson 2026-09-10: "the red would be
   paying attention, not issue no." — the accent belongs to the brand
   mark, which the banner carries). */
.gmeta .serial[data-tag^="hash-issue-"] { color: var(--ink); font-weight: 700; }
.gmeta .serial[data-tag^="hash-issue-"] + .gdate::before { content: "\00a0\00B7\00a0"; }
.gtitle {
  font-family: "Newsreader", Georgia, serif; font-weight: 600;
  color: var(--ink); line-height: 1.25; margin: 8px 0 4px;
}
.bdeck .gtitle { font-size: 1.15rem; }
.bitem:hover .gtitle { color: var(--accent); }
.glede { font-size: .98rem; line-height: 1.5; color: var(--body); margin: 4px 0 0; max-width: 62ch; }
.bdeck {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px;
  border-top: 1px solid var(--rule); margin-top: 30px; padding-top: 26px;
}
.bdeck:empty { display: none; }
.bdeck .bitem { border-left: 1px solid var(--rule); padding-left: 26px; }
.bdeck .bitem:nth-child(3n + 1) { border-left: none; padding-left: 0; }
@media (max-width: 860px) {
  .glead { grid-template-columns: 1fr; gap: 22px 0; padding-top: 30px; }
  .glead-t { font-size: 1.9rem; }
  .glead-plate { aspect-ratio: 16 / 9; }
  .bdeck { grid-template-columns: 1fr; gap: 34px 0; }
  .bdeck .bitem { border-left: none; padding-left: 0; }
  .bdeck .bitem + .bitem { border-top: 1px solid var(--rule); padding-top: 26px; }
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px 24px; margin-top: 26px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: .72rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .02em;
}
.pagination a.pg { color: var(--muted); }
.pagination a.pg:hover { color: var(--accent); text-decoration: none; }
.pagination .pg.off { color: var(--rule); }

/* ---------- Article/document ---------- */
/* Top padding tightened 46→18 (Emerson 2026-09-10: "too much margin
   between thinker, tinker and the header") — the full-bleed band now
   opens the document, and it wants to sit close under the apparatus
   rail rather than float below it. */
.doc-header { padding: 18px 0 8px; }
/* Publication band over the h1, v2: full-bleed letterless background
   (SectionBanner mechanics) + the transparent stencil phrase overlaid
   in a measure-registered inner box, so the letters start inline with
   the h1 at every viewport. The title PNG carries a 60px halo margin
   on a 3533px-wide source; the negative margin re-registers the P's
   stem to the measure edge at each display size. */
.pub-band {
  position: relative; display: block;
  width: 100vw; margin: 0 calc(50% - 50vw) 30px;
}
.pub-band-bg {
  display: block; width: 100%; height: min(24vw, 200px);
  object-fit: cover; object-position: center;
}
/* Hover on the band (Emerson 2026-09-10 "subtle darkening or
   highlight"): the ground dips while the overlaid title holds its
   brightness — the letters read as glowing harder. Tonal only, no
   motion. */
.pub-band:hover .pub-band-bg { filter: brightness(0.84); }
.pub-band-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  max-width: 720px; margin: 0 auto; padding: 0 32px; width: 100%;
}
.pub-band-title { display: block; width: 620px; max-width: 100%; margin-left: -10.5px; }
@media (max-width: 720px) {
  .pub-band-inner { padding: 0 20px; }
  .pub-band-title { width: 96%; margin-left: -1.63%; }
}
.doc-header h1 {
  font-family: "Public Sans", sans-serif; font-weight: 800;
  font-size: 2.6rem; line-height: 1.05; letter-spacing: -.022em;
  color: var(--ink); margin: 0 0 14px;
}
.doc-meta {
  font-size: .74rem; color: var(--muted); letter-spacing: .02em;
  margin: 0; text-transform: uppercase;
}
.doc-meta a { color: var(--muted); }
.doc-meta a:hover { color: var(--accent); }
/* The publication name, unlike the site's venue links, is accent at
   rest: it is the one live element in the apparatus line and has to
   read as one (Emerson). Underline on hover only, per DESIGN.md §4. */
.doc-meta a.pub { color: var(--accent); }
.doc-meta a.pub:hover { color: var(--accent-hover); }

.prose { padding: 26px 0 8px; }
/* A page whose author switched off the title and feature image
   ({{@page.show_title_and_feature_image}}) starts with the prose;
   it keeps the document header's top margin. */
.prose:first-child { padding-top: 46px; }
.prose > p, .prose p { margin: 0 0 16px; }
.prose h2 {
  font-family: "Public Sans", sans-serif; font-weight: 800; font-size: 1.35rem;
  letter-spacing: -.01em; color: var(--ink); margin: 36px 0 12px;
}
.prose h3 { font-family: "Public Sans", sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--ink); margin: 28px 0 10px; }
.prose h4, .prose h5, .prose h6 {
  font-family: "Public Sans", sans-serif; font-weight: 600; font-size: 1rem;
  color: var(--ink); margin: 24px 0 8px;
}
/* Quote bar: faint accent red, not hairline grey. */
.prose blockquote {
  margin: 0 0 16px; padding: 2px 0 2px 20px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 32%, var(--paper));
  color: var(--body);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 26px; }
.prose li { margin: 0 0 6px; }
.prose img { max-width: 100%; height: auto; }
.prose figure { margin: 24px 0; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 28px 0; }
.prose code {
  font-family: "Courier Prime", "Courier New", monospace; font-size: .92em;
  background: var(--well); padding: 1px 5px;
}
.prose pre {
  background: var(--well); border: 1px solid var(--rule); padding: 14px 16px;
  overflow-x: auto; font-size: .85rem; line-height: 1.5;
  font-family: "Courier Prime", "Courier New", monospace;
}
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .95rem; }
.prose th, .prose td { border-top: 1px solid var(--rule); padding: 9px 10px 9px 0; text-align: left; vertical-align: top; }
.prose th { font-family: "Courier Prime", "Courier New", monospace; font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 400; }

/* End mark: the house dinkus, square like the punched register. */
.endmark { display: flex; gap: 7px; justify-content: center; padding: 26px 0 2px; }
.endmark span { width: 4px; height: 4px; background: var(--accent); }

/* Share disclosure: the summary wears .sub-btn's exact dress (hairline
   frame, Courier, accent — the masthead holds the page's one solid
   button, DESIGN.md §4); the revealed row is quiet apparatus. */
.share { text-align: center; padding: 20px 0 0; }
.share summary.share-btn {
  display: inline-block; cursor: pointer; list-style: none;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent); background: transparent;
  border: 1px solid var(--rule); padding: 10px 20px;
}
.share summary.share-btn::-webkit-details-marker { display: none; }
.share summary.share-btn::marker { content: ""; }
.share summary.share-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.share[open] summary.share-btn { border-color: var(--accent); }
.sharerow { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; padding: 12px 0 0; margin: 0; }
.sharerow a { color: var(--muted); }
.sharerow a:hover { color: var(--accent); text-decoration: none; }

/* Sidenote markers in the prose read as accent, like their notes
   (Emerson 2026-09-10: "the asterisk should be red, too"). sups are
   reserved for note markers in this convention. Web-only — email
   strips both theme CSS and lexical style fields, so the in-body
   marker stays ink there (the email footnote's marker is red). */
.prose sup { color: var(--accent); font-family: "Public Sans", sans-serif; }

/* Always-visible margin sidenotes (sidenotes.js): the margin-cite
   register — Courier, hairline left rule — but static, not summoned.
   Below 1100px the same notes render as .pa-footnotes after the prose. */
.pa-sidenote {
  position: absolute; z-index: 5;
  font-size: .62rem; line-height: 1.6; color: var(--muted);
  letter-spacing: .02em;
  border-left: 1px solid var(--rule); padding-left: 10px;
  background: var(--paper);
}
.pa-note-marker { color: var(--accent); }
.pa-footnotes {
  font-size: .72rem; line-height: 1.6; color: var(--muted);
  letter-spacing: .02em;
  border-top: 1px dashed var(--rule); margin: 26px 0 0; padding-top: 10px;
}
.pa-footnotes p { margin: 0 0 6px; }

.doc-tags { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; padding: 22px 0 0; margin: 0; }
.doc-tags a { color: var(--muted); }
.doc-tags a:hover { color: var(--accent); }

.backlink { font-size: .74rem; padding: 14px 0 40px; margin: 0; text-transform: uppercase; }
.backlink a { color: var(--muted); }
.backlink a:hover { color: var(--accent); }

/* ---------- Adjacent issues ---------- */
.issue-nav { padding: 30px 0 0; }
.issue-nav .adj {
  display: block; border-top: 1px solid var(--rule);
  padding: 13px 0 12px; color: var(--ink);
}
.issue-nav .adj:hover { text-decoration: none; }
.issue-nav .adj-lbl {
  display: block; font-size: .7rem; color: var(--muted);
  letter-spacing: .02em; text-transform: uppercase; margin-bottom: 3px;
}
.issue-nav .adj-t {
  display: block; font-family: "Newsreader", Georgia, serif;
  font-size: 1.08rem; line-height: 1.35; color: var(--ink);
}
.issue-nav .adj:hover .adj-t { color: var(--accent); }

/* ---------- Subscribe (native Ghost members form) ---------- */
.subscribe { padding: 56px 0 8px; }
.sub-pitch { font-size: 1.05rem; color: var(--body); margin: 14px 0 16px; max-width: 58ch; }
.sub-form { margin: 0; }
.sub-fields { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.sub-input {
  flex: 1 1 240px; min-width: 0;
  font-family: "Newsreader", Georgia, serif; font-size: 1rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 0;
  padding: 10px 12px; appearance: none;
}
.sub-input::placeholder { color: var(--muted); }
.sub-input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
/* Hairline-framed, not solid: the masthead holds the page's one solid
   button (DESIGN.md §4). Radius 0, transparent ground. */
.sub-btn {
  font-family: "Courier Prime", "Courier New", monospace; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent); background: transparent;
  border: 1px solid var(--rule); border-radius: 0;
  padding: 10px 20px; cursor: pointer;
}
.sub-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.sub-note { font-size: .72rem; letter-spacing: .02em; text-transform: uppercase; margin: 12px 0 0; }
.sub-note.msg-success { color: var(--accent); display: none; }
.sub-note.msg-error { color: var(--accent-deep); display: none; }
.sub-form.success .msg-success { display: block; }
.sub-form.error .msg-error { display: block; }
.sub-form.loading .sub-btn { color: var(--muted); border-color: var(--rule); }

/* Ghost's injected members CTA ("Subscribe now" slab) — HIDDEN outright
   (Emerson 2026-09-09: it stacked a giant subscribe button above the
   theme's own form on /p/ draft previews; no admin toggle exists — it
   comes from the {{content}} helper). The theme's masthead link and
   subscribe form are the only sanctioned subscribe surfaces. NOTE: this
   CTA is also Ghost's upgrade prompt on GATED posts for non-members —
   if the newsletter ever adds paid/members-only content, restore a
   styled version instead of the display:none. */
.gh-post-upgrade-cta, .gh-post-upgrade-cta-content { display: none !important; }

/* ---------- Koenig editor cards, restyled flat (DESIGN.md §6) ----------
   Ghost injects cards.min.css from {{ghost_head}}, i.e. after this
   file. These selectors are deliberately two classes deep so they win
   on specificity rather than on source order. Everything below removes
   radius, shadow and lift; depth comes from hairlines and the well. */

.gh-content { position: relative; }

/* Breakout widths ride the charter's two widths: wide reaches the
   1080 grid, full bleeds. Prose itself never leaves the 720 measure. */
.gh-content .kg-width-wide {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1016px, calc(100vw - 40px)); max-width: none;
}
.gh-content .kg-width-full {
  position: relative; left: 50%; transform: translateX(-50%);
  width: 100vw; max-width: 100vw;
}

/* Image cards become plates: hairline frame, Courier caption. */
.gh-content .kg-image-card, .gh-content .kg-gallery-card { margin: 28px 0; }
.gh-content .kg-image-card img, .gh-content .kg-gallery-image img {
  border-radius: 0; box-shadow: none;
}
/* White plate frame dropped (Emerson 2026-09-10: "drop the mandatory
   white border around newsletter images in web build") — content
   images ride bare like the banner and feature treatments; the
   Courier caption still carries the plate grammar. */
.gh-content .kg-image-card .kg-image {
  border-radius: 0; box-shadow: none;
}
.gh-content .kg-card figcaption, .gh-content .kg-card-figcaption {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .72rem; line-height: 1.5; color: var(--muted);
  text-align: left; padding: 9px 2px 1px; max-width: none;
}
.gh-content .kg-card figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule); }
.gh-content .kg-card figcaption a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Callout: a well with a hairline frame, no radius, no tint palette. */
.gh-content .kg-callout-card {
  background: var(--well) !important; border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 0; box-shadow: none;
  padding: 16px 20px; margin: 26px 0;
}
.gh-content .kg-callout-card .kg-callout-text {
  font-family: "Newsreader", Georgia, serif; font-size: 1rem;
  line-height: 1.6; color: var(--body);
}
.gh-content .kg-callout-card .kg-callout-emoji { font-size: 1rem; padding-right: 12px; }

/* Bookmark: a filing record, not a shadowed preview card. */
.gh-content .kg-bookmark-card, .gh-content .kg-bookmark-container {
  border-radius: 0; box-shadow: none; margin: 26px 0;
}
.gh-content .kg-bookmark-container {
  border: 1px solid var(--rule); background: var(--paper);
  color: var(--body); text-decoration: none;
}
.gh-content .kg-bookmark-container:hover { border-color: var(--accent); text-decoration: none; }
.gh-content .kg-bookmark-content { padding: 18px 20px; }
.gh-content .kg-bookmark-title {
  font-family: "Public Sans", sans-serif; font-weight: 600;
  font-size: 1rem; color: var(--ink); line-height: 1.35;
}
.gh-content .kg-bookmark-container:hover .kg-bookmark-title { color: var(--accent); }
.gh-content .kg-bookmark-description {
  font-family: "Newsreader", Georgia, serif; font-size: .95rem;
  color: var(--body); margin-top: 6px;
}
.gh-content .kg-bookmark-metadata {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .02em;
  color: var(--muted); margin-top: 10px;
}
.gh-content .kg-bookmark-thumbnail img { border-radius: 0; }

/* Blockquotes authored as cards. */
.gh-content .kg-blockquote-alt {
  font-family: "Newsreader", Georgia, serif; font-style: normal;
  font-size: 1.3rem; line-height: 1.5; color: var(--ink);
  border-left: 2px solid color-mix(in srgb, var(--accent) 32%, var(--paper));
  padding-left: 22px; text-align: left;
}

/* Buttons authored as cards: radius 2px, oxblood, flat. */
.gh-content .kg-button-card .kg-btn {
  font-family: "Public Sans", sans-serif; font-weight: 600;
  border-radius: 2px; box-shadow: none; text-transform: none;
  background: var(--accent); color: var(--paper); border: 1px solid var(--accent);
}
.gh-content .kg-button-card .kg-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }
.gh-content .kg-button-card .kg-btn-accent { background: var(--accent); color: var(--paper); }

/* Toggle, file, audio, video, product, header and signup cards: strip
   radius and shadow, keep Ghost's layout. */
.gh-content .kg-toggle-card,
.gh-content .kg-file-card .kg-file-card-container,
.gh-content .kg-audio-card,
.gh-content .kg-product-card .kg-product-card-container,
.gh-content .kg-header-card,
.gh-content .kg-signup-card {
  border-radius: 0 !important; box-shadow: none !important;
  border: 1px solid var(--rule) !important; background: var(--paper) !important;
}
.gh-content .kg-toggle-card .kg-toggle-heading-text,
.gh-content .kg-file-card .kg-file-card-title,
.gh-content .kg-header-card .kg-header-card-header {
  font-family: "Public Sans", sans-serif; font-weight: 700; color: var(--ink);
}
.gh-content .kg-video-card, .gh-content .kg-embed-card { margin: 28px 0; }
.gh-content .kg-video-card .kg-video-container,
.gh-content .kg-embed-card iframe { border-radius: 0; box-shadow: none; }
.gh-content .kg-signup-card .kg-signup-card-button {
  border-radius: 2px !important; box-shadow: none !important;
  background: var(--accent) !important; color: var(--paper) !important;
}
.gh-content .kg-signup-card input {
  border-radius: 0 !important; box-shadow: none !important;
  border: 1px solid var(--rule) !important;
}

/* ---------- Footer ---------- */
footer.sitefoot { max-width: 1080px; margin: 0 auto; padding: 56px 32px 64px; }
.frule {
  border-top: 1px dashed var(--rule); padding-top: 18px;
  display: flex; justify-content: space-between; gap: 8px 28px;
  font-size: .72rem; color: var(--muted); text-transform: uppercase;
}
.frule a { color: var(--muted); white-space: nowrap; }
.frule a:hover { color: var(--accent); }

/* ---------- Load reveal (one per page, CSS-only, DESIGN.md §7) ---------- */
.r { opacity: 0; transform: translateY(6px); animation: reveal .5s ease-out forwards; }
.r2 { animation-delay: .12s; } .r3 { animation-delay: .24s; } .r4 { animation-delay: .36s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .r { animation: none; opacity: 1; transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
/* Session gate (default.hbs head script, ported from Base.astro): once a
   tab has seen one page this session, skip the reveal on every later
   navigation — a landing flourish, not a between-page transition. */
html.nr .r { animation: none; opacity: 1; transform: none; }

/* ---------- Responsive (DESIGN.md §8) ---------- */
/* Body holds 18px at every width; only the display scales. */
/* Masthead collapse is staged, not left to ragged flex-wrap: with
   "Newsletter" the nav row is ~8 items wide and mid-list wrapping put
   the break inside the link run (Emerson 2026-09-08). Stage 1 tightens
   the gaps; stage 2 gives the wordmark its own line and the whole nav
   the next, left-aligned. Port both stages to Base.astro when the
   Newsletter item joins the real site's header. */
@media (max-width: 1060px) {
  nav.sitenav { gap: 12px 16px; }
  .bar { gap: 12px 16px; }
}
@media (max-width: 940px) {
  .bar { flex-wrap: wrap; gap: 8px 0; }
  .wordmark { flex: 1 1 100%; }
  nav.sitenav { gap: 12px 16px; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .doc-header h1 { font-size: 2rem; }
  .bar { padding: 16px 20px; }
  .apparatus { padding-left: 20px; padding-right: 20px; }
  .measure, .idxwide, footer.sitefoot { padding-left: 20px; padding-right: 20px; }
  .page-h1 { font-size: 2.4rem; }
  .frule { flex-direction: column; align-items: flex-start; }
  .gh-content .kg-width-wide { width: calc(100vw - 40px); }
}
@media (max-width: 560px) {
  /* Rows stack title-over-meta; hairlines retained. Apparatus may wrap,
     never truncate — white-space resets so stacked meta cannot clip. */
  table.index tr { display: block; border-top: 1px solid var(--rule); padding: 13px 0; }
  table.index tbody:first-child tr:first-child { border-top: none; }
  table.index td { display: block; border-top: none; padding: 0; width: auto; }
  table.index td.c { padding-right: 0; }
  table.index td.m { text-align: left; padding: 6px 0 0; white-space: normal; }
  .pa-head { flex-direction: column; }
  .pagination { flex-wrap: wrap; }
}

/* ---------- Margin-citation rail (DESIGN.md §5 rail) ----------
   Ported from etbrooking.com's MarginCitations.astro <style> blocks
   (owner-tuned 2026-08-10/11); :global() wrappers dropped, every rule
   and keyframe otherwise verbatim. Behavior and the per-post cite-data
   architecture are documented in assets/js/margin-cite.js.

   Courier apparatus in the rail: hairline left rule, flat type.
   Position/size are set by the script. The spring is the one motion
   register (owner-directed 2026-08-11): out of the link with slight
   overshoot, retract back into it on dismissal. */
.margin-cite {
  position: fixed; z-index: 400;
  font-size: .62rem; line-height: 1.6; color: var(--muted);
  letter-spacing: .02em;
  border-left: 1px solid var(--rule); padding-left: 10px;
  background: var(--paper);
  animation: cite-spring .24s cubic-bezier(.2, .65, .3, 1.18);
}
.margin-cite.cite-exit {
  animation: cite-retract .15s ease-in forwards;
}
@keyframes cite-spring {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
@keyframes cite-retract {
  to { opacity: 0; transform: translateX(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .margin-cite, .margin-cite.cite-exit { animation: none; }
}
.margin-cite em { font-style: italic; }
/* Title link rests accent/no-underline like any site link; the
   hover-underline register fires in the live state only. */
.margin-cite a.cite-title { color: var(--accent); text-decoration: none; }
.margin-cite.cite-live a.cite-title {
  color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px;
}
/* Media figures ride above the note text on the same white-matted,
   hairline-bordered plate grammar as the page's figures. */
.margin-cite .cite-fig { display: block; margin: 0 0 7px; }
.margin-cite .cite-fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); background: #fff; padding: 2px;
  box-sizing: border-box;
}
.margin-cite .cite-text { display: block; }
.margin-cite .cite-credit { display: block; margin-top: 4px; }
@media (max-width: 1099px) { .margin-cite { display: none; } }

/* The prose link's paired live state. Global in the source component
   too — the class is applied at runtime to links outside the rail. */
a.cite-src-live {
  color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px;
}
