/* Solfird AI: shared styles. DRAFT, not deployed. */
/* Self-hosted fonts. Geist and Geist Mono are one variable file each, every weight. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/Geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/GeistMono.woff2") format("woff2"); }
@font-face { font-family: "Michroma"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Michroma-400.woff2") format("woff2"); }

:root {
  --ink: #0F2730;
  --ink-2: #0B1F27;
  --ink-3: #16333E;
  --paper: #EDE9E0;
  --sage: #93A9B0;
  --rule: #24414C;
  --amber: #F88A14;
  --measure: 68ch;
  --gutter: clamp(16px, 5vw, 64px);
  --sans: "Geist", system-ui, sans-serif;
  --serif: "Geist", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1.0625rem/1.65 var(--serif); text-wrap: pretty; }
/* No last line of one or two words: short display text is balanced, the rest wraps "pretty". */
h1, h2, h3, h4, .lede, .page-intro, .closer-line, .status, footer.site span { text-wrap: balance; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
img, svg, canvas { max-width: 100%; }

/* Draft notice and top menu bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(15, 39, 48, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.wordmark { font: 700 1.0625rem/1 var(--sans); letter-spacing: -0.01em; color: var(--paper); text-decoration: none; }
.topbar ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar a.nav { color: var(--sage); text-decoration: none; font: 500 0.9375rem/1 var(--sans); padding: 6px 0; }
.topbar a.nav:hover { color: var(--paper); }
.topbar a.nav[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--amber); }
/* Org icons (Hugging Face, GitHub) at the end of the menu */
.topbar a.icon { display: inline-flex; align-items: center; }
.topbar a.icon svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.topbar li:has(> a.icon):first-of-type, .topbar li:not(:has(> a.icon)) + li:has(> a.icon) { margin-left: 6px; }

/* Page scaffolding */
.page { padding: clamp(48px, 8vw, 96px) var(--gutter) 0; }
.page-title { font: 700 clamp(2.2rem, 5vw, 3.6rem)/1.02 var(--sans); letter-spacing: -0.03em; margin: 0 0 18px; max-width: 18ch; }
.page-intro { max-width: var(--measure); margin: 0 0 40px; }
h2.section { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--sans); letter-spacing: -0.02em; margin: 0 0 18px; }
.todo { background: rgba(248, 138, 20, 0.12); outline: 1px dashed rgba(248, 138, 20, 0.55); padding: 0 4px; }

/* Lists of posts, reports and offers: rows separated by hairlines */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 1080px; }
.rows > li { display: grid; grid-template-columns: minmax(180px, 15rem) 1fr; gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.rows h2, .rows h3 { font: 700 1.1875rem/1.3 var(--sans); margin: 0; letter-spacing: -0.005em; }
.rows h2 a, .rows h3 a { color: var(--paper); text-decoration: none; }
.rows h2 a:hover, .rows h3 a:hover { color: var(--amber); }
.rows .status { font: 400 0.9375rem/1.4 var(--sans); color: var(--sage); margin: 6px 0 0; }
.rows .body p { margin: 0; max-width: var(--measure); }
.rows .body p + p { margin-top: 12px; }
.rows .meta { font: 400 0.9375rem/1.5 var(--sans); color: var(--sage); }
.rows .links { font: 500 0.9375rem/1.5 var(--sans); display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }

.button { display: inline-block; font: 500 1rem/1 var(--sans); padding: 14px 20px; border-radius: 3px; text-decoration: none; }
.button.primary { background: var(--amber); color: var(--ink); }
.button.primary:hover { background: #ff9d33; }
.button.secondary { color: var(--paper); box-shadow: inset 0 0 0 1px var(--sage); }
.button.secondary:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.actions.top { margin: -16px 0 48px; }

/* Long-form text: blog posts and reports */
.prose { max-width: var(--measure); }
.prose h1 { font: 700 clamp(2rem, 4.4vw, 3rem)/1.08 var(--sans); letter-spacing: -0.025em; margin: 0 0 16px; }
.prose h2 { font: 700 1.6rem/1.2 var(--sans); letter-spacing: -0.015em; margin: 2.2em 0 0.6em; }
.prose h3 { font: 700 1.25rem/1.3 var(--sans); margin: 1.8em 0 0.5em; }
.prose h4 { font: 700 1.0625rem/1.35 var(--sans); margin: 1.5em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li + li { margin-top: 0.35em; }
.prose .byline { font: 400 0.9375rem/1.5 var(--sans); color: var(--sage); margin-bottom: 32px; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 10px; vertical-align: middle; }
.tag { font: 500 0.75rem/1 var(--sans); padding: 4px 8px; border: 1px solid var(--rule); border-radius: 2px; color: var(--sage); white-space: nowrap; }
.tag.model { color: var(--paper); border-color: var(--sage); }
.prose .byline .tags { display: flex; margin: 10px 0 0; }
.prose figure { margin: 2em 0; }
.prose figure img { display: block; width: 100%; height: auto; background: var(--paper); border-radius: 2px; padding: 10px; }
.prose figcaption { font: 400 0.9375rem/1.5 var(--sans); color: var(--sage); margin-top: 10px; }
.prose table { border-collapse: collapse; width: 100%; font: 400 0.9375rem/1.45 var(--sans); margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { color: var(--sage); font-weight: 500; border-bottom-color: var(--sage); }
.prose code { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 0.88em; background: var(--ink-3); padding: 1px 5px; border-radius: 2px; }
.prose pre { background: var(--ink-2); padding: 14px 16px; overflow-x: auto; border-radius: 2px; font-size: 0.875rem; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 2px solid var(--rule); color: var(--sage); }
.prose .abstract { border-top: 2px solid var(--amber); padding-top: 16px; margin-bottom: 2em; }
.prose .references { font-size: 0.9375rem; line-height: 1.5; }
.report-tools { font: 500 0.9375rem/1.5 var(--sans); display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 32px; }

footer.site {
  margin-top: clamp(96px, 12vw, 160px);
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  font: 400 0.9375rem/1.6 var(--sans);
  color: var(--sage);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
}
footer.site a { color: var(--sage); }
footer.site.links-only { justify-content: flex-end; }

@media (max-width: 760px) {
  .rows > li { grid-template-columns: 1fr; gap: 10px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px var(--gutter); }
  .topbar ul { gap: 18px; }
  .topbar a.nav { font-size: 0.875rem; }
}

/* Centered layout: every band keeps full-width color, its content sits in a centered column */
:root { --page-max: 1180px; --pad: max(var(--gutter), calc((100% - var(--page-max)) / 2)); }
.topbar, .page, .hero, footer.site { padding-left: var(--pad); padding-right: var(--pad); }
.page > .prose, .page > article.prose { margin-left: auto; margin-right: auto; }
.page > .page-title, .page > .page-intro { margin-left: 0; }
.rows, .pubs, .home-grid, .principles { max-width: none; }

/* Wordmark: the Aphelion mark with a two-line lockup, as in the logo */
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark img { height: 38px; width: auto; display: block; }
.wordmark .lockup { display: flex; flex-direction: column; line-height: 1; }
.wordmark .sub { font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.42em; color: var(--sage); margin-top: 5px; padding-left: 2px; }

/* Articles and reports: the column is full width for figures and tables; running text keeps a readable line */
.page > .prose, .page > article.prose { max-width: none; }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote, .prose > h2, .prose > h3, .prose > h4,
.prose > section > p, .prose > section > ul, .prose > section > ol, .prose .abstract > p { max-width: 68ch; }
.prose h1 { max-width: 24ch; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 20px; }
/* Report tables: a cell whose whole confidence interval is above (ci-above) or under (ci-below) the bar; the cell also carries a triangle */
.prose td.ci-above { background: rgba(92, 190, 126, 0.16); padding-left: 8px; }
.prose td.ci-below { background: rgba(236, 96, 76, 0.16); padding-left: 8px; }

/* Wordmark: the word in Michroma (capital height 0.75em). The O is the sun, a small SVG (see SUN_SVG in _build/build.py): the glow is the halo
   circle and the moon is a mask over the sun, so the glow is never clipped and the moon never covers a letter. LFIRD fades from paper to gray-blue,
   the light weakening with distance from the sun. The letters never move; only the O does.
   Home page only (class "loop"): the O goes sun, black, sun. One 20 second cycle, played three times and then at rest: the sun is lit, the moon
   enters from the upper right and covers it, totality holds (a black disc with its corona), the moon leaves toward the lower left and the sun returns.
   Hover or keyboard focus pauses it. Knobs: --eclipse-cycle (length, default 20s), --loops (cycles; the home page sets 3, default infinite).
   Every other page, reduced motion, and the end of the loop: the sun with a slow breathing glow. */
.wordmark .wm { font: 400 1.3rem/1 "Michroma", var(--sans); letter-spacing: 0.1em; color: var(--paper); white-space: nowrap; display: inline-block; }
.wordmark .wm .ai { color: var(--sage); margin-left: 0.45em; }
.wordmark .wm.eclipse { --cycle: var(--eclipse-cycle, 20s); }
body.home .wordmark.loop .wm.eclipse { --loops: 3; }
.wordmark .wm.eclipse .sun { display: inline-block; width: 0.75em; height: 0.75em; margin-right: 0.1em; vertical-align: baseline; overflow: visible; }
.wordmark .wm.eclipse .fade { display: inline-block; background: linear-gradient(90deg, var(--paper), #9CAFB5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.wordmark .wm.eclipse .moon { transform: translate(140px, -140px); }
.wordmark .wm.eclipse .halo { transform-box: fill-box; transform-origin: center; opacity: 0.85; animation: halo-breathe 7s ease-in-out infinite; }
@keyframes halo-breathe { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }

.wordmark.loop .wm.eclipse .moon { animation: moon-cycle var(--cycle) cubic-bezier(0.45, 0, 0.25, 1) var(--loops, infinite); }
.wordmark.loop:hover .wm.eclipse *, .wordmark.loop:focus-visible .wm.eclipse * { animation-play-state: paused; }
/* Percentages of the 20 second cycle: 20% = 4 s (the moon starts), 45% = 9 s (totality), 57.5% = 11.5 s (the moon starts to leave), 82.5% = 16.5 s (the sun is back) */
@keyframes moon-cycle {
  0%, 20% { transform: translate(140px, -140px); }
  45%, 57.5% { transform: translate(0, 0); }
  82.5%, 100% { transform: translate(-140px, 140px); }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark .wm.eclipse .halo, .wordmark.loop .wm.eclipse .moon { animation: none; }
  .wordmark .wm.eclipse .halo { opacity: 0.9; }
}

/* Research section switcher */
.subnav { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 36px; padding: 0 0 12px; border-bottom: 1px solid var(--rule); font: 500 0.9375rem/1 var(--sans); }
.subnav a { color: var(--sage); text-decoration: none; padding: 6px 0; }
.subnav a:hover { color: var(--paper); }
.subnav a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--amber); }

/* Skip link: hidden until it gets keyboard focus. */
.skip { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 10px 14px; background: var(--amber); color: var(--ink); font: 600 0.9375rem/1 var(--sans); border-radius: 3px; text-decoration: none; }
.skip:focus { top: 8px; }
/* Wide display equations scroll inside their own box, not the page. MathJax sets an inline
   min-width on numbered equations, hence !important. */
mjx-container[display="true"] { max-width: 100%; min-width: 0 !important; overflow-x: auto; overflow-y: hidden; }
/* Long URLs in report and post text wrap instead of widening the page. */
.prose a { overflow-wrap: anywhere; }

/* ===== Inner pages (2026-11-16) ===== */
:root {
  --mono: "Geist Mono", ui-monospace, monospace;
  --sheet: none; /* same edges as the top bar */
  --cell-0: #123039; --cell-1: #173844; --cell-2: #21475A; --cell-3: #2E5868;
}

/* Header band: a slice of the home page's model drawing, title over it. */
.band { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); isolation: isolate; }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; opacity: 0.55; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,39,48,0.97) 0%, rgba(15,39,48,0.9) 45%, rgba(15,39,48,0.5) 80%, rgba(15,39,48,0.3) 100%),
              linear-gradient(0deg, rgba(15,39,48,0.9) 0, rgba(15,39,48,0) 90px); }
.band .inner { max-width: var(--sheet); padding: clamp(48px, 6vw, 80px) var(--pad) clamp(32px, 4vw, 48px); }
.band h1 { font: 700 clamp(2.1rem, 4vw, 3.2rem)/1.05 var(--sans); letter-spacing: -0.03em; margin: 0 0 16px; max-width: 14ch; text-wrap: balance; }
.band .lede { font: 400 clamp(1rem, 1.3vw, 1.125rem)/1.6 var(--sans); max-width: 60ch; margin: 0; }
.band .actions { margin-top: 26px; }
.band .subnav { margin: clamp(28px, 4vw, 40px) 0 0; padding: 0; border: 0; }
@media (max-width: 860px) { .band::after { background: rgba(15,39,48,0.84); } }

/* Sheet: section title and note on the left, content on the right. */
.sheet-wrap { max-width: var(--sheet); padding: 0 var(--pad); }
.sheet { display: grid; grid-template-columns: minmax(180px, 15rem) minmax(0, 1fr); gap: 12px 56px; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--rule); }
.sheet:first-child { border-top: 0; }
.sheet > header h2 { font: 650 1.25rem/1.3 var(--sans); letter-spacing: -0.01em; margin: 0 0 8px; text-wrap: balance; }
.sheet > header p { font: 400 0.9375rem/1.55 var(--sans); color: var(--sage); margin: 0; max-width: 34ch; }
.sheet > .content { min-width: 0; }
@media (max-width: 860px) { .sheet { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Where you are: three situations side by side. Not a sequence, so no line and no numbers. */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.stages > div { min-width: 0; }
.stages h3 { font: 650 1.125rem/1.3 var(--sans); margin: 0 0 6px; }
.stages .state { font: 500 0.9375rem/1.45 var(--sans); color: var(--paper); margin: 0 0 10px; }
.stages p { margin: 0; color: var(--sage); font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 860px) { .stages { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* From idea to model: a maturity ladder, a real sequence, so numbered rows. */
.ladder { list-style: none; margin: 0; padding: 0; counter-reset: rung; }
.ladder > li { counter-increment: rung; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 24px; padding: 26px 0; border-top: 1px solid var(--rule); }
.ladder > li:first-child { border-top: 0; padding-top: 0; }
.ladder > li:last-child { padding-bottom: 0; }
.ladder > li::before { content: counter(rung, decimal-leading-zero); font: 400 0.875rem/1.9 var(--mono); color: var(--amber); }
.ladder > li > div { min-width: 0; max-width: 62ch; }
.ladder h3 { font: 650 1.125rem/1.3 var(--sans); margin: 0 0 6px; }
.ladder .state { font: 500 0.9375rem/1.45 var(--sans); color: var(--paper); margin: 0 0 10px; }
.ladder p { margin: 0; color: var(--sage); font-size: 0.9375rem; line-height: 1.6; }
.ladder p.state { color: var(--paper); }
.ladder p + p:not(.state) { margin-top: 10px; }
@media (max-width: 860px) { .ladder > li { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0 16px; } }

/* What you get: run-in paragraphs, set in two text columns on wide screens. */
.runin { columns: 2 22rem; column-gap: 48px; }
.runin p { break-inside: avoid; margin: 0 0 20px; color: var(--sage); font-size: 0.9375rem; line-height: 1.6; }
.runin strong { color: var(--paper); font-weight: 600; }

/* How we work: a real sequence, so a numbered line that runs left to right. */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.timeline > li { counter-increment: step; position: relative; min-width: 0; }
.timeline > li::before { content: counter(step, decimal-leading-zero); display: block; font: 400 0.875rem/1 var(--mono); color: var(--amber); margin-bottom: 18px; }
.timeline > li:not(:last-child)::after { content: ""; position: absolute; top: 7px; left: 2.25rem; right: -28px; height: 1px; background: var(--rule); }
.timeline h3 { font: 600 1rem/1.4 var(--sans); margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--sage); font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline > li:not(:last-child)::after { display: none; }
}

/* What we cover: one sentence. */
.scope { margin: 0; font: 400 clamp(1.0625rem, 1.5vw, 1.25rem)/1.55 var(--sans); color: var(--paper); max-width: 60ch; text-wrap: pretty; }
.cover-note { margin: 16px 0 0; color: var(--sage); font-size: 0.9375rem; }

/* Research hub: four destinations in a two-by-two grid. */
.routes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.routes > li { min-width: 0; display: grid; align-content: start; gap: 10px; padding-top: 20px; border-top: 1px solid var(--rule); }
.routes h2 { font: 650 1.25rem/1.3 var(--sans); margin: 0; letter-spacing: -0.01em; }
.routes h2 a { color: var(--paper); text-decoration: none; }
.routes h2 a:hover { color: var(--amber); }
.routes .body p { margin: 0; color: var(--sage); max-width: 52ch; }
.routes .body p + p { margin-top: 12px; }
.routes .links { font: 500 0.9375rem/1.5 var(--sans); }
@media (max-width: 760px) { .routes { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Closing call to action. */
.closer { padding: clamp(32px, 4vw, 48px) 0 clamp(24px, 3vw, 40px); border-top: 1px solid var(--rule); }
.closer .actions { margin: 0; }

/* Report ledger: one row per report, number, title and scope, status, access. */
.ledger { margin: 0; }
.ledger-head, .ledger li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 11rem 13rem; column-gap: 32px; }
.ledger-head { font: 500 0.8125rem/1 var(--sans); color: var(--sage); padding: 0 0 12px; border-bottom: 1px solid var(--rule); }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { grid-template-areas: "id title status access" "id summary status access" "id labels status access"; padding: 22px 0; border-bottom: 1px solid var(--rule); row-gap: 10px; }
.ledger .id { grid-area: id; margin: 0; font: 400 0.875rem/1.65 var(--mono); color: var(--sage); white-space: nowrap; }
.ledger h2 { grid-area: title; font: 600 1.125rem/1.35 var(--sans); letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
.ledger h2 a { color: var(--paper); text-decoration: none; }
.ledger h2 a:hover { color: var(--amber); }
.ledger li > p:not([class]) { grid-area: summary; margin: 0; color: var(--sage); font-size: 0.9375rem; line-height: 1.6; max-width: 62ch; }
.ledger .labels { grid-area: labels; margin: 0; }
.ledger .labels .tags { margin-left: 0; }
.ledger .date { grid-area: status; margin: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; font: 400 0.875rem/1.4 var(--mono); color: var(--sage); }
.ledger .date time { padding-left: 18px; }
.ledger .state { font: 500 0.9375rem/1.5 var(--sans); color: var(--paper); display: flex; align-items: center; gap: 9px; }
.ledger .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.ledger .upcoming .state { color: var(--sage); }
.ledger .upcoming .state::before { background: none; box-shadow: inset 0 0 0 1.5px var(--sage); }
.ledger .links { grid-area: access; margin: 0; display: grid; align-content: start; gap: 6px; font: 500 0.9375rem/1.4 var(--sans); }
.ledger .links .doi { font: 400 0.8125rem/1.4 var(--mono); overflow-wrap: anywhere; }
.ledger .upcoming h2 { color: var(--paper); }
@media (max-width: 1020px) {
  .ledger-head { display: none; }
  .ledger li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "title" "status" "summary" "labels" "access"; }
  .ledger .date { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 14px; }
  .ledger .date time { padding-left: 0; }
  .ledger .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
}

/* Inner pages built from a fragment: the band opens the page, the content follows in the sheet column. */
main.inner-main { padding: 0; }
main.inner-main > .sheet-wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
main.inner-main > .sheet-wrap > .sheet:first-child { padding-top: 0; }
main.inner-main + footer.site { margin-top: clamp(24px, 4vw, 48px); }

/* Blog list: date and tags, then the title and the summary. */
.notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 880px; }
.notes > li { display: grid; grid-template-areas: "date" "title" "summary"; row-gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.notes h2 { grid-area: title; font: 600 1.125rem/1.35 var(--sans); margin: 0; }
.notes h2 a { color: var(--paper); text-decoration: none; }
.notes h2 a:hover { color: var(--amber); }
.notes .date { grid-area: date; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 400 0.875rem/1.65 var(--mono); color: var(--sage); }
.notes .date .tags { margin-left: 0; }
.notes li > p:not([class]) { grid-area: summary; margin: 0; color: var(--sage); font-size: 0.9375rem; line-height: 1.6; max-width: 68ch; }
.prose-col > p { margin: 0 0 1em; max-width: var(--measure); }
.prose-col > p:last-child { margin-bottom: 0; }
.prose-col .actions { margin: 4px 0 20px; }
.closer-line { font: 600 clamp(1.15rem, 1.8vw, 1.35rem)/1.4 var(--sans); max-width: 52ch; margin: 0 0 20px; }

/* Articles and reports: cover in the band, contents in the left column on wide screens. */
.band.article h1 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); line-height: 1.12; letter-spacing: -0.025em; max-width: 30ch; }
.band .byline { font: 400 0.9375rem/1.6 var(--sans); color: var(--sage); margin: 0; max-width: 72ch; }
.band .byline .tags { display: flex; margin: 10px 0 0; }
.band .report-tools { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; font: 500 0.9375rem/1.5 var(--sans); }
.reading { display: grid; grid-template-columns: minmax(0, 1fr); }
.reading.has-toc { grid-template-columns: minmax(180px, 15rem) minmax(0, 1fr); gap: 0 56px; }
.reading > .prose { max-width: none; margin: 0; min-width: 0; }
.reading > .prose > :first-child { margin-top: 0; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; font: 400 0.875rem/1.45 var(--sans); }
.toc .title { font: 600 0.875rem/1 var(--sans); color: var(--paper); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--sage); text-decoration: none; }
.toc a:hover { color: var(--paper); border-left-color: var(--amber); }
.toc .l3 a { padding-left: 26px; font-size: 0.8125rem; }
@media (max-width: 1100px) { .reading.has-toc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

/* ===== Section pages: field layer (2026-11-17) ===== */
/* Measurement lattice in the margins, fading toward the text. */
body:has(main.field)::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(147,169,176,.22) 1px, transparent 1.5px);
  background-size: 24px 24px; background-position: 12px 12px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,.35) 12%, transparent 30%, transparent 70%, rgba(0,0,0,.35) 88%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,.35) 12%, transparent 30%, transparent 70%, rgba(0,0,0,.35) 88%, #000 100%); }
/* Contour field and trajectories, drawn by field.js. */
canvas.field-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* Section rules become rulers under the title column: minor tick every 8px, major every 40px. */
main.field .sheet { position: relative; }
main.field .sheet:not(:first-child)::before { content: ""; position: absolute; top: 0; left: 0; width: min(15rem, 100%); height: 9px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #3A5A66 0 1px, transparent 1px 40px) 0 0 / 100% 9px no-repeat,
              repeating-linear-gradient(90deg, #2E4D59 0 1px, transparent 1px 8px) 0 0 / 100% 4px no-repeat; }
/* Registration crosshair at the right end of each section rule. */
main.field .sheet:not(:first-child) > header::before { content: ""; position: absolute; top: -5px; right: -5px; width: 11px; height: 11px; pointer-events: none;
  background: linear-gradient(#4A6B77, #4A6B77) 5px 0 / 1px 11px no-repeat, linear-gradient(#4A6B77, #4A6B77) 0 5px / 11px 1px no-repeat; }
/* An amber token runs along each section rule now and then, like the lanes on the home page. */
main.field .sheet:not(:first-child)::after { content: ""; position: absolute; top: -1px; left: 0; width: 90px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(248,138,20,.9) 70%, #FFD7A0); box-shadow: 0 0 8px rgba(248,138,20,.6);
  opacity: 0; animation: lane-run 9s linear infinite; }
main.field .sheet:nth-child(2)::after { animation-delay: 1.5s; animation-duration: 11s; }
main.field .sheet:nth-child(3)::after { animation-delay: 4s; animation-duration: 8s; }
main.field .sheet:nth-child(4)::after { animation-delay: 6.5s; animation-duration: 12s; }
main.field .sheet:nth-child(5)::after { animation-delay: 2.5s; animation-duration: 10s; }
@keyframes lane-run { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 32% { opacity: 1; } 36% { left: calc(100% - 90px); opacity: 0; } 100% { left: calc(100% - 90px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { main.field .sheet::after { display: none; } }

/* ===== Titles in Geist Mono (2026-11-17) ===== */
/* Structural titles (page, section, article headings) are set in mono; content titles in lists and cards stay in Geist.
   Mono runs about a fifth wider, so sizes come down and long article titles get a wider measure. */
:root { --display: "Geist Mono", ui-monospace, monospace; }
.page-title, h2.section, .prose h1, .prose h2, .band h1, .sheet > header h2, .routes h2 { font-family: var(--display); font-weight: 600; }
.page-title { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.04em; }
h2.section { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; }
.band h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.045em; max-width: 18ch; }
.band.article h1 { font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.18; letter-spacing: -0.035em; max-width: 48ch; }
.prose h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.035em; }
.prose h2 { font-size: 1.35rem; letter-spacing: -0.025em; }
.sheet > header h2 { font-size: 1.125rem; letter-spacing: -0.02em; }
.routes h2 { font-size: 1.125rem; letter-spacing: -0.02em; }
