@charset "UTF-8";
@font-face { font-family: Newsreader; src: url('/assets/fonts/newsreader.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: Newsreader; src: url('/assets/fonts/newsreader-italic.woff2') format('woff2'); font-style: italic; font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/assets/fonts/plex-mono.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f4f0e4; --ink: #17211b; --soft: #59635b; --rule: #d6d0bf; --line: #a9a892; --accent: #2f5d43; --well: #e9e4d4; --tint: #e7ead9;
  --forest: #1d3a2a; --deep: #10221a; --cream: #eef0dd; --mist: #b4c4ab; --fern: #86a871; --ochre: #c2912f; --motif: #b9c4a4;
  --serif: Newsreader, 'Iowan Old Style', Georgia, serif;
  --mono: 'Plex Mono', ui-monospace, Consolas, monospace;
  --page: 1160px; --gutter: clamp(16px, 4vw, 56px); --pad: clamp(16px, 2.4vw, 28px);
  --inset: max(var(--gutter), calc(50vw - var(--page) / 2));  /* where the page column starts, for full-width blocks */
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #121813; --ink: #e6e7db; --soft: #9aa397; --rule: #2c352d; --line: #46523f; --accent: #9cc4a6; --well: #1a221b; --tint: #172019;
    --forest: #183223; --deep: #0a130e; --ochre: #d3a548; --motif: #33412f;
    --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.009' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0.1 0 0 0 -0.039'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0.085 0 0 0 -0.03'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.55 var(--serif); font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 5; background: var(--paper); color: var(--ink); padding: 6px 10px; }

/* The home page is a showcase, so it runs much wider than the reading pages. */
.home { --page: 1720px; --inset: max(var(--gutter), calc(50vw - var(--page) / 2)); }

/* Bands run edge to edge; .wrap holds content to the page width; .frame draws its boundary. */
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
/* Every panel carries a faint organic texture: soft mottling with a fine grain over it. */
:root { --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.009' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0.085 0 0 0 -0.033'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0.065 0 0 0 -0.023'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); }
.band { position: relative; background: var(--paper) var(--mottle); background-image: var(--grain), var(--mottle); color: var(--ink); }
main > .band { padding-bottom: clamp(40px, 6vw, 80px); }
main > .listing, main > .article { padding-top: clamp(24px, 4vw, 48px); }
.band-tint { background-color: var(--tint); }
/* Dark bands re-point the colour tokens, so everything inside them adapts. */
.band-forest, .band-deep { --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.009' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0.085 0 0 0 -0.033'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0.065 0 0 0 -0.023'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); --ink: var(--cream); --soft: var(--mist); --rule: #ffffff26; --line: #ffffff4d; --accent: #c3dcae; --well: #ffffff14; --tint: #ffffff12; --motif: #5d8259; }
.band-forest { background-color: var(--forest); --paper: var(--forest); }
.band-deep { background-color: var(--deep); --paper: var(--deep); }
.frame { border: 1px solid var(--line); overflow: hidden; }

/* Patterns: one-colour SVGs used as masks, coloured here. All are grown from simple rules. */
.strip, .edge { display: block; background: var(--motif); -webkit-mask: var(--pattern) repeat-x left center / auto 100%; mask: var(--pattern) repeat-x left center / auto 100%; }
.strip { flex: 1; align-self: stretch; min-width: 40px; margin-block: 14px; }
.edge { height: 20px; box-sizing: content-box; padding-block: 6px; border-block: 1px solid var(--line); -webkit-mask-clip: content-box; mask-clip: content-box; -webkit-mask-origin: content-box; mask-origin: content-box; background-clip: content-box; }
.edge { -webkit-mask: none; mask: none; background: none; position: relative; }
.edge::before { content: ''; position: absolute; inset: 6px 0; background: var(--motif); -webkit-mask: var(--pattern) repeat-x left center / auto 100%; mask: var(--pattern) repeat-x left center / auto 100%; }
.strip-30 { --pattern: url('/assets/patterns/strip-30.svg'); } .strip-90 { --pattern: url('/assets/patterns/strip-90.svg'); } .strip-110 { --pattern: url('/assets/patterns/strip-110.svg'); }
.edge-30 { --pattern: url('/assets/patterns/edge-30.svg'); } .edge-90 { --pattern: url('/assets/patterns/edge-90.svg'); } .edge-110 { --pattern: url('/assets/patterns/edge-110.svg'); }

/* Small uppercase labels: navigation, dates, section heads, captions. */
.site-header nav, .site-footer, .num, .row-meta, .tag, .more, .count, .rail, .turn span, .viewer-bar, .controls, .slot, .tile-label, figcaption::before { font: 400 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* The header and the simulation bar stay flat: no texture behind the name, links or controls. */
.site-header { border-bottom: 1px solid var(--line); background: var(--forest); }
.sim-bar { background: var(--forest); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-name { display: flex; align-items: center; gap: 22px; padding-block: 14px; font-size: 27px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.skulls { display: flex; align-items: center; gap: 14px; padding-right: 22px; border-right: 1px solid var(--line); }
.skulls img { height: 38px; width: auto; opacity: .85; transition: opacity .2s, transform .2s; }
.site-name:hover .skulls img { opacity: 1; }
.skulls img:hover { transform: translateY(-2px); }
/* The tagline sits on one line between the name and the navigation. */
.site-tagline { flex: 1; min-width: 0; align-self: center; margin: 0; padding-left: 22px; border-left: 1px solid var(--line); font-size: 17px; font-style: italic; line-height: 1.3; color: var(--ink); text-wrap: balance; }
/* Below it, a slim row: current position on the left, links out as cells on the right. */
.site-meta { border-top: 1px solid var(--line); font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.site-header .site-meta .wrap { align-items: stretch; min-height: 32px; gap: 0; }
.site-meta .position { display: flex; align-items: center; padding-block: 8px; line-height: 1.4; }
.site-meta .links { display: flex; margin-left: auto; border-right: 1px solid var(--line); }
.site-meta .links a { display: flex; align-items: center; padding: 0 16px; border-left: 1px solid var(--line); color: var(--soft); text-decoration: none; white-space: nowrap; }
.site-meta .links a:hover { color: var(--ink); background: var(--well); }
.site-meta .links a[download] { color: var(--ink); }
.site-meta .links a[download]::after { content: '\2193'; margin-left: 7px; color: var(--ochre); }
.site-meta .links i { font-style: normal; opacity: .55; margin-left: 6px; }
.site-header nav { display: flex; align-self: stretch; border-right: 1px solid var(--line); }
.site-header nav a { display: flex; align-items: center; padding-inline: clamp(10px, 2vw, 22px); border-left: 1px solid var(--line); color: var(--soft); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); background: var(--well); }
.site-header nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ochre); }
.wrap.masthead-body { padding-block: clamp(20px, 3vw, 36px); }

.more { color: var(--soft); text-decoration: none; white-space: nowrap; }
.more::after { content: ' \2192'; }
a:hover > .more, a.more:hover { color: var(--accent); }
.row-meta { display: block; color: var(--soft); }
.row-meta i { font-style: normal; opacity: .5; margin-inline: .3em; }
.row-meta a { text-decoration: none; }
.row-summary { display: block; margin-top: 8px; color: var(--soft); max-width: 34em; }
.tag { display: inline-block; margin-left: 10px; padding: 1px 6px; border: 1px solid var(--ochre); color: var(--ochre); vertical-align: middle; font-size: 10px; }
.cover { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--well); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover > .cover img { transform: scale(1.025); }
.cover-pattern { background: #1d3a2a; }
.cover-pattern::before { content: ''; position: absolute; inset: 0; background: #86a871; -webkit-mask: var(--pattern) center / cover no-repeat; mask: var(--pattern) center / cover no-repeat; }
.pattern-rule-30 { --pattern: url('/assets/patterns/rule-30.svg'); } .pattern-rule-90 { --pattern: url('/assets/patterns/rule-90.svg'); } .pattern-rule-110 { --pattern: url('/assets/patterns/rule-110.svg'); }
.pattern-coral { --pattern: url('/assets/patterns/coral.svg'); } .pattern-spots { --pattern: url('/assets/patterns/spots.svg'); }
.pattern-arbor { --pattern: url('/assets/patterns/arbor.svg'); background: #10221a; }
.pattern-arbor::before { background: #c3dcae; }
.pattern-phyllotaxis { --pattern: url('/assets/patterns/phyllotaxis.svg'); background: #10221a; }
.pattern-phyllotaxis::before { background: #c2912f; -webkit-mask-size: 130%; mask-size: 130%; }
.pattern-spots::before { background: #c2912f; }
/* Reaction-diffusion tiles wrap on all sides, so they repeat at a fixed cell size instead of stretching. */
.pattern-coral::before, .pattern-spots::before { -webkit-mask: var(--pattern) center / 576px auto repeat; mask: var(--pattern) center / 576px auto repeat; }

/* Home: live simulations edge to edge, with a slim bar above for choosing one. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero canvas { display: block; width: 100%; height: clamp(170px, 24vh, 240px); background: #10221a; cursor: crosshair; touch-action: pan-y; }
.hero.expanded canvas { height: clamp(360px, 68vh, 720px); }
.home .masthead > .edge { display: none; }
.sim-bar { display: flex; align-items: stretch; height: 34px; padding-inline: var(--inset); border-block: 1px solid var(--line); font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sim-bar:has(.sim-tabs:empty) { display: none; }
.sim-tabs { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; border-left: 1px solid var(--line); }
.sim-tabs::-webkit-scrollbar { display: none; }
.sim-bar button { flex: none; padding: 0 14px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--soft); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.sim-bar button:hover { color: var(--ink); background: var(--well); }
.sim-tabs button[aria-pressed="true"] { color: var(--forest); background: var(--fern); }
.sim-bar .controls button { border-right: 0; border-left: 1px solid var(--line); }
/* The pointer toggle: a small dot that is lit when the pointer takes part. */
.sim-bar .controls button[aria-pressed] { background: none; border-color: var(--line); color: var(--soft); }
.sim-bar .controls button[aria-pressed]::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border: 1px solid var(--soft); border-radius: 50%; }
.sim-bar .controls button[aria-pressed="true"] { color: var(--ink); }
.sim-bar .controls button[aria-pressed="true"]::before { background: var(--ochre); border-color: var(--ochre); }
.sim-bar .controls { gap: 0; }
.sim-bar .controls button { height: 100%; }
.sim-bar :focus-visible { outline-offset: -3px; }

/* Section heading: a ruled bar of cells. */
.block-head { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.listing .feature, .listing .cards { border-top: 1px solid var(--line); }
.block-head > * { display: flex; align-items: center; }
.block-head h2 { padding: 14px var(--pad) 12px 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.num { padding-right: 14px; color: var(--ochre); }
.block-head .more { padding-left: var(--pad); border-left: 1px solid var(--line); }
.block-head .strip { margin-right: var(--pad); }

.page-head { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 26vw, 320px); }
.page-head-plain { grid-template-columns: minmax(0, 1fr); }
.head-text { display: flex; flex-wrap: wrap; align-items: baseline; align-content: end; gap: 12px 20px; padding: clamp(24px, 5vw, 64px) var(--pad) var(--pad); }
.page-head h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.count { color: var(--soft); margin-right: auto; }
.head-tile { position: relative; display: grid; border-left: 1px solid var(--line); min-height: 200px; }
.head-tile .cover { aspect-ratio: auto; height: 100%; }
/* On a project or essay page the cover is shown whole, never cropped. */
.article-head .head-tile { align-items: center; }
.article-head .head-tile .cover { height: auto; }
.article-head .head-tile .cover img { height: auto; }
.tile-label { position: absolute; left: 0; bottom: 0; padding: 4px 8px; background: var(--forest); border-top: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--soft); }

/* Projects: cells in a ruled grid. */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(2 * var(--pad)); border-bottom: 1px solid var(--line); }
/* Equal cells, with a rule drawn down the middle of each gap. */
.cards li { position: relative; }
.cards li::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--pad)); border-left: 1px solid var(--line); }
.cards li:nth-child(3n + 1)::before { display: none; }
.cards li:nth-child(n + 4) { border-top: 1px solid var(--line); }
.card { display: block; height: 100%; padding-block: var(--pad); text-decoration: none; }
.card .cover { margin-bottom: 18px; border: 1px solid var(--line); }
.card-title { display: block; margin-top: 6px; font-size: 25px; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
a.card:hover, a.row:hover, a.feature:hover { color: inherit; }
a.card:hover .cover { box-shadow: 0 0 0 2px var(--ochre); }
a.card:hover .card-title, a.row:hover .row-title, a.feature:hover .feature-title { color: var(--accent); }

/* Writing: one featured piece, then rows. */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; border-bottom: 1px solid var(--line); text-decoration: none; }
.feature .cover { border-right: 1px solid var(--line); }
.feature-text { display: flex; flex-direction: column; justify-content: center; padding: var(--pad) 0 var(--pad) clamp(20px, 4vw, 48px); }
.feature-title { display: block; margin-top: 10px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.feature .more { display: block; margin-top: 22px; }
.rows { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 28px; align-items: center; padding-block: 20px; text-decoration: none; }
.row .cover { border: 1px solid var(--line); }
.row-title { display: block; margin-top: 6px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }

/* Photographs: one geometry everywhere. */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.block-head + .grid { margin-top: 10px; }
.grid-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: block; padding: 0; border: 0; background: var(--well); aspect-ratio: 3 / 2; overflow: hidden; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.03); }
.large .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.icon-button { display: grid; place-items: center; align-self: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); background: none; color: var(--soft); cursor: pointer; }
.icon-button svg { width: 14px; height: 14px; }
.icon-button:hover, .icon-button[aria-pressed="true"] { color: var(--ink); border-color: var(--ochre); }

/* Long-form pages: essays and project manuscripts. */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 4; }
.progress span { display: block; height: 100%; width: 0; background: var(--ochre); }
.article-head .head-text { display: block; }
.article-head h1 { margin-top: 18px; font-size: clamp(34px, 5vw, 62px); line-height: 1.03; letter-spacing: -.026em; text-wrap: balance; }
.lede { margin-top: 22px; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.35; color: var(--soft); max-width: 30em; text-wrap: pretty; }
.article-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: visible; }
.rail { border-right: 1px solid var(--line); color: var(--soft); }
.rail-inner { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: var(--pad) 20px; }
.rail dl > div { padding-block: 9px; border-bottom: 1px solid var(--rule); }
.rail dl > div:first-child { padding-top: 0; }
.rail dd { margin-top: 2px; color: var(--ink); letter-spacing: .04em; }
.contents { margin-top: 28px; }
.contents ol { list-style: none; padding: 0; margin-top: 8px; border-left: 1px solid var(--rule); }
.contents a { display: block; margin-left: -1px; padding: 5px 0 5px 12px; border-left: 2px solid transparent; text-decoration: none; letter-spacing: .04em; }
.contents a.active { color: var(--ink); border-left-color: var(--ochre); }

.prose { padding: clamp(24px, 4vw, 44px) clamp(16px, 3.4vw, 40px); font-size: clamp(19px, 2.1vw, 21px); line-height: 1.62; counter-reset: figure; }
.prose::after { content: ''; display: block; clear: both; }
.prose > * { max-width: 640px; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
/* The About portrait is shown whole, at its own shape. */
.about .head-tile .cover { aspect-ratio: auto; }
.writing .prose > p:not([class]):first-of-type::first-letter { float: left; margin: .08em .1em 0 0; font-size: 3.5em; line-height: .78; color: var(--accent); }
.prose h2, .prose h3 { margin-top: 2.2em; font-weight: 500; line-height: 1.2; letter-spacing: -.012em; }
.prose h2 { font-size: 1.5em; } .prose h3 { font-size: 1.12em; }
.prose h2 { max-width: none; padding-top: 22px; border-top: 1px solid var(--line); clear: both; }
.prose h2::before { content: ''; display: block; width: 44px; height: 3px; margin: -24px 0 20px; background: var(--ochre); }
.prose > h2:first-child { padding-top: 0; border-top: 0; }
.prose > h2:first-child::before { display: none; }
.prose a { text-decoration-color: var(--soft); overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--ochre); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose code { font: .82em var(--mono); }
.prose blockquote { margin-inline: 0; padding-left: 1.1em; border-left: 2px solid var(--ochre); font-style: italic; }
.prose blockquote.pull { max-width: none; margin-block: 1.8em; padding: .8em 1em; border: 1px solid var(--line); border-left: 6px solid var(--accent); background: var(--tint); color: var(--accent); font-size: clamp(25px, 3.2vw, 36px); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.prose table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: .82em; font-variant-numeric: tabular-nums; }
.prose th { text-align: left; font: 400 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); background: var(--tint); border-bottom: 1px solid var(--line); padding: 8px 12px; }
.prose td { border-top: 1px solid var(--rule); padding: 8px 12px; }
.prose td + td, .prose th + th { border-left: 1px solid var(--rule); }
.prose tbody tr:hover td { background: var(--tint); }
/* Margin notes sit beside the text on wide screens and fold into it on narrow ones. */
.prose > aside.note { float: right; clear: right; width: 168px; margin: .35em 0 1em 28px; padding: 10px 12px; border: 1px solid var(--line); border-top: 3px solid var(--ochre); font-size: 15px; line-height: 1.45; color: var(--soft); }
.prose > aside.note + * { margin-top: 1.1em; }
.prose .abstract { padding: 22px 26px; background: var(--tint); border: 1px solid var(--line); border-left: 6px solid var(--accent); font-size: .92em; }
.prose .abstract > * + * { margin-top: .8em; }
.prose .footnote { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--line); font-size: .8em; line-height: 1.5; color: var(--soft); }
.prose .footnote hr { display: none; }
.prose .footnote li + li { margin-top: .6em; }
.prose sup { font-size: .68em; line-height: 0; }
.prose sup a, .prose .footnote-backref { text-decoration: none; color: var(--accent); }
.prose #bibliography, .prose #references { margin-top: 3em; font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.prose #bibliography::before, .prose #references::before { display: none; }
.prose #bibliography ~ p, .prose #references ~ p { font-size: .8em; line-height: 1.5; color: var(--soft); padding-left: 1.6em; text-indent: -1.6em; margin-top: .8em; }

/* `format: typescript` keeps an essay as it was typed: monospace, full width, line breaks preserved. */
.prose.typescript > * { max-width: none; }
.typed { font: 400 15px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: break-word; }
.prose .annotation { margin-top: -1em; color: var(--soft); }
.prose .small { font-size: .78em; line-height: 1.5; color: var(--soft); overflow-wrap: anywhere; }
.prose .small + .small { margin-top: .8em; }

/* A row of headline figures. */
.prose .stats { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); }
.stats > div { padding: 16px 18px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.stats b { display: block; font-size: 1.6em; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; color: var(--accent); }
.stats span { display: block; margin-top: 6px; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.prose .stats { overflow: hidden; }
.prose thead:has(th:empty) { display: none; }

/* Figures: framed, numbered automatically; `wide` runs past the text column. */
.prose figure { margin-block: 2em; counter-increment: figure; clear: both; border: 1px solid var(--line); background: var(--paper); }
.prose figure.wide { max-width: none; }
.prose figure img { width: 100%; height: auto; }
.prose figure video { display: block; width: 100%; height: auto; background: #10221a; }
figcaption { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--soft); }
figcaption::before { content: 'Fig. ' counter(figure); margin-right: 12px; padding: 2px 6px; background: var(--accent); color: var(--paper); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.pair figcaption { grid-column: 1 / -1; }
.stage { position: relative; overflow: hidden; background: var(--well); aspect-ratio: 3 / 2; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--soft); }
figure > .controls { padding: 10px 14px; border-top: 1px solid var(--line); }
.controls button { padding: 5px 10px; border: 1px solid var(--line); background: none; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.controls button:hover { border-color: var(--ink); color: var(--ink); background: var(--well); }
.controls button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.controls output, .controls label { margin-left: auto; display: flex; align-items: center; gap: 8px; }
input[type="range"] { accent-color: var(--accent); }
.zoom .stage { cursor: zoom-in; touch-action: pan-y; }
.zoom .stage.zoomed { cursor: grab; touch-action: none; }
.zoom .stage img { transform-origin: 0 0; object-fit: contain; }
.compare .stage { cursor: ew-resize; touch-action: pan-y; }
.compare .divider { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px #0004; pointer-events: none; }
.compare input { flex: 1; margin: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; padding: 16px 16px 4px; }
.chart text { font: 11px var(--mono); fill: var(--soft); }
.chart .axis { stroke: var(--rule); }
.chart .line { fill: none; stroke-width: 2; }
.chart .key { display: inline-flex; align-items: center; gap: 6px; }
.chart .key::before { content: ''; width: 14px; height: 3px; background: var(--key); }
.sim canvas { display: block; width: 100%; aspect-ratio: 2 / 1; background: #10221a; cursor: crosshair; touch-action: none; }
.sim { --cell: #86a871; }
.slot { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 24px; color: var(--soft); text-align: center; background: var(--tint); }
.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--well); }

.turn { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(20px, 3vw, 32px); }
.turn > * { padding: 18px var(--pad); }
.turn > * + * { border-left: 1px solid var(--line); }
.turn a { text-decoration: none; font-size: 23px; line-height: 1.2; text-wrap: balance; }
.turn a:hover { background: var(--well); }
.turn a:last-child { text-align: right; }
.turn span { display: block; margin-bottom: 6px; color: var(--soft); }

/* Footer: name and links beside a public-domain natural-history plate. */
.site-footer { color: var(--soft); }
.site-footer .wrap { padding-block: clamp(24px, 4vw, 48px); }
.footer-frame { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 30vw, 380px); }
.footer-text { display: flex; flex-direction: column; justify-content: space-between; }
.footer-name { padding: clamp(24px, 4vw, 48px) var(--pad); font: 400 clamp(40px, 7vw, 84px)/1 var(--serif); letter-spacing: -.03em; text-transform: none; color: var(--ink); text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.site-footer nav a { padding: 12px var(--pad); border-right: 1px solid var(--line); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); background: var(--well); }
.to-top::after { content: ' \2191'; }
.colophon { padding: 12px var(--pad); border-top: 1px solid var(--line); }
.footer-plate { border-left: 1px solid var(--line); overflow: hidden; max-height: 300px; }
.footer-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; opacity: .6; filter: grayscale(1) contrast(2.1) brightness(.62); mix-blend-mode: screen; }

/* Viewer. */
body:has(dialog[open]) { overflow: hidden; }
#viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b130e; color: #d9dcd3; }
#viewer[open] { display: grid; grid-template: 56px minmax(0, 1fr) / 64px minmax(0, 1fr) 64px; }
#viewer::backdrop { background: #0b130e; }
.viewer-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding-inline: 22px 8px; color: #9aa297; border-bottom: 1px solid #ffffff26; }
#viewer-count { margin-right: auto; }
#viewer a { color: inherit; text-decoration: none; }
#viewer a:hover, #viewer button:hover { color: #fff; }
#viewer button { display: grid; place-items: center; padding: 0; border: 0; background: none; color: #9aa297; cursor: pointer; }
#viewer button svg { width: 18px; height: 18px; }
#viewer-close { width: 44px; height: 44px; }
#viewer :focus-visible { outline: 1px solid #d9dcd3; outline-offset: 4px; }
#viewer button:focus-visible { outline-offset: -8px; }
#viewer-image { place-self: center; max-width: 100%; max-height: 100%; width: auto; height: auto; padding-block: 20px; object-fit: contain; }

@media (max-width: 1240px) { .site-tagline { font-size: 15px; padding-left: 18px; } }
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards li:nth-child(n)::before { display: block; }
  .cards li:nth-child(odd)::before { display: none; }
  .cards li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .article-body { grid-template-columns: minmax(0, 1fr); }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-inner { position: static; max-height: none; padding: var(--pad); }
  .rail dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 24px; }
  .rail dl > div:first-child { padding-top: 9px; }
  .contents { display: none; }
  .prose > aside.note { float: none; width: auto; max-width: 640px; margin: 1.1em 0 0; }
}
@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; }
  .site-name { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 12px; }
  .skulls { padding: 0 0 10px; border-right: 0; gap: 10px; }
  .skulls img { height: 24px; }
  .site-header nav { align-self: flex-end; height: 44px; }
  .site-tagline { order: 3; flex-basis: 100%; padding: 0 0 12px; border-left: 0; font-size: 16px; }
}
@media (max-width: 760px) {
  .hero canvas { height: clamp(150px, 22vh, 200px); }
  .hero.expanded canvas { height: clamp(300px, 52vh, 460px); }
  .sim-bar { padding-inline: 0; }
  .sim-tabs { border-left: 0; }
  .feature-text { padding-left: 0; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .cover { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; }
  .page-head { grid-template-columns: minmax(0, 1fr); }
  .head-tile { border-left: 0; border-top: 1px solid var(--line); min-height: 0; height: 120px; }
  .article-head .head-tile { height: auto; }
  .article-head .head-tile .cover { aspect-ratio: 3 / 2; }
  .footer-frame { grid-template-columns: minmax(0, 1fr); }
  .footer-plate { border-left: 0; border-top: 1px solid var(--line); max-height: 150px; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .site-name { font-size: 20px; }
  .skulls { gap: 8px; }
  .skulls img { height: 19px; }
  .site-tagline { order: 0; }
  .site-header .site-meta .wrap { flex-wrap: wrap; }
  .site-meta .position { flex-basis: 100%; }
  .site-meta .links { margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); border-right: 0; border-top: 1px solid var(--line); }
  .site-meta .links a { flex: 1; justify-content: center; height: 34px; }
  .site-meta .links a:first-child { border-left: 0; }
  .site-header nav { order: 4; width: 100%; height: 40px; margin-inline: calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); border-right: 0; border-top: 1px solid var(--line); }
  .site-header nav a { flex: 1; justify-content: center; }
  .site-header nav a:first-child { border-left: 0; }
  .block-head { flex-wrap: wrap; }
  .block-head .strip { min-width: 0; }
  .block-head .more { width: 100%; padding-block: 10px; border-left: 0; border-top: 1px solid var(--line); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards li:nth-child(n)::before { display: none; }
  .cards li:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .large .grid { grid-template-columns: minmax(0, 1fr); }
  .turn { grid-template-columns: minmax(0, 1fr); }
  .turn > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .turn > span:empty { display: none; }
  .turn a:last-child { text-align: left; }
  #viewer[open] { grid-template: 52px minmax(0, 1fr) 60px / 1fr 1fr; }
  #viewer-image { grid-area: 2 / 1 / 3 / 3; }
  #viewer-previous { grid-area: 3 / 1; } #viewer-next { grid-area: 3 / 2; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile img, .cover img, .card { transition: none; } }
