/* sjoeff log
   Spacing uses five steps only: 8, 16, 32, 64, 128 px (--s1 to --s5).
   Colour comes from the wordmark: ink, paper, and one red for "now". */

@font-face { font-family: "Inter"; src: url("fonts/inter-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DejaVu Sans Mono"; src: url("fonts/dejavu-sans-mono.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */

:root {
  --s1: 8px; --s2: 16px; --s3: 32px; --s4: 64px; --s5: 128px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DejaVu Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --now: #FF4A1F;
  --pad: var(--s2);
  --measure: 672px;

  /* night: the red emits light */
  --scheme: dark;
  --bg: #0B0C0E; --ink: #F1F3F5; --dim: #9AA0A8; --line: #2A2E34; --rule: #2A2E34;
  --now-text: #FF4A1F;
  --glow: 0 0 16px rgba(255, 74, 31, .75);
  --blend: screen;
  --unlit: grayscale(1) brightness(.7);
  --frame: transparent;
  --room-bg: #15171B; --room-ink: #F1F3F5; --room-dim: #9AA0A8; --room-line: #2A2E34;
  --mark-dark: block; --mark-light: none;
  color-scheme: dark;
}

/* day: the red is ink on paper, rules are drawn in full ink, the machine room stays dark */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --scheme: light;
    --bg: #F4F6F8; --ink: #111316; --dim: #555B64; --line: #C9CFD6; --rule: #111316;
    --now-text: #C2300C;
    --glow: none;
    --blend: multiply;
    --unlit: grayscale(1) contrast(.8);
    --frame: #111316;
    --room-bg: #111316; --room-ink: #F1F3F5; --room-dim: #A9AFB7; --room-line: #2E3238;
    --mark-dark: none; --mark-light: block;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --scheme: light;
  --bg: #F4F6F8; --ink: #111316; --dim: #555B64; --line: #C9CFD6; --rule: #111316;
  --now-text: #C2300C;
  --glow: none;
  --blend: multiply;
  --unlit: grayscale(1) contrast(.8);
  --frame: #111316;
  --room-bg: #111316; --room-ink: #F1F3F5; --room-dim: #A9AFB7; --room-line: #2E3238;
  --mark-dark: none; --mark-light: block;
  color-scheme: light;
}

@media (min-width: 720px) { :root { --pad: var(--s3); } }
@media (min-width: 1040px) { :root { --pad: var(--s4); } }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
/* scrollbar-gutter: a short page (Now) and a long one keep the same width, so the header never shifts */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s5); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 720px) { body { font-size: 18px; } }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre, blockquote { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
/* running text breaks "pretty" (no word alone on the last line) and fills its column; only headings are balanced */
p, li, figcaption, dd, dt, blockquote { text-wrap: pretty; }
/* short blocks (facts, broke-fixed, notes) are balanced: their last line is never a stray word or two */
dd, dt, .facts p, .bf p, .stream-end, .agents__who, .post__nav b { text-wrap: balance; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--now); text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--now); outline-offset: 2px; }
.top :focus-visible { outline-offset: -2px; }
::selection { background: var(--now); color: #0B0C0E; }
time, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: var(--s2); top: var(--s2); z-index: 20; padding: var(--s1) var(--s2); background: var(--ink); color: var(--bg); transform: translateY(-400%); }
.skip:focus { transform: none; }

/* ---------- header ---------- */

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: var(--s2); }
.mark { flex: none; display: inline-flex; align-items: center; gap: var(--s1); padding: var(--s2) 0; text-decoration: none; white-space: nowrap; }
.mark__name { font-weight: 500; font-size: 20px; letter-spacing: -.03em; line-height: 24px; }
.mark__now { width: 2px; height: 24px; background: var(--now); box-shadow: var(--glow); }
.mark__log { font-family: var(--mono); font-size: 17px; line-height: 24px; color: var(--dim); }
.nav { display: flex; margin-left: auto; min-width: 0; }
.nav a { padding: var(--s2) var(--s1); font-size: 15px; line-height: 24px; color: var(--dim); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--now); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.theme { flex: none; display: grid; place-items: center; padding: var(--s2) var(--s1); background: none; border: 0; cursor: pointer; }
.theme svg { width: 24px; height: 24px; }
.readout { font: 13px/24px var(--mono); color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.readout b { font-weight: 400; color: var(--ink); }
/* the time is the way to Now (1.3): a red underline says it is a link; hover and focus thicken it; on /now/ it is the
   current page, like the nav. At least 44 px high to tap. */
a.readout { display: inline-block; padding: 10px 0; min-height: 44px; box-sizing: border-box; text-decoration: underline; text-decoration-color: var(--now);
  text-decoration-thickness: 1.5px; text-underline-offset: .4em; }
a.readout:hover, a.readout:focus-visible { color: var(--ink); text-decoration-thickness: 3px; }
a.readout[aria-current] { color: var(--ink); text-decoration-thickness: 3px; }
.top__sub { display: flex; gap: var(--s2); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--now); box-shadow: var(--glow); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.no-js .theme, .no-js .progress { display: none; }
@media (min-width: 720px) {
  .nav { margin-left: var(--s3); }
  .nav a { padding: var(--s2); }
  .top__sub { display: none; }
  .top__row .readout { margin-left: auto; }
}
@media (max-width: 719px) { .top__row .readout { display: none; } .top__row { gap: var(--s1); } .nav a { padding-left: 6px; padding-right: 6px; } }
@media (max-width: 480px) { .nav a { font-size: 14px; padding-left: 4px; padding-right: 4px; } .theme { padding-left: 2px; padding-right: 2px; } .mark { gap: 6px; } .mark__name { font-size: 18px; } .mark__log { font-size: 15px; } }
@media (max-width: 400px) { .nav a { font-size: 13.5px; padding-left: 3px; padding-right: 3px; } }
@media (max-width: 374px) { .mark__log, .mark__now { display: none; } }
@media (max-width: 340px) { .nav a { font-size: 13px; padding-left: 3px; padding-right: 3px; } }

/* On the home page the big wordmark is on screen first; the small one waits its turn. */
.js .is-home .mark { opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.js .is-home.past-hero .mark { opacity: 1; visibility: visible; }

/* ---------- home: hero ---------- */

.hero { padding: var(--s3) 0 var(--s4); }
/* no transform or opacity on this box: the intro video blends with the page behind it */
.hero__mark { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1336 / 568; }
.hero__mark img, .hero__mark video { position: absolute; top: 0; left: -3.593%; width: 100%; height: 100%; }
.hero__mark .mark-dark { display: var(--mark-dark); }
.hero__mark .mark-light { display: var(--mark-light); }
.hero__mark video { mix-blend-mode: var(--blend); filter: contrast(1.06); }
.hero__mark.is-playing img { visibility: hidden; }
/* No flash of the still before the intro (26-11): with script and motion the still waits hidden until the video ends
   (.is-rust). If the script never runs, it shows itself after 3 s. Reduced motion: the still at once, no video. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__mark:not(.is-rust):not(.is-playing) img { visibility: hidden; animation: mark-terug 0s linear 3s forwards; }
}
@keyframes mark-terug { to { visibility: visible; } }
.hero__presence { font-size: 24px; line-height: 1.25; letter-spacing: -.015em; font-weight: 500; text-wrap: balance; }
.hero__nowline { margin-top: var(--s2); color: var(--dim); }
@media (min-width: 720px) {
  .hero { padding: var(--s4) 0 var(--s5); }   /* 1.5: a little more air under the shorter tagline */
  .hero__presence { font-size: 32px; }
}
@media (min-width: 880px) { .hero { padding-left: calc(var(--s5) + var(--s4) + var(--s3)); } }

/* ---------- home: the stream on its time axis ---------- */

.stream-wrap { --axis: 0px; position: relative; padding-bottom: var(--s5); }
.stream-wrap::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--axis); width: 1px; background: var(--rule); }
.notch { position: sticky; top: 62vh; height: 0; z-index: 2; pointer-events: none; }
.notch::before { content: ""; position: absolute; left: calc(var(--axis) - var(--s1)); top: -1px; width: var(--s2); height: 2px; background: var(--now); box-shadow: var(--glow); }
.no-js .notch { display: none; }

.nowtick { position: relative; padding-left: var(--s2); font: 13px/16px var(--mono); color: var(--now-text); }
.nowtick::before { content: ""; position: absolute; left: calc(var(--axis) - 4px); top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--now); box-shadow: var(--glow); }
.nowtick span { color: var(--dim); }

.stream { list-style: none; }
.gap { position: relative; margin-bottom: var(--s2); height: var(--s3); padding-left: var(--s2); display: flex; align-items: center; font: 13px/16px var(--mono); color: var(--dim); }
.gap[data-size="2"] { height: var(--s4); }
.gap[data-size="3"] { height: var(--s5); }
.gap::before { content: ""; position: absolute; left: calc(var(--axis) - 4px); top: 0; bottom: 0; width: 9px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(100% / var(--n) - 1px), var(--dim) calc(100% / var(--n) - 1px), var(--dim) calc(100% / var(--n))); }

.entry__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding-left: var(--s2); padding-bottom: var(--s3); }
.stamp { display: flex; flex-wrap: wrap; gap: var(--s2); font: 13px/16px var(--mono); color: var(--dim); }
.stamp time { color: var(--ink); }
.dot { position: absolute; left: calc(var(--axis) - 4px); top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.v-agents .dot { background: var(--bg); border: 2px solid var(--ink); }
.entry__cover { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 1; outline: 1px solid var(--frame); outline-offset: -1px; }
.entry__cover img { width: 100%; height: 100%; object-fit: cover; }
.entry__title { font-size: 24px; }
.entry__title a { text-decoration: none; }
.entry__title a:hover { text-decoration: underline; text-decoration-color: var(--now); text-decoration-thickness: 2px; }
.entry__title a::after { content: ""; position: absolute; inset: 0; }
.entry__text { display: grid; gap: var(--s1); }
.entry__summary { color: var(--dim); text-wrap: pretty; }
.entry__meta { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: 15px; color: var(--dim); }

.entry--latest .entry__cover { aspect-ratio: 16 / 10; }
.entry--latest .entry__title { font-size: clamp(36px, 10vw, 72px); letter-spacing: -.04em; line-height: 1.02; }
.entry--latest .entry__summary { font-size: 20px; line-height: 1.4; color: var(--ink); }
.entry--latest .entry__text { gap: var(--s2); }

.stream-end { padding: var(--s4) 0 0 var(--s2); font: 13px/16px var(--mono); color: var(--dim); }
.stream-more { padding: var(--s4) 0 0 var(--s2); }

/* the scan: unlit entries wait in grey, the red line of now sweeps them into colour */
.js .entry .entry__title, .js .entry--latest .entry__summary { transition: color .9s; }
.js .entry:not(.lit) .entry__title, .js .entry--latest:not(.lit) .entry__summary { color: var(--dim); }
.js .entry__cover::after { content: ""; position: absolute; inset: 0; -webkit-backdrop-filter: var(--unlit); backdrop-filter: var(--unlit); clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.2, .7, .2, 1); }
.js .entry.lit .entry__cover::after { clip-path: inset(0 0 0 100%); }
.js .entry__cover::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 2px; background: var(--now); box-shadow: var(--glow); opacity: 0; }
.js .entry.lit .entry__cover::before { animation: scan 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.js .entry.lit .dot { animation: afterglow 2.4s ease-out both; }
@keyframes scan { 0% { left: 0; opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 2px); opacity: 0; } }
@keyframes afterglow { 0%, 20% { background: var(--now); border-color: var(--now); box-shadow: var(--glow); } 100% { box-shadow: none; } }

@media (min-width: 880px) {
  .stream-wrap { --axis: calc(var(--s5) + var(--s4)); }
  .nowtick, .gap, .stream-end, .stream-more { padding-left: calc(var(--axis) + var(--s3)); }
  .entry__row { grid-template-columns: 160px minmax(0, 1fr) 320px; column-gap: var(--s4); row-gap: var(--s2); padding-left: 0; padding-bottom: var(--s4); align-items: start; }
  .stamp { flex-direction: column; gap: var(--s1); grid-column: 1; grid-row: 1; text-align: right; align-items: flex-end; }
  .entry__text { grid-column: 2; grid-row: 1; }
  .entry__cover { grid-column: 3; grid-row: 1; aspect-ratio: 16 / 9; }
  .entry__title { font-size: 32px; }
  .entry--latest .entry__cover { grid-column: 2 / 4; grid-row: 1; aspect-ratio: 16 / 9; }
  .entry--latest .entry__text { grid-column: 2 / 4; grid-row: 2; }
}

/* ---------- entry page ---------- */

.post { padding: var(--s3) 0 var(--s5); display: grid; grid-template-columns: minmax(0, 1fr); }
.post__stamp { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); font: 13px/16px var(--mono); color: var(--dim); margin-bottom: var(--s3); }
.post__stamp time { color: var(--ink); }
.post__stamp .voice { font-family: var(--sans); font-size: 15px; }
.post h1 { font-size: clamp(36px, 10vw, 80px); letter-spacing: -.04em; line-height: 1.02; }
.post__lede { margin-top: var(--s3); text-wrap: pretty; font-size: 22px; line-height: 1.35; letter-spacing: -.01em; }
.post__meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s3); font-size: 15px; color: var(--dim); }
.post__meta div { display: flex; gap: var(--s1); }
.post__meta dd { color: var(--ink); }
.post__meta a { text-decoration-color: var(--dim); }
.post__body { margin-top: var(--s4); }
.voice { display: inline-flex; align-items: center; gap: var(--s1); }
.voice::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.voice--agents::before { background: none; border: 2px solid currentColor; }

@media (min-width: 960px) {
  .post { grid-template-columns: 160px minmax(0, 1fr); column-gap: var(--s4); padding-top: var(--s4); }
  .post__stamp { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: var(--s5); align-self: start; flex-direction: column; text-align: right; align-items: flex-end; margin-bottom: 0; }
  .post__head, .post__body, .post__nav { grid-column: 2; }
  .post__lede { font-size: 28px; }
}

/* prose: text keeps a reading measure, media take the full column */
.prose > * { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s2); }
.prose > h2 { margin-top: var(--s4); font-size: 28px; }
.prose > h3 { margin-top: var(--s3); font-size: 21px; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: var(--s3); }
.prose li + li { margin-top: var(--s1); }
.prose li::marker { color: var(--dim); font-family: var(--mono); font-size: .8em; }
.prose a { text-decoration-color: var(--now); }
.prose em { font-style: italic; }
.prose strong { font-weight: 500; }
.prose code { font: .86em var(--mono); }
.prose blockquote { padding-left: var(--s2); border-left: 2px solid var(--ink); }
.claim { font: .78em var(--mono); padding: 0 var(--s1); border: 1px solid var(--dim); color: var(--dim); white-space: nowrap; }
.claim--works, .claim--fixed { border-color: var(--ink); color: var(--ink); }
.claim--broke { border-color: var(--now); color: var(--now-text); }
.prose .pull { padding-left: var(--s2); border-left: 2px solid var(--now); font-size: 24px; line-height: 1.3; letter-spacing: -.015em; font-weight: 500; }
.prose > .pull { margin-top: var(--s3); margin-bottom: var(--s3); }
.note--warning { border-color: var(--now); }
.note--warning .block__label { color: var(--now-text); }
.deadlink { text-decoration: underline dotted; text-decoration-color: var(--dim); cursor: help; }
.timemark { font: 13px/16px var(--mono); color: var(--dim); }
.timemark time { color: var(--ink); }
.noot { position: relative; padding-left: var(--s2); font-size: 15px; color: var(--dim); }
.noot::before { content: ""; position: absolute; left: 0; top: var(--s1); width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }

.prose > .fig { max-width: none; margin-top: var(--s3); margin-bottom: var(--s3); margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.fig img, .fig video { width: 100%; background: var(--room-bg); outline: 1px solid var(--frame); outline-offset: -1px; }
.fig .zoom { display: block; cursor: zoom-in; }
.fig--link .zoom { cursor: pointer; }
.fig figcaption { padding: var(--s1) var(--pad) 0; font-size: 15px; line-height: 1.45; color: var(--dim); max-width: var(--measure); }
.fig--drawing img { background: none; outline: 0; }
/* stills start grey and get their colour when they come into view: the red line of now passes over them */
.js .fig .zoom { position: relative; overflow: hidden; }
.js .fig .zoom::after { content: ""; position: absolute; inset: 0; -webkit-backdrop-filter: var(--unlit); backdrop-filter: var(--unlit); clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.js .fig .zoom.lit::after { clip-path: inset(0 0 0 100%); }
.js .fig .zoom::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 2px; background: var(--now); box-shadow: var(--glow); opacity: 0; pointer-events: none; }
.js .fig .zoom.lit::before { animation: scan 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.fig--missing { border: 1px dashed var(--dim); }
.fig--missing .missing { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); padding: var(--s2) var(--pad) 0; font: 13px/16px var(--mono); color: var(--dim); }
.fig--missing .missing b { font-weight: 400; color: var(--now-text); }
.fig--missing figcaption { padding-bottom: var(--s2); }
.prose > .fig + .fig { margin-top: var(--s3); }
@media (min-width: 720px) {
  .prose > .fig { margin-left: 0; margin-right: 0; }
  .fig figcaption { padding-left: 0; padding-right: 0; }
  .fig--missing figcaption, .fig--missing .missing { padding-left: var(--s2); padding-right: var(--s2); }
}

.tldr { padding: var(--s2) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tldr__label, .block__label { font-size: 15px; color: var(--dim); }
.tldr ul { list-style: none; padding: 0; margin-top: var(--s1); font-size: 20px; line-height: 1.4; letter-spacing: -.01em; }
.tldr li + li { margin-top: var(--s1); }

.prose > .stats { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); margin-top: var(--s3); margin-bottom: var(--s3); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s1); padding-top: var(--s2); border-top: 1px solid var(--rule); }
.stats dd { font: 400 28px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 15px; line-height: 1.4; color: var(--dim); }

.bf { list-style: none; padding: 0 !important; border-top: 1px solid var(--rule); }
.bf li { display: grid; gap: var(--s1); padding: var(--s2) 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.bf__k { display: block; font-size: 15px; color: var(--dim); }
.bf__broke .bf__k { color: var(--now-text); }
@media (min-width: 720px) { .bf li { grid-template-columns: 1fr 1fr; gap: var(--s3); } }

/* the machine room: notes from the agents sit on a dark panel in both themes */
.agents, .prompt { background: var(--room-bg); color: var(--room-ink); }
.prose > .agents { margin-top: var(--s3); margin-bottom: var(--s3); padding: var(--s2); font-size: 16px; }
.agents__who { display: flex; align-items: center; gap: var(--s1); font-size: 15px; color: var(--room-dim); }
.agents__who::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }
.agents > * + * { margin-top: var(--s2); }
.agents h2 { font-size: 24px; margin-top: var(--s3); }
.agents h3 { font-size: 18px; margin-top: var(--s3); }
.agents .agents__who + h2 { margin-top: var(--s2); }
@media (min-width: 720px) { .prose > .agents { padding: var(--s3); } }

.note, .placeholder { padding: var(--s2); border: 1px solid var(--line); }
.placeholder { border: 1px dashed var(--now); }
.placeholder .block__label { color: var(--now-text); font: 13px/16px var(--mono); }
.note > * + *, .placeholder > * + * { margin-top: var(--s1); }

.prompt summary { display: flex; align-items: baseline; gap: var(--s2); padding: var(--s2); cursor: pointer; list-style: none; }
.prompt summary::-webkit-details-marker { display: none; }
.prompt summary::after { content: "show"; margin-left: auto; font: 13px/16px var(--mono); color: var(--room-dim); }
.prompt[open] summary::after { content: "hide"; }
.prompt__k { font: 13px/16px var(--mono); color: var(--room-dim); }
.prompt pre, .code pre { padding: 0 var(--s2) var(--s2); font: 14px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.code { background: var(--room-bg); color: var(--room-ink); }
.code pre { padding-top: var(--s2); white-space: pre; overflow-x: auto; }
.code figcaption { padding: var(--s1) var(--s2) 0; font: 13px/16px var(--mono); color: var(--room-dim); }
.code__prompt { color: var(--now); }

.post__nav { display: grid; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--rule); }
.post__nav a { display: grid; gap: var(--s1); text-decoration: none; }
.post__nav span { font-size: 15px; color: var(--dim); }
.post__nav b { font-weight: 500; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.post__nav a:hover b { text-decoration: underline; text-decoration-color: var(--now); text-decoration-thickness: 2px; }
@media (min-width: 720px) { .post__nav { grid-template-columns: 1fr 1fr; } .post__nav .later { grid-column: 2; text-align: right; } }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: var(--s2); border: 0; background: rgba(11, 12, 14, .96); cursor: zoom-out; }
.lightbox::backdrop { background: #0B0C0E; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox:not([open]) { display: none; }

/* ---------- index, now, about ---------- */

.page { padding-top: var(--s3); padding-bottom: var(--s5); }
.page h1 { font-size: clamp(36px, 10vw, 80px); letter-spacing: -.04em; line-height: 1.02; }
.page__lede { margin-top: var(--s2); text-wrap: pretty; color: var(--dim); }
/* Tools (29-11): the lede and the explanation under each tool are short, so they run the whole column instead of the
   reading measure and never break early; text longer than the column still wraps, "pretty" (rule: short text never breaks). */
.page--tools .page__lede, .page--tools .prose > p { max-width: none; }
.page__stamp { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); margin-top: var(--s2); font: 13px/16px var(--mono); color: var(--dim); }
.page__stamp b { font-weight: 400; color: var(--ink); }
.page__body { margin-top: var(--s4); }
@media (min-width: 960px) { .page { padding-top: var(--s4); } }

.strip { position: relative; height: var(--s3); margin-top: var(--s4); border-bottom: 1px solid var(--rule);
  background: repeating-linear-gradient(to right, var(--dim) 0, var(--dim) 1px, transparent 1px, transparent calc(100% / var(--days))) bottom left / 100% var(--s1) no-repeat; }
.strip i { position: absolute; bottom: var(--s1); left: calc(var(--x) * 1%); width: 9px; height: 9px; transform: translateX(-50%); border-radius: 50%; background: var(--ink); transition: opacity .2s; }
.strip i.v-agents { background: var(--bg); border: 2px solid var(--ink); }
.strip i.off { opacity: .2; }
.strip .strip__now { left: auto; right: 0; bottom: 0; width: 2px; height: var(--s3); transform: none; border-radius: 0; background: var(--now); box-shadow: var(--glow); }
.strip__ends { display: flex; justify-content: space-between; padding-top: var(--s1); font: 13px/16px var(--mono); color: var(--dim); }
.strip__ends span:last-child { color: var(--now-text); }

.filters { display: grid; gap: var(--s2); margin-top: var(--s4); }
.filters fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin: 0; padding: 0; border: 0; min-width: 0; }
.filters legend { float: left; width: 64px; padding: 0; font-size: 15px; color: var(--dim); }
.filters button { padding: var(--s1) var(--s2); font-size: 15px; line-height: 24px; background: none; border: 1px solid var(--line); cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.no-js .filters { display: none; }
.count { margin-top: var(--s3); font: 13px/16px var(--mono); color: var(--dim); }

.rows { list-style: none; margin-top: var(--s2); border-top: 1px solid var(--rule); }
.row[hidden] { display: none; }
.row a { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s1) var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.row__date { font: 13px/16px var(--mono); }
.row__num, .row__min { font: 13px/16px var(--mono); color: var(--dim); }
.row__min { text-align: right; }
.row__title { grid-column: 1 / -1; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.row__title .voice { gap: var(--s2); align-items: baseline; }
.row__title .voice::before { flex: none; transform: translateY(-2px); }
.row__where { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s2); font-size: 15px; color: var(--dim); }
.row a:hover .row__title { text-decoration: underline; text-decoration-color: var(--now); text-decoration-thickness: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); font-size: 15px; color: var(--dim); }
@media (min-width: 880px) {
  .row a { grid-template-columns: 112px 48px minmax(0, 1fr) minmax(0, 360px) 64px; gap: var(--s2); }
  .row__title, .row__where { grid-column: auto; }
  .row__title { grid-column: 3; grid-row: 1; }
  .row__where { grid-column: 4; grid-row: 1; flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; }
  .row__where span { flex: none; }
  .row__where span:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }  /* project and tags on one line (1.3); a long tag list ends in an ellipsis */
  .row__min { grid-column: 5; grid-row: 1; }
}

.about-grid { display: grid; gap: var(--s4); }
.portrait svg { width: 100%; height: auto; }
.portrait img { width: 100%; outline: 1px solid var(--frame); outline-offset: -1px; }
.portrait figcaption { padding-top: var(--s1); font-size: 15px; color: var(--dim); }
.facts { list-style: none; padding: 0 !important; border-top: 1px solid var(--rule); }
.facts li { display: grid; gap: var(--s1); padding: var(--s2) 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.facts__when { font: 13px/24px var(--mono); color: var(--dim); }
.facts__src { font-size: 15px; color: var(--dim); }
@media (min-width: 720px) { .facts li { grid-template-columns: 192px minmax(0, 1fr); gap: var(--s1) var(--s3); } .facts__src { grid-column: 2; } }
@media (min-width: 960px) { .about-grid { grid-template-columns: 320px minmax(0, 1fr); gap: var(--s4); align-items: start; } }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: var(--s3) 0 var(--s4); font-size: 15px; color: var(--dim); }
.foot__row { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.foot time { font-size: 13px; }
/* Instagram (1.4): an inline icon in the colour of the footer, red on hover, 44 px to tap, always at the right end */
.foot__row { align-items: center; position: relative; padding-right: calc(var(--pad) + 48px); }
.foot__social { position: absolute; right: calc(var(--pad) - 12px); top: 50%; transform: translateY(-50%); }
.insta { display: grid; place-items: center; width: 44px; height: 44px; color: var(--dim); }
.insta svg { width: 20px; height: 20px; }
.insta:hover, .insta:focus-visible { color: var(--now-text); }
/* 1.5: two quiet lines. Short links on top, the small print under it in mono */
.foot__links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.foot__small { flex-basis: 100%; font: 13px/24px var(--mono); }
@media (max-width: 719px) { .foot__row { padding-right: var(--pad); } .foot__social { position: static; transform: none; margin: 0 -12px 0 auto; } }

/* ---------- the eye with the read count (back 30-11): opens when it appears, blinks now and then; still with reduced motion ---------- */

.teller[hidden] { display: none; }
.teller:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; }
.teller__oog { flex: none; }
.teller__lid { transform-box: fill-box; transform-origin: center; animation: oog-open .6s ease-out both, oog-knipper 7s ease-in-out 2s infinite; }
@keyframes oog-open { from { transform: scaleY(.1); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes oog-knipper { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* ---------- calm for those who ask for it ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .entry__cover::after, .js .entry__cover::before, .js .fig .zoom::after, .js .fig .zoom::before, .notch { display: none; }
  .js .entry:not(.lit) .entry__title, .js .entry--latest:not(.lit) .entry__summary { color: inherit; }
}

@media print {
  .top, .foot, .notch, .filters, .post__nav { display: none; }
  body { background: #fff; color: #000; }
}
