/* Beep Boop. Paper, black line, one orange. Values are the panel's own (App/Sources/Panel/Tokens.swift). */
:root {
  --paper: #F3F0EA;      /* Tokens.bodyTop */
  --paper-low: #ECE8E1;  /* Tokens.bodyBottom */
  --ink: #2A2926;        /* Tokens.ink */
  --silk: #6F6A62;       /* Tokens.silk, darkened to pass 4.5:1 on paper (4.7:1) */
  --hair: #B7B1A7;       /* Tokens.tick */
  --accent: #FF6A1F;     /* Tokens.accent: the one colour, for marks and never for words */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 400 17px/1.5 var(--sans); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 600 13px var(--mono); }
.skip:focus { top: 12px; }

.silk, .fig {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silk);
}
.title {
  margin: 6px 0 0;
  font: 500 clamp(18px, 2.4vw, 26px)/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.title::before {
  content: ""; display: inline-block; width: 0.38em; height: 0.38em; margin-right: 0.6em;
  border-radius: 50%; background: var(--accent); vertical-align: 0.18em;
}

/* The masthead: a name and the one action, on a clean band of paper. */
.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 16px) var(--gutter) 16px;
  background: var(--paper);
}
.name { font: 600 13px/1 var(--mono); letter-spacing: 0.18em; text-decoration: none; }
.name i { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.key-link {
  display: inline-flex; align-items: center; min-height: 40px;
  font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 0 14px; border: 1px solid var(--ink); border-radius: 8px;
}
.key-link:hover { background: var(--ink); color: var(--paper); }
.mast-keys { display: flex; gap: 8px; }
/* SOUND: a key with a lamp, as a step key has; lit, the dial's detents click as the page turns it. */
button.key-link { background: none; color: inherit; cursor: pointer; }
.sound-key i { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--hair); }
.sound-key[aria-pressed="true"] i { background: var(--accent); }

/* A drawing stage: pinned while the page scrolls under it. The drawing is masked out of the
   masthead's band and out of the caption's band (--clear-bottom, set by each drawing), so words
   never sit on linework. */
.trace { position: relative; height: 1150vh; }
.explode { position: relative; height: 600vh; }
.detail { position: relative; height: 420vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
}
.stage > svg, .stage > canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent calc(env(safe-area-inset-top) + 70px), #000 calc(env(safe-area-inset-top) + 96px), #000 calc(100% - var(--clear-bottom, 170px) - 20px), transparent calc(100% - var(--clear-bottom, 170px)));
  mask-image: linear-gradient(to bottom, transparent 0, transparent calc(env(safe-area-inset-top) + 70px), #000 calc(env(safe-area-inset-top) + 96px), #000 calc(100% - var(--clear-bottom, 170px) - 20px), transparent calc(100% - var(--clear-bottom, 170px)));
}
.stage .ln { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.stage .ln.fine { stroke-width: 0.6; stroke: var(--silk); }
.stage .ln.hot { stroke: var(--accent); }
.stage .fill-hot { fill: var(--accent); }
.stage text { font-family: var(--mono); letter-spacing: 0.14em; fill: var(--silk); }

/* A caption owns a fixed band at the foot of its stage, so the drawing above it never moves when
   the words change. */
.caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(env(safe-area-inset-bottom) + 28px);
  height: 84px;
  display: flex; justify-content: space-between; align-items: end; gap: 24px; pointer-events: none;
  transition: opacity 0.3s linear;
}
.caption p { margin: 0; max-width: 34ch; font-size: 15px; color: var(--silk); text-align: right; }

/* The opening's words: as large as the first screen holds (title.js fits them), pinned over the
   drawing while their letters go dark. */
.opening {
  position: sticky; top: 0; z-index: 2; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 84px) var(--gutter) calc(env(safe-area-inset-bottom) + 28px);
  pointer-events: none;
}
.opening h1 { margin: 0; font: 500 48px/0.96 var(--sans); letter-spacing: -0.035em; overflow-wrap: normal; }
.opening .word { white-space: nowrap; }
.opening .ch { opacity: 1; }
.opening p { margin: 0; font-size: clamp(17px, 1.6vw, 22px); color: var(--silk); }

/* The trace draws at the app's own scale; --u is one screen pixel in drawing units, so a line
   stays a hairline however close the camera comes. */
#trace-svg { --u: 1px; }
#trace-svg .ln { stroke-width: calc(var(--u) * 1.3); }
#trace-svg .ln.fine { stroke-width: calc(var(--u) * 0.8); }
#trace-svg .dimline { stroke: var(--silk); stroke-width: calc(var(--u) * 0.8); }
#trace-svg .tick { r: calc(var(--u) * 2); fill: var(--silk); }
#trace-svg .dim-text { font-size: calc(var(--u) * 11); fill: var(--ink); dominant-baseline: middle; }
#trace-svg .dim { transition: opacity 0.2s linear; }

#explode-svg .side { fill: var(--paper-low); }
#explode-svg .top { fill: var(--paper); }
#explode-svg .plate-glass .side, #explode-svg .plate-glass .top { fill: none; stroke: var(--silk); }
#explode-svg .plate-engine .top { fill: var(--ink); }
#explode-svg .plate-engine .ln:not(.top):not(.side) { stroke: var(--hair); }
#explode-svg .die { fill: #121212; stroke: var(--hair); }
#explode-svg .ln { stroke-width: 1; }
#explode-svg .ln.fine { stroke-width: 0.7; }
#explode-svg .ring { fill: var(--paper); stroke: var(--ink); }
#explode-svg .num { font-size: 11px; fill: var(--ink); letter-spacing: 0; }
#explode-svg .note { font-size: 11px; fill: var(--ink); }
#explode-svg .callout { transition: opacity 0.2s linear; }

#detail-svg .ln { stroke-width: 1; }
#detail-svg .ln.fine { stroke-width: 0.7; }
#detail-svg .side { fill: var(--paper-low); }
#detail-svg .top { fill: var(--paper); }
#detail-svg .lip { fill: #fff; stroke: var(--silk); }
#detail-svg .glass { fill: #2E2B29; }
#detail-svg .light { fill: none; stroke: var(--silk); }
#detail-svg .light.on { fill: var(--accent); stroke: var(--accent); }
#detail-svg .ring { fill: var(--paper); stroke: var(--ink); }
#detail-svg .num, #detail-svg .note { font-size: 11px; fill: var(--ink); letter-spacing: 0.14em; }
#detail-svg .num { letter-spacing: 0; }
#detail-svg .callout { transition: opacity 0.2s linear; }
/* DETAIL A's key, where the screen has no margin for the callouts' words. */
.detail-key { display: none; }
@media (max-width: 700px) {
  .detail-key {
    position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); top: calc(env(safe-area-inset-top) + 92px);
    display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0;
  }
  .detail-key li { font: 600 11px var(--mono); letter-spacing: 0.14em; color: var(--ink); }
  .detail-key b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border: 1px solid var(--ink); border-radius: 50%; font-weight: 500; font-size: 10px; letter-spacing: 0; }
}

/* The sheets below the drawings: ordinary pages, set like the back of a manual. */
.sheet {
  max-width: var(--measure); margin: 0 auto; padding: 120px var(--gutter) 40px;
}
.sheet-head { margin-bottom: 40px; }

.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index { counter-reset: line; }
.index li { border-bottom: 1px solid var(--hair); counter-increment: line; }
/* The line numbers are counted, so a line that waits for the launch leaves no gap. */
.index .no::before { content: counter(line, decimal-leading-zero); }
.index a {
  display: grid; grid-template-columns: 3.5em 11em 1fr; align-items: baseline; gap: 16px;
  min-height: 56px; padding: 16px 0; text-decoration: none;
}
.index .no { font: 500 11px var(--mono); letter-spacing: 0.14em; color: var(--silk); }
.index .what { font: 600 14px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.index .note { color: var(--silk); }
.index a:hover .what { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.price { margin: 24px 0 0; color: var(--silk); }

.device { margin: 0 auto; max-width: 340px; }
.device video {
  display: block; width: 100%; height: auto; aspect-ratio: 590 / 1280;
  background: var(--paper-low); border: 1px solid var(--ink); border-radius: 44px; padding: 10px;
}
figcaption { margin-top: 16px; font-size: 15px; color: var(--silk); text-align: center; }

.parts { margin: 0 auto; max-width: 620px; }
.parts svg { display: block; width: 100%; height: auto; }
.parts .datum { stroke: var(--ink); stroke-opacity: 0.42; stroke-width: 3; stroke-dasharray: 72 15 6 15; fill: none; }
.parts .leader line { stroke: var(--ink); stroke-width: 3; }
.parts .leader .dot { fill: var(--ink); }
.parts .leader .ring { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.parts .leader text { font: 600 33px var(--mono); fill: var(--ink); }
.parts .leader .word { font-size: 41px; letter-spacing: 0.16em; }
.parts .key { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; margin: 20px 0 0; padding: 0; }
.parts .key li { font: 600 11px var(--mono); letter-spacing: 0.14em; color: var(--ink); }
.parts .key b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border: 1px solid var(--ink); border-radius: 50%; font-weight: 500; font-size: 10px; letter-spacing: 0; }

.facts { margin: 72px 0 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.facts dt { font: 600 12px/1.9 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.facts dd { margin: 0; }

h3.silk { margin: 64px 0 12px; }
.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.files li { border-bottom: 1px solid var(--hair); }
.files a { display: flex; justify-content: space-between; gap: 16px; min-height: 48px; align-items: center; padding: 10px 0; text-decoration: none; }
.files a span:last-child { font: 500 12px var(--mono); color: var(--silk); white-space: nowrap; }
.files a:hover span:first-child { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.foot {
  max-width: var(--measure); margin: 80px auto 0; padding: 28px var(--gutter) calc(env(safe-area-inset-bottom) + 40px);
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  border-top: 1px solid var(--hair); color: var(--silk); font-size: 15px;
}
.foot .name { color: var(--ink); margin-right: auto; }

/* The text pages (privacy, terms, support): one column at a reading measure, on the sheets' left edge. */
.doc { max-width: var(--measure); margin: 0 auto; padding: 136px var(--gutter) 0; }
.doc > * { max-width: 40rem; }
.doc h2 { margin: 44px 0 10px; font: 600 13px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--hair); }
.doc a { text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.foot a.name { text-decoration: none; }

/* An article: a sheet with a title, a plate (the pattern's figure beside what it counts), then
   the text at a reading measure. */
.article { max-width: var(--measure); margin: 0 auto; padding: 136px var(--gutter) 0; }
.article h1.title { font-size: clamp(22px, 3.2vw, 34px); }
.article .lede { max-width: 40rem; margin: 20px 0 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; }
.article .prose { max-width: 40rem; }
.article .prose h2 { margin: 56px 0 12px; font: 600 13px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.article .prose p, .article .prose ul, .article .prose ol { margin: 0 0 14px; }
.article .prose ul, .article .prose ol { padding-left: 1.2em; }
.article .prose li { margin-bottom: 6px; }
.article .prose li::marker { color: var(--silk); }
.article .prose a, .article .lede a { text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.article .sources { font-size: 15px; color: var(--silk); overflow-wrap: anywhere; }

.plate { display: grid; grid-template-columns: minmax(0, 402px) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; margin: 48px 0 0; }
.plate.small { margin-top: 20px; }
.pattern { margin: 0; display: contents; }
.pattern .fig { margin: 0 0 12px; }
.pattern figcaption { margin-top: 14px; text-align: left; }

/* The pattern in words: a voice and the steps it plays. Without the drawing it is still the pattern. */
.count { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.count caption { text-align: left; padding: 0 0 10px; }
.count th, .count td { padding: 13px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: baseline; font-weight: 400; }
.count th { width: 7.5em; font: 600 12px/1.9 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.count td { font: 500 15px/1.5 var(--mono); letter-spacing: 0.04em; }
.count td small { display: block; font: 400 15px/1.4 var(--sans); letter-spacing: 0; color: var(--silk); }

/* The figure: the window and one voice's keys at the panel's own proportions (js/sheet.js). */
.panel { display: grid; justify-items: center; }
.panel svg { display: block; width: 100%; height: auto; overflow: visible; }
.panel .window { width: 90.05%; }  /* 362 of the canvas's 402 */
.panel .window .glass { fill: #121212; }
.panel .window text { font: 600 9px var(--mono); letter-spacing: 0.16em; }
.panel .window .silk-w { fill: #8A867F; }
.panel .window .lit-w { fill: #ECEBE6; }
.panel .window .seg { fill: rgba(255, 255, 255, 0.05); }
.panel .window .seg.on { fill: var(--accent); }
.panel .window .mark { fill: #ECEBE6; }
.panel .window .dot { fill: #2A2A2B; }
.panel .window .dot.row { fill: #3D3D3E; }
.panel .window .dot.head { fill: #6D6C69; }
.panel .window .dot.on { fill: var(--accent); }
.panel .window .dot.on.head { fill: #FFD9B8; }
.panel .keys { margin-top: 4px; }
.panel .ln { fill: none; stroke: var(--ink); stroke-width: 1; }
.panel .ln.fine { stroke: var(--silk); stroke-width: 0.7; }
.panel .foot { stroke: var(--hair); }
.panel .body { fill: var(--paper); }
.panel .num { font: 600 9px var(--mono); letter-spacing: 0.08em; fill: var(--silk); }
.panel .num.head { fill: var(--ink); }
.panel .beat { fill: var(--ink); }
.panel .lip { fill: #fff; stroke: var(--hair); stroke-width: 0.5; }
.panel .lamp { fill: #2E2B29; }
.panel .lamp.head { fill: #fff; stroke: var(--hair); stroke-width: 0.7; }
.panel .lamp.on { fill: var(--accent); stroke: none; }
.panel .lamp.on.head { fill: #FFD9B8; stroke: var(--accent); stroke-width: 1.5; }
/* The voices in the pattern: touch one and the keys show it, as the dial does. */
.voices { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; width: 100%; margin: 14px 0 6px; }
.voices button {
  min-height: 40px; padding: 0 12px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font: 600 11px/1 var(--mono); letter-spacing: 0.14em; color: var(--silk);
}
.voices button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.play { width: 74px; height: 74px; margin-top: 10px; padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.play .ring { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.play .glyph { fill: var(--ink); }
.play[aria-pressed="true"] .ring { stroke: var(--accent); stroke-width: 3; }
.play-legend { margin-top: 8px; }

/* The receipt: the strip PRINT feeds out (Receipt.swift), with the code that opens the beat. */
.receipt { margin: 28px 0 0; }
.receipt .paper {
  width: 264px; max-width: 100%; padding: 24px 21px 28px; background: #FBFAF7; border: 1px solid var(--hair);
  font: 500 11px/1.45 var(--mono); letter-spacing: 0.06em; color: #2B2A28;
}
.receipt .paper > div { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.receipt .head { font-weight: 700; letter-spacing: 0.14em; }
.receipt .rule { height: 0; margin: 11px 0; border-top: 1px dashed #B7B2A8; }
.receipt .dots { display: block; width: 84%; height: auto; margin-bottom: 9px; }
.receipt .dots circle { fill: #D8D4CC; }
.receipt .dots circle.on { fill: #2B2A28; }
.receipt .sounds, .receipt .scan { color: #6F6B63; }
.receipt .code { display: block; width: 76%; height: auto; margin: 0 auto 2px; }
.receipt .code path { fill: #2B2A28; }
.receipt .paper > .scan, .receipt .paper > .tear { justify-content: center; }
.receipt .tear { margin-top: 11px; letter-spacing: 0.18em; color: #8F8A80; }
.receipt figcaption { text-align: left; max-width: 40rem; }
.receipt .open { display: inline-block; margin-top: 10px; color: var(--ink); }

/* Tempo by genre: one scale, a band a genre. */
.tempo-scale { margin: 48px 0 0; max-width: 640px; }
.tempo-scale svg { display: block; width: 100%; height: auto; margin-top: 12px; }
.tempo-scale .tick { stroke: var(--hair); stroke-width: 0.5; }
.tempo-scale .tick.major { stroke: var(--silk); stroke-width: 0.7; }
.tempo-scale .axis { font: 500 11px var(--mono); fill: var(--silk); letter-spacing: 0.08em; }
.tempo-scale .genre { font: 600 11px var(--mono); fill: var(--ink); letter-spacing: 0.1em; }
.tempo-scale .band { fill: var(--accent); }
.tempo-scale a:hover .genre, .tempo-scale a:focus .genre { text-decoration: underline; }
.tempo-scale figcaption { text-align: left; }
.article .prose h2[id] { scroll-margin-top: 90px; }
.article .reading > .title a { text-decoration: none; }
.article .reading > .title { margin-bottom: 14px; }

/* The lines to other sheets at an article's foot. */
.article .index { margin-top: 16px; }

@media (max-width: 860px) {
  .plate { grid-template-columns: minmax(0, 1fr); }
  .panel { max-width: 402px; margin: 0 auto; width: 100%; }
}

/* Words for screen readers that the drawing says with lines. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 700px) {
  .caption { flex-direction: column; align-items: start; justify-content: end; gap: 8px; height: 148px; }
  .caption p { text-align: left; }
  .index a { grid-template-columns: 2.6em 1fr; row-gap: 2px; }
  .index .note { grid-column: 2; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .files a { flex-direction: column; align-items: start; gap: 2px; }
  .parts .leader .word { display: none; }
}
@media (min-width: 701px) { .parts .key { display: none; } }

/* Reduced motion: each drawing still and finished, and the page an ordinary page. */
@media (prefers-reduced-motion: reduce) {
  .trace, .explode, .detail { height: auto; }
  .opening { position: relative; margin-bottom: 0; }
  .stage { position: relative; height: 100svh; }
  .caption, #trace-svg .dim { transition: none; }
}

/* The journal */
/* Its sheets are articles; these are its drawings (tools/site/journal/figures.mjs, 402 wide as the
   panel is) and its tables. Folio, Craft, 2026-10-11. */
.journal .sheet-head .fig a { text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.jfig { margin: 48px 0 0; max-width: 640px; }
.jfig svg { display: block; width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.jfig figcaption { text-align: left; }
.jfig .tick { stroke: var(--hair); stroke-width: 0.5; }
.jfig .tick.major { stroke: var(--silk); stroke-width: 0.7; }
.jfig .rule { stroke: var(--ink); stroke-width: 1; fill: none; }
.jfig .fine { stroke: var(--silk); stroke-width: 0.7; fill: none; }
.jfig .ax { font: 500 11px var(--mono); fill: var(--silk); letter-spacing: 0.08em; }
.jfig .lab { font: 600 11px var(--mono); fill: var(--ink); letter-spacing: 0.1em; }
.jfig .dot { fill: var(--ink); }
.jfig .hot { fill: var(--accent); }
.jfig .ghost { fill: var(--paper); stroke: var(--silk); stroke-width: 0.7; }
.jtable { max-width: 40rem; margin: 20px 0 24px; }
.jtable th, .jtable td { padding-right: 14px; }
.jtable th { width: auto; }
.jtable thead th { border-bottom-color: var(--ink); vertical-align: bottom; line-height: 1.4; }
.journal .plate + .prose, .journal .jtable + .prose { margin-top: 8px; }
.jfig .span { stroke: var(--accent); stroke-width: 3; }

/* The figure */
/* DETAIL B (js/figure-maker.js): the window with a producer's figure in it, a key and two knobs
   under it in the page's pen, and what it is in words beside it. The dots burn as the app's do
   (FigureView.swift): low, lit, and hot for the eyes. */
.maker { margin-top: 0; }
.maker .window .dot.dim { fill: var(--accent); fill-opacity: 0.34; }
.maker .window .dot.lit { fill: var(--accent); }
.maker .window .dot.hot { fill: #FFD9B8; }
/* The controls stand under what they turn: the key under the name, the knobs under the figure. */
.figure-controls { display: grid; grid-template-columns: 37% 1fr 1fr; justify-items: center; align-items: end; width: 90.05%; margin-top: 22px; }
.knob { position: relative; display: grid; justify-items: center; gap: 10px; }
.knob.turn { justify-self: start; }
.knob > svg { width: 60px; height: 60px; }
.knob .pointer { stroke-width: 2; stroke-linecap: round; }
.knob input { position: absolute; inset: -6px -8px; width: auto; height: auto; margin: 0; opacity: 0; cursor: ns-resize; touch-action: none; -webkit-appearance: none; appearance: none; }
.knob:has(input:focus-visible) > svg { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 50%; }
.knob.turn .key-link { min-height: 44px; }
.maker .reading > .lede { max-width: 40rem; margin: 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; }
.maker .reading > .count { margin: 28px 0; }
.maker .count th { width: 9.5em; white-space: nowrap; }
.maker .reading > p { max-width: 40rem; margin: 0 0 14px; }
.maker .reading > .key-link { margin-top: 14px; }
.jfig .cell { fill: var(--paper); stroke: var(--silk); stroke-width: 0.7; }
.jfig .cell.ink { stroke: var(--ink); stroke-width: 1; }
.jfig .cell.on, .jfig .inkfill { fill: var(--ink); stroke: var(--ink); stroke-width: 0.7; }
.jfig .hotfill { fill: var(--accent); }
.jfig .hex { font: 600 9px var(--mono); fill: var(--ink); }
.jfig .hexw { font: 600 9px var(--mono); fill: var(--paper); }
.jfig .ax.small { font-size: 9px; letter-spacing: 0.04em; }
.jfig .dash { stroke: var(--silk); stroke-width: 0.7; stroke-dasharray: 3 3; }
/* A word in a drawing wears a halo of paper, so a grid line never runs through it. */
.jfig text { paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.jfig .hexw { stroke: none; }
.jfig + .prose { margin-top: 28px; }
.jtable td { white-space: nowrap; }
.jtable td:last-child, .jtable td small { white-space: normal; }
