@font-face { font-family: Geist; src: url('/assets/fonts/geist-latin.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-latin.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
/* A calm, light page: muted neutrals and one quiet navy for links and focus (ADR 0018). */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --blueprint: #F6F6F5;
  --ink: #1C1C1E;
  --muted: #5E5E62;
  --rule: #EBEBEA;
  --link: #2B4C7E;
  --link-line: #B5C0D2;
  --accent-soft: #F1F1EF;
  --accent-ink: #4A4A4E;
  --ok-bg: #DCFCE7;
  --ok-ink: #065F46;
  --sans: Geist, Arial, sans-serif;
  --mono: 'Geist Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--link); text-decoration-line: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
h1, h2, h3, h4, p, figure, dl { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; color: var(--ink); }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 21px; line-height: 1.3; margin-bottom: 20px; letter-spacing: -.01em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
h4 { font-size: 15px; line-height: 1.5; }
p + p { margin-top: 14px; }
img, video, svg { max-width: 100%; }
video { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
figcaption, .figure-note { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.container { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 20px; font-size: 15px; border-bottom: 1px solid var(--rule); }
.site-name { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-name::before { content: ''; flex: none; width: 20px; height: 20px; background: url('/assets/favicon.svg') center / contain no-repeat; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); text-decoration: underline; text-decoration-color: currentColor; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 8px; }
main > section + section { margin-top: 72px; }
.beta { display: inline-block; font: 500 12.5px/1.2 var(--mono); color: var(--accent-ink); background: var(--accent-soft); padding: 3px 7px; letter-spacing: .03em; margin-left: 8px; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Used by scripts/og-image.html, the source of the social card. */
.eyebrow { font: 500 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 16px; }
.lede { max-width: 620px; font-size: 18px; line-height: 1.55; margin-top: 18px; color: var(--ink); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--rule); margin-top: 96px; padding-block: 28px; font-size: 14px; color: var(--muted); }

/* The homepage is one narrow column of short entries (ADR 0018). */
.home .container { width: min(640px, calc(100% - 48px)); }
.home main > section + section { margin-top: 64px; }
.intro { padding-top: 80px; }
.intro h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.015em; }
.intro-line { margin-top: 12px; font-size: 19px; line-height: 1.5; }
.intro p.intro-place { margin-top: 4px; font-size: 16px; color: var(--muted); }
.home h2 { margin-bottom: 12px; font-size: 15px; line-height: 1.4; letter-spacing: .01em; color: var(--muted); }
.entries { list-style: none; margin: 0; padding: 0; }
.entries li { position: relative; padding-block: 10px; }
.entries li > span[id] { position: absolute; top: 0; }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.entry-title { font-size: 17px; line-height: 1.5; font-weight: 500; letter-spacing: 0; }
.entry-when { flex: none; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry-note { margin-top: 2px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.sub-title { margin: 28px 0 4px; font-size: 15px; line-height: 1.4; letter-spacing: .01em; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }
/* A short story, a thin timeline and two stills (ADR 0019). Static, neutral and readable without colour. */
.intro p.story { margin-top: 28px; max-width: 600px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 8px 0 32px; padding: 0; }
.timeline li { position: relative; padding-top: 22px; }
.timeline li::before { content: ''; position: absolute; top: 4px; left: 0; right: -16px; height: 1px; background: #C9C9C6; }
.timeline li:last-child::before { right: 0; }
.timeline li::after { content: ''; position: absolute; top: 0; left: 0; width: 9px; height: 9px; box-sizing: border-box; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--bg); }
.timeline li:last-child::after { background: var(--ink); }
.timeline-year { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-place { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.stills figure { min-width: 0; }
.stills a { display: block; border-radius: 6px; }
.stills img { display: block; width: 100%; height: auto; border-radius: 6px; outline: 1px solid var(--rule); outline-offset: -1px; }
@media (max-width: 640px) {
  .container, .home .container { width: calc(100% - 32px); }
  .site-header { display: block; padding-block: 20px; }
  .site-header nav { margin-top: 8px; gap: 0 12px; }
  h1 { font-size: 30px; }
  h3 { font-size: 20px; }
  main > section + section { margin-top: 48px; }
  .intro { padding-top: 48px; }
  .intro h1 { font-size: 28px; }
  .intro-line { font-size: 18px; }
  .home main > section + section { margin-top: 48px; }
  .entry-head { gap: 12px; }
  .timeline { gap: 10px; }
  .timeline li::before { right: -10px; }
  .timeline-place { font-size: 14px; }
  .stills { gap: 16px; }
  .site-footer { margin-top: 64px; }
}
@media print { body { background: #fff; } .site-header, .site-footer, .skip-link { display: none; } .container, .home .container { width: 100%; } main > section + section { margin-top: 32px; } .entries li, .timeline, .stills { break-inside: avoid; } }

/* Project pages share the homepage's paper and typography and keep their unframed evidence. */
.prose { max-width: 640px; }
.prose li + li { margin-top: 16px; }
.project-head { padding-top: 48px; margin-bottom: 48px; }
.breadcrumb { margin-bottom: 32px; font-size: 15px; }
.page-intro { max-width: 640px; margin-top: 24px; font-size: 17px; line-height: 1.6; }
.project-subtitle { max-width: 640px; margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.project-film-main { margin: 0; }
.project-page #chapters { margin-top: 32px; }
.project-page #chapters h2 { margin-bottom: 16px; }
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters li + li { border-top: 1px solid var(--rule); }
.chapters button, .chapter-fallback { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 16px; width: 100%; min-height: 44px; padding: 16px 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
[hidden] { display: none !important; }
.timestamp { font: 400 14px/1.6 var(--mono); }
.chapter-note { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.chapters button strong { font-weight: 500; }
.chapters [aria-current] strong, .chapters [aria-current] .timestamp { font-weight: 600; }
.chapters button:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.under-hood { max-width: 640px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.project-page section > ol:not(.chapters) { max-width: 640px; padding-left: 24px; }
.project-page section > ol:not(.chapters) li { min-height: 44px; padding-block: 12px; }
.number-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.number-grid dt { font: 600 32px/1.1 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.number-grid dd { margin: 12px 0 0; font-size: 15px; line-height: 1.5; }
.number-grid dd p { margin-top: 16px; color: var(--muted); font-size: 14px; }
.system-diagram svg { width: 100%; height: auto; display: block; }
.system-diagram .system-wide, .flow-panel .flow-wide { display: none; }
.system-diagram .system-narrow { max-width: 440px; }
.flow-panel + .flow-panel { margin-top: 40px; }
.flow-panel h3 { font-size: 17px; margin-bottom: 16px; }
.flow-panel svg { display: block; width: 100%; max-width: 440px; height: auto; }
.flow-panel text { font-family: var(--sans); fill: var(--ink); }
.flow-panel .figure-note { max-width: 640px; }
.still-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; }
.still-grid figure { min-width: 0; }
.still-grid img { display: block; width: 100%; height: auto; border-radius: 6px; }
.walkthrough-still { margin-block: 24px; }
.walkthrough-still img { display: block; width: 100%; height: auto; border-radius: 6px; }
.project-page section.walkthrough-with-stills > ol { max-width: none; }
.walkthrough-with-stills .step-copy { max-width: 640px; }
.walkthrough-with-stills .walkthrough-still { width: calc(100% + 24px); margin-left: -24px; }
.glance-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.glance-grid dt { font-size: 17px; font-weight: 600; }
.glance-grid dd { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.glance-grid dd strong { font-weight: 400; }
.glance-grid dd p { margin-top: 8px; }
@media (max-width:640px) { .glance-grid { grid-template-columns: 1fr; } }
.project-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--rule); padding-block: 32px; margin-top: 96px; font-size: 15px; }
.project-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.demo-index-entry { position: relative; border-top: 1px solid var(--rule); padding-block: 32px; }
.demo-index-entry > span { position: absolute; top: 0; }
.demo-index-entry h2 { margin-bottom: 16px; }
.demo-index-entry p { max-width: 640px; }
/* Writing's checked text and figures remain intact; only their presentation changes. */
.writing main { max-width: 1040px; }
.writing .list-head, .writing .head { max-width: 640px; padding-top: 48px; margin-bottom: 48px; }
.writing .meta, .writing time, .writing .series { font-size: 14px; color: var(--muted); }
.writing .head h1 { margin-top: 16px; }
.writing .dek { margin-top: 24px; font-size: 19px; line-height: 1.5; }
.writing .prose { max-width: 640px; }
.writing .prose h2 { margin-top: 48px; margin-bottom: 16px; }
.writing .prose p, .writing .prose figure { margin-top: 24px; }
.writing .posts { max-width: 640px; list-style: none; padding: 0; }
.writing .posts li { padding-block: 24px; border-top: 1px solid var(--rule); }
.writing .posts h2 { margin-block: 12px; }
.writing .fig { padding-block: 24px; border-block: 1px solid var(--rule); }
.writing .panel { font-size: 14px; }
.writing .squeeze { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.writing .card { min-width: 0; }
.writing .lines i { display: block; height: 3px; margin-top: 8px; background: var(--rule); }
.writing .gone { opacity: 1; }
.writing .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.writing .steps { padding-left: 24px; }
.writing .steps li + li { margin-top: 12px; }
.writing .rule { font-size: 14px; color: var(--muted); }
.writing .hero { padding: 0; display: flex; gap: 24px; align-items: center; }
.writing .hero strong { font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.writing .bars { list-style: none; padding: 0; margin-block: 24px; }
.writing .bars li { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.writing .track { display: flex; align-items: center; gap: 8px; }
.writing .bar { display: inline-block; height: 6px; background: var(--muted); }
.writing .hi .bar { background: var(--ink); }
.writing .val { min-width: 28px; font-variant-numeric: tabular-nums; }
.writing .stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.writing .stat b { display: block; margin-bottom: 8px; font-size: 24px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.writing .stat span { display: block; font-size: 14px; }
.writing blockquote { margin: 24px 0; padding-left: 24px; border-left: 1px solid var(--rule); color: var(--muted); }
@media (min-width:1100px) { .system-diagram .system-wide, .flow-panel .flow-wide { display: block; max-width: none; } .system-diagram .system-narrow, .flow-panel .flow-narrow { display: none; } }
@media (max-width:640px) {
 .project-head, .writing .list-head, .writing .head { padding-top: 32px; }
 .number-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 20px; }
 .number-grid dt { font-size: 28px; }
 .still-grid { grid-template-columns: 1fr; }
 .project-footer { margin-top: 64px; }
 .writing .squeeze { grid-template-columns: 1fr; }
 .writing .squeeze .arrow { transform: rotate(90deg); justify-self: start; }
 .writing .bars li { grid-template-columns: 1fr; gap: 4px; }
}
.project-page main > section { margin-top: 96px; }
@media (max-width:640px) { .project-page main > section { margin-top: 64px; } }
.writing .compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.writing .compare h3 { font-size: 17px; line-height: 1.4; }
@media (max-width:640px) { .writing .compare { grid-template-columns: 1fr; gap: 24px; } }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width:640px) { .still-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; } }

