/* GX Board website.
   Layout: the site looks like the thing it sells: a dark rack. Wide screenshots carry the colour, the
   page around them stays quiet. Labels are white tape with black letters, numbers are red LED
   readouts, buttons are the key caps of the app. */
:root {
  color-scheme: dark;
  --bg: #0f1012; --shelf: #15161a; --panel: #1d1f23; --panel-2: #26292f; --line: #33363d;
  --fg: #ecebe6; --muted: #a6a49c; --accent: #f0933a; --accent-ink: #1a1206; --accent-deep: #7a4410;
  --readout: #160706; --lamp: #ff3b2f; --ok: #5fd08c; --ok-soft: #14301f; --warn: #f2b453; --warn-soft: #3a2b12;
  --tape: #f4f1e6; --tape-ink: #161616; --key: #2f333a; --key-ink: #eef1f4; --key-edge: #08090b; --screen: #0a1729; --screen-ink: #9fd6ff;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1320px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #e9ebee; --shelf: #dde0e5; --panel: #f7f8f9; --panel-2: #eceef1; --line: #bdc3cb;
    --fg: #14161a; --muted: #555b63; --accent: #b4520c; --accent-ink: #ffffff; --accent-deep: #6e3206;
    --readout: #1c0a08; --lamp: #ff4a3d; --ok: #1c7343; --ok-soft: #d9efe2; --warn: #8a5200; --warn-soft: #fbedd6;
    --tape: #17181b; --tape-ink: #f4f1e6; --key: #2b3038; --key-ink: #eef1f4; --key-edge: #0f1216; --screen: #0f2036; --screen-ink: #9fd6ff;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e9ebee; --shelf: #dde0e5; --panel: #f7f8f9; --panel-2: #eceef1; --line: #bdc3cb;
  --fg: #14161a; --muted: #555b63; --accent: #b4520c; --accent-ink: #ffffff; --accent-deep: #6e3206;
  --readout: #1c0a08; --lamp: #ff4a3d; --ok: #1c7343; --ok-soft: #d9efe2; --warn: #8a5200; --warn-soft: #fbedd6;
  --tape: #17181b; --tape-ink: #f4f1e6; --key: #2b3038; --key-ink: #eef1f4; --key-edge: #0f1216; --screen: #0f2036; --screen-ink: #9fd6ff;
}

* { box-sizing: border-box }
html { scroll-padding-top: calc(74px + env(safe-area-inset-top, 0px)) }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.58 var(--body); -webkit-text-size-adjust: 100% }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg) }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0 }
ul, ol { padding: 0 }
a { color: inherit }
img { max-width: 100%; height: auto }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }

/* ---------- type ---------- */
h1, h2, h3, .dsp { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1; text-wrap: balance }
h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); letter-spacing: .015em }
h2 { font-size: clamp(1.9rem, 4vw, 3rem) }
h3 { font-size: 1.35rem; letter-spacing: .06em; line-height: 1.1 }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 62ch; line-height: 1.5 }
.muted { color: var(--muted) }
.prose { display: grid; gap: 14px; max-width: 68ch }
.prose ul, .list { display: grid; gap: 8px; padding-left: 22px }
/* the white label of a device: an eyebrow above a heading */
.tape { display: inline-block; font: 700 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; background: var(--tape); color: var(--tape-ink); padding: 6px 9px 5px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .4) }
/* a red LED readout */
.led { display: inline-block; font: 22px/1 var(--mono); color: var(--lamp); background: var(--readout); padding: 7px 10px 6px; border-radius: 4px; min-width: 2.4ch; text-align: right; font-variant-numeric: tabular-nums; text-shadow: 0 0 7px color-mix(in srgb, var(--lamp) 60%, transparent) }

/* ---------- buttons: the key caps of the app ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  color: #2c2412; border: 0; border-radius: 5px; padding: 13px 20px 12px; background: linear-gradient(#fff8d8, #efdf9e 30%, #cdbd7c); box-shadow: 0 4px 0 #7a6e41, 0 7px 10px rgba(0, 0, 0, .45) }
.btn:hover { filter: brightness(1.06) }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7a6e41 }
.btn.go { color: #1a1206; background: linear-gradient(#ffe2b8, #f0933a 30%, #c9731f); box-shadow: 0 4px 0 #7a4410, 0 7px 10px rgba(0, 0, 0, .45) }
.btn.go:active { box-shadow: 0 1px 0 #7a4410 }
.btn[aria-disabled="true"] { filter: grayscale(1) brightness(.75); cursor: default; pointer-events: none }
.btn.small { font-size: 15px; padding: 9px 13px 8px }
.textlink { color: var(--accent); text-underline-offset: 3px }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 8px 22px; padding-block: 11px; flex-wrap: wrap }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 23px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap }
.logo i { width: 11px; height: 11px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 9px 2px color-mix(in srgb, var(--lamp) 70%, transparent) }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: auto; align-items: center }
.nav a { text-decoration: none; font: 600 16px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 9px 10px 8px; border-radius: 4px; color: var(--muted) }
.nav a:hover { color: var(--fg); background: var(--panel) }
.nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent) }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; margin-left: 6px }
.lang a { text-decoration: none; font: 14px/1 var(--mono); padding: 8px 9px 7px; color: var(--muted) }
.lang a[aria-current="true"] { background: var(--tape); color: var(--tape-ink) }

/* ---------- sections ---------- */
section.band { padding-block: clamp(46px, 7vw, 92px) }
section.band + section.band { border-top: 1px solid var(--line) }
.band.dark { background: var(--shelf) }
.head { display: grid; gap: 14px; margin-bottom: 30px; justify-items: start }
.hero { padding-block: clamp(34px, 5vw, 64px) 0 }
.hero .wrap { display: grid; gap: 22px }
.hero .cta { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; margin-top: 6px }
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px }
.facts div { display: flex; align-items: center; gap: 10px }
.facts dt { order: 2; font: 600 15px/1.1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
/* the screenshot of the whole window, in the bezel of a wide display */
.monitor { margin-top: 18px; padding: 10px; border-radius: 12px; background: linear-gradient(#2a2c31, #17181b); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(0, 0, 0, .9) }
.monitor img { display: block; width: 100%; border-radius: 5px }
.monitor + figcaption, figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted); max-width: 72ch }

/* three or four short points next to each other */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px 34px }
.point { display: grid; gap: 8px; align-content: start }
.point p { color: var(--muted) }
.point h3 { display: flex; align-items: baseline; gap: 10px }
.point h3::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: translateY(-2px) }

/* a feature: words on one side, a picture on the other */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 26px 48px; align-items: center }
.feat + .feat { margin-top: clamp(40px, 6vw, 80px) }
.feat.flip .words { order: 2 }
.feat .words { display: grid; gap: 14px; align-content: center; justify-items: start; min-width: 0 }
.feat .words p { max-width: 54ch }
.feat .words ul { display: grid; gap: 7px; padding-left: 20px; color: var(--muted) }
.pic { display: block; padding: 0; border: 0; background: var(--shelf); border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -26px rgba(0, 0, 0, .8); overflow: hidden; min-width: 0; cursor: zoom-in; width: 100% }
.pic img { display: block; width: 100% }
.pic.tall { max-width: 360px; justify-self: center }
.pic.tall img { max-height: 640px; object-fit: cover; object-position: top }
.pic.mid { max-width: 540px; justify-self: center }
.hero .wrap > .tape, .fxhead .wrap > .tape, .head > .tape { justify-self: start }
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px }
.screens figure { display: grid; gap: 6px }
.screens img { display: block; width: 100%; border-radius: 6px }
.screens figcaption { margin: 0; font: 600 13.5px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr } .feat.flip .words { order: 0 } }

/* what it does not do: said as plainly as what it does */
.plain-box { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 22px 24px; display: grid; gap: 12px }
.plain-box ul { display: grid; gap: 8px; padding-left: 20px }
.note { border-left: 3px solid var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: 0 8px 8px 0 }
.tip { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); padding: 10px 14px; border-radius: 0 8px 8px 0 }
.placeholder { border: 2px dashed var(--warn); border-radius: 8px; padding: 12px 16px; color: var(--warn); font: 600 15px/1.35 var(--body); background: var(--warn-soft) }

/* ---------- kinds of effects (home) and the catalogue ---------- */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px }
.kind { display: grid; gap: 6px; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel) }
.kind:hover { border-color: var(--accent) }
.kind b { font: 700 1.25rem/1.05 var(--display); letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; align-items: baseline }
.kind b span { font: 15px/1 var(--mono); color: var(--lamp) }
.kind small { color: var(--muted); font-size: .93rem; line-height: 1.35 }

.bar { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 5; background: color-mix(in srgb, var(--bg) 94%, transparent); border-block: 1px solid var(--line); backdrop-filter: blur(8px) }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 10px }
.find { flex: 1 1 260px; min-width: 0; max-width: 420px; font: 500 16px/1.2 var(--body); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px }
.find::placeholder { color: var(--muted) }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); cursor: pointer; white-space: nowrap }
.check input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0 }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100% }
.chips a { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px 7px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel) }
.chips a:hover { border-color: var(--accent); color: var(--accent) }
.chips a span { font: 13px/1 var(--mono); color: var(--muted); letter-spacing: 0 }
.cat { padding-block: 38px 8px; scroll-margin-top: 150px }
.cat h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: .05em }
.cat h2 span { font: 16px/1 var(--mono); color: var(--muted); letter-spacing: 0 }
.cat .about { max-width: 68ch; margin-top: 8px; color: var(--muted) }
.shelf { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 22px; margin-top: 20px; padding: 22px; background: var(--shelf); border: 1px solid var(--line); border-radius: 10px }
.card { --scale: .5; width: calc(var(--w) * var(--scale) * 1px); max-width: 100%; min-width: 0; text-decoration: none; display: block }
.card img { display: block; width: 100%; border-radius: 5px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .75) }
.card:hover img { box-shadow: 0 0 0 2px var(--accent), 0 10px 22px -12px rgba(0, 0, 0, .75) }
.card h3 { margin-top: 11px; font-size: 1.18rem; letter-spacing: .08em; overflow-wrap: anywhere }
.card .sub { margin-top: 3px; font-size: .98rem; line-height: 1.3 }
.card .meta { margin-top: 4px; font: 13.5px/1.3 var(--mono); color: var(--muted) }
.tag { font: 12px/1 var(--mono); letter-spacing: .06em; color: var(--accent-ink); background: var(--accent); padding: 3px 6px 2px; border-radius: 3px; vertical-align: 2px; margin-left: 4px; text-transform: uppercase }
.none { padding-block: 40px; color: var(--muted) }
@media (max-width: 760px) { .card { --scale: .42 } .shelf { padding: 14px; gap: 22px 14px } body { font-size: 16px } }

/* ---------- one effect ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font: 600 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.crumbs a { text-decoration: none }
.crumbs a:hover { color: var(--accent) }
.fxhead { padding-block: 30px 26px }
.fxhead .wrap { display: grid; gap: 16px }
.fxhead h1 { font-size: clamp(2.3rem, 6vw, 4.2rem) }
.fxshot { margin-top: 6px; background: var(--shelf); border: 1px solid var(--line); border-radius: 10px; padding: clamp(12px, 2vw, 26px); display: grid; justify-items: center }
.fxshot .pic { width: auto; max-width: 100%; box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .8) }
.fxshot img { width: calc(var(--w) * 1px * .62); max-width: 100% }
.fxgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 34px 54px; align-items: start; padding-block: 34px 10px }
@media (max-width: 960px) { .fxgrid { grid-template-columns: 1fr } }
.block { display: grid; gap: 12px; align-content: start }
.block + .block { margin-top: 30px }
.block h2 { font-size: 1.55rem; letter-spacing: .08em }
.block ul { display: grid; gap: 9px; padding-left: 20px }
.side { display: grid; gap: 18px; align-content: start }
.sidebox { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 18px 20px; display: grid; gap: 10px }
.sidebox h2 { font-size: 1.15rem; letter-spacing: .12em }
.sidebox ul { display: grid; gap: 8px; padding-left: 18px; font-size: .97rem }
.sidebox img { display: block; width: 100%; border-radius: 6px }
.recipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px }
.recipe { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 14px 16px; display: grid; gap: 8px; align-content: start }
.recipe h3 { font-size: 1.1rem }
.recipe .set { font: 14.5px/1.5 var(--mono); color: var(--lamp); background: var(--readout); border-radius: 5px; padding: 8px 10px; overflow-wrap: anywhere }
.recipe p { font-size: .96rem; color: var(--muted) }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel) }
table { border-collapse: collapse; width: 100%; font-size: .97rem }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top }
th { font: 600 14px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; background: var(--panel-2); color: var(--muted) }
tr:last-child td { border-bottom: 0 }
td.k { font: 14.5px/1.4 var(--mono); white-space: nowrap }
td.r { font: 13.5px/1.45 var(--mono); color: var(--muted); min-width: 14ch; max-width: 34ch }
/* on a phone a setting is a small card: its name and range on one line, the explanation below */
@media (max-width: 720px) {
  .tw.params thead { display: none }
  .tw.params table, .tw.params tbody { display: block }
  .tw.params tr { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 2px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line) }
  .tw.params tr:last-child { border-bottom: 0 }
  .tw.params td { padding: 0; border: 0 }
  .tw.params td.k { white-space: normal }
  .tw.params td.r { max-width: none; min-width: 0; text-align: right }
  .tw.params td:last-child { grid-column: 1 / -1; margin-top: 5px }
}
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 30px 10px }
.pager a { text-decoration: none; display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); min-width: min(100%, 220px) }
.pager a:hover { border-color: var(--accent) }
.pager small { font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.pager b { font: 700 1.15rem/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase }
.pager .next { text-align: right; margin-left: auto }
.fxhead h1 .tag { font-size: 15px; padding: 5px 8px 4px; vertical-align: middle; margin-left: 10px }
.fxmore { display: grid; gap: 38px; padding-block: 30px 10px }
.fxmore .block + .block { margin-top: 0 }
.fxmore .bron { margin-top: 4px; max-width: 90ch }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 20px 24px }
.cta-row h2 { font-size: 1.5rem; letter-spacing: .06em; margin-bottom: 6px }
.cta-row p { color: var(--muted); max-width: 60ch }
.related { display: flex; flex-wrap: wrap; gap: 6px }
.related a { text-decoration: none; font: 600 14.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px 7px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel) }
.related a:hover { border-color: var(--accent); color: var(--accent) }

/* ---------- download, questions ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 30px 54px; align-items: start }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr } }
.getbox { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 26px; display: grid; gap: 16px; justify-items: start }
.getbox dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .98rem }
.getbox dt { font: 600 14px/1.5 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
ol.steps { list-style: none; counter-reset: st; display: grid; gap: 12px }
ol.steps > li { counter-increment: st; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px }
ol.steps > li::before { content: counter(st); grid-row: 1 / span 3; width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); font: 600 14px var(--mono); display: grid; place-items: center; margin-top: 1px }
ol.steps > li > * { grid-column: 2 }
details.q { border: 1px solid var(--line); border-radius: 8px; background: var(--panel) }
details.q + details.q { margin-top: 10px }
details.q summary { cursor: pointer; padding: 14px 18px; font: 700 1.15rem/1.25 var(--display); letter-spacing: .05em; text-transform: uppercase; list-style-position: outside }
details.q .a { padding: 0 18px 16px; display: grid; gap: 10px; max-width: 76ch }
details.q[open] summary { color: var(--accent) }

/* ---------- the workbook (tutorial) ---------- */
.book { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 44px }
@media (min-width: 1100px) { .book { grid-template-columns: 290px minmax(0, 1fr) } }
.toc { display: none }
@media (min-width: 1100px) { .toc { display: block; position: sticky; top: calc(70px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 90px); overflow-y: auto; padding-block: 34px 30px } }
.toc h2 { font-size: 15px; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px }
.toc ol { list-style: none; display: grid; gap: 2px }
.toc a { display: grid; grid-template-columns: 28px 1fr auto; gap: 6px; align-items: baseline; text-decoration: none; padding: 7px 8px; border-radius: 7px; font-size: 15.5px; line-height: 1.3 }
.toc a:hover { background: var(--panel) }
.toc .no { font: 12.5px var(--mono); color: var(--muted) }
.toc .pg { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums }
.toc .pg.done { color: var(--ok); font-weight: 700 }
.toc .reset { margin-top: 16px; width: 100%; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 8px; font: 600 14px var(--body); cursor: pointer }
.toc .reset.armed { border-color: var(--warn); color: var(--warn) }
/* the same list for a narrow window, folded away until asked for */
.toc-m { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); margin-top: 22px }
.toc-m summary { cursor: pointer; padding: 12px 16px; font: 700 1.05rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase }
.toc-m ol { list-style: none; display: grid; gap: 2px; padding: 0 10px 12px }
.toc-m a { display: grid; grid-template-columns: 30px 1fr; gap: 6px; align-items: baseline; text-decoration: none; padding: 7px 8px; border-radius: 6px; font-size: 15.5px; line-height: 1.3 }
.toc-m a:hover { background: var(--panel-2) }
.toc-m .no { font: 12.5px var(--mono); color: var(--muted) }
@media (min-width: 1100px) { .toc-m { display: none } }
.meter { display: flex; align-items: center; gap: 10px; margin-top: 4px }
.meter .track { flex: 1; height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; max-width: 260px }
.meter .fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .25s }
.meter .txt { font: 14px var(--mono); color: var(--muted); white-space: nowrap }
.work { min-width: 0; max-width: 780px; padding-block: 30px 60px }
.work h1 { font-size: clamp(2.3rem, 6vw, 3.6rem) }
.work .hero { display: grid; gap: 18px; margin-bottom: 30px; padding: 0 }
.work .lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch }
.work section.ch { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px }
.work .ch-head { display: grid; gap: 6px }
.work .ch-num { font: 13px var(--mono); color: var(--accent); letter-spacing: .08em; text-transform: uppercase }
.work .ch h2 { font-size: clamp(1.7rem, 4.4vw, 2.3rem) }
.work .ch h3, .work > .prose h3 { font-size: 1.4rem; margin-top: 14px }
.work .ch h4 { font: 700 1.1rem var(--display); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px }
.work ul.plain { padding-left: 20px; display: grid; gap: 6px }
.work .res { background: var(--ok-soft); border-radius: 7px; padding: 6px 10px; margin-top: 6px; font-size: .96rem }
.work .res b { color: var(--ok); margin-right: 4px }
.hw { display: inline-block; font: 600 .78em/1.2 var(--mono); letter-spacing: .03em; background: var(--key); color: var(--key-ink); border-radius: 5px; padding: .18em .5em .2em; box-shadow: 0 2px 0 var(--key-edge); white-space: nowrap; vertical-align: .06em }
.kn { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; font: 600 .74em var(--mono); border-radius: 50%; background: var(--key); color: var(--key-ink); box-shadow: 0 2px 0 var(--key-edge); vertical-align: .08em }
.ts { display: inline-block; font: 600 .76em/1.2 var(--mono); background: var(--screen); color: var(--screen-ink); border-radius: 999px; padding: .2em .62em; white-space: nowrap; vertical-align: .06em }
.fs { display: inline-block; font: 700 .76em/1.2 var(--mono); border: 2px solid var(--muted); border-radius: 999px; padding: .12em .55em; white-space: nowrap; vertical-align: .04em }
code.par { font: 500 .86em var(--mono); background: var(--panel-2); border-radius: 4px; padding: .08em .35em; white-space: nowrap }
.nn { display: inline-block; font: 700 .72em/1.3 var(--body); text-transform: uppercase; letter-spacing: .06em; background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); border-radius: 5px; padding: .1em .45em; vertical-align: .1em; white-space: nowrap }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .92rem }
.legend span.item { display: inline-flex; gap: 8px; align-items: center }
.bron { font-size: .82rem; color: var(--muted) }
.bron a { color: var(--muted) }
.work td.k { white-space: nowrap }
.ok { color: var(--ok); font-weight: 700 }
.diag { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px }
.diag svg { display: block; width: 100%; height: auto; color: var(--fg) }
.diag.wide svg { min-width: 720px }
.diag svg text { font-family: var(--body); fill: currentColor }
.diag svg .mono { font-family: var(--mono) }
.diag svg .muted { fill: var(--muted) }
.diag svg .acc { fill: var(--accent) }
.diag svg .box { fill: var(--panel-2); stroke: currentColor; stroke-width: 1.3 }
.diag svg .boxacc { fill: color-mix(in srgb, var(--accent) 18%, var(--panel)); stroke: var(--accent); stroke-width: 1.6 }
.diag svg .ln { stroke: currentColor; stroke-width: 1.6; fill: none }
.diag svg .lnacc { stroke: var(--accent); stroke-width: 2.2; fill: none }
.diag svg .lnmut { stroke: var(--muted); stroke-width: 1.4; fill: none; stroke-dasharray: 4 4 }
.diag svg .jack { fill: var(--panel); stroke: currentColor; stroke-width: 1.6 }
.diag svg .jackacc { fill: color-mix(in srgb, var(--accent) 18%, var(--panel)); stroke: var(--accent); stroke-width: 2.2 }
.diag svg .panel { fill: var(--panel-2); stroke: currentColor; stroke-width: 1.2 }
.checkbox { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 8px }
.checkbox h3 { font-size: 1.1rem; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin: 0 }
.checkbox h3 .cnt { font: 500 14px var(--mono); color: var(--muted); letter-spacing: 0 }
.checkbox ul { list-style: none; display: grid; gap: 4px }
.checkbox label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; padding: 5px 4px; border-radius: 6px }
.checkbox label:hover { background: var(--panel-2) }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ok) }
.checkbox input:checked + span { color: var(--muted); text-decoration: line-through }
.sources ol { list-style: none; display: grid; gap: 14px }
.sources li { font-size: .9rem; line-height: 1.45 }
.sources li .id { font: 600 12.5px var(--mono); color: var(--muted); display: block }
.work footer { margin-top: 40px; font-size: .85rem; color: var(--muted) }
.work a { color: var(--accent) }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--shelf); padding-block: 40px 44px; margin-top: 30px; font-size: .95rem; color: var(--muted) }
.foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px 40px }
.foot h2 { font-size: 15px; letter-spacing: .16em; color: var(--fg); margin-bottom: 10px }
.foot ul { list-style: none; display: grid; gap: 7px }
.foot a { text-decoration: none }
.foot a:hover { color: var(--accent) }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; max-width: 90ch }
.foot .legal.lic { border-top: 0; padding-top: 0; margin-top: -14px; font-size: .85rem; max-width: 110ch }
.foot .legal.lic a { text-decoration: underline; text-underline-offset: 2px }

/* ---------- a picture up close ---------- */
dialog.zoom { width: min(96vw, 2460px); max-height: 94vh; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg) }
dialog.zoom::backdrop { background: rgba(0, 0, 0, .74) }
.zhead { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line) }
.zhead b { font: 700 1.2rem/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; min-width: 0 }
.zhead button { margin-left: auto; flex: none }
.zbody { overflow: auto; max-height: calc(94vh - 62px); padding: 16px; background: var(--shelf) }
.zbody img { display: block; max-width: none }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important } }
