/* jeffbridgham.com — one stylesheet for every page. Bump ?v=N in the HTML
   when this changes.

   Design: "1a Proceedings" from the Claude Design handoff (2026-10-16,
   debugging/design_handoff_jeffbridgham_site/README.md). Scientific-journal
   direction: Newsreader + IBM Plex Mono, wide margins, numbered sections,
   footnotes, color used only as a category key (A–D). Radius 0, no shadows.
   Dark mode = the "1b Monograph" palette on the same layout, via
   prefers-color-scheme (system only, no toggle).
   Fonts are SELF-HOSTED from /fonts/ (no Google Fonts request, no third
   party sees a visitor): Newsreader variable (opsz 6–72, wght 300–600,
   italic 300–500) and IBM Plex Mono 400/500, latin + latin-ext subsets,
   SIL OFL (license texts sit next to the files). */

/* ---------- fonts (self-hosted, see header) ---------- */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-roman-400-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-roman-400-latin.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-roman-500-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-roman-500-latin.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 500;
  font-display: swap;
  src: url('/fonts/newsreader-italic-300-500-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/newsreader-italic-300-500-latin.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 600;
  font-display: swap;
  src: url('/fonts/newsreader-roman-300-600-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/newsreader-roman-300-600-latin.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;
}

:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --ink: #1d1c1a;
  --body2: #4a473f;        /* body-secondary: ledes */
  --muted: #55524b;        /* deks, nav, facts labels */
  --faint: #8a857a;        /* meta, section labels, captions, footer */
  --rule: #d9d5cc;
  --rule-strong: #1d1c1a;  /* first list row */
  --stripe-a: #ebe8e1;     /* image placeholders */
  --stripe-b: #e4e0d7;
  --stripe-border: transparent;
  --cat-a: oklch(0.55 0.13 250);   /* blue */
  --cat-b: oklch(0.55 0.13 150);   /* green */
  --cat-c: oklch(0.55 0.13 30);    /* red-orange; also the footnote accent */
  --cat-d: oklch(0.55 0.13 320);   /* magenta */
  --accent: var(--cat-c);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --pad-x: 72px;
  --label-col: 180px;
  --gap: 56px;
}
/* 1b palette as dark mode: system preference unless the visitor chose light… */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151617;
    --ink: #e9e7e2;
    --body2: #b5b2aa;
    --muted: #9a978f;
    --faint: #6f6c66;
    --rule: #2a2b2f;
    --rule-strong: #34353a;
    --stripe-a: #1d1e20;
    --stripe-b: #222326;
    --stripe-border: #2a2b2f;
    --cat-a: oklch(0.78 0.11 240);
    --cat-b: oklch(0.78 0.11 150);
    --cat-c: oklch(0.78 0.11 75);  /* amber */
    --cat-d: oklch(0.78 0.11 330);
  }
}
/* …or the visitor chose dark. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151617;
  --ink: #e9e7e2;
  --body2: #b5b2aa;
  --muted: #9a978f;
  --faint: #6f6c66;
  --rule: #2a2b2f;
  --rule-strong: #34353a;
  --stripe-a: #1d1e20;
  --stripe-b: #222326;
  --stripe-border: #2a2b2f;
  --cat-a: oklch(0.78 0.11 240);
  --cat-b: oklch(0.78 0.11 150);
  --cat-c: oklch(0.78 0.11 75);
  --cat-d: oklch(0.78 0.11 330);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .7; }
h1, h2, h3, p { text-wrap: pretty; }
[hidden] { display: none !important; }

/* category key: text color; dots pick it up through currentColor */
.cat-a { color: var(--cat-a); }
.cat-b { color: var(--cat-b); }
.cat-c { color: var(--cat-c); }
.cat-d { color: var(--cat-d); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot.small { width: 7px; height: 7px; }

/* ---------- header / footer ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 12px 24px;
  padding: 36px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 10;   /* stays put while the page scrolls */
  background: var(--bg);
}
.site-header .logo { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.site-header nav { display: flex; gap: 36px; font: 400 13px var(--mono); color: var(--muted); }
.site-header nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

.site-footer {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 12px 24px;
  padding: 28px var(--pad-x);
  border-top: 1px solid var(--rule);
  font: 400 12px var(--mono); color: var(--faint);
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 24px; }
/* the copyright line is a button: it opens the About dialog (wordturf's
   pattern) but keeps looking like plain footer text */
.site-footer .copyright { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; transition: opacity .15s; }
.site-footer .copyright:hover { opacity: .7; }

/* ---------- About dialog (copyright tap): the read counts live here ---------- */
dialog.about {
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 0;
  padding: 26px 32px 22px;
  width: min(360px, calc(100vw - 48px));
  box-sizing: border-box;
}
dialog.about::backdrop { background: rgba(0, 0, 0, .45); }
.about-title { margin: 0 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.about-line { margin: 0 0 4px; font: 400 12px/1.7 var(--mono); color: var(--muted); }
.about-line a { text-decoration: underline; text-underline-offset: 2px; }
.about-actions { margin-top: 18px; }
.about-close { font: 400 12px var(--mono); color: var(--ink); background: none; border: 1px solid var(--rule); border-radius: 0; padding: 7px 14px; cursor: pointer; transition: opacity .15s; }
.about-close:hover { opacity: .7; }
.theme-toggle { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: opacity .15s; }
.theme-toggle:hover { opacity: .7; }

/* Anchor jumps (#fn-1 …) stop below the sticky header: site.js measures it
   into --header-h; the fallback is roughly the desktop header height. */
html { scroll-padding-top: calc(var(--header-h, 110px) + 24px); }
/* Jumps within a page are instant. Smooth scrolling animated every jump
   across the whole distance; on a long piece that read as slow to tap
   between sections (Jeff, 2026-10-20). */

/* ---------- the section grid: 180px label | content ---------- */
.section {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  gap: var(--gap);
  padding: 88px var(--pad-x) 40px;
}
.sec-label { font: 400 12px/1.6 var(--mono); color: var(--faint); padding-top: 8px; }
.section.intro { padding: 112px var(--pad-x) 96px; }
.section.intro .sec-label { padding-top: 16px; }
.section.work { padding: 72px var(--pad-x) 96px; }
main > .section:last-child { padding-bottom: 96px; }   /* last section before the footer */

/* ---------- home: hero ---------- */
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.625vw, 72px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -.025em;
  max-width: 940px;
}
.fn-ref { font: 500 15px var(--mono); color: var(--accent); vertical-align: super; margin-left: 4px; }
.hero .lede { margin: 40px 0 0; max-width: 620px; font-size: 21px; line-height: 1.55; color: var(--body2); }
.hero .lede + .lede { margin-top: 16px; }
.hero .lede.links { max-width: none; }     /* the project links stay on one line */
.hero .lede a { white-space: nowrap; }
.hero .footnote {
  margin: 28px 0 0; max-width: 620px;
  font: 400 12px/1.6 var(--mono); color: var(--faint);
  border-top: 1px solid var(--rule); padding-top: 14px;
}
.fn-num { color: var(--accent); }
/* links inside running text (lede, footnotes, aside) get a quiet underline */
.lede a, .footnote a, .index-aside a { text-decoration: underline; text-underline-offset: .15em; text-decoration-color: var(--faint); }

/* ---------- home: facts strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font: 400 12px/1.6 var(--mono); color: var(--muted);
}
.facts > div { padding: 22px 24px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.facts > div:first-child { padding-left: var(--pad-x); }
.facts > div:last-child { padding-right: var(--pad-x); border-right: 0; }
.facts .key { display: flex; align-items: center; gap: 8px; }
.facts .value { color: var(--ink); }

/* ---------- home: writing rows ---------- */
.post-list { display: flex; flex-direction: column; }
.post-rows { display: flex; flex-direction: column; }
.post-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.post-rows > .post-row:first-child { border-top-color: var(--rule-strong); }
.post-rows > .post-row:last-child { border-bottom: 1px solid var(--rule); }
.post-row .title { font-size: 32px; line-height: 1.2; letter-spacing: -.01em; }
.post-row .dek { margin-top: 8px; font-size: 18px; line-height: 1.5; color: var(--muted); font-style: italic; }
.post-row .meta { font: 400 12px/1.7 var(--mono); color: var(--faint); text-align: right; }
.more { margin-top: 20px; font: 400 13px var(--mono); color: var(--ink); align-self: flex-start; }

/* ---------- home: work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.plate {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px);
  border: 1px solid var(--stripe-border);
  display: flex; align-items: flex-end; padding: 12px;
  font: 400 11px var(--mono); color: var(--faint);
}
.card .caption { font: 400 11px var(--mono); color: var(--faint); }
.card .title { font-size: 22px; line-height: 1.25; }

/* ---------- writing index ---------- */
.section.index-intro { padding: 96px var(--pad-x) 56px; }
.section.index-intro .sec-label { padding-top: 12px; }
.page-title { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 300; letter-spacing: -.02em; }
.index-intro .lede { margin: 20px 0 0; max-width: 560px; font-size: 20px; line-height: 1.55; color: var(--body2); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; font: 400 12px var(--mono); }
.pill {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--rule); border-radius: 999px;
  appearance: none; background: none; color: inherit; font: inherit; cursor: pointer;
  transition: opacity .15s;
}
.pill:hover { opacity: .7; }
.pill.active { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.index-body {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr) 280px;
  gap: var(--gap);
  padding: 0 var(--pad-x) 96px;
}
.index-body .sec-label { padding-top: 32px; }
.index-list { display: flex; flex-direction: column; }
.index-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.index-list > .index-row:first-child { border-top-color: var(--rule-strong); }
.index-list > .index-row:last-child { border-bottom: 1px solid var(--rule); }
.index-row .date { font: 400 12px/2.4 var(--mono); color: var(--faint); }
.index-row .title { font-size: 30px; line-height: 1.2; }
.index-row .dek { margin-top: 8px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.index-row .meta { margin-top: 12px; font: 400 11px var(--mono); color: var(--faint); }
.index-aside { padding-top: 32px; display: flex; flex-direction: column; gap: 28px; font: 400 12px/1.7 var(--mono); color: var(--muted); }
.index-aside > div { border-top: 1px solid var(--rule); padding-top: 14px; }
.index-aside .aside-label { color: var(--faint); margin-bottom: 6px; }
.index-aside .featured { font: 400 18px/1.35 var(--serif); color: var(--ink); }
.index-aside a.u { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- article page (provisional: not in the handoff yet; same
   system, kept quiet until the essay page is designed) ---------- */
.section.article { padding: 96px var(--pad-x) 96px; }
.section.article .sec-label { padding-top: 12px; }
.article h1 { margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; font-weight: 300; letter-spacing: -.02em; max-width: 820px; }
.article .meta { margin: 20px 0 0; font: 400 12px/1.6 var(--mono); color: var(--faint); }
.article .meta .reads { white-space: nowrap; }
.article .postscript { margin: 48px 0 0; max-width: 640px; border-top: 1px solid var(--rule); padding-top: 14px; font: 400 12px/1.6 var(--mono); color: var(--faint); }
.prose { margin-top: 48px; max-width: 640px; font-size: 19px; line-height: 1.6; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { margin: 2em 0 .6em; font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -.01em; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 22px; line-height: 1.25; font-weight: 400; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 0 0 0 1.2em; border-left: 1px solid var(--rule-strong); color: var(--body2); font-style: italic; }
.prose img, .prose video { max-width: 100%; height: auto; display: block; margin: 1.6em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 10px; font: 400 11px/1.6 var(--mono); color: var(--faint); }
.prose pre { overflow-x: auto; margin: 1.4em 0; padding: 16px 18px; background: var(--stripe-a); border: 1px solid var(--rule); font: 400 13px/1.6 var(--mono); }
.prose code { font-family: var(--mono); font-size: .88em; }
.prose :not(pre) > code { background: var(--stripe-a); padding: .1em .35em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose a { text-decoration: underline; text-underline-offset: .15em; text-decoration-color: var(--faint); }
.prose .fn-ref { font-size: 13px; }
/* ---------- series: a hub page lists the parts; every part carries the
   one-line series-nav at its foot and the part-nav in its margin panel (both
   generated by tools/post-rows.py). ---------- */
.series-nav { margin: 14px 0 0; font: 400 12px/1.8 var(--mono); color: var(--faint); }
.series-nav a { color: var(--ink); }
.series-nav.foot { margin-top: 48px; max-width: 640px; border-top: 1px solid var(--rule); padding-top: 14px; }
.series-list { margin: 40px 0 0; padding: 0; list-style: none; max-width: 640px; border-top: 1px solid var(--rule-strong); }
.series-list li { border-bottom: 1px solid var(--rule); }
.series-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; padding: 22px 0; }
.series-list .part { font: 400 12px/2.4 var(--mono); color: var(--faint); }
.series-list .title { display: block; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.series-list .dek { display: block; margin-top: 6px; font-size: 17px; line-height: 1.5; color: var(--muted); }

/* ---------- long article: the margin column is the reader's panel. It stays
   pinned under the header while the page scrolls and holds the contents (and,
   on a series part, the part-nav: series · Part N of M · prev · next).
   site.js marks the entry being read with aria-current (its parent entry gets
   .within) and sets --fill, the height of the ink rule beside the list, which
   grows as the reader moves down: the page reads as unfinished until the rule
   is full (Jeff, 2026-10-17: "how can a reader navigate easily between the
   sections?"; 2026-10-18: "one long scrolling page with sections in it but it
   doesn't feel 'done' until you get to the bottom"). Section headings sit in
   the text column, sub-sections as h3 inside the prose; on narrow screens the
   margin drops between the opening and the text, unpinned, and each heading
   gets a ↑ back to the contents. ---------- */
.article-long { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 0 var(--gap); padding: 96px var(--pad-x); }
.article-long .article-head { grid-column: 2; grid-row: 1; }
.article-long .margin { grid-column: 1; grid-row: 1 / 3; align-self: start; position: sticky; top: calc(var(--header-h, 110px) + 32px); padding-top: 12px; font: 400 12px/1.8 var(--mono); color: var(--faint); }
.article-long .body { grid-column: 2; grid-row: 2; }
.article-long .margin > .sec-label { padding-top: 0; }
.article-long .article-head .prose { margin-top: 48px; }
.article-long section { padding-top: 56px; }
.article-long section .prose { margin-top: 0; }
.article-long section > h2 { margin: 0 0 18px; max-width: 640px; font-size: 26px; line-height: 1.25; font-weight: 400; letter-spacing: -.01em; text-wrap: pretty; }
.article-long .num { font: 400 12px/1 var(--mono); color: var(--faint); margin-right: 14px; vertical-align: .35em; letter-spacing: 0; }
.article-long .up { display: none; }   /* desktop: the contents are always in view */
.article-long section.notes .footnotes { margin-top: 0; border-top: 0; padding-top: 0; }
.part-nav { display: flex; flex-direction: column; }
.part-nav a { color: var(--ink); }
.contents-nav { margin-top: 28px; }
.contents-nav .sec-label { padding-top: 0; margin-bottom: 2px; }
.contents { position: relative; margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 1px solid var(--rule); font: 400 12px/2 var(--mono); }
.contents::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: var(--fill, 0px); background: var(--ink); }
.contents ol { margin: 0; padding: 0 0 0 14px; list-style: none; }
.contents a { color: var(--muted); }
.contents a[aria-current], .contents a.within { color: var(--ink); }

/* ---------- footnotes: the numbered notes to the hero title, in their own
   "Notes" section at the foot of the page (and at the end of articles).
   Markers in the title are sup.fn-ref links to #fn-N; each note links back
   to #fnref-N. The notes are real paragraphs, so they are set in the serif at
   reading size rather than the 12px mono of a one-line footnote. ---------- */
.section.notes .footnotes { margin-top: 0; }
.section.notes .sec-label { padding-top: 24px; }   /* lines up with the first note's text */
.footnotes {
  margin-top: 48px; max-width: 652px;    /* 32px number column + the 620px lede measure */
  border-top: 1px solid var(--rule); padding-top: 22px;
  font-size: 16px; line-height: 1.55; color: var(--body2);
}
.footnotes ol { margin: 0; padding: 0; list-style: none; }
.footnotes li { display: grid; grid-template-columns: 32px minmax(0, 1fr); margin: 0 0 18px; }
.footnotes li:last-child { margin-bottom: 0; }
.footnotes p { margin: 0; text-wrap: pretty; }
.footnotes .fn-num { font: 500 12px/1.6 var(--mono); padding-top: 4px; }
.footnotes .fn-ref { font-size: 11px; margin-left: 2px; }   /* a reference inside a note, e.g. to a post */
.footnotes a { text-decoration: underline; text-underline-offset: .15em; text-decoration-color: var(--faint); }
.fn-back { font: 400 12px var(--mono); color: var(--faint); text-decoration: none !important; margin-left: 4px; white-space: nowrap; }

/* ---------- responsive (guidance only in the handoff; not designed) ---------- */
@media (max-width: 900px) {
  :root { --pad-x: 24px; }
  .site-header { padding: 24px var(--pad-x); }
  .site-header nav { gap: 20px; }
  .section, .index-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section { padding: 56px var(--pad-x) 32px; }
  .section.intro { padding: 64px var(--pad-x) 56px; }
  .section.index-intro { padding: 56px var(--pad-x) 40px; }
  .section.work { padding: 48px var(--pad-x) 64px; }
  .section.article { padding: 56px var(--pad-x) 64px; }
  .sec-label, .section.intro .sec-label, .section.index-intro .sec-label,
  .index-body .sec-label, .section.article .sec-label { padding-top: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { padding: 16px var(--pad-x); border-right: 0; border-bottom: 1px solid var(--rule); }
  .facts > div:last-child { border-bottom: 0; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .post-row .title { font-size: 26px; }
  .post-row .meta { text-align: left; }
  .work-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .filters { margin-top: 28px; }
  .index-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .index-row .date { line-height: 1.6; }
  .index-row .title { font-size: 26px; }
  .index-aside { padding-top: 8px; }
  .prose { font-size: 18px; }
  .article-long { grid-template-columns: minmax(0, 1fr); padding: 56px var(--pad-x) 64px; }
  .article-long .article-head, .article-long .margin, .article-long .body { grid-column: 1; grid-row: auto; }
  .article-long .margin { position: static; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--rule); }
  .article-long section { padding-top: 48px; }
  .article-long .up { display: inline-block; margin-left: 12px; font: 400 12px/1 var(--mono); color: var(--faint); text-decoration: none; vertical-align: .35em; }
}
