@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: VT323; src: url('/assets/fonts/vt323.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Silkscreen; src: url('/assets/fonts/silkscreen.woff2') format('woff2'); font-style: normal; font-weight: 400; 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;
  --pixel: VT323, 'Plex Mono', ui-monospace, monospace;
  --pixel-display: Silkscreen, VT323, 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, .simspace { --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-intro { flex: 1; min-width: 0; align-self: center; padding: 8px 0 8px 22px; border-left: 1px solid var(--line); }
.site-tagline { margin: 0; font-size: 17px; font-style: italic; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.site-position { margin: 4px 0 0; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
/* 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 .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); }
.simspace .hero.expanded canvas { height: clamp(380px, 72vh, 860px); }
/* The bar's name, which links to the simulations' own page. */
.sim-title { display: flex; align-items: center; padding: 0 14px 0 0; margin-right: 14px; color: var(--ochre); text-decoration: none; white-space: nowrap; }
.sim-title::after { content: '\2192'; margin-left: 8px; }
.simspace .sim-title::after { content: none; }
.sim-title:hover { color: var(--ink); }
/* SimSpace: the tools are a strip of their own under the bar, so nothing covers the simulation. */
.sim-side { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px 18px; padding: 8px var(--inset); border-bottom: 1px solid var(--line); background: var(--forest); font: 400 16px/1 var(--pixel); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.hero:fullscreen .sim-side { padding-inline: 14px; flex: none; }
.sim-side[hidden], .sim-side.put-away { display: none; }
/* Full screen: the meadow fills the display, with its bar along the bottom. */
.hero:fullscreen { display: flex; flex-direction: column; background: #10221a; }
.hero:fullscreen canvas, .simspace .hero:fullscreen canvas { flex: 1 1 auto; height: 0; min-height: 0; }
.hero:fullscreen .sim-bar { padding-inline: 14px; }
.hero:fullscreen .controls button:last-child { display: none; }
/* what is happening now: the date, the year so far, and a line about it */
.hud-now { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); background: var(--well); }
.hud-head { display: flex; align-items: center; gap: 14px; }
.hud-head b { flex: none; min-width: 16em; font: 400 13px/1 var(--pixel-display); letter-spacing: 0; color: var(--ochre); }
.hud-year { position: relative; flex: 1; height: 7px; border: 1px solid var(--line); background: #0003; }
.hud-year i { position: absolute; inset: 0 auto 0 0; background: var(--fern); }
.hud-year u { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.hud-note { font-size: 17px; line-height: 1.1; letter-spacing: .02em; text-transform: none; color: var(--ink); }
/* the slots */
.hud-slots { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; }
.hud-gap { align-self: center; margin: 0 4px 0 12px; color: var(--ochre); }
.sim-side button { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 11px 6px 8px; border: 1px solid var(--line); box-shadow: inset 0 -3px 0 #0003; background: var(--well); color: var(--soft); font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.sim-side button:hover { color: var(--ink); border-color: var(--soft); }
.sim-side button kbd { font: inherit; color: var(--ochre); }
.sim-side button[aria-pressed="true"] kbd { color: var(--forest); }
.sim-side button[aria-pressed="true"] { color: var(--forest); background: var(--fern); border-color: var(--fern); }
.sim-side button i { flex: none; width: 9px; height: 9px; border: 1px solid #0006; }
.simspace-intro { max-width: none; margin-block: 24px 28px; font-size: clamp(19px, 2vw, 22px); color: var(--soft); }
.simspace .cards .card { padding-block: var(--pad); }
.simspace .cards { border-top: 1px solid var(--line); }
.home .masthead > .edge, .simspace .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 16px/1 var(--pixel); letter-spacing: .05em; text-transform: uppercase; }
.sim-bar .controls { font: inherit; letter-spacing: inherit; }
.simspace .block-head h2 { font-family: var(--pixel-display); letter-spacing: 0; }
.simspace .card-title { font: 400 16px/1.3 var(--pixel-display); letter-spacing: 0; }
.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; } .site-intro { 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-intro { order: 3; flex-basis: 100%; padding: 0 0 12px; border-left: 0; }
  .site-tagline { 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-title { padding-left: var(--gutter); margin-right: 10px; }
  .sim-side { gap: 4px; padding: 8px var(--gutter); }
  .hud-head b { min-width: 0; }
  .hud-gap { margin-left: 4px; }
  .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-intro { order: 0; }
  .site-header .site-meta .wrap { flex-wrap: wrap; }
  .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; } }

/* SimSpace: the one simulation that is running, described */
.sim-notes { margin-bottom: clamp(20px, 3vw, 32px); }
.sim-note { columns: 2 34em; column-gap: clamp(28px, 4vw, 56px); }
.sim-note p { margin: 0 0 1em; font-size: 18px; line-height: 1.6; color: var(--ink); }
.sim-note[hidden] { display: none; }

/* The strip keeps one height whatever it has to say, in the page and in full screen alike, so the canvas above it is
   never squeezed or stretched by it: on a wide screen it is a single row, and the text (two lines at most) shrinks to fit. */
@media (min-width: 1100px) {
  .sim-side { flex-wrap: nowrap; height: 74px; padding-block: 6px; overflow: hidden; }
  .hud-now { flex: 1 1 0; container-type: inline-size; }
  .hud-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: clamp(12px, 4.6cqw, 17px); line-height: 1.05; }
  .hud-now { gap: 4px; padding-block: 3px; }
  .hud-slots button { padding-inline: 7px 9px; gap: 6px; }
  .hud-slots { flex: none; flex-wrap: nowrap; }
  .hud-slots button { flex: none; white-space: nowrap; }
}
.sim-bar button[title^="Warning"]:hover { color: var(--ochre); }

/* SimSpace in the site's own navigation: the one link that is lit */
.site-header nav a[href="/simspace/"] { position: relative; color: var(--ochre); font-family: var(--pixel-display); font-size: 11px; letter-spacing: .04em; text-shadow: 0 0 10px #e3b04b99;
  background: linear-gradient(105deg, transparent 0 42%, #ffffff3d 50%, transparent 58% 100%) no-repeat, linear-gradient(180deg, #e3b04b1f, #e3b04b08); background-size: 260% 100%, auto;
  box-shadow: inset 0 0 0 1px #e3b04b59, inset 0 -3px 0 var(--ochre); animation: sheen 3.4s linear infinite; }
.site-header nav a[href="/simspace/"]::before { content: ''; width: 6px; height: 6px; margin-right: 9px; background: var(--ochre); box-shadow: 0 0 8px 2px #e3b04bb3; transform: rotate(45deg); animation: glint 1.7s ease-in-out infinite alternate; }
.site-header nav a[href="/simspace/"]:hover { color: #fff3d0; background-color: #e3b04b2e; }
@keyframes sheen { from { background-position: 160% 0, 0 0; } to { background-position: -110% 0, 0 0; } }
@keyframes glint { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .site-header nav a[href="/simspace/"], .site-header nav a[href="/simspace/"]::before { animation: none; } }

/* Year in Antarctica: the bar under the scene says what day it is and sets how fast time runs, and opens the list of animals found. */
.sim-side { position: relative; align-items: center; overflow: visible; }
.fauna-toast[hidden], .fauna-panel[hidden], .hud-sky[hidden] { display: none; }
.hud-now { flex: 1 1 380px; }
.hud-head { flex-wrap: wrap; gap: 6px 16px; }
.hud-head b.hud-season { min-width: 0; font: 400 15px/1 var(--pixel-display); color: var(--ochre); }
.hud-date, .hud-temp { font: 400 13px/1 var(--pixel-display); color: var(--ink); }
.hud-temp { color: #9fd2e6; }
.hud-sky { padding: 3px 7px 4px; border: 1px solid var(--line); color: var(--soft); }
.hud-now .hud-year { flex: none; width: 100%; }
.hud-time { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px #0003; color: var(--soft); }
.hud-time output { min-width: 3.2em; color: var(--ochre); font: 400 13px/1 var(--pixel-display); }
.hud-time input[type="range"] { -webkit-appearance: none; appearance: none; width: 150px; height: 18px; margin: 0; background: none; cursor: pointer; }
.hud-time input[type="range"]::-webkit-slider-runnable-track { height: 6px; border: 1px solid var(--line); background: #0004; }
.hud-time input[type="range"]::-moz-range-track { height: 6px; border: 1px solid var(--line); background: #0004; }
.hud-time input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 18px; margin-top: -7px; border: 1px solid #0008; background: var(--ochre); }
.hud-time input[type="range"]::-moz-range-thumb { width: 12px; height: 18px; border: 1px solid #0008; border-radius: 0; background: var(--ochre); }
.sim-side .fauna-button { position: relative; gap: 10px; min-height: 44px; padding: 6px 14px 8px 12px; border: 1px solid var(--ochre); color: var(--ink); background: linear-gradient(180deg, #ffffff14, #0000 55%), var(--well); box-shadow: inset 0 0 0 1px #0005, 0 0 0 1px #0004, 0 2px 0 #0006; }
.sim-side .fauna-button:hover { background: linear-gradient(180deg, #ffffff24, #0000 55%), var(--well); border-color: #ffd97a; }
.fauna-mark { flex: none; width: 14px; height: 18px; background: linear-gradient(#16181d 0 34%, #f3dc8e 34% 46%, #f4f1e6 46% 86%, #2b2b30 86%); box-shadow: -2px 6px 0 -1px #16181d, 2px 6px 0 -1px #16181d; }
.fauna-label { font: 400 13px/1 var(--pixel-display); letter-spacing: 0; }
.fauna-count { padding: 3px 7px 4px; border: 1px solid var(--line); color: var(--ochre); }
.fauna-button.complete { border-color: #ffe39a; box-shadow: inset 0 0 0 1px #0005, 0 0 12px #f2c14e88; }
.fauna-button.complete .fauna-count { color: var(--forest); background: var(--ochre); border-color: var(--ochre); }
.fauna-button.bump { animation: fauna-bump .5s ease-out; }
@keyframes fauna-bump { 30% { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #0005, 0 0 14px #f2c14ecc; } }
.fauna-panel { position: absolute; right: var(--inset); bottom: calc(100% + 8px); z-index: 5; width: min(430px, calc(100vw - 24px)); max-height: min(70vh, 640px); overflow: auto; border: 1px solid var(--ochre); background: #0e1f18f2; box-shadow: 0 10px 30px #000a, inset 0 0 0 1px #0006; text-transform: none; letter-spacing: 0; }
.hero:fullscreen .fauna-panel { right: 14px; }
.fauna-top { position: sticky; top: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); background: #0e1f18; }
.fauna-top h3 { margin: 0; font: 400 15px/1.1 var(--pixel-display); color: var(--ochre); }
.fauna-tally { color: var(--soft); font-size: 16px; }
.fauna-meter { grid-column: 1 / -1; position: relative; height: 6px; border: 1px solid var(--line); background: #0004; }
.fauna-meter i { position: absolute; inset: 0 auto 0 0; background: var(--ochre); transition: width .4s; }
.fauna-list { margin: 0; padding: 4px 0; list-style: none; }
.fauna-list li { display: grid; grid-template-columns: 22px 76px 1fr; gap: 12px; align-items: center; padding: 5px 14px; border-bottom: 1px solid #ffffff0d; }
.fauna-box { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--soft); color: var(--forest); font: 700 15px/1 system-ui, sans-serif; }
.fauna-list li[data-found="true"] .fauna-box { background: var(--ochre); border-color: var(--ochre); }
.fauna-art { display: grid; place-items: center; overflow: hidden; width: 76px; height: 52px; background: #dfeaf2; border: 1px solid #0006; color: #6f8494; font: 400 20px/1 var(--pixel-display); }
.fauna-list li[data-found="false"] .fauna-art { background: #ffffff0a; color: var(--soft); }
.hero .fauna-art canvas { display: block; flex: none; width: 72px !important; height: 48px !important; min-height: 0; background: none; cursor: default; touch-action: auto; image-rendering: pixelated; }
.fauna-names { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fauna-names b { font: 400 19px/1.1 var(--pixel); color: var(--ink); letter-spacing: .02em; }
.fauna-names i { font: italic 400 15px/1.2 Georgia, 'Times New Roman', serif; color: var(--soft); }
.fauna-list li[data-found="false"] .fauna-names b { color: var(--soft); }
.fauna-toast { position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 6; display: flex; flex-direction: column; gap: 4px; padding: 10px 18px 12px; border: 1px solid var(--ochre); background: #0e1f18f2; box-shadow: 0 8px 24px #000a; text-transform: none; letter-spacing: 0; transform: translateX(-50%); pointer-events: none; }
.fauna-toast b { font: 400 14px/1.1 var(--pixel-display); color: var(--ochre); }
.fauna-toast i { font: italic 400 15px/1.2 Georgia, 'Times New Roman', serif; color: var(--ink); }
.fauna-toast.show { animation: fauna-toast 3.6s ease-out both; }
@keyframes fauna-toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 8%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
/* On the home page the scene is a slim strip to look at, and the whole of it is the way in to its own page. */
.sim-invite { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0 16px; text-align: center; text-decoration: none; color: #fff; font: 400 clamp(13px, 2.1vw, 19px)/1.3 var(--pixel-display); letter-spacing: 0; text-shadow: 0 2px 0 #000a, 0 0 18px #000c; background: #0b1a2600; opacity: 0; transition: opacity .25s, background .25s; }
.sim-invite:hover, .sim-invite:focus-visible { opacity: 1; background: #0b1a2666; }
.hero { position: relative; }
@media (prefers-reduced-motion: reduce) { .fauna-button.bump, .fauna-toast.show { animation: none; } }
@media (max-width: 720px) { .hud-time input[type="range"] { width: 110px; } .fauna-panel { right: 8px; } }

/* The Fauna List is a field notebook: ruled paper on a wire spiral, the pictures stuck in, everything else in pencil. */
.fauna-panel { width: min(440px, calc(100vw - 24px)); border: 2px solid #2a2622; background: #f2ead3; color: #3a3840; box-shadow: 6px 6px 0 #0009, inset 0 0 0 2px #fbf6e6; image-rendering: pixelated; }
.fauna-top { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 26px 16px 10px 54px; border-bottom: 2px solid #c9b98f; background: linear-gradient(90deg, #0000 0 40px, #d98b84 40px 42px, #0000 42px), #f2ead3; }
.fauna-rings { position: absolute; inset: 0 0 auto 0; height: 18px; background: repeating-linear-gradient(90deg, #0000 0 10px, #8d8f97 10px 12px, #d9dbe2 12px 14px, #8d8f97 14px 16px, #0000 16px 26px) 0 0 / auto 12px no-repeat, repeating-linear-gradient(90deg, #0000 0 9px, #2a2622 9px 17px, #0000 17px 26px) 0 10px / auto 6px no-repeat, #e4dabd; border-bottom: 2px solid #c9b98f; }
.fauna-top h3 { font: 400 15px/1.15 var(--pixel-display); color: #3a3840; }
.fauna-tally { color: #7a5a3a; font: 400 19px/1 var(--pixel); letter-spacing: .03em; }
.fauna-list { padding: 0; background: linear-gradient(90deg, #0000 0 40px, #d98b84 40px 42px, #0000 42px), repeating-linear-gradient(#0000 0 75px, #a9bfd8 75px 76px); }
.fauna-list li { grid-template-columns: 26px 86px 1fr; gap: 12px; height: 76px; padding: 0 14px 0 8px; border-bottom: 0; }
.hero .fauna-list canvas.fauna-box { display: block; width: 26px !important; height: 26px !important; min-height: 0; border: 0; background: none; cursor: default; }
.fauna-art { width: 82px; height: 58px; border: 4px solid #fffdf6; outline: 1px solid #bcae8a; background: #dfeaf2; box-shadow: 3px 3px 0 #0003; position: relative; overflow: visible; transform: rotate(-1.5deg); }
.fauna-list li:nth-child(even) .fauna-art { transform: rotate(1.2deg); }
.fauna-art::before { content: ''; position: absolute; left: 50%; top: -9px; width: 26px; height: 10px; margin-left: -13px; background: #e6d48a; opacity: .82; box-shadow: inset 0 0 0 1px #c9b662; }
.fauna-art.sea { background: #17405f; }
.fauna-list li[data-found="false"] .fauna-art { border: 2px dashed #bcae8a; outline: 0; background: none; box-shadow: none; color: #b3a57f; }
.fauna-list li[data-found="false"] .fauna-art::before { display: none; }
.fauna-names { gap: 2px; }
.fauna-names b { font: 400 20px/1 var(--pixel); color: #2f2d36; letter-spacing: .02em; }
.fauna-names i { font: italic 400 14px/1.15 Georgia, 'Times New Roman', serif; color: #5a5762; }
.fauna-names small { font: 400 16px/1 var(--pixel); color: #7a5a3a; letter-spacing: .03em; }
.fauna-names .fauna-blank { display: block; height: 14px; border-bottom: 2px dotted #b9ad8c; width: 70%; }
.fauna-names i.fauna-blank { width: 46%; }
.fauna-list li[data-found="false"] .fauna-names b { color: inherit; }

/* ---- The bar under the scene: built like the panel of an old handheld, in blocks, every edge two pixels and square. */
.sim-side { flex-wrap: wrap; align-items: stretch; height: auto; gap: 10px; padding: 10px var(--inset); border: 0; border-top: 4px solid #050d12; border-bottom: 4px solid #050d12; background: #0c1c26; box-shadow: inset 0 2px 0 #24465a; font: 400 18px/1 var(--pixel); letter-spacing: .04em; text-transform: uppercase; color: #9fd2e6; image-rendering: pixelated; }
.sim-side .px { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 0; background: #12303f; box-shadow: inset 2px 2px 0 #2f6480, inset -2px -2px 0 #07141b, 0 0 0 2px #050d12; }
.sim-side .px-icon { flex: none; display: block; image-rendering: pixelated; }
.sim-side .hud-day { flex: 1 1 420px; min-width: 0; }
.hud-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hud-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sim-side b.hud-season { min-width: 5.2em; font: 400 15px/1 var(--pixel-display); color: #f2c14e; text-shadow: 2px 2px 0 #050d12; }
.hud-chip { display: flex; align-items: center; gap: 7px; }
.sim-side .hud-date { font: 400 13px/1 var(--pixel-display); color: #f4fbff; }
.sim-side .hud-temp { font: 400 13px/1 var(--pixel-display); color: #9fd2e6; }
.sim-side .hud-sky { padding: 3px 7px; border: 0; background: #f4fbff; color: #0c1c26; box-shadow: 2px 2px 0 #050d12; font: 400 16px/1 var(--pixel); }
.hud-months { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; height: 10px; }
.hud-months u { background: #1d4a5f; box-shadow: inset 0 -2px 0 #0003; text-decoration: none; }
.hud-months u.au { background: #7a5f3a; } .hud-months u.wi { background: #2d5f86; } .hud-months u.sp { background: #3f7f6c; } .hud-months u.su { background: #b98a2e; }
.hud-months u.now { box-shadow: inset 0 0 0 2px #f4fbff; }
.hud-months i { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; background: #f4fbff; box-shadow: 0 0 0 2px #050d12; }
.sim-side .hud-note { font: 400 19px/1.05 var(--pixel); letter-spacing: .02em; text-transform: none; color: #c9e6f2; }
.sim-side .hud-time { flex: none; gap: 12px; color: #9fd2e6; }
.sim-side .hud-time output { min-width: 3em; font: 400 13px/1 var(--pixel-display); color: #f2c14e; text-shadow: 2px 2px 0 #050d12; }
.sim-side .hud-time input[type="range"] { -webkit-appearance: none; appearance: none; width: 150px; height: 24px; margin: 0; background: none; cursor: pointer; }
.sim-side .hud-time input[type="range"]::-webkit-slider-runnable-track { height: 8px; border: 0; background: repeating-linear-gradient(90deg, #07141b 0 6px, #16384a 6px 8px); box-shadow: 0 0 0 2px #050d12, inset 0 2px 0 #0008; }
.sim-side .hud-time input[type="range"]::-moz-range-track { height: 8px; border: 0; background: repeating-linear-gradient(90deg, #07141b 0 6px, #16384a 6px 8px); box-shadow: 0 0 0 2px #050d12; }
.sim-side .hud-time input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 22px; margin-top: -7px; border: 0; border-radius: 0; background: #f2c14e; box-shadow: inset 2px 2px 0 #ffe39a, inset -2px -2px 0 #a8791e, 0 0 0 2px #050d12; }
.sim-side .hud-time input[type="range"]::-moz-range-thumb { width: 12px; height: 22px; border: 0; border-radius: 0; background: #f2c14e; box-shadow: inset 2px 2px 0 #ffe39a, inset -2px -2px 0 #a8791e, 0 0 0 2px #050d12; }
.sim-side .px-btn { display: flex; align-items: center; gap: 10px; min-height: 0; padding: 8px 14px; border: 0; border-radius: 0; background: #1d4a5f; color: #f4fbff; box-shadow: inset 2px 2px 0 #3f86a6, inset -2px -2px 0 #0b212c, 0 0 0 2px #050d12, 0 4px 0 #050d12; font: 400 13px/1 var(--pixel-display); letter-spacing: 0; text-transform: uppercase; cursor: pointer; }
.sim-side .px-btn:hover { background: #24607a; border-color: transparent; color: #fff; }
.sim-side .px-btn:active { transform: translateY(2px); box-shadow: inset 2px 2px 0 #0b212c, inset -2px -2px 0 #3f86a6, 0 0 0 2px #050d12, 0 2px 0 #050d12; }
.sim-side .fauna-button { background: #6b4a2e; box-shadow: inset 2px 2px 0 #9a7146, inset -2px -2px 0 #3d2916, 0 0 0 2px #050d12, 0 4px 0 #050d12; }
.sim-side .fauna-button:hover { background: #7d5837; }
.sim-side .fauna-count { padding: 3px 6px; border: 0; background: #f2ead3; color: #3a2a18; box-shadow: 2px 2px 0 #050d12; font: 400 13px/1 var(--pixel-display); }
.sim-side .fauna-button.complete { background: #b98a2e; box-shadow: inset 2px 2px 0 #ffe39a, inset -2px -2px 0 #7a5a1e, 0 0 0 2px #050d12, 0 4px 0 #050d12; }
.sim-side .fauna-button.complete .fauna-count { background: #fff3c4; color: #3a2a18; }
.fauna-mark { display: none; }
.fauna-toast { border: 0; background: #12303f; box-shadow: inset 2px 2px 0 #2f6480, inset -2px -2px 0 #07141b, 0 0 0 2px #050d12, 0 6px 0 #0008; }
.fauna-toast b { color: #f2c14e; } .fauna-toast i { color: #f4fbff; }

/* ---- The notebook: set down a little askew, its pages stacked under the top one, the list scrolling inside it. */
.fauna-panel { right: calc(var(--inset) + 10px); bottom: calc(100% + 22px); width: min(450px, calc(100vw - 40px)); max-height: min(74vh, 680px); overflow: visible; border: 2px solid #2a2622; background: radial-gradient(#00000009 1px, #0000 1px) 0 0 / 7px 7px, #f2ead3; box-shadow: 3px 3px 0 #e6dcbe, 5px 5px 0 #2a2622, 8px 8px 0 #dcd0ac, 10px 10px 0 #2a2622, 16px 18px 0 #0007; transform: rotate(-1.7deg); transform-origin: 85% 100%; }
.fauna-panel:not([hidden]) { display: flex; flex-direction: column; }
.fauna-cover { flex: none; height: 12px; background: repeating-linear-gradient(90deg, #6b4a2e 0 6px, #62432a 6px 8px); border-bottom: 2px solid #2a2622; box-shadow: inset 0 2px 0 #8a6340; }
.fauna-rings { position: absolute; inset: -8px 10px auto 10px; height: 26px; z-index: 3; pointer-events: none; border: 0; background: repeating-linear-gradient(90deg, #0000 0 8px, #5d6068 8px 10px, #c9ccd4 10px 12px, #f4f6fa 12px 14px, #8d8f97 14px 16px, #0000 16px 26px) 0 0 / auto 20px no-repeat, repeating-linear-gradient(90deg, #0000 0 8px, #2a2622 8px 16px, #0000 16px 26px) 0 18px / auto 6px no-repeat; }
.fauna-top { position: relative; top: auto; flex: none; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 20px 16px 10px 54px; border-bottom: 2px solid #c9b98f; background: linear-gradient(90deg, #0000 0 40px, #d98b84 40px 42px, #0000 42px); }
.fauna-top h3 { padding-bottom: 5px; background: repeating-linear-gradient(90deg, #3a3840 0 6px, #3a384000 6px 8px, #3a3840 8px 18px, #3a384000 18px 20px) 0 100% / auto 2px repeat-x; }
.fauna-sub { grid-column: 1 / -1; font: 400 16px/1 var(--pixel); letter-spacing: .03em; color: #8a7a58; }
.fauna-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0; background: linear-gradient(90deg, #0000 0 40px, #d98b84 40px 42px, #0000 42px) local, repeating-linear-gradient(#0000 0 75px, #a9bfd8 75px 76px) local; scrollbar-width: thin; scrollbar-color: #b9a36f #e6dcbe; }
.fauna-list::-webkit-scrollbar { width: 12px; } .fauna-list::-webkit-scrollbar-track { background: #e6dcbe; box-shadow: inset 2px 0 0 #c9b98f; } .fauna-list::-webkit-scrollbar-thumb { background: #b9a36f; box-shadow: inset 2px 2px 0 #d6c595, inset -2px -2px 0 #8a7748; }
.fauna-list li { overflow: hidden; }
.fauna-art { transform: rotate(-1.5deg) scale(.94); }
.fauna-list li:nth-child(even) .fauna-art { transform: rotate(1.2deg) scale(.94); }
.fauna-art::before { top: -6px; }
.fauna-fold { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; z-index: 3; background: linear-gradient(135deg, #d8cca8 0 48%, #2a2622 48% 54%, #0c1c26 54%); pointer-events: none; }
.hero .fauna-panel canvas.fauna-pencil { position: absolute; left: 34px; bottom: -16px; z-index: 4; width: 204px !important; height: 20px !important; min-height: 0; background: none; cursor: default; transform: rotate(3deg); filter: drop-shadow(3px 4px 0 #0005); pointer-events: none; }
@media (max-width: 720px) { .sim-side .hud-time input[type="range"] { width: 110px; } .fauna-panel { right: 14px; transform: rotate(-1deg); } }

/* The little pictures in the bar are their own size, not the size of the scene. */
.hero .sim-side canvas.px-icon { width: auto !important; height: auto !important; min-height: 0; background: none; cursor: inherit; touch-action: auto; }
.hero .fauna-panel canvas.fauna-pencil { width: 204px !important; height: 20px !important; }
/* The foot of the notebook: the rubber. */
.fauna-foot { flex: none; display: flex; justify-content: flex-end; padding: 8px 30px 12px 54px; border-top: 2px solid #c9b98f; background: linear-gradient(90deg, #0000 0 40px, #d98b84 40px 42px, #0000 42px); }
.sim-side .fauna-reset { min-height: 0; padding: 6px 10px 7px; border: 0; border-radius: 0; background: #e9a3a3; color: #4a2326; box-shadow: inset 2px 2px 0 #f6c9c9, inset -2px -2px 0 #b96e70, 0 0 0 2px #2a2622, 0 3px 0 #2a2622; font: 400 11px/1 var(--pixel-display); letter-spacing: 0; text-transform: uppercase; cursor: pointer; }
.sim-side .fauna-reset:hover { background: #f0b4b4; color: #2a1214; border-color: transparent; }
.sim-side .fauna-reset:active { transform: translateY(2px); box-shadow: inset 2px 2px 0 #b96e70, inset -2px -2px 0 #f6c9c9, 0 0 0 2px #2a2622, 0 1px 0 #2a2622; }
.sim-side .fauna-reset[data-sure] { background: #e0604e; color: #fff; box-shadow: inset 2px 2px 0 #f08f80, inset -2px -2px 0 #9c3a2c, 0 0 0 2px #2a2622, 0 3px 0 #2a2622; }

/* In full screen the scene's canvas stretches to fill the display; nothing in the bar or the notebook is to stretch with it. */
.hero .sim-side canvas, .hero:fullscreen .sim-side canvas { flex: none !important; }
.hero:fullscreen .sim-side canvas.px-icon { width: auto !important; height: auto !important; }
.hero:fullscreen .sim-side { flex: none; height: auto; align-items: stretch; padding: 8px 14px; }
.hero:fullscreen .fauna-panel { right: 24px; max-height: min(80vh, 760px); }

/* A slim bar: one row of blocks. */
.sim-side { padding-block: 8px; }
.sim-side .px { padding: 6px 12px; }
.sim-side .px-btn { padding: 6px 14px; }

.fauna-art.sky { background: linear-gradient(#86b2d6 0 50%, #7ba8cf 50%); }

/* ---- The bar is a slab of the place: dark water with a drift of snow along its top edge, panels sunk into it, and
   buttons that are blocks of ice. Every texture is a small tile of square pixels, shown at twice its size. */
.sim-side { background: var(--tex-sea, #0c1c26) 0 0 / 32px 32px; border-top: 4px solid #050d12; box-shadow: none; padding-top: 14px; }
.sim-side::before { content: ''; position: absolute; left: 0; right: 0; top: -4px; height: 16px; z-index: 1; background: var(--tex-snow) 0 0 / 32px 16px repeat-x; image-rendering: pixelated; pointer-events: none; }
.sim-side .px { position: relative; background: var(--tex-deep, #12303f) 0 0 / 32px 32px; box-shadow: inset 2px 2px 0 #07141b, inset -2px -2px 0 #2f6480, inset 4px 4px 0 #0b212d66, 0 0 0 2px #050d12; }
.sim-side .px-btn { position: relative; background: var(--tex-ice, #b4dcec) 0 0 / 32px 32px; color: #0c2330; text-shadow: 1px 1px 0 #e6f8ff; box-shadow: inset 2px 2px 0 #f4fcff, inset -2px -2px 0 #4f8fae, 0 0 0 2px #050d12, 0 4px 0 #050d12; }
.sim-side .px-btn::before { content: ''; position: absolute; left: 0; right: 0; top: -4px; height: 10px; background: var(--tex-snow) 0 0 / 32px 10px repeat-x; image-rendering: pixelated; pointer-events: none; }
.sim-side .px-btn:hover { background: var(--tex-ice, #c6e8f5) 0 0 / 32px 32px; filter: brightness(1.08); color: #05141c; }
.sim-side .px-btn:active { box-shadow: inset 2px 2px 0 #4f8fae, inset -2px -2px 0 #f4fcff, 0 0 0 2px #050d12, 0 2px 0 #050d12; }
.sim-side .fauna-button { background: var(--tex-leather, #6b4a2e) 0 0 / 32px 32px; color: #f6ecd6; text-shadow: 2px 2px 0 #2c1b0d; box-shadow: inset 2px 2px 0 #9a7146, inset -2px -2px 0 #3d2916, 0 0 0 2px #050d12, 0 4px 0 #050d12; }
.sim-side .fauna-button:hover { background: var(--tex-leather, #7d5837) 0 0 / 32px 32px; color: #fff; }
.sim-side .fauna-button.complete { background: var(--tex-leather) 0 0 / 32px 32px; box-shadow: inset 2px 2px 0 #ffe39a, inset -2px -2px 0 #7a5a1e, 0 0 0 2px #f2c14e, 0 4px 0 #050d12; }
.sim-side .hud-time input[type="range"]::-webkit-slider-thumb { background: #eef8fd; box-shadow: inset 2px 2px 0 #ffffff, inset -2px -2px 0 #6aa6c2, 0 0 0 2px #050d12; }
.sim-side .hud-time input[type="range"]::-moz-range-thumb { background: #eef8fd; box-shadow: inset 2px 2px 0 #ffffff, inset -2px -2px 0 #6aa6c2, 0 0 0 2px #050d12; }
.sim-side .fauna-reset::before { content: none; }
.hero:fullscreen .sim-side { padding-top: 14px; }

/* The bar's surfaces are each painted to their own size by the script (assets/hero.js): no tiles, so nothing repeats. */
.sim-side, .sim-side .px, .sim-side .px-btn { background-size: 100% 100%; background-repeat: no-repeat; image-rendering: pixelated; }
.sim-side { background-color: #0e2937; border-top: 0; padding-top: 16px; }
.sim-side::before, .sim-side .px-btn::before { content: none; }
.sim-side .px { background-color: #143748; }
.sim-side .px-btn { background-color: #aad6e8; }
.sim-side .px-btn:hover { filter: brightness(1.1); }
.sim-side .fauna-button { background-color: #6f4d30; }
.hero:fullscreen .sim-side { padding-top: 16px; }

/* No snow hanging from the bar; and nothing in it casts a shadow: flat blocks, flat lettering. */
.sim-side { padding-top: 10px; border-top: 4px solid #050d12; }
.hero:fullscreen .sim-side { padding-top: 10px; }
.sim-side, .sim-side *, .sim-side b.hud-season, .sim-side .hud-time output, .sim-side .px-btn, .sim-side .fauna-button { text-shadow: none; }
.sim-side .px-btn { box-shadow: inset 2px 2px 0 #f4fcff, inset -2px -2px 0 #4f8fae, 0 0 0 2px #050d12; }
.sim-side .px-btn:active { transform: none; box-shadow: inset 2px 2px 0 #4f8fae, inset -2px -2px 0 #f4fcff, 0 0 0 2px #050d12; }
.sim-side .fauna-button { box-shadow: inset 2px 2px 0 #9a7146, inset -2px -2px 0 #3d2916, 0 0 0 2px #050d12; }
.sim-side .fauna-button.complete { box-shadow: inset 2px 2px 0 #ffe39a, inset -2px -2px 0 #7a5a1e, 0 0 0 2px #f2c14e; }
.sim-side .hud-sky, .sim-side .fauna-count { box-shadow: none; }
.sim-side .fauna-reset { box-shadow: inset 2px 2px 0 #f6c9c9, inset -2px -2px 0 #b96e70, 0 0 0 2px #2a2622; }
.fauna-toast { box-shadow: inset 2px 2px 0 #2f6480, inset -2px -2px 0 #07141b, 0 0 0 2px #050d12; }

/* A photograph in the notebook. */
.fauna-art img { display: block; width: 72px; height: 48px; image-rendering: pixelated; }
.fauna-art.shot { background: #17405f; }

/* ==== A little more play, in square pixels, without giving up the quiet of the page ==== */
/* The small labels are set in the pixel face, the way the simulation's are. */
.site-header nav, .site-footer, .num, .row-meta, .tag, .more, .count, .rail, .turn span, .viewer-bar, .tile-label, figcaption::before { font: 400 17px/1.25 var(--pixel); letter-spacing: .07em; }
.site-position, .site-meta, .stats span { font: 400 16px/1.25 var(--pixel); letter-spacing: .07em; }
.more::after { font-family: var(--mono); font-size: 12px; }
/* A link under the pointer: the underline breaks into squares. */
a:hover { text-decoration-style: dotted; text-decoration-thickness: 2px; }
::selection { background: var(--ochre); color: #10221a; }
/* Section headings are led by a small stepped mark. */
.block-head h2::before { content: ''; flex: none; align-self: center; width: 6px; height: 6px; margin-right: 22px; background: var(--ochre); box-shadow: 6px 6px 0 var(--ochre), 12px 0 0 var(--accent); }
/* Pictures on cards have their corners nipped off by one square; and under the pointer four ochre corners close in
   on them, the same mark the simulation makes when an animal is chosen. */
.card .cover, .head-tile .cover { --nip: 4px; clip-path: polygon(0 var(--nip), var(--nip) var(--nip), var(--nip) 0, calc(100% - var(--nip)) 0, calc(100% - var(--nip)) var(--nip), 100% var(--nip), 100% calc(100% - var(--nip)), calc(100% - var(--nip)) calc(100% - var(--nip)), calc(100% - var(--nip)) 100%, var(--nip) 100%, var(--nip) calc(100% - var(--nip)), 0 calc(100% - var(--nip))); }
.card .cover::after { content: ''; position: absolute; inset: 10px; opacity: 0; transform: scale(1.06); transition: opacity .12s steps(2), transform .18s steps(3); pointer-events: none;
  background:
    linear-gradient(var(--ochre) 0 0) 0 0 / 18px 4px, linear-gradient(var(--ochre) 0 0) 0 0 / 4px 18px,
    linear-gradient(var(--ochre) 0 0) 100% 0 / 18px 4px, linear-gradient(var(--ochre) 0 0) 100% 0 / 4px 18px,
    linear-gradient(var(--ochre) 0 0) 0 100% / 18px 4px, linear-gradient(var(--ochre) 0 0) 0 100% / 4px 18px,
    linear-gradient(var(--ochre) 0 0) 100% 100% / 18px 4px, linear-gradient(var(--ochre) 0 0) 100% 100% / 4px 18px;
  background-repeat: no-repeat; }
.card:hover .cover::after, .card:focus-visible .cover::after { opacity: 1; transform: none; }
/* Tags are solid little blocks. */
.tag { padding: 0 6px 1px; border: 0; background: var(--ochre); color: #10221a; font-size: 15px; }
/* Buttons take a hard square shadow and sit down on it when pressed. */
.icon-button { box-shadow: 3px 3px 0 var(--line); transition: transform .08s steps(2), box-shadow .08s steps(2); }
.icon-button:hover { box-shadow: 3px 3px 0 var(--ochre); }
.icon-button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ochre); }
/* The figures in a project's summary row are counted out in the pixel face. */
.stats b { font: 400 34px/1 var(--pixel-display); letter-spacing: 0; }
/* Scrollbars: square, in the page's own greens. */
html { scrollbar-color: var(--accent) var(--well); }
::-webkit-scrollbar { width: 14px; height: 14px; } ::-webkit-scrollbar-track { background: var(--well); } ::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--well); } ::-webkit-scrollbar-thumb:hover { background: var(--ochre); }
/* And an emperor penguin stands on the rule in the footer. It is the way in to the simulation. */
.site-footer nav { position: relative; }
.site-footer nav a.pixel-pal { position: absolute; right: 18px; bottom: 100%; padding: 0; border: 0; line-height: 0; animation: pal-bob 3.4s steps(1) infinite; }
.site-footer nav a.pixel-pal svg { display: block; }
.site-footer nav a.pixel-pal:hover { animation: pal-hop .5s steps(2) infinite; }
@keyframes pal-bob { 0%, 88% { transform: none; } 90%, 96% { transform: translateY(-3px); } }
@keyframes pal-hop { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .site-footer nav a.pixel-pal, .site-footer nav a.pixel-pal:hover { animation: none; } .card .cover::after { transition: none; } }

.site-footer nav a { padding-inline: calc(var(--pad) * .72); }
.site-footer nav a.pixel-pal { filter: drop-shadow(2px 0 0 #b4c4ab55) drop-shadow(-2px 0 0 #b4c4ab55); }

/* A preview of a piece of writing: its own first lines, set a little apart and trailing off. */
.row-preview { margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--ochre); font-style: italic; line-height: 1.45; color: var(--soft); max-width: 36em; }
.feature .row-preview { font-size: 18px; }

/* Side by side, the lead picture fills its own column whatever height the text beside it comes to; it does not spread into it. */
@media (min-width: 761px) { .feature .cover { aspect-ratio: auto; width: 100%; height: 100%; min-height: 300px; } }

/* ---- More than one ornament. The automaton strips stay under the masthead; elsewhere there is a gel, handwriting, a
   strip of film, a double helix, footprints and waves, each a row of square pixels. */
.strip-gel { --pattern: url('/assets/patterns/motif-gel.svg'); } .strip-glyph { --pattern: url('/assets/patterns/motif-glyph.svg'); } .strip-film { --pattern: url('/assets/patterns/motif-film.svg'); }
.strip-waves { --pattern: url('/assets/patterns/motif-waves.svg'); } .strip-helix { --pattern: url('/assets/patterns/motif-helix.svg'); }
.edge-tracks { --pattern: url('/assets/patterns/motif-tracks.svg'); } .edge-waves { --pattern: url('/assets/patterns/motif-waves.svg'); } .edge-helix { --pattern: url('/assets/patterns/motif-helix.svg'); }
/* The header is the same size on every page: it keeps to the wide measure of the home page, and its lines do not wrap. */
.site-header { --page: 1720px; --inset: max(var(--gutter), calc(50vw - var(--page) / 2)); position: relative; isolation: isolate; }
@media (min-width: 1600px) { .site-tagline, .site-position { white-space: nowrap; } }
/* And behind all of it, very faintly, a sheet of genetics in pixels: helices, a line of sequence and its trace, a gel. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/assets/patterns/genes.svg') 50% 50% / auto 132px repeat-x; opacity: .1; image-rendering: pixelated; pointer-events: none; }

/* Taking a photograph again: a small camera at the end of each line of the notebook. */
.fauna-list li { grid-template-columns: 26px 86px 1fr auto; }
.sim-side .fauna-retake { display: grid; place-items: center; min-height: 0; width: 34px; height: 30px; padding: 0; border: 0; border-radius: 0; background: #e6dcbe; box-shadow: inset 2px 2px 0 #fbf6e6, inset -2px -2px 0 #b9a36f, 0 0 0 2px #2a2622; cursor: pointer; }
.sim-side .fauna-retake:hover { background: #f2c14e; border-color: transparent; }
.sim-side .fauna-retake.armed { background: #e0604e; box-shadow: inset 2px 2px 0 #9c3a2c, inset -2px -2px 0 #f08f80, 0 0 0 2px #2a2622; }
.sim-side .fauna-retake::before { content: none; }
.fauna-toast.hold { opacity: 1; transform: translateX(-50%); }

/* Behind the header: just the one helix, fainter. */
.site-header::before { background: url('/assets/patterns/genes.svg') 0 50% / auto 88px repeat-x; opacity: .07; }

/* Nothing behind the header after all: plain. */
.site-header::before { content: none; }

.fauna-secret { cursor: default; }
