/* justinspage.net: the Light Table. The site is a photographer's light table: the surface glows
   cool white (or sits dark with the light off), photos lie on it as film strips and loose prints,
   and grease pencil marks what matters. Film carries time in its edge print, so dates and frame
   numbers live on the strips. Schibsted Grotesk for words, Saira Condensed for edge print and
   figures, Reenie Beanie for the few grease-pencil notes. The fonts are self-hosted under
   fonts/ (SIL Open Font License, the OFL-*.txt files beside them). */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: 'Reenie Beanie'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/reenie-beanie-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/saira-condensed-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/saira-condensed-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/saira-condensed-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/saira-condensed-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/saira-condensed-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/saira-condensed-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/saira-condensed-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/saira-condensed-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/schibsted-grotesk-400-700-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/schibsted-grotesk-400-700-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/schibsted-grotesk-400-900-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/schibsted-grotesk-400-900-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ theme
   The table is lit (light) or off (dark). Film, its edge print and the grease pencil keep their
   roles in both. The wedge tokens (--wl, --wh) run from clear film to full density and swap in
   the dark, so "denser" always reads as "more". */
:root {
  --table: #eef3f4;
  --glow: #ffffff;
  --sheet: #ffffff;
  --vellum: rgb(255 255 255 / .82);
  --ink: #142028;
  --muted: #4f5e68;
  --line: rgb(20 32 40 / .14);
  --film: #17150f;
  --edge: #e3a33b;
  --edge-dim: #9a958a;
  --on-film: #ede6d6;
  --hole: #ffffff;
  --grease: #c42a22;
  --paper: #ffffff;
  --paper-ink: #3a4650;
  --wl: #ffffff; --wh: #17150f; --wtl: #142028; --wth: #ede6d6;
  --lb: #0c0f11;
  --shadow: 0 1px 2px rgb(20 32 40 / .14), 0 10px 22px -14px rgb(20 32 40 / .45);
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-edge: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-hand: "Reenie Beanie", "Bradley Hand", "Segoe Print", cursive;
  --max: 1240px;
  --hdr: 58px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --hole-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='16'%3E%3Crect x='0' y='4' width='9' height='8' rx='2'/%3E%3C/svg%3E");
  --hole-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9'%3E%3Crect x='4' y='0' width='8' height='9' rx='2'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --table: #10161a; --glow: #172027; --sheet: #182127; --vellum: rgb(27 35 41 / .9);
    --ink: #e4ebee; --muted: #94a3ad; --line: rgb(228 235 238 / .14);
    --film: #050504; --edge: #e8ae4a; --edge-dim: #8d887d; --on-film: #ede6d6; --hole: #36434c;
    --grease: #ff6a5c; --paper: #dce3e6; --paper-ink: #2c3740;
    --wl: #1a2329; --wh: #f1e7d2; --wtl: #e4ebee; --wth: #10161a;
    --lb: #070909;
    --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 12px 24px -14px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --table: #10161a; --glow: #172027; --sheet: #182127; --vellum: rgb(27 35 41 / .9);
  --ink: #e4ebee; --muted: #94a3ad; --line: rgb(228 235 238 / .14);
  --film: #050504; --edge: #e8ae4a; --edge-dim: #8d887d; --on-film: #ede6d6; --hole: #36434c;
  --grease: #ff6a5c; --paper: #dce3e6; --paper-ink: #2c3740;
  --wl: #1a2329; --wh: #f1e7d2; --wtl: #e4ebee; --wth: #10161a;
  --lb: #070909;
  --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 12px 24px -14px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--hdr) + 44px); -webkit-text-size-adjust: 100%; background: var(--table); }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: radial-gradient(120% 70% at 50% 0%, var(--glow), transparent 70%) no-repeat, var(--table);
  color: var(--ink); font: 400 17px/1.55 var(--f-body);
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--grease); }
:focus-visible { outline: 2px solid var(--grease); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
button { font: inherit; color: inherit; }
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
kbd { font: 600 .85rem var(--f-edge); border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; background: var(--table); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--sheet); color: var(--ink); padding: 8px 14px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.num { font-family: var(--f-edge); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hand { font-family: var(--f-hand); color: var(--grease); font-weight: 400; line-height: 1; }
.muted { color: var(--muted); }
::selection { background: color-mix(in srgb, var(--edge) 45%, var(--sheet)); color: var(--ink); }

.btn { border: 1px solid var(--line); background: var(--sheet); border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; font-size: .9rem; line-height: 1.3; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--muted); }
.btn[aria-pressed="true"], .btn[aria-current] { background: var(--ink); color: var(--table); border-color: var(--ink); }
.linkbtn { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .18em; cursor: pointer; font-size: inherit; }

/* ------------------------------------------------------------------ header */
.hdr { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--table) 94%, transparent); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hdr-in { display: flex; align-items: center; gap: 10px 22px; padding-block: 10px; }
.brand { font-weight: 900; font-size: 1.1rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 2px 14px; list-style: none; padding: 4px 2px; white-space: nowrap; }
.nav a { text-decoration: none; font-size: .9rem; color: var(--muted); padding: 4px 0; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); font-weight: 700; }
.nav a[aria-current]::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -1px; height: 3px; background: var(--grease); border-radius: 2px; transform: rotate(-1.2deg); }
.theme { margin-left: auto; border: 1px solid var(--line); background: var(--sheet); border-radius: 999px; padding: 4px 12px; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.hdr-back { border-top: 1px dashed var(--line); }
.hdr-back .wrap { padding-block: 5px 6px; }
.back { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; font: 600 .95rem/1.3 var(--f-edge); letter-spacing: .03em; color: var(--muted); text-decoration: none; }
.back span[data-back-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
.back:hover { color: var(--ink); }
@media (max-width: 860px) {
  :root { --hdr: 86px; }
  .hdr-in { flex-wrap: wrap; gap: 2px 12px; padding-block: 8px 2px; }
  .nav { order: 3; flex-basis: 100%; margin-inline: -2px; }
}

/* ------------------------------------------------------------------ page frame */
main { display: block; padding-block: 32px 64px; }
.section { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.sec-head > a, .sec-head > span { font-size: .9rem; color: var(--muted); }
.page-head { margin-bottom: 28px; }
.page-head h1, .ph-head h1, .post-h h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.lede { margin-top: 10px; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.lede a { color: var(--ink); }
.kicker { font: 600 .95rem/1.2 var(--f-edge); letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.panel { background: var(--sheet); box-shadow: var(--shadow); padding: 20px 22px 22px; }
.panel h2 { font-size: 1.2rem; font-weight: 800; }
.panel .sub { color: var(--muted); font-size: .9rem; margin-top: 4px; max-width: 64ch; }
.tag-draft { font: 600 .8rem var(--f-edge); letter-spacing: .06em; color: var(--grease); margin-left: 8px; vertical-align: middle; }
.noscript { background: var(--sheet); box-shadow: var(--shadow); padding: 14px 18px; margin-top: 22px; font-size: .95rem; }
.noscript a { margin-right: 4px; }

/* ------------------------------------------------------------------ film
   A frame of film: base, sprocket holes cut out of both edges (the table's light shows
   through), and edge print. Holes are masks over a block of --hole color. */
.cell { position: relative; background: var(--film); padding: 24px 5px; flex: none; }
.cell::before, .cell::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background: var(--hole);
  -webkit-mask: var(--hole-h) repeat-x 0 0 / 16px 9px; mask: var(--hole-h) repeat-x 0 0 / 16px 9px; pointer-events: none; }
.cell::before { top: 3px; } .cell::after { bottom: 3px; }
.ep { position: absolute; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 8px; font: 600 10px/1 var(--f-edge); letter-spacing: .12em; color: var(--edge); white-space: nowrap; overflow: hidden; pointer-events: none; text-transform: uppercase; }
.ep.t { top: 13px; } .ep.b { bottom: 13px; }
.pic { display: block; position: relative; background: var(--tone, #333); color: var(--on-film); text-decoration: none; }
.pic img, .pic video { width: 100%; height: 100%; object-fit: cover; background: var(--tone, #333); }
.pic.is-video video { background: #000; }
.pic.is-video .poster { display: none; position: absolute; inset: 0; }
a.pic:focus-visible { outline-offset: 3px; outline-color: var(--edge); }

/* a strip: frames side by side, scrolling sideways; a contact sheet wraps them */
.strip { display: flex; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; padding-bottom: 4px; --fh: 150px; }
.strip .cell { padding: 22px 3px; }
.strip .pic { height: var(--fh); width: calc(var(--fh) * var(--r, 1)); }
.strip.is-sheet { flex-wrap: wrap; overflow: visible; row-gap: 12px; }
.strip-stories { --fh: 190px; }
.strip-more { flex: none; align-self: stretch; display: flex; align-items: center; padding: 0 18px; background: var(--film); color: var(--edge); font: 600 .95rem var(--f-edge); letter-spacing: .06em; text-decoration: none; }
.strip-more:hover { color: var(--on-film); }
@media (max-width: 640px) { .strip { --fh: 112px; } .strip-stories { --fh: 150px; } .strip .ep { font-size: 9px; letter-spacing: .08em; } }

/* a loose print: a white border and a little rotation */
.print { margin: 0; background: var(--paper); padding: 7px 7px 9px; box-shadow: var(--shadow); transform: rotate(var(--rot, 0deg)); transition: transform .25s ease; }
.print img { width: 100%; background: var(--tone, #ccc); }
.print figcaption { font: 500 .8rem/1.2 var(--f-edge); letter-spacing: .04em; color: var(--paper-ink); padding-top: 7px; }

/* ------------------------------------------------------------------ home */
.hero { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); align-items: center; }
.sleeve { position: relative; z-index: 2; background: var(--sheet); box-shadow: var(--shadow); padding: 22px 26px 26px; border-radius: 2px; }
.sleeve-top { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.sleeve-note { font-size: 1.6rem; line-height: 1.05; padding-top: 6px; }
.portrait { width: 150px; --rot: 3deg; margin: -40px -38px 0 0; padding-bottom: 22px; }
.portrait img { aspect-ratio: 1; object-fit: cover; height: auto; }
.name { font-size: clamp(2.7rem, 6.2vw, 4.6rem); font-weight: 900; letter-spacing: -.035em; line-height: .92; }
.bio { margin-top: 14px; font-size: 1.04rem; max-width: 38ch; text-wrap: pretty; }
.elsewhere { list-style: none; margin-top: 18px; display: grid; gap: 6px; }
.elsewhere a { font-weight: 700; }
.elsewhere span { color: var(--muted); font-size: .88rem; margin-left: 4px; }
.proof-wrap { min-width: 0; }
.proof { margin-left: -48px; padding: 34px 0 30px 48px; scroll-padding-left: 48px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.proof:focus-visible { outline-offset: -4px; }
.proof ol { display: flex; list-style: none; padding: 0 30px 0 0; width: max-content; animation: slidein 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes slidein { from { transform: translateX(80px); opacity: .4; } to { transform: none; opacity: 1; } }
.proof li { scroll-snap-align: start; position: relative; }
.proof .cell { padding: 26px 5px; }
.proof .pic { width: 300px; height: 200px; }
.proof .pic img { object-fit: cover; }
.now-ring { position: absolute; inset: -14px -22px; width: calc(100% + 44px); height: calc(100% + 28px); max-width: none; pointer-events: none; overflow: visible; }
.now-ring path { fill: none; stroke: var(--grease); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.now-note { position: absolute; right: 4px; top: -32px; font-size: 1.6rem; }
.proof-ctl { display: flex; gap: 10px; justify-content: flex-end; margin-top: 2px; }
.prints { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.print-link { display: block; text-decoration: none; cursor: zoom-in; background: var(--tone, #ccc); border-radius: 2px; overflow: hidden; }
.prints img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; transition: transform .25s ease, opacity .25s ease; }
.print-link:hover img, .print-link:focus-visible img { transform: scale(1.03); }
.lower { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.lower-side { display: grid; gap: 34px; }
.posts { list-style: none; display: grid; gap: 22px; }
.posts time { font: 500 .9rem/1 var(--f-edge); letter-spacing: .05em; color: var(--muted); }
.posts h2, .posts h3 { font-size: 1.3rem; font-weight: 800; margin: 5px 0 4px; letter-spacing: -.01em; }
.posts p { color: var(--muted); max-width: 60ch; }
.posts-page h2 { font-size: 1.6rem; }
.tech { display: grid; gap: 6px; margin-top: 34px; background: var(--sheet); box-shadow: var(--shadow); padding: 20px 22px; border-left: 4px solid var(--film); text-decoration: none; }
.tech .from { font-size: .85rem; color: var(--muted); }
.tech-title { font-size: 1.25rem; font-weight: 800; line-height: 1.2; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: .18em; }
.tech:hover .tech-title { text-decoration-color: var(--grease); }
.tech-desc { color: var(--muted); }
.card-now { background: var(--sheet); box-shadow: var(--shadow); padding: 18px 24px 22px; transform: rotate(.6deg); }
.card-now:not(.card-page) ul, .card-now:not(.card-page) .card-more, .card-page .prose, .card-page .lede { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px); }
.card-now h2, .card-now h1 { font-size: 2.4rem; margin-bottom: 10px; }
.card-now ul { list-style: none; line-height: 32px; }
.card-now li { padding-left: 16px; position: relative; }
.card-now li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 3px; background: var(--grease); border-radius: 2px; transform: rotate(-12deg); }
.card-more { line-height: 32px; font-size: .9rem; color: var(--muted); }
.card-misc { transform: rotate(-.5deg); }
.card-misc li { line-height: 32px; }
@media (max-width: 1100px) { .prints { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .proof { margin-left: 0; padding-left: 4px; scroll-padding-left: 4px; margin-top: -12px; }
  .lower { grid-template-columns: 1fr; }
  .portrait { margin: -34px -10px 0 0; width: 120px; }
  .proof .pic { width: 225px; height: 150px; }
}
@media (max-width: 480px) {
  .sleeve { padding: 18px 18px 22px; }
  .prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}

/* on this day: loupes */
.today h2 { font-size: 1rem; font-weight: 800; }
.today h2 span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.loupes { list-style: none; display: flex; gap: 12px 16px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.loupe { --s: 96px; display: block; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; border: 6px solid var(--film); box-shadow: 0 0 0 2px var(--edge), var(--shadow); background: var(--tone, var(--film)); cursor: zoom-in; position: relative; }
.loupe.big { --s: 128px; }
.loupe img { width: 100%; height: 100%; object-fit: cover; }
.loupe:focus-visible { outline-offset: 4px; }
.loupe-cap { font: 500 .8rem/1.2 var(--f-edge); color: var(--muted); text-align: center; margin-top: 7px; letter-spacing: .04em; }
.loupe-cap a { color: inherit; }
.ph-head .today { justify-self: end; }
.ph-head .today h2 { text-align: right; }
.ph-head .loupes { justify-content: flex-end; }
@media (max-width: 760px) {
  .ph-head .today { justify-self: start; }
  .ph-head .today h2 { text-align: left; }
  .ph-head .loupes { justify-content: flex-start; }
  .loupe { --s: 80px; } .loupe.big { --s: 96px; }
}

/* ------------------------------------------------------------------ photos: controls */
.ph-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
@media (max-width: 760px) { .ph-head { grid-template-columns: minmax(0, 1fr); } }
.ctl { margin-top: 26px; background: var(--sheet); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 14px; }
html:not(.js) .ctl { display: none; }
.ctl-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.search { position: relative; flex: 1 1 260px; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 8px 36px 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--table); color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.search input:focus ~ kbd { display: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--sheet); }
.seg button, .seg a { border: 0; background: none; padding: 6px 14px; min-height: 34px; cursor: pointer; font-size: .9rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; }
.seg button[aria-pressed="true"], .seg a[aria-current] { background: var(--ink); color: var(--table); }
.seg-links { margin-top: 14px; }
@media (hover: none), (pointer: coarse) { .search kbd, [data-keys-toggle] { display: none !important; } }
.kinds { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.kinds a { padding: 4px 0; font-size: .95rem; color: var(--muted); position: relative; text-decoration: none; }
.kinds a .num { font-size: .92rem; margin-left: 3px; }
.kinds a:hover { color: var(--ink); }
.kinds a[aria-current] { color: var(--ink); font-weight: 700; }
.kinds a[aria-current]::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: 0; height: 3px; background: var(--grease); border-radius: 2px; transform: rotate(-1.5deg); }
.selects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sel { display: grid; gap: 3px; font-size: .8rem; color: var(--muted); min-width: 0; }
.sel select { font: inherit; font-size: 15px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--table); color: var(--ink); min-width: 0; width: 100%; }
.sel.is-set select { border-color: var(--grease); box-shadow: inset 0 -3px 0 var(--grease); }
@media (max-width: 900px) { .selects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .selects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.result { font-size: .92rem; color: var(--muted); }
.result-clear { color: var(--grease); margin-left: 6px; }

/* ------------------------------------------------------------------ photos: the stream */
.archive { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 36px; margin-top: 30px; align-items: start; }
.archive.is-single { grid-template-columns: minmax(0, 1fr); }
.stream[aria-busy="true"] { opacity: .55; transition: opacity .2s; }
.month { margin-bottom: 44px; }
.month-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.month-h h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.month-h h2 a { text-decoration: none; }
.month-h h2 a:hover { text-decoration: underline; text-decoration-color: var(--grease); }
.month-count { font: 500 .95rem var(--f-edge); letter-spacing: .03em; color: var(--muted); }
.month-ep { color: var(--edge); background: var(--film); padding: 1px 6px 0; font-weight: 600; font-size: .8rem; letter-spacing: .12em; border-radius: 1px; }

/* journal: one vertical strip per month, a note beside each frame. Without JavaScript a year
   page's #grid link shows the grid through :target instead. */
.post { position: relative; }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .post { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 0 28px; }
.film { position: relative; background: var(--film); }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .film { padding: 10px 34px; }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .film::before, :is(.js .stream.is-journal, html:not(.js) .stream:target) .film::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9px; background: var(--hole);
  -webkit-mask: var(--hole-v) repeat-y 0 0 / 9px 16px; mask: var(--hole-v) repeat-y 0 0 / 9px 16px; pointer-events: none; }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .film::before { left: 4px; } :is(.js .stream.is-journal, html:not(.js) .stream:target) .film::after { right: 4px; }
.film .ep { position: absolute; font: 600 10px/1 var(--f-edge); letter-spacing: .14em; color: var(--edge); display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; overflow: hidden; pointer-events: none; }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .film .ep { top: 12px; bottom: 12px; left: auto; right: auto; writing-mode: vertical-rl; }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .film .ep-a { left: 17px; transform: rotate(180deg); }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .film .ep-b { right: 17px; }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .film .pic { margin-inline: auto; width: min(100%, calc(var(--maxh, 560px) * var(--r, 1))); }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .film .pic img, :is(.js .stream.is-journal, html:not(.js) .stream:target) .film .pic video { height: auto; aspect-ratio: var(--r, 1); }
.notes { padding: 14px 0 28px; min-width: 0; }
.post-date { font: 600 1rem/1.2 var(--f-edge); letter-spacing: .04em; text-decoration: none; }
.post-date:hover { text-decoration: underline; text-decoration-color: var(--grease); }
.post-place { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.post-place a { text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); }
.post-caption { margin-top: 10px; max-width: 60ch; overflow-wrap: anywhere; }
.post-caption p + p { margin-top: .7em; }
.post-caption a.tag, .post-caption a.mention { color: var(--muted); }
.post-more { margin-top: 10px; font-size: .88rem; color: var(--muted); }
:is(.js .stream.is-journal, html:not(.js) .stream:target) .post-caption.is-clamped { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.post .more { display: none; margin-top: 6px; border: 0; background: none; padding: 0; color: var(--grease); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.post-caption.is-clamped + .more, .post-caption[data-measured] + .more { display: inline-block; }
.post.is-current .film { outline: 3px solid var(--grease); outline-offset: 3px; }
.post.is-flash .film { animation: flash 1.4s ease-out; }
@keyframes flash { 0%, 40% { outline: 3px solid var(--grease); outline-offset: 3px; } 100% { outline: 3px solid transparent; outline-offset: 3px; } }
@media (max-width: 700px) {
  :is(.js .stream.is-journal, html:not(.js) .stream:target) .post { grid-template-columns: minmax(0, 1fr); }
  :is(.js .stream.is-journal, html:not(.js) .stream:target) .film { padding: 10px 30px; --maxh: 72vh; }
  .notes { padding: 12px 2px 30px; }
}

/* grid: a contact sheet of the month's frames at one height, uncropped */
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) { --fh: 168px; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .month-posts { display: flex; flex-wrap: wrap; row-gap: 12px; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .post { flex: none; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film { padding: 24px 4px; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film::before,
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background: var(--hole);
  -webkit-mask: var(--hole-h) repeat-x 0 0 / 16px 9px; mask: var(--hole-h) repeat-x 0 0 / 16px 9px; pointer-events: none; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film::before { top: 3px; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film::after { bottom: 3px; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film .ep { left: 8px; right: 8px; letter-spacing: .1em; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film .ep-a { top: 13px; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film .ep-b { bottom: 13px; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .pic { height: var(--fh); width: calc(var(--fh) * var(--r, 1)); }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .pic.is-video video { display: none; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .pic.is-video .poster { display: block; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .pic.is-video .poster img { width: 100%; height: 100%; object-fit: cover; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .notes { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .notes > :not(.post-meta) { display: none; }
@media (max-width: 640px) { :is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) { --fh: 104px; } :is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film .ep { font-size: 9px; letter-spacing: .06em; } }

.more { display: flex; justify-content: center; margin-top: 10px; }
.load-more span { color: var(--muted); font-family: var(--f-edge); }
.empty { background: var(--sheet); padding: 24px; box-shadow: var(--shadow); margin-top: 20px; }
.to-top { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 15; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.to-top.is-shown, .to-top:focus-visible { opacity: 1; pointer-events: auto; transform: none; }
html:not(.js) .to-top { opacity: 1; pointer-events: auto; transform: none; position: static; margin: 0 auto 24px; display: flex; width: max-content; }

/* the year rail: a film leader; each year carries its count and a density strip of its months */
.rail { position: sticky; top: calc(var(--hdr) + 18px); background: var(--film); padding: 12px 0; border-radius: 3px 3px 0 0; }
.rail::before, .rail::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; background: var(--hole);
  -webkit-mask: var(--hole-v) repeat-y 0 0 / 8px 16px; mask: var(--hole-v) repeat-y 0 0 / 8px 16px; pointer-events: none; }
.rail::before { left: 3px; } .rail::after { right: 3px; }
.rail ol { list-style: none; }
.rail a { display: grid; justify-items: center; gap: 2px; padding: 5px 14px 6px; text-decoration: none; color: var(--edge); position: relative; }
.ry { font: 700 1.1rem/1 var(--f-edge); letter-spacing: .06em; }
.rc { font: 500 .72rem/1 var(--f-edge); color: var(--edge-dim); letter-spacing: .04em; }
.rd { display: flex; align-items: flex-end; gap: 1px; height: 11px; margin-top: 2px; }
.rd i { width: 3px; height: max(1px, calc(var(--v) * 11px)); background: var(--edge); opacity: calc(.3 + var(--v) * .7); }
.rail a:hover .ry { color: var(--on-film); }
.rail li.is-active .ry { color: var(--on-film); }
.rail li.is-active a::before { content: ""; position: absolute; left: -18px; top: 13px; width: 24px; height: 4px; background: var(--grease); border-radius: 3px; transform: rotate(-14deg); }
.rail li.is-empty a { opacity: .45; }
.rail a:focus-visible { outline-color: var(--edge); outline-offset: -3px; }
@media (max-width: 1099px) {
  .archive { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { order: -1; top: var(--hdr); z-index: 5; border-radius: 0; padding: 15px 8px; margin: 0 calc(-1 * var(--gutter-r)) 22px calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail::before, .rail::after { left: 0; right: 0; top: 3px; bottom: auto; width: auto; height: 8px;
    -webkit-mask: var(--hole-h) repeat-x 0 0 / 16px 8px; mask: var(--hole-h) repeat-x 0 0 / 16px 8px; }
  .rail::after { top: auto; bottom: 3px; }
  .rail ol { display: flex; gap: 2px; width: max-content; }
  .rail a { padding: 3px 10px; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; }
  .rd { grid-column: 1 / -1; justify-self: center; }
  .rail li.is-active a::before { left: 6px; right: 6px; width: auto; top: auto; bottom: -5px; height: 3px; transform: rotate(-3deg); }
}

/* ------------------------------------------------------------------ the lightbox: a dark table */
dialog.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--lb); color: #e9ecec; }
dialog.lightbox::backdrop { background: var(--lb); }
.lb-in { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; font: 600 12px/1 var(--f-edge); letter-spacing: .14em; color: #e8ae4a; }
.lb-count { margin-left: auto; letter-spacing: .1em; }
.lb-fig { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; overflow: hidden; }
.lb-fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border: 6px solid #050504; box-shadow: 0 0 0 1px #2a2f33; background: var(--tone, #222); cursor: zoom-in; }
.lb-fig img.is-loading { filter: blur(2px); }
.lightbox.is-zoomed .lb-fig { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.lightbox.is-zoomed .lb-fig img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.lb-cap { font-size: .95rem; text-align: center; min-width: 0; overflow-wrap: anywhere; }
.lb-cap small { display: block; color: #a6b0b6; font: 500 .85rem var(--f-edge); letter-spacing: .04em; margin-top: 3px; }
.lb-cap a { color: #e9ecec; }
.lb-btn { background: #1b2125; border: 1px solid #39424a; color: #e9ecec; border-radius: 999px; min-width: 44px; height: 44px; padding: 0 16px; cursor: pointer; font-size: .9rem; }
.lb-btn:hover { border-color: #6b7780; }
.lb-btn:disabled { opacity: .35; cursor: default; }
.lightbox :focus-visible { outline-color: #ff6a5c; }
@media (max-width: 560px) {
  .lb-bar { grid-template-columns: 1fr 1fr; }
  .lb-cap { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { justify-self: start; } .lb-next { justify-self: end; }
}

/* ------------------------------------------------------------------ keys */
.keys { position: fixed; z-index: 30; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 32px)); background: var(--sheet); box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 16px 18px; }
.keys h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.keys dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: .9rem; }
.keys dt { justify-self: start; } .keys dd { margin: 0; }

/* ------------------------------------------------------------------ one post: frames pulled from the strip */
.post-h .meta { margin-top: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.post-h .meta .num { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.enl { list-style: none; margin-top: 30px; display: grid; gap: 36px; max-width: 920px; container-type: inline-size; }
.pull { margin: 0; width: fit-content; max-width: 100%; }
.cell-big { padding: 26px 8px; }
.cell-big .ep { font-size: 11px; }
.cell-big .pic { width: min(904px, calc(100cqw - 16px), calc(80vh * var(--r, 1))); }
.cell-big .pic img, .cell-big .pic video { height: auto; aspect-ratio: var(--r, 1); }
.pull figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font: 500 .92rem/1.3 var(--f-edge); letter-spacing: .04em; color: var(--muted); }
.post-cap { margin-top: 30px; font-size: 1.2rem; line-height: 1.5; max-width: 46ch; overflow-wrap: anywhere; }
.post-cap p + p { margin-top: .8em; }
.post-tags { margin-top: 16px; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.pn { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; }
.pn a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--sheet); box-shadow: var(--shadow); padding: 10px; text-decoration: none; min-height: 64px; }
.pn a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
.pn a.nav-newer { grid-template-columns: minmax(0, 1fr) 64px; text-align: right; }
.pn a.nav-newer:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.pn a.nav-newer img { grid-column: 2; grid-row: 1; }
.pn img { width: 64px; height: 64px; object-fit: cover; background: var(--tone, var(--line)); }
.pn small { display: block; color: var(--muted); font-size: .8rem; }
.pn b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn a:hover b { text-decoration: underline; text-decoration-color: var(--grease); }
@media (max-width: 560px) { .pn { grid-template-columns: 1fr; } }

/* one photo: the frame on the table, its data sheet beside it */
.img-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.img-stage { margin: 20px 0 0; background: var(--film); padding: 14px; display: grid; place-items: center; position: relative; }
.img-stage .ep { position: absolute; left: 14px; right: 14px; top: -1px; transform: translateY(-100%); padding-bottom: 6px; color: var(--muted); letter-spacing: .14em; }
.img-stage .pic { width: min(100%, calc(78vh * var(--r, 1))); }
.img-stage .pic img, .img-stage .pic video { height: auto; aspect-ratio: var(--r, 1); }
.datasheet { background: var(--sheet); box-shadow: var(--shadow); padding: 20px 22px; margin-top: 20px; }
.datasheet h1 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.datasheet .desc { margin-top: 10px; color: var(--muted); }
.datasheet .desc a { color: var(--ink); }
.datasheet dl { margin: 16px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: .93rem; border-top: 1px solid var(--line); padding-top: 14px; }
.datasheet dt { color: var(--muted); }
.datasheet dd { margin: 0; overflow-wrap: anywhere; }
.datasheet dd .num { font-size: 1rem; }
.datasheet .lic { margin-top: 16px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.datasheet .lic a { color: var(--ink); }
.datasheet .post-cap { font-size: 1rem; margin-top: 12px; }
.nav2 { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.media-caption { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: .93rem; }
.media-caption summary { cursor: pointer; color: var(--muted); }
.media-caption .post-cap { font-size: .98rem; margin-top: 8px; }
.is-story .img-stage .pic { width: min(100%, calc(80vh * var(--r, 1))); }
@media (max-width: 900px) { .img-page { grid-template-columns: minmax(0, 1fr); } .img-stage { padding: 10px; } .img-stage .pic { width: min(100%, calc(84vh * var(--r, 1))); } }

/* ------------------------------------------------------------------ places: vellum on the table */
.trip-pick { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trip-pick .num { color: var(--muted); }
@media (max-width: 640px) { .trip-pick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter) var(--gutter-r); } .trip-pick li { flex: none; } }
.trip-pick a[aria-current] .num { color: inherit; }
.sheets { columns: 2; column-gap: 34px; margin-top: 30px; }
.sheets-small { columns: 3; margin-top: 0; }
.sheetwrap { break-inside: avoid; margin-bottom: 40px; display: flow-root; scroll-margin-top: calc(var(--hdr) + 20px); }
.vellum { position: relative; z-index: 2; background: var(--vellum); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 14px 10px; transform: rotate(var(--rot, 0deg)); }
.vellum h2 { font-size: 1.15rem; font-weight: 800; }
.sheet-meta { font-size: .95rem; color: var(--muted); margin-top: 2px; }
.vellum .anno { font-size: 1.45rem; margin-top: 2px; }
.vellum.is-picked { outline: 3px solid var(--grease); outline-offset: 4px; }
.mapsvg { width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.mapsvg .grat { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.mapsvg .reg { stroke: var(--muted); stroke-width: 1.2; fill: none; }
.mapsvg .spot { fill: var(--grease); opacity: .78; }
.mapsvg .lbl { fill: var(--ink); font: 600 13.5px var(--f-edge); letter-spacing: .02em; paint-order: stroke; stroke: var(--sheet); stroke-width: 3px; stroke-linejoin: round; }
.mapsvg .lbl-m { fill: var(--muted); font-weight: 500; }
.mapsvg .lbl-off { fill: var(--grease); }
.mapsvg .route { fill: none; stroke: var(--grease); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mapsvg .wp { fill: var(--sheet); stroke: var(--grease); stroke-width: 2.2; }
.mapsvg .wpl { fill: var(--grease); font: 600 13px var(--f-edge); paint-order: stroke; stroke: var(--sheet); stroke-width: 3px; stroke-linejoin: round; }
.mapsvg .home { fill: var(--ink); }
.mapsvg .arrow { fill: none; stroke: var(--grease); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mapsvg .scale { stroke: var(--ink); stroke-width: 2; fill: none; }
.mapsvg .tiny { fill: var(--muted); font: 500 11.5px var(--f-edge); letter-spacing: .04em; }
.under { position: relative; z-index: 1; margin: -14px 12px 0; --fh: 88px; scrollbar-width: none; }
.under .cell { padding: 20px 3px; }
.under .ep { font-size: 9px; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; }
.toplaces { width: 100%; border-collapse: collapse; font-size: .93rem; }
.toplaces th, .toplaces td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.toplaces thead th { font-weight: 600; color: var(--muted); font-size: .82rem; }
.toplaces tbody th { font-weight: 700; }
.toplaces .feats { display: block; font-weight: 400; font-size: .86rem; color: var(--muted); margin-top: 3px; max-width: 60ch; }
.toplaces .feats a { color: var(--ink); }
.toplaces td.num, .toplaces th.num { text-align: right; padding-right: 0; font-size: 1rem; }
.toplaces .barcell { width: 32%; }
.toplaces .bar { display: block; height: 6px; margin-top: 7px; background: var(--grease); border-radius: 3px; opacity: .85; min-width: 2px; }
@media (max-width: 1000px) { .sheets-small { columns: 2; } }
@media (max-width: 760px) { .sheets, .sheets-small { columns: 1; } .toplaces .barcell { display: none; } }

/* ------------------------------------------------------------------ numbers: test strips */
.nb-head { margin-bottom: 0; }
.panel.section { margin-top: 28px; }
.wedge { display: grid; grid-template-columns: repeat(var(--steps, 12), minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--line); }
.step { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 6px; font-family: var(--f-edge); text-decoration: none; }
.step .v { font-size: 1.45rem; font-weight: 700; line-height: 1; }
.step .y { font-size: .85rem; font-weight: 600; letter-spacing: .05em; }
.step:focus-visible { outline-offset: -3px; }
.step:hover .y { text-decoration: underline; }
.readout { margin-top: 10px; font: 600 1rem var(--f-edge); letter-spacing: .03em; min-height: 1.4em; }
@media (max-width: 640px) {
  .wedge { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 40px; flex-direction: row-reverse; align-items: center; padding: 0 12px; }
  .step .v { font-size: 1.25rem; }
}
.dens-wrap { overflow-x: auto; }
.dens { display: grid; grid-template-columns: 40px repeat(12, minmax(18px, 1fr)); gap: 2px; margin-top: 16px; font: 500 .8rem var(--f-edge); color: var(--muted); min-width: 320px; }
.dens .h { text-align: center; }
.dens .yl { align-self: center; }
.dens i { display: block; aspect-ratio: 1.6; border-radius: 1px; outline: 1px solid var(--line); outline-offset: -1px; }
.dens i.none { background: none !important; outline-style: dashed; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; margin-top: 26px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.wk { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px 10px; align-items: center; margin-top: 16px; font-family: var(--f-edge); }
.wk .bar { height: 18px; background: var(--ink); border-radius: 1px; }
.wk .bar.max { background: var(--grease); }
.wk .v { text-align: right; font-weight: 600; }
svg.chart { width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.chart .ax { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 500 12px var(--f-edge); }
.chart .bar { fill: var(--ink); }
.chart .bar.max { fill: var(--grease); }
.chart .gl { fill: none; stroke: var(--grease); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.chart .gd { fill: var(--sheet); stroke: var(--grease); stroke-width: 2.4; }
.chart .ann { fill: var(--grease); font: 400 24px var(--f-hand); }
.timeline { overflow-x: auto; margin-top: 16px; padding-bottom: 6px; }
.timeline-in { min-width: 1000px; }
.tl-strip { display: flex; background: var(--film); padding: 20px 6px; position: relative; }
.tl-strip::before, .tl-strip::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: var(--hole);
  -webkit-mask: var(--hole-h) repeat-x 0 0 / 16px 8px; mask: var(--hole-h) repeat-x 0 0 / 16px 8px; }
.tl-strip::before { top: 5px; } .tl-strip::after { bottom: 5px; }
.tl-strip i { flex: 1 1 0; height: 46px; margin-right: 1px; }
.tl-strip i.clear { background: var(--hole); opacity: .9; }
.tl-years { position: relative; height: 18px; margin-top: 6px; font: 600 11px var(--f-edge); color: var(--muted); letter-spacing: .06em; }
.tl-years span { position: absolute; top: 0; }
.tl-ann { position: relative; height: 58px; }
.tl-ann .mark { position: absolute; bottom: 4px; border: 3px solid var(--grease); border-bottom: 0; height: 12px; border-radius: 3px 3px 0 0; min-width: 6px; }
.tl-ann .t { position: absolute; bottom: 20px; font-size: 1.4rem; white-space: nowrap; }
.tl-ann .t-end { transform: translateX(-100%); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.facts div { border-top: 2px solid var(--ink); padding-top: 8px; }
.facts b { font: 700 1.7rem/1 var(--f-edge); display: block; }
.facts span { color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.more-data { margin-top: 18px; font-size: .93rem; }
.more-data summary { cursor: pointer; color: var(--muted); }
.more-data .table-wrap { margin-top: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { text-align: left; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-weight: 600; color: var(--muted); font-size: .82rem; }
.data-table td:not(:first-child) { font-family: var(--f-edge); font-variant-numeric: tabular-nums; font-size: 1rem; }
.swatchbook { position: relative; height: 300px; margin-top: 10px; }
.swatch { position: absolute; left: calc(50% - 34px); bottom: 10px; width: 68px; height: 240px; padding: 0; border: 1px solid var(--line); background: var(--paper); transform-origin: 50% 94%; transform: rotate(calc(var(--i) * 5.6deg)); transition: transform .35s cubic-bezier(.2, .7, .2, 1); cursor: pointer; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgb(0 0 0 / .18); }
.swatch .c { flex: 1; margin: 5px 5px 0; }
.swatch .y { font: 700 .8rem var(--f-edge); color: var(--paper-ink); padding: 4px 0 5px; text-align: center; }
.swatchbook.is-open .swatch { transform: rotate(calc(var(--i) * 8.2deg)); }
.swatch.is-on { transform: rotate(calc(var(--i) * 8.2deg)) translateY(-22px) !important; z-index: 2; }
.swatch:focus-visible { outline-offset: 2px; }
@media (max-width: 480px) { .swatch { width: 52px; left: calc(50% - 26px); height: 210px; } .swatchbook { height: 270px; } .swatchbook.is-open .swatch, .swatch { transform: rotate(calc(var(--i) * 6.4deg)); } }
.cans-h { font-size: .95rem; font-weight: 800; margin-top: 18px; }
.cans { display: grid; gap: 12px; margin-top: 10px; }
.can-row { display: grid; grid-template-columns: repeat(var(--years, 12), minmax(0, 1fr)); align-items: center; }
.can-row .lbl { grid-column: 1 / -1; font-size: .9rem; font-weight: 700; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.can-row .lbl .num { color: var(--muted); font-weight: 500; }
.can { height: 22px; background: var(--film); border-radius: 11px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 10px; font: 600 10px/1 var(--f-edge); letter-spacing: .12em; color: var(--edge); white-space: nowrap; }
.can::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: color-mix(in srgb, var(--edge) 70%, var(--film)); }
.can-rest { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.can-axis { display: grid; grid-template-columns: repeat(var(--years, 12), minmax(0, 1fr)); font: 500 11px var(--f-edge); color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; }

/* ------------------------------------------------------------------ loved, then and now, music */
.loved-sheet { --fh: 170px; }
.loved-year { margin-bottom: 26px; }
.loved-year h3 { font: 700 1.3rem var(--f-edge); letter-spacing: .04em; margin-bottom: 8px; }
.loved-year h3 a { text-decoration: none; }
.loved-year .strip { --fh: 132px; }
@media (max-width: 640px) { .loved-sheet { --fh: 112px; } .loved-year .strip { --fh: 100px; } }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 34px; }
.pair { min-width: 0; }
.pair h2 { font-size: 1.15rem; font-weight: 800; }
.pair-meta { color: var(--muted); margin: 2px 0 10px; font-size: .95rem; }
.pair-strip { overflow: visible; }
.pair-strip .cell { flex: var(--r, 1) 1 0; min-width: 0; padding: 22px 3px; }
.pair-strip .pic { width: 100%; height: auto; }
.pair-strip .pic img { height: auto; aspect-ratio: var(--r, 1); }
.pair-links { margin-top: 8px; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .pairs { grid-template-columns: minmax(0, 1fr); } }
.music { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 30px; align-items: start; }
@media (max-width: 860px) { .music { grid-template-columns: minmax(0, 1fr); } }
.jcard { background: var(--sheet); box-shadow: var(--shadow); padding: 18px 22px 22px; border-top: 8px solid var(--film); }
.genres, .artists, .tracks { background-image: repeating-linear-gradient(to bottom, transparent 0 29px, var(--line) 29px 30px); }
.genres li, .artists li, .tracks li { height: 30px; }
.jcard h2 { font-size: 2.1rem; }
.jcard .sub { color: var(--muted); font-size: .9rem; margin-top: 4px; line-height: 30px; }
.genres, .artists, .tracks { list-style: none; line-height: 30px; }
.genres li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 2.5rem; gap: 10px; align-items: center; }
.genres .g { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genres .bar { height: 4px; background: var(--grease); border-radius: 2px; transform: rotate(-.4deg); }
.genres .num, .artists .num { text-align: right; color: var(--muted); }
.artists { columns: 2; }
.saved { margin-top: 30px; }
.tracks { columns: 2 22rem; column-gap: 34px; }
.tracks li { display: flex; gap: 8px; align-items: baseline; break-inside: avoid; min-width: 0; }
.tracks .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.tracks .a { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.tracks time { color: var(--muted); font-size: .85rem; flex: none; }
@media (max-width: 560px) { .genres li { grid-template-columns: minmax(0, 1fr) 2.5rem; } .genres .bar { display: none; } .artists { columns: 1; } }

/* ------------------------------------------------------------------ reading: blog, about, now, uses */
.prose { max-width: 68ch; font-size: 1.05rem; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; font-weight: 800; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 3px solid var(--grease); color: var(--muted); }
.prose code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sheet); padding: 1px 4px; border-radius: 2px; }
.prose pre { background: var(--sheet); box-shadow: var(--shadow); padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img { height: auto; }
.entry { max-width: 920px; }
.entry .page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.about { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-card .portrait { float: right; margin: -40px -36px 8px 12px; width: 132px; }
.about-card .name { font-size: clamp(2.2rem, 4vw, 3rem); }
.about .prose { padding-top: 6px; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); gap: 32px; } .about-card .portrait { margin: -30px -8px 8px 12px; width: 110px; } }
.card-page { max-width: 720px; margin-top: 10px; transform: rotate(.3deg); }
.card-page h1 { font-size: 3rem; }
.card-page .lede { margin-top: 0; line-height: 32px; }
.card-page .prose { font-size: 1rem; line-height: 32px; margin-top: 0; }
.card-page .prose > * + * { margin-top: 0; }
.card-page .prose ul { padding-left: 0; list-style: none; }
.card-page .prose li { padding-left: 16px; position: relative; }
.card-page .prose li + li { margin-top: 0; }
.card-page .prose li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 3px; background: var(--grease); border-radius: 2px; transform: rotate(-12deg); }
.card-page .prose p { margin-top: 32px; }
.stub { background: var(--sheet); box-shadow: var(--shadow); padding: 28px; max-width: 640px; }
.stub h1 { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; }
.stub p { margin-top: 10px; color: var(--muted); }
.stub p a { color: var(--ink); }
.stub-note { font-size: 1.9rem; margin-top: 16px; display: block; }

/* ------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); padding-block: 22px calc(76px + env(safe-area-inset-bottom, 0px)); font-size: .88rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 10px; }
.foot-nav, .foot-else { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot-license { max-width: 70ch; }

/* ------------------------------------------------------------------ preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .swatch, .swatchbook .swatch { transform: rotate(calc(var(--i) * 8.2deg)); }
}
@media (forced-colors: active) {
  .nav a[aria-current], .kinds a[aria-current] { text-decoration: underline 3px; }
  .rail li.is-active .ry { text-decoration: underline 2px; }
  .cell::before, .cell::after, .film::before, .film::after, .rail::before, .rail::after { display: none; }
}


/* Plain grids. The film chrome (sprockets, edge print, the dark film base) is off the photo archive
   and the stories: photos sit on the page as tiles with a small gap. The home strip keeps it. */
.stream .film, .strip .cell { background: none; padding: 0; }
.stream .film::before, .stream .film::after, .strip .cell::before, .strip .cell::after { display: none; }
.stream .film .ep, .strip .cell .ep { display: none; }
.stream .pic, .strip .pic { border-radius: 2px; overflow: hidden; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) { --fh: 230px; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .month-posts { gap: 6px; row-gap: 6px; }
:is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) .film { padding: 0; }
.strip { flex-wrap: wrap; gap: 6px; overflow: visible; padding-bottom: 0; --fh: 210px; }
.strip .cell { padding: 0; }
.strip-more { background: var(--panel, rgb(127 127 127 / .12)); color: inherit; border-radius: 2px; padding: 0 16px; }
@media (max-width: 640px) {
  :is(.js .stream.is-grid, html:not(.js) .stream:not(:target)) { --fh: 150px; }
  .strip { --fh: 140px; }
}
