/* Hallmark · shape: Index-First · genre: editorial · theme: Almanac (deal 1/3, seed one-person-research-institute-papers-a98f·cb782867·2026-11-04·r0) · redesign: full · draw: 36ea20 · job: read
 * hero: Stage, swapped from the draw's Corridor after the hero review · nav: floating strip, the draw's pill in Almanac's corners · footer: letter close · imagery: the product (IPO viewer render), the user's covers and essay figures · signature: the institute's ledger, Fellows 1, Buildings 0, then the real counts
 * axes: mid/grotesk-sans/chromatic-magenta · posture: restrained · contrast: pass · fold: pass · hero-review: fix · 5 findings · 5 resolved · finish-review: subagent · 8 findings · 6 resolved 2 partial · gap: the CPI chart's series labels stay near 5px at 375; the image is the owner's and is not retouched · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, the joke could read as a wink; set it as a dry ledger of real counts with no adjective */
/* Hallmark · waive 49b · paper and book titles set as links wrap on phones, up to six lines at 320 · a citation title is the owner's exact wording and cannot shorten */
/* Hallmark · dismissed 58 · the register's seven full abstracts and the Books rows run past the budget on an Index-First page; the words are the owner's and a redesign keeps them */
/* Hallmark · dropped img/noble-medicine-thumb.jpg, img/marriage-contract-thumb.jpg, img/health-users-guide-thumb.jpg · the full-size sources of the same pictures replace them */
/* Hallmark · reworded the h1 "Eric Silver" to "An institute in name only." at the owner's direction: the title has to show the name is a known pretense · the name moves to the byline */
/* Hallmark · owner's request · the h1 reads "An institute in (domain) name only.": the institute exists in the domain name, and the line says so · the page title follows */
/* Hallmark · owner's request · the hero lists two papers and two essays and sets Résumé and LinkedIn by the name, since visitors arrive from the résumé · the two read buttons go: the list, the ledger and the nav reach the same sections · the nav's Résumé opens the PDF rather than scrolling to the footer */
/* Hallmark · owner's request · the hero list is renamed Selected writing and gains the health book, with its Amazon rating and, inline after the stars, a small Buy on Amazon pill in Amazon's own orange (the --amazon tokens, as on the book's site); the title goes to the book's row below, the pill to Amazon · the Books row shows the same rating */
/* Hallmark · owner's request · the ink band's figure is now the lead-lag chart: the share of registrations that passed the five-year proof, from the most lagging fifth to the most leading, drawn as inline SVG in the page's inks by img/lead-lag-build.py · it replaces the class 32 scatter, which showed no relationship */
/* Hallmark · owner's request · two rows of the hero list carry a second link in their note line: the trademark paper's to the trademark explorer, the health book's to healthusersguide.com · a row with two links is .picks__split (formerly .picks__book): the title is one link and the note holds the other · where the list is narrower than 27rem the second link drops to its own line without the dot, so neither the link nor the dot is split from the other */
@import url("./fonts.css");
@import url("./tokens.css");
@import url("./base.css");

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-display); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn--primary { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { border-color: var(--color-accent-2); background: var(--color-accent-2); }

a { text-decoration-color: var(--color-accent); text-underline-offset: 0.15em; transition: color var(--dur-micro) var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }
a:active { color: var(--color-accent-2); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* The floating strip */
.strip { position: sticky; top: var(--space-sm); z-index: var(--z-sticky-nav); display: flex; align-items: center; gap: var(--space-xl); width: fit-content; max-width: calc(100% - 2 * var(--space-md)); min-height: 56px; margin: var(--space-sm) auto calc(-1 * (56px + var(--space-sm))); padding-inline: var(--space-lg); background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); font: 600 var(--text-md)/1 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: none; white-space: nowrap; }
.wordmark svg { width: 25px; height: 25.9px; margin-block: -2.7px; flex-shrink: 0; }
.strip__links { display: flex; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.strip__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-body); text-decoration-line: none; white-space: nowrap; }
.strip__links a:hover { color: var(--color-ink); text-decoration-line: underline; }
.strip a:focus-visible, .wordmark:focus-visible, .strip summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* The hero: the head on the slate, the institute's ledger on the sheet */
.hero { display: grid; align-items: center; min-height: 100dvh; padding-block: calc(56px + var(--space-sm) + var(--space-md)) var(--space-md); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero h1 { color: var(--color-ink); font-size: clamp(2.75rem, 7.4vw - 1.05rem, 5.25rem); letter-spacing: -0.035em; line-height: 0.95; }
.hero .lead { margin-top: var(--space-sm); color: var(--color-ink-2); }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); margin-top: var(--space-lg); }
.byline { color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.2; }
.who__links { display: flex; gap: var(--space-xs); }
.who .btn { min-height: 44px; padding-inline: var(--space-md); }
.picks { margin-top: var(--space-lg); container-type: inline-size; }
.picks__head { padding-bottom: var(--space-xs); color: var(--color-ink); font: 600 var(--text-sm)/1.2 var(--font-display); letter-spacing: var(--tracking-display); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.picks ul { margin: 0; padding: 0; list-style: none; }
.picks li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.picks a { display: block; padding-block: var(--space-xs); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.picks__title { font-size: var(--text-body); font-weight: 500; line-height: 1.3; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.picks__note { display: block; margin-top: var(--space-3xs); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.35; }
.picks a:hover { background: var(--color-paper-2); }
.picks a:hover .picks__title { text-decoration-thickness: 2px; }
.picks a:active { background: var(--color-paper-3); }
.picks a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.picks__split { padding-block: var(--space-xs); }
.picks .picks__split a { display: inline; padding: 0; background: none; }
.picks .picks__split .picks__buy { position: relative; display: inline-flex; align-items: center; min-height: 24px; margin-left: var(--space-2xs); padding: 0 var(--space-sm); vertical-align: middle; border: var(--rule-hair) solid var(--amazon-edge); border-radius: 100px; background: var(--amazon-fill); color: var(--amazon-ink); font: 500 var(--text-xs)/1 var(--font-display); white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.picks .picks__split .picks__buy::after { content: ""; position: absolute; inset: -3px -8px -12px; }
.picks .picks__split .picks__buy:hover { border-color: var(--amazon-edge-hover); background: var(--amazon-fill-hover); }
.picks .picks__split .picks__buy:active { background: var(--amazon-fill-active); }
.picks .picks__split .picks__more { position: relative; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.picks .picks__split .picks__more::after { content: ""; position: absolute; inset: -3px -4px -12px; }
.picks .picks__split .picks__more:hover { text-decoration-thickness: 2px; }
.picks__extra { white-space: nowrap; }
@container (max-width: 27rem) {
  .picks__extra { display: block; margin-top: var(--space-3xs); }
  .picks__sep { display: none; }
  .picks .picks__split .picks__buy::after { inset: -3px -8px; }
}
.ledger { --bleed: var(--space-lg); padding: var(--space-lg) var(--space-xl); background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); }
.ledger__head { padding-bottom: var(--space-sm); color: var(--color-ink); font: 600 var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); border-bottom: var(--rule-bar) solid var(--color-rule-2); }
.ledger ul { margin: 0; padding: 0; list-style: none; }
.ledger li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.ledger__row, .ledger li > a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-lg); padding: var(--space-sm) 0; color: var(--color-ink-2); font-size: var(--text-lead); font-weight: 500; }
.ledger li > a { margin-inline: calc(-1 * var(--bleed)); padding-inline: var(--bleed); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.ledger li > a .ledger__label { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.ledger li > a:hover { background: var(--color-paper-3); }
.ledger li > a:active { background: var(--color-paper-2); color: var(--color-ink); }
.ledger li > a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.ledger__figure { color: var(--color-ink); font: 500 var(--text-display-s)/1 var(--font-outlier); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.ledger .is-marked { margin-inline: calc(-1 * var(--bleed)); padding-inline: var(--bleed); background: color-mix(in oklab, var(--color-accent) 9%, transparent); }
.ledger .is-marked .ledger__label, .ledger .is-marked .ledger__figure { color: var(--color-accent); }
.ledger__row--line { padding-block: var(--space-sm); font-size: var(--text-md); }
.ledger__row--line span:last-child { color: var(--color-ink); font-weight: 400; text-align: right; }
.gloss { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); font-style: italic; line-height: 1.45; }
.gloss em { font-style: normal; }

/* The menu that replaces the strip's links on a phone */
.strip__menu { display: none; }

/* The twelve columns */
:root { --text-body: 1.0625rem; --nav-clear: calc(56px + var(--space-sm) + var(--space-lg)); --color-plot-cancelled: #9aa3ad; --color-tile: oklch(98.5% 0.004 245); --color-plot-passed: #2b6cb0; --color-plot-sec: #e67e22; --color-plot-ipo: #c0392b; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }

/* What repeats: a year in mono, a status line, a row of links */
.year { color: var(--color-ink-2); font-family: var(--font-outlier); font-size: var(--text-sm); font-variant-numeric: tabular-nums; line-height: 1.5; }
.status { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; line-height: 1.45; }
.links { display: flex; flex-wrap: wrap; gap: var(--space-3xs) var(--space-md); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); font-weight: 500; }
.links a, .status a { padding-block: var(--space-2xs); display: inline-block; }

/* Papers: the interests held beside the register */
.papers { padding-block: var(--section-gap-s) var(--section-gap); }
.papers__side { grid-column: 1 / span 4; position: sticky; top: var(--nav-clear); align-self: start; }
#interests { margin-top: var(--space-xl); }
.interests__line { margin-top: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-body); line-height: 1.4; }
.interests { margin: var(--space-md) 0 0; padding: 0; list-style: none; border-top: var(--rule-bar) solid var(--color-rule-2); }
.interests li { padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); line-height: 1.4; }
.pname { color: var(--color-ink); font-weight: 500; }
.register { grid-column: 5 / -1; padding: var(--space-xl); background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); }
.program + .program { margin-top: var(--space-2xl); }
.program > h3 { max-width: none; padding-bottom: var(--space-sm); border-bottom: var(--rule-bar) solid var(--color-rule-2); }
.paper { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; grid-template-areas: "title side" "abstract side" "more side"; grid-template-rows: auto auto 1fr; column-gap: var(--space-xl); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.paper:last-child { border-bottom: 0; padding-bottom: 0; }
.paper > h4 { grid-area: title; margin: 0; color: var(--color-ink); font: 600 var(--text-lg)/1.25 var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.paper__side { grid-area: side; padding-top: var(--space-2xs); }
.paper__side .year { display: block; }
.paper__side .status { margin-top: var(--space-2xs); }
.paper__side .links { flex-direction: column; gap: 0; margin-top: var(--space-xs); }
.paper__side .links + .status { margin-top: var(--space-xs); }
.abstract { grid-area: abstract; max-width: 57ch; margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-body); line-height: 1.5; }
.more { grid-area: more; display: none; align-items: center; justify-self: start; gap: var(--space-xs); min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: color var(--dur-micro) var(--ease-out); }
.more::before { content: "+"; font-family: var(--font-outlier); }
.abstract.is-open + .more::before { content: "\2212"; }
.more:hover { color: var(--color-accent); }
.more:active { color: var(--color-accent-2); }
.more:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.more:disabled { opacity: 0.55; cursor: not-allowed; }

/* The strip's menu control */
.strip__menu summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; cursor: pointer; list-style: none; transition: color var(--dur-micro) var(--ease-out); }
.strip__menu summary::-webkit-details-marker { display: none; }
.strip__menu summary:hover { text-decoration-thickness: 2px; }
.strip__menu summary:active { color: var(--color-accent-2); }
.when-open { display: none; }
details[open] .when-open { display: inline; }
details[open] .when-closed { display: none; }

/* The ink band: the IPO viewer on the sheet */
.band--ink { background: var(--color-ink); color: var(--color-paper); }
.band--ink h2, .band--ink h3 { color: var(--color-sheet); }
.band--ink a { color: var(--color-sheet); text-decoration-color: var(--color-paper-3); }
.band--ink a:active { color: var(--color-paper-3); }
.band--ink :focus-visible { outline-color: var(--color-sheet); }
.plot { padding-block: var(--section-gap-s); }
.plot__figure { grid-column: 1 / span 8; margin: 0; padding: var(--space-md); background: var(--color-sheet); }
.plot__figure a { display: block; }
.band--ink .plot__figure a:focus-visible { outline-color: var(--color-focus); }
.plot__text { grid-column: 9 / -1; align-self: center; }
.plot__text > p { margin-top: var(--space-md); color: var(--color-paper); font-size: var(--text-body); line-height: 1.5; }
.legend { width: 100%; margin-top: var(--space-xl); border-collapse: collapse; font-size: var(--text-sm); }
.legend caption { padding-bottom: var(--space-sm); color: var(--color-paper-2); line-height: 1.4; text-align: left; }
.legend tbody { border-top: var(--rule-bar) solid var(--color-paper-3); }
.legend tr { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.legend th { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; color: var(--color-paper); font-weight: 400; line-height: 1.3; text-align: left; }
.legend .num { color: var(--color-sheet); font-family: var(--font-outlier); font-variant-numeric: tabular-nums; text-align: right; vertical-align: top; padding-top: var(--space-xs); }
.key { display: inline-block; width: var(--space-sm); height: var(--space-sm); margin-right: var(--space-xs); border-radius: 50%; vertical-align: -1px; }
.key--cancelled { background: var(--color-plot-cancelled); }
.key--passed { background: var(--color-plot-passed); }
.key--sec { background: var(--color-plot-sec); }
.key--ipo { background: var(--color-plot-ipo); }
.plot .links { margin-top: var(--space-md); }

/* Essays: the bottle and the chart at one height */
.essays { padding-block: 0 var(--section-gap); }
.split-head { align-items: end; margin-bottom: var(--space-2xl); }
.split-head h2 { grid-column: 1 / span 5; }
.split-head .lead { grid-column: 7 / -1; color: var(--color-ink-2); }
.essays__pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto; column-gap: var(--gap-columns); }
.essay { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }
.essay__frame { position: relative; display: block; overflow: hidden; }
.essay__frame img { width: 100%; outline: var(--rule-hair) solid var(--color-rule-2); outline-offset: -1px; }
.essay__frame--fill img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 50%; }
.essay__text { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-lg); align-content: start; padding-top: var(--space-md); }
.essay__text h3 { font-size: var(--text-2xl); }
.essay__text .year { padding-top: var(--space-2xs); }
.essay__text p { grid-column: 1 / -1; margin-top: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-body); line-height: 1.5; }

/* Books: covers in rows */
.books { padding-block: 0 var(--section-gap); }
.books__list { margin-top: var(--space-xl); border-top: var(--rule-bar) solid var(--color-rule-2); }
.book { padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); align-items: start; }
.book:last-child { border-bottom: 0; padding-bottom: 0; }
.book__cover { grid-column: 1 / span 3; display: block; }
.book__cover img { width: 100%; outline: var(--rule-hair) solid var(--color-rule-2); outline-offset: -1px; }
.book__text { grid-column: 4 / span 5; }
.book__text .status { margin-top: var(--space-xs); }
.book__text p:not(.status) { margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-body); line-height: 1.5; }
.book__links { grid-column: 9 / -1; margin: 0; padding: 0; list-style: none; border-top: var(--rule-bar) solid var(--color-rule-2); font-size: var(--text-sm); }
.book__links li { padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); line-height: 1.4; }
.book__links a { color: var(--color-ink); font-weight: 500; }
.stars { color: var(--color-ink); }

/* Portfolio */
.portfolio { padding-block: 0 var(--section-gap-s); }
.portfolio h2 { grid-column: 1 / -1; margin-bottom: var(--space-xl); }
.ventures { grid-column: 1 / span 7; align-self: start; border-collapse: collapse; background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); }
.ventures tr + tr { border-top: var(--rule-hair) solid var(--color-rule); }
.ventures td, .ventures th { padding: var(--space-sm) var(--space-md); text-align: left; vertical-align: middle; line-height: 1.4; }
.ventures th { color: var(--color-ink); font: 600 var(--text-md)/1.3 var(--font-display); letter-spacing: var(--tracking-display); white-space: nowrap; }
.ventures td { color: var(--color-ink-2); }
.ventures__logo { width: 96px; }
.tile { display: flex; align-items: center; justify-content: center; width: 72px; height: 56px; padding: var(--space-2xs); background: var(--color-tile); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.tile img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.earlier { grid-column: 9 / -1; }
.earlier h3 { max-width: none; padding-bottom: var(--space-sm); border-bottom: var(--rule-bar) solid var(--color-rule-2); }
.earlier dl { margin: 0; }
.earlier dl > div { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.earlier dt { color: var(--color-ink); font-weight: 500; }
.earlier dd { margin: 0; color: var(--color-ink-2); line-height: 1.4; }

/* The letter close */
.close { padding-block: var(--section-gap-s) var(--space-xl); }
.letter { grid-column: 1 / span 7; color: var(--color-sheet); font-size: var(--text-2xl); line-height: 1.3; }
.close__side { grid-column: 9 / -1; }
.close__side h2 { font-size: var(--text-title); }
.close__side p { margin-top: var(--space-xs); font-size: var(--text-body); }
#resume { margin-top: var(--space-xl); }
.signoff { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.signoff__mark { width: 39px; height: 40.4px; margin-block: -4.2px; flex-shrink: 0; color: var(--color-sheet); }
.signoff__name { color: var(--color-sheet); font: 600 var(--text-title)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.signoff__legal { margin-left: auto; color: var(--color-paper-2); font-size: var(--text-sm); }

@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: calc(56px + var(--space-sm) + var(--space-xl)) var(--space-xl); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .papers__side, .register, .plot__figure, .plot__text, .split-head h2, .split-head .lead, .book__cover, .book__text, .book__links, .ventures, .earlier, .letter, .close__side { grid-column: 1 / -1; }
  .papers__side { position: static; margin-bottom: var(--space-xl); }
  .plot__text { order: -1; margin-bottom: var(--space-xl); }
  .split-head .lead { margin-top: var(--space-md); }
  .essays__pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--space-xl); }
  .essay { display: block; }
  .essay__frame--fill { aspect-ratio: 4 / 5; }
  .book { row-gap: var(--space-md); }
  .book__cover { max-width: 16rem; }
  .earlier { margin-top: var(--space-xl); }
  .close__side { margin-top: var(--space-xl); }
  .signoff { margin-top: var(--space-2xl); }
  .signoff__legal { margin-left: 0; width: 100%; }
}
@media (max-width: 40rem) {
  .strip { justify-content: space-between; width: calc(100% - 2 * var(--space-md)); padding-inline: var(--space-md); }
  .strip__links { display: none; }
  .strip__menu { display: block; position: relative; margin: 0; }
  .strip__menu summary { padding-inline: var(--space-xs); }
  .strip__menu ul { position: absolute; top: calc(100% + var(--space-sm)); right: calc(-1 * var(--space-md)); display: block; min-width: 12rem; margin: 0; padding: var(--space-xs) var(--space-md); list-style: none; background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); }
  .strip__menu a { display: flex; align-items: center; min-height: 44px; color: var(--color-ink); font-size: var(--text-md); text-decoration-line: none; }
  .ledger { --bleed: var(--space-xs); padding: var(--space-md); }
  .register { padding: var(--space-lg) var(--space-md); }
  .paper { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "side" "abstract" "more"; grid-template-rows: none; }
  .paper__side .links { flex-direction: row; flex-wrap: wrap; gap: var(--space-3xs) var(--space-md); }
  .js .more { display: inline-flex; }
  .js .abstract:not(.is-open) .rest { display: none; }
  .ledger__row--line { flex-direction: column; gap: var(--space-3xs); }
  .ledger__row--line span:last-child { text-align: left; }
  .book { grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-xs); }
  .book__cover { grid-column: 1; grid-row: 1 / span 2; max-width: none; }
  .book__text { display: contents; }
  .book__text h3 { grid-column: 2; grid-row: 1; font-size: var(--text-lg); }
  .book__text .status { grid-column: 2; grid-row: 2; margin-top: 0; }
  .book__text p:not(.status), .book__links { grid-column: 1 / -1; }
  .plot__figure { padding: var(--space-xs); }
  .paper { column-gap: var(--space-sm); }
  .ventures, .ventures tbody { display: block; }
  .ventures tr { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-sm); padding: var(--space-sm) var(--space-md); }
  .ventures td, .ventures th { padding: 0; }
  .ventures tr > td:last-child { grid-column: 1 / -1; margin-top: var(--space-xs); }
  .essay__text h3 { font-size: var(--text-title); }
}
@media (min-width: 40.01rem) { .letter em { white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .btn, a, summary, .more { transition: none; } }

/* The plate above the ledger: a generated picture of the building the ledger counts as zero */
.ledger__plate { margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-xl)) var(--space-lg); }
.ledger__plate img { display: block; width: 100%; height: auto; }
.ledger__plate figcaption { padding: var(--space-xs) var(--space-xl) 0; color: var(--color-muted); font: 400 var(--text-xs)/1.4 var(--font-outlier); letter-spacing: 0; }
@media (max-width: 40rem) {
  .ledger__plate { margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md); }
  .ledger__plate figcaption { padding-inline: var(--space-md); }
}

/* The lead-lag figure: pass rate at the five-year proof, from the most lagging fifth to the most leading. Built by img/lead-lag-build.py. */
:root { --color-leadlag-beer: var(--color-accent); --color-leadlag-tech: #2b6cb0; }
.leadlag { align-self: center; color: var(--color-ink); }
.leadlag__key { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin: 0 0 var(--space-sm); padding: 0; list-style: none; color: var(--color-ink); font: 500 var(--text-sm)/1.3 var(--font-display); }
.leadlag__key li { display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap; }
.ll-swatch { width: 30px; height: 10px; flex: none; overflow: visible; }
.leadlag__svg { display: block; width: 100%; height: auto; overflow: visible; }
.leadlag__svg--narrow { display: none; }
.leadlag figcaption { margin-top: var(--space-sm); color: var(--color-ink-2); font: 400 var(--text-xs)/1.45 var(--font-outlier); }
.ll-grid { stroke: var(--color-rule); stroke-width: 1; }
.ll-base { stroke: var(--color-rule-2); stroke-width: 1; }
.ll-tick, .ll-xlab, .ll-xtitle, .ll-ytitle, .ll-name { font-family: var(--font-display); }
.ll-tick { fill: var(--color-ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.ll-xlab { fill: var(--color-ink); font-size: 13px; font-weight: 500; }
.ll-xtitle { fill: var(--color-muted); font-size: 12px; }
.ll-ytitle { fill: var(--color-ink); font-size: 13px; font-weight: 600; }
.ll-name { fill: var(--color-ink); font-size: 13px; font-weight: 600; }
.ll-val { fill: var(--color-ink-2); font-family: var(--font-outlier); font-size: 12.5px; }
.ll-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ll-line--early { stroke: var(--color-ink); stroke-dasharray: 5 5; }
.ll-line--late { stroke: var(--color-ink); stroke-width: 2.5; }
.ll-line--tech { stroke: var(--color-leadlag-tech); }
.ll-line--beer { stroke: var(--color-leadlag-beer); }
.ll-dot { stroke: var(--color-sheet); stroke-width: 2; }
.ll-dot--early { fill: var(--color-sheet); stroke: var(--color-ink); }
.ll-dot--late { fill: var(--color-ink); }
.ll-dot--tech { fill: var(--color-leadlag-tech); }
.ll-dot--beer { fill: var(--color-leadlag-beer); }
.ll-hit { fill: transparent; stroke: none; }
.legend--ends thead th { padding: 0 0 var(--space-xs) var(--space-sm); color: var(--color-paper-2); font-weight: 400; line-height: 1.25; text-align: right; vertical-align: bottom; }
.legend--ends .num { padding-left: var(--space-sm); white-space: nowrap; }
@media (max-width: 40rem) {
  .leadlag__svg--wide { display: none; }
  .leadlag__svg--narrow { display: block; }
}

/* Section pages under one entry of the strip: the entry is marked, and the section's own pages sit in a row above the title */
.strip__links a[aria-current], .strip__menu a[aria-current] { color: var(--color-ink); text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-md); margin: 0 0 var(--space-sm); font-size: var(--text-sm); font-weight: 500; }
.subnav__label { padding-right: var(--space-md); border-right: var(--rule-hair) solid var(--color-rule-2); color: var(--color-muted); }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); }
.subnav a[aria-current="page"] { color: var(--color-ink); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
