@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("fonts/fragment-mono.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Victor Mono";
  src: url("fonts/victor-mono-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

/* Paper and inks. Dark mode is ink on dark kraft, not a black screen. */
:root {
  --paper: #f2eadb;
  --paper-deep: #e9dec9;
  --ink: #3a2a1c;
  --ink-soft: #6e5a45;
  --ink-faint: #b9a68a;
  --sienna: #a0522d;
  --verdigris: #4f7d6d;
  --graphite: #8a8276;
  --ochre: #c9a86a;
  --gold: #b8892e;
  --hole: var(--ink);
  --grid: rgba(58, 42, 28, 0.07);
  --grid-big: rgba(58, 42, 28, 0.06);
  --grain-opacity: 0.35;
  --halo: color-mix(in srgb, var(--ochre) 12%, var(--paper-deep));

  color-scheme: light;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --note: "Victor Mono", var(--mono);
}
/* Night at the lab: ink on dark kraft. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #2a2119;
  --paper-deep: #241c15;
  --ink: #eadfcb;
  --ink-soft: #bfae94;
  --ink-faint: #6f604f;
  --sienna: #d48a5c;
  --verdigris: #8db7a6;
  --graphite: #8f877b;
  --ochre: #c9a86a;
  --gold: #e0b45a;
  --hole: #120d09;
  --grid: rgba(234, 223, 203, 0.05);
  --grid-big: rgba(234, 223, 203, 0.04);
  --grain-opacity: 0.5;
  --halo: color-mix(in srgb, var(--ochre) 12%, #3a2e23);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  overflow: hidden;
  transition: background-color 0.6s ease;
}

/* Paper grain: an SVG noise tile laid over the page, never intercepting clicks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { mix-blend-mode: screen; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The plate fills the screen; the grid runs on past its edges. */
.stage { width: 100vw; height: 100vh; height: 100dvh; }
#plate { display: block; width: 100%; height: 100%; overflow: visible; }

/* Small or portrait screens: the plate keeps a readable size and is panned natively. */
.hint { display: none; }
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .stage { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  #plate { width: 1500px; height: 844px; }
  .hint {
    display: block;
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 11;
    transform: translateX(-50%);
    margin: 0;
    padding: 4px 10px;
    background: var(--paper-deep);
    border: 1px solid var(--ink-faint);
    font: italic 12px var(--note);
    color: var(--ink-soft);
    white-space: nowrap;
    pointer-events: none;
    animation: hint-out 1s ease 5s forwards;
  }
}
@keyframes hint-out { to { opacity: 0; visibility: hidden; } }

#plate path, #plate circle, #plate rect, #plate line, #plate ellipse, #plate polygon, #plate polyline {
  vector-effect: non-scaling-stroke;
}

.grid-line { fill: none; stroke: var(--grid); stroke-width: 1; }
.grid-line-big { fill: none; stroke: var(--grid-big); stroke-width: 1; }
.frame { fill: none; stroke: var(--ink); stroke-width: 1; }
.frame-out { fill: none; stroke: var(--ink-faint); stroke-width: 1; }
.crop { fill: none; stroke: var(--ink-soft); stroke-width: 1; }
.rule { stroke: var(--ink); stroke-width: 0.8; }
.tip { fill: none; stroke: var(--verdigris); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tip-ink { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Text ---------- */
.lbl-head { font: 12px var(--mono); letter-spacing: 0.06em; fill: var(--ink-soft); }
.mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 150px;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  fill: var(--ink);
}
.mark-dot, .tld-dot { fill: var(--sienna); }
.tagline { font: italic 400 22px var(--serif); fill: var(--ink); }
.lbl-station { font: italic 22px var(--serif); fill: var(--ink); transition: fill 0.5s ease; }
.lbl-station .lbl-num { font-style: normal; }
.lbl-station.on { fill: var(--sienna); transition-duration: 0.1s; }
.lbl-jar { font-size: 20px; }
.lbl-word { font: italic 17px var(--serif); fill: var(--ink); }
.lbl-word .lbl-num { font-size: 12px; font-style: normal; }
.lbl-branch { font: italic 17px var(--serif); fill: var(--sienna); transition: opacity 0.5s ease; }
.lbl-compost { fill: var(--graphite); }
.lbl-num { font: 13px var(--mono); fill: var(--sienna); }
.lbl-mono { font: 14px var(--mono); fill: var(--ink); }
.lbl-note { font: italic 14px var(--note); fill: var(--ink-soft); transition: fill 0.5s ease; }
.lbl-note.on { fill: var(--sienna); transition-duration: 0.1s; }
.lbl-note-s { font: italic 12px var(--note); fill: var(--ink-soft); }
.lbl-tag { font: 10px var(--mono); fill: var(--ink-soft); letter-spacing: 0.02em; }
.lbl-part { font: 10px var(--mono); fill: var(--sienna); }
.lbl-json { font: 13px var(--mono); fill: var(--ink); }
.lbl-play { font: italic 14px var(--serif); fill: var(--ink); }
.lbl-fig { font: 10px var(--mono); letter-spacing: 0.06em; fill: var(--sienna); }
.lbl-count { font: 10px var(--mono); fill: var(--ink-faint); letter-spacing: 0.04em; }
.lbl-print { font: italic 10px var(--note); fill: var(--ink-faint); }
.lbl-addr { font: 8px var(--mono); fill: var(--ink-soft); }
.exit-away .lbl-mono { fill: var(--verdigris); }
.exit-fade .lbl-mono { fill: var(--graphite); }

/* The four moves of the way back light up while an idea goes through them. */
.lbl-step { font: italic 14px var(--note); fill: var(--ink-soft); transition: fill 0.4s ease; }
.lbl-step.on { fill: var(--sienna); }

/* ---------- Workshops ---------- */
/* No boxes: each workshop floats in a halo, and the halos run into one another like a cloud. */
.halo { fill: url(#halo); transition: opacity 0.8s ease; opacity: 0.9; }
.halo-in { stop-color: var(--halo); stop-opacity: 1; }
.halo-mid { stop-color: var(--halo); stop-opacity: 0.6; }
.halo-out { stop-color: var(--halo); stop-opacity: 0; }
.atelier.send .halo { opacity: 1; }
.atelier.send .lbl-word { fill: var(--sienna); }
.vig path, .vig circle, .vig rect { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.vig .faint { stroke: var(--ink-faint); }
.vig .soft { stroke: var(--ink-soft); }
.vig .dot { fill: var(--sienna); stroke: none; }
.vig .book { fill: var(--ochre); fill-opacity: 0.35; stroke: var(--ink-soft); stroke-width: 0.7; }
.vig .speck { fill: var(--ink-soft); stroke: none; }
.vig .trace, .trace { fill: none; stroke: var(--sienna); stroke-width: 1.1; }
.vig .btn { fill: var(--ochre); fill-opacity: 0.3; }
.vig .btn.down { fill-opacity: 0.7; }
.vig .sel { fill: var(--ochre); fill-opacity: 0.35; stroke: none; }
.vig .ripple { fill: none; stroke: var(--sienna); stroke-width: 0.8; }
.vig .cursor { fill: var(--paper); stroke: var(--ink); stroke-width: 0.9; }
.vig .bub { transform-box: fill-box; transform-origin: 50% 100%; }
.vig .spark { fill: var(--ochre); fill-opacity: 0.6; stroke: var(--sienna); stroke-width: 0.8; transform-box: fill-box; transform-origin: center; }
.vig .glow-ring { fill: var(--ochre); fill-opacity: 0.18; stroke: none; transform-box: fill-box; transform-origin: center; }
.vig .typing { fill: var(--ink-soft); stroke: none; }
.vig .head { transform-box: fill-box; }
.pipe { fill: none; stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.drop { fill: var(--ochre); }

/* ---------- Source ---------- */
.flask-glass { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.flask-liquid { fill: var(--ochre); opacity: 0.45; }
.flask-cork { fill: var(--ochre); fill-opacity: 0.45; stroke: var(--ink-soft); stroke-width: 1; stroke-linejoin: round; }
.lamp { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.lamp-cap { fill: none; stroke: var(--ink-soft); stroke-width: 1; }
.flame { fill: var(--sienna); opacity: 0.85; }
.bubble { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.pop { fill: none; stroke: var(--ink-soft); stroke-width: 0.6; }
.pop.gold { stroke: var(--gold); stroke-width: 1; }

/* ---------- Ring ---------- */
.ring-under { fill: none; stroke: var(--ink-faint); stroke-width: 7; opacity: 0.25; }
.track { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.track-entry { stroke-dasharray: 2 6; stroke: var(--ink-soft); }
.track-again { stroke-dasharray: 6 6; stroke: var(--ink-soft); }
.track-stay { stroke: var(--sienna); }
.track-away { stroke: var(--verdigris); }
.track-fade { stroke: var(--graphite); stroke-dasharray: 1 7; }
.chev { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.chev-again { stroke: var(--ink-soft); }
.track-retest { stroke: var(--ink-soft); stroke-dasharray: 6 6; }
.chev-fade { stroke: var(--graphite); }
.tick { fill: var(--paper); stroke: var(--ink-soft); stroke-width: 1; }
.station { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 1.3; transition: fill 0.5s ease; }
.station.on { fill: var(--sienna); transition-duration: 0.1s; }

/* Station i: an idea unfolds as it lands. */
.unfold path { fill: none; stroke: var(--ink); stroke-width: 0.9; stroke-linejoin: round; }

/* Station ii: gear train, pawl and spring. */
.gear-body { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.gear-ring { fill: none; stroke: var(--ink-soft); stroke-width: 0.8; }
.gear-spoke { stroke: var(--ink-soft); stroke-width: 0.8; stroke-linecap: round; }
.gear-hub { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 1; }
.gear-axle { fill: var(--sienna); }
.pawl { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.spring { fill: none; stroke: var(--ink-soft); stroke-width: 0.8; stroke-linejoin: round; }
/* What breaks: a crack across the idea, sparks off the teeth. */
.crack { fill: none; stroke: var(--paper-deep); stroke-width: 1.2; stroke-linecap: round; }
.spark { stroke: var(--sienna); stroke-width: 1; stroke-linecap: round; }

/* Station iii: the iris. */
.iris-housing { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 1.2; }
.iris-outer { fill: none; stroke: var(--ink-soft); stroke-width: 0.7; }
.iris-hole { fill: var(--paper); stroke: none; }
.iris-blade { stroke: var(--ink); stroke-width: 0.9; stroke-linecap: round; }

.leader-dash { fill: none; stroke: var(--ink-faint); stroke-width: 0.8; stroke-dasharray: 3 3; }

/* ---------- Centre ---------- */
.jar { fill: none; stroke: var(--sienna); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.8; }
.thread { stroke: var(--sienna); stroke-width: 0.7; }
.glow { fill: var(--sienna); opacity: 0.08; }
.vacant { fill: none; stroke: var(--sienna); stroke-width: 0.9; stroke-dasharray: 2 2.5; }
.track-return {
  fill: none;
  stroke: var(--sienna);
  stroke-width: 0.9;
  stroke-dasharray: 2 4;
  opacity: 0.7;
  transition: opacity 1.2s ease;
}
.track-return.gone { opacity: 0; }

.particle { stroke: var(--paper-deep); stroke-width: 1.5; }
.particle.ink { fill: var(--ink); }
.particle.stay { fill: var(--sienna); }
.particle.away { fill: var(--verdigris); }
.particle.fade { fill: var(--graphite); }

/* Fork: ideas splitting apart or merging, joined by a fading bridge. */
.bridge { stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }

/* Way back without the bench: a redo arrow, red-pen remarks. */
.redo path { fill: none; stroke: var(--ink-soft); stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; }
.remark { fill: none; stroke: var(--sienna); stroke-width: 1.1; stroke-linecap: round; }

/* The bench: exploded view, red pen, construction lines, gold seams. */
.bench { fill: none; stroke: var(--ink-soft); stroke-width: 1; stroke-linecap: round; }
.piece { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.piece-old { stroke: var(--ink-faint); }
.piece-new { fill: none; stroke: var(--sienna); stroke-width: 1.1; }
.piece.ink { fill: var(--ink); stroke: var(--paper-deep); }
.construct { fill: none; stroke: var(--ink-faint); stroke-width: 0.6; }
.strike { fill: none; stroke: var(--sienna); stroke-width: 1.1; stroke-linecap: round; }
.seam { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* What an idea learned from a faded one. */
.grain { fill: var(--graphite); opacity: 0.7; }
.grain.live { opacity: 1; }
.grain.exp { fill: var(--ochre); opacity: 1; }
.lesson { fill: none; stroke: var(--graphite); stroke-width: 1.2; stroke-dasharray: 1 2.5; stroke-linecap: round; }

/* ---------- Exits ---------- */
.door { fill: var(--paper-deep); stroke: var(--verdigris); stroke-width: 1; stroke-linejoin: round; }
.exit-away .door-back { fill: var(--verdigris); opacity: 0.18; }
.door-frame { fill: none; stroke: var(--verdigris); stroke-width: 1.3; }
.spill { fill: var(--verdigris); opacity: 0.05; }
.sprout path { fill: none; stroke: var(--verdigris); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.sprout .leaf { fill: var(--verdigris); fill-opacity: 0.25; }
.wave { fill: none; stroke: var(--verdigris); stroke-width: 1; }
.dust { fill: var(--graphite); }

/* /dev/null: spiral arms thinning into the horizon. */
.pull { fill: none; stroke: var(--graphite); stroke-width: 0.6; stroke-dasharray: 1 4; opacity: 0.5; }
.arm { fill: none; stroke: var(--graphite); stroke-linecap: round; }
.arm.a1 { stroke-width: 0.6; opacity: 0.35; }
.arm.a2 { stroke-width: 0.8; opacity: 0.6; }
.arm.a3 { stroke-width: 1; opacity: 0.9; }
.photon { fill: none; stroke: var(--graphite); stroke-width: 0.8; }
.horizon { fill: var(--hole); stroke: var(--paper); stroke-width: 1.2; }
[data-theme="dark"] .horizon { stroke: var(--graphite); }

/* Compost and the root that takes it up as experience. */
.stratum { fill: none; stroke: var(--graphite); stroke-width: 0.8; opacity: 0.55; }
.stratum.s2 { opacity: 0.35; stroke-dasharray: 4 3; }
.stratum.s3 { opacity: 0.25; }
/* Inside the lamp: only the grains that climb it show the way. */
.root { fill: none; stroke: none; }

/* House rules: tags tied by a string, apart from the station labels and the notes. */
.string { fill: none; stroke: var(--sienna); stroke-width: 0.7; opacity: 0.7; }
.string-knot { fill: var(--sienna); opacity: 0.8; }
.tag { fill: var(--paper); stroke: var(--sienna); stroke-width: 0.9; stroke-linejoin: round; transition: fill 1.2s ease; }
.tag-hole { fill: var(--paper-deep); stroke: var(--sienna); stroke-width: 0.8; }
.tag-num { font: 10px var(--mono); fill: var(--sienna); }
.tag-txt { font: 400 13px var(--serif); fill: var(--ink); }
.rule-tag.lit .tag { fill: color-mix(in srgb, var(--sienna) 16%, var(--paper)); transition-duration: 0.15s; }

/* ---------- Showcase behind the door ---------- */
.vitrine-box { fill: var(--verdigris); fill-opacity: 0.05; stroke: var(--verdigris); stroke-width: 1; }
.vitrine-out { fill: none; stroke: var(--ink-faint); stroke-width: 0.8; }
.vitrine-tab { fill: var(--paper); stroke: var(--verdigris); stroke-width: 0.9; }
.vig-slide { transition: opacity 0.5s ease; }
.page { fill: none; stroke: var(--verdigris); stroke-width: 0.9; transition: fill 0.4s ease; }
.page.on { fill: var(--verdigris); }

.vig-slide .photo { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.vig-slide .cat path { fill: none; stroke: var(--ink); stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; }
.vig-slide .dot { fill: var(--ink); }
.vig-slide .soft { fill: none; stroke: var(--ink-soft); stroke-width: 1; }
.cover { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 0.9; }
.cover-mark { fill: none; stroke: var(--sienna); stroke-width: 0.9; }
.moon { fill: var(--ochre); fill-opacity: 0.35; stroke: var(--ink-soft); stroke-width: 0.8; }
.star { fill: var(--ink-soft); }
.v-sleeve { transform-box: fill-box; transform-origin: center; }
.win { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.win-bar { stroke: var(--ink); stroke-width: 0.9; }
.addr { fill: var(--paper-deep); stroke: var(--ink-faint); stroke-width: 0.8; }
.g-caret { fill: var(--sienna); }
.ground { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 3; }
.g-trunk, .g-branch { fill: none; stroke: var(--verdigris); stroke-width: 1.4; stroke-linecap: round; }
.g-branch { stroke-width: 1; }
.g-leaf { fill: var(--verdigris); fill-opacity: 0.3; stroke: var(--verdigris); stroke-width: 0.7; }
.g-fruit { fill: var(--sienna); }

/* The video link: rings that breathe out, so it reads as something to press. */
#video-link { cursor: pointer; outline: none; }
#video-link .hit { fill: transparent; }
.play .play-ring { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; transition: stroke 0.2s; }
.play path { fill: var(--sienna); }
.pulse { fill: none; stroke: var(--sienna); stroke-width: 0.8; opacity: 0.45; transform-box: fill-box; transform-origin: center; }
.pulse.p2 { opacity: 0.2; }
.js .pulse { animation: breathe 2.6s ease-out infinite; }
.js .pulse.p2 { animation-delay: 1.3s; }
@keyframes breathe {
  0% { transform: scale(0.75); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
#video-link:hover .play-ring, #video-link:focus-visible .play-ring { stroke: var(--sienna); }
#video-link:hover .lbl-play, #video-link:focus-visible .lbl-play { fill: var(--sienna); text-decoration: underline; }

/* ---------- Title block ---------- */
.cart-box { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 1; }
.cart-line { stroke: var(--ink); stroke-width: 0.7; }
.lbl-cell { font: 9px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-soft); }
.lbl-cart { font: 12px var(--mono); fill: var(--ink); }
.lbl-cart-serif { font: italic 15px var(--serif); fill: var(--ink); }
.ctl { cursor: pointer; outline: none; text-decoration: none; }
.ctl-hit { fill: transparent; transition: fill 0.2s; }
.ctl:hover .ctl-hit, .ctl:focus-visible .ctl-hit { fill: color-mix(in srgb, var(--sienna) 12%, var(--paper-deep)); }
.ctl:hover .lbl-cart, .ctl:focus-visible .lbl-cart { fill: var(--sienna); }
.ctl-icon { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.toggle-ring { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.toggle-half { fill: var(--ink); }

/* ---------- Video, in an overlay: nothing loads from YouTube before the click ---------- */
.video-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 18px 18px 14px;
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink-faint);
  outline-offset: 5px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
.video-dialog::backdrop { background: rgba(30, 22, 14, 0.55); backdrop-filter: blur(2px); }
.video-dialog[open] { animation: dlg-in 0.35s cubic-bezier(0.2, 0.6, 0.3, 1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.vd-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.vd-fig { font: 11px var(--mono); letter-spacing: 0.06em; color: var(--sienna); text-transform: uppercase; }
.vd-head h2 { flex: 1; margin: 0; font: italic 400 clamp(17px, 2.2vw, 22px) / 1.3 var(--serif); }
.vd-close {
  border: 1px solid var(--ink-faint);
  background: transparent;
  color: var(--ink);
  font: 18px/1 var(--mono);
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.vd-close:hover, .vd-close:focus-visible { border-color: var(--sienna); color: var(--sienna); outline: none; }
.vd-frame { position: relative; aspect-ratio: 16 / 9; background: var(--paper-deep); border: 1px solid var(--ink); }
.vd-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-caption { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.vd-caption a { color: inherit; text-decoration-color: var(--sienna); text-underline-offset: 3px; }
.vd-caption a:hover { color: var(--sienna); }

@media (prefers-reduced-motion: reduce) {
  .js .pulse { animation: none; }
  .hint, .video-dialog[open] { animation: none; }
  .lbl-count { display: none; }
}
html:not(.js) #sound-toggle { display: none; }

/* Opening: the plate draws itself, part after part (see app.js). */
.js [data-in] { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.3, 1); }
.js [data-in].pre { opacity: 0; }
