@font-face{font-family:Bricolage;font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/bricolage-grotesque-normal-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:Bricolage;font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/bricolage-grotesque-normal-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:"Atkinson Hyperlegible Next";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/atkinson-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:"Atkinson Hyperlegible Next";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/atkinson-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:PlexMono;font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/plexmono-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+201E,U+2212}
@font-face{font-family:PlexMono;font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/plexmono-latin-ext.woff2) format("woff2");unicode-range:U+0100-024F}

/* A night road under instrument lights: cool slate, one amber signal. The test pad is dark while it waits and amber when it says go. */
:root{
  --bg:#e8edf4;--panel:#f6f8fc;--panel-2:#dbe3ee;--ink:#0a1523;--ink-2:#1d2f47;--muted:#34465e;--line:#8fa2b9;--line-soft:#c3cfdd;
  --accent:#093f80;--accent-ink:#ffffff;--focus:#a83e00;--hot-text:#722d00;--me:#b34400;--band:#093f80;
  --pad-idle:#dbe3ee;--pad-idle-ink:#0a1523;--pad-wait:#13223a;--pad-wait-ink:#e8f0fb;--pad-go:#ffc42e;--pad-go-ink:#171100;--pad-early:#4a3b63;--pad-early-ink:#f4eefc;
  --car:#13223a;--road:#c3cfdd;--shadow:0 20px 44px -32px #0a1523a0;
  color-scheme:light;
}
html.dark{
  --bg:#070e1a;--panel:#0f1a2d;--panel-2:#17263f;--ink:#e8f0fb;--ink-2:#c6d4e8;--muted:#a6b8d0;--line:#35496a;--line-soft:#22344f;
  --accent:#8dc2ff;--accent-ink:#06101e;--focus:#ffbd5c;--hot-text:#ffcc66;--me:#ffb73d;--band:#8dc2ff;
  --pad-idle:#17263f;--pad-idle-ink:#e8f0fb;--pad-wait:#040a14;--pad-wait-ink:#d3e1f4;--pad-go:#ffc42e;--pad-go-ink:#171100;--pad-early:#3a2d52;--pad-early-ink:#f1e9fb;
  --car:#c6d4e8;--road:#22344f;--shadow:0 20px 44px -32px #000;
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
svg[hidden]{display:none}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1.0625rem/1.6 "Atkinson Hyperlegible Next",system-ui,sans-serif;text-rendering:optimizeLegibility;font-variant-numeric:lining-nums}
a{color:var(--accent);text-underline-offset:.16em;text-decoration-thickness:.06em}
a:hover{text-decoration-thickness:.12em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:3px}
button,select,input{font:inherit;color:inherit}
button{cursor:pointer}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:var(--bg);padding:.6rem 1rem;z-index:30}
.skip:focus{left:.5rem;top:.5rem}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.top{display:flex;align-items:center;gap:1rem;padding:.7rem clamp(1rem,3vw,2.2rem);border-bottom:1px solid var(--line)}
.brand{font:800 .8rem/1 Bricolage,"Atkinson Hyperlegible Next",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2);margin-right:auto;text-decoration:none}
.lang{font:700 .9rem/1 "Atkinson Hyperlegible Next",sans-serif;color:var(--ink);text-decoration:none;border:1px solid var(--line);border-radius:2rem;padding:.55rem .9rem;min-height:2.5rem;display:inline-flex;align-items:center;background:var(--panel)}
.theme{background:var(--panel);border:1px solid var(--line);border-radius:50%;width:2.5rem;height:2.5rem;display:grid;place-items:center;padding:0}
.theme svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.theme .moon{display:none}html.dark .theme .moon{display:block}html.dark .theme .sun{display:none}

.hero{max-width:1240px;margin:0 auto;padding:clamp(1.1rem,3vw,2.2rem) clamp(1rem,3vw,2.2rem) .4rem}
.kick{font:800 .78rem/1.35 Bricolage,"Atkinson Hyperlegible Next",sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--hot-text);margin:0 0 .6rem}
h1{font:800 clamp(1.9rem,4.6vw,3.6rem)/1.02 Bricolage,"Atkinson Hyperlegible Next",sans-serif;letter-spacing:-.025em;margin:0 0 .9rem;text-wrap:balance;max-width:24ch}
.deck{font-size:clamp(1.05rem,1.4vw,1.2rem);line-height:1.5;color:var(--ink-2);margin:0;max-width:44rem;text-wrap:pretty}
.shared{margin:1rem 0 0;padding:.8rem 1rem;border:1.5px solid var(--hot-text);border-radius:.9rem;max-width:44rem;background:var(--panel)}
.shared p{margin:0;font-weight:700}
.shared .note{font-weight:400}

.tool{max-width:1240px;margin:0 auto;padding:1rem clamp(1rem,3vw,2.2rem) 1.2rem;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1rem,2.4vw,1.8rem);align-items:start}
@media (min-width:62rem){.tool{grid-template-columns:minmax(0,26rem) minmax(0,1fr)}.tool .testcol{position:sticky;top:.8rem}}

/* the test pad: large, calm, one change of state per trial */
.pad{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6rem;width:100%;min-height:15rem;height:clamp(15rem,52svh,30rem);margin:0;padding:1.2rem;border:2px solid var(--muted);border-radius:1.4rem;text-align:center;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;background:var(--pad-idle);color:var(--pad-idle-ink);box-shadow:var(--shadow);outline-offset:4px}
.pad[data-s=wait],.pad[data-s=arm]{background:var(--pad-wait);color:var(--pad-wait-ink)}
.pad[data-s=go]{background:var(--pad-go);color:var(--pad-go-ink)}
.pad[data-s=early]{background:var(--pad-early);color:var(--pad-early-ink)}
.pad.compact{height:auto;min-height:9rem}
.pad .shape{width:4.2rem;height:4.2rem;border-radius:50%;border:.38rem solid currentColor;opacity:.9}
.pad[data-s=go] .shape{background:currentColor;border-radius:1rem;width:5.4rem;height:5.4rem}
.pad[data-s=early] .shape{border-style:dotted}
.pad .big{font:800 clamp(1.6rem,5.4vw,2.3rem)/1.12 Bricolage,"Atkinson Hyperlegible Next",sans-serif;letter-spacing:-.02em}
.pad[data-s=go] .big{font-size:clamp(3.2rem,11vw,5.2rem);line-height:1}
.pad .small{font:600 1.05rem/1.4 "Atkinson Hyperlegible Next",sans-serif;max-width:21rem;text-wrap:balance}
.pad .ms{font:500 clamp(2.4rem,9vw,4.2rem)/1 PlexMono,ui-monospace,monospace;font-variant-numeric:tabular-nums}
.pad:focus-visible{outline:4px solid var(--focus)}
.prog{display:flex;flex-wrap:wrap;gap:.35rem .8rem;align-items:center;margin:.8rem 0 0;font:600 .92rem/1.3 "Atkinson Hyperlegible Next",sans-serif;color:var(--ink-2)}
.dots{display:inline-flex;gap:.3rem}
.dots i{width:.7rem;height:.7rem;border-radius:50%;border:2px solid var(--ink-2);display:block}
.dots i.on{background:var(--ink-2)}
.hint{font:500 .88rem/1.4 "Atkinson Hyperlegible Next",sans-serif;color:var(--muted);margin:.6rem 0 0;max-width:34rem}
.manual{margin:1rem 0 0;padding:.8rem 1rem;border:1px solid var(--line);border-radius:.9rem;background:var(--panel)}
.manual label{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font:700 .95rem/1.3 "Atkinson Hyperlegible Next",sans-serif}
.manual input{width:6.5rem;background:var(--bg);border:2px solid var(--muted);border-radius:.6rem;padding:.35rem .6rem;font:600 1.1rem/1.2 PlexMono,ui-monospace,monospace}
.manual input:focus{border-color:var(--accent);outline:none}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.75rem;padding:.55rem 1.1rem;border-radius:2rem;border:2px solid var(--accent);background:transparent;color:var(--accent);font:800 .98rem/1.1 "Atkinson Hyperlegible Next",sans-serif}
.btn.main{background:var(--accent);color:var(--accent-ink)}
.btn.quiet{border-color:var(--line);color:var(--ink-2)}
.row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:.9rem 0 0}

.out{min-width:0}
.card{background:var(--panel);border:1px solid var(--line);border-radius:1.1rem;padding:clamp(1rem,2vw,1.4rem);box-shadow:var(--shadow);min-width:0;margin:0 0 1rem}
.empty{color:var(--ink-2);margin:0}
.resnum{font:800 clamp(3rem,10vw,5.6rem)/.95 Bricolage,"Atkinson Hyperlegible Next",sans-serif;letter-spacing:-.03em;margin:0}
.resnum small{font:700 1.2rem/1 "Atkinson Hyperlegible Next",sans-serif;letter-spacing:0;color:var(--ink-2)}
.sub{margin:.4rem 0 0;color:var(--ink-2)}
.chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.7rem 0 0;padding:0;list-style:none}
.chips li{font:500 .95rem/1 PlexMono,ui-monospace,monospace;border:1px solid var(--line);border-radius:2rem;padding:.3rem .6rem;background:var(--bg)}
.chips li.med{border-color:var(--me);border-width:2px;font-weight:600}
.fig{margin:.9rem 0 0;max-width:100%;overflow:hidden}
.fig svg{display:block;width:100%;height:auto;max-height:40svh;overflow:visible}
.fig figcaption{font:500 .9rem/1.4 "Atkinson Hyperlegible Next",sans-serif;color:var(--muted);margin:.4rem 0 0}
.age{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:flex-end;margin:1rem 0 0}
.age label{display:block;font:800 .95rem/1.25 "Atkinson Hyperlegible Next",sans-serif}
.age input{display:block;margin:.3rem 0 0;width:7rem;background:var(--bg);border:2px solid var(--muted);border-radius:.7rem;padding:.3rem .7rem;font:600 1.4rem/1.2 PlexMono,ui-monospace,monospace}
.age input:focus{border-color:var(--accent);outline:none}
.age small{flex:1 1 14rem;font:500 .85rem/1.35 "Atkinson Hyperlegible Next",sans-serif;color:var(--muted)}
.verdict{margin:.8rem 0 0;font-size:1.08rem}
.verdict b{font-weight:800}
.notes{margin:.7rem 0 0;padding-left:1.1rem;color:var(--ink-2);font-size:.97rem}
.notes li{margin:.25rem 0}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:1rem 0 0}
.share .shl{font:600 .88rem/1 "Atkinson Hyperlegible Next",sans-serif;color:var(--muted);margin-right:.2rem}
.ic{display:inline-grid;place-items:center;width:2.5rem;height:2.5rem;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);padding:0;text-decoration:none}
@media (pointer:coarse){.ic{width:2.75rem;height:2.75rem}}
.ic:hover,.ic:focus-visible{border-color:var(--accent);color:var(--accent)}
.ic svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ic.txt{width:auto;padding:0 .9rem;border-radius:2rem;font:700 .85rem/1 "Atkinson Hyperlegible Next",sans-serif}
.sr-status{min-height:1.2rem;font:600 .85rem/1.3 "Atkinson Hyperlegible Next",sans-serif;color:var(--ink-2);margin:.4rem 0 0}

.chap{max-width:48rem;margin:0 auto;padding:1.6rem clamp(1rem,3vw,2.2rem) .6rem}
.chap h2{font:800 clamp(1.5rem,3vw,2.1rem)/1.1 Bricolage,"Atkinson Hyperlegible Next",sans-serif;letter-spacing:-.02em;margin:0 0 .7rem;text-wrap:balance}
.chap h3{font:800 1.12rem/1.25 "Atkinson Hyperlegible Next",sans-serif;margin:1.1rem 0 .3rem}
.chap p{margin:.6rem 0}
.chap .src,.src{font-size:.92rem;color:var(--muted)}
.tblwrap{overflow-x:auto;margin:.8rem 0}
.tbl{border-collapse:collapse;width:100%;font-size:.95rem;font-variant-numeric:tabular-nums}
.tbl th,.tbl td{border-bottom:1px solid var(--line-soft);padding:.45rem .6rem;text-align:right;vertical-align:top}
.tbl th:first-child,.tbl td:first-child{text-align:left}
.tbl thead th{font-weight:800;border-bottom:2px solid var(--line)}
.tbl caption{caption-side:top;text-align:left;font-weight:800;padding:0 0 .4rem}
.srcs{padding-left:1.1rem;font-size:.95rem}
.srcs li{margin:.5rem 0}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.7rem;margin:1rem 0}
.stat{border:1px solid var(--line);border-radius:.9rem;padding:.7rem .9rem;background:var(--panel)}
.stat b{display:block;font:800 1.7rem/1.1 Bricolage,"Atkinson Hyperlegible Next",sans-serif}
.stat span{font-size:.92rem;color:var(--ink-2)}
.note{font-size:.92rem;color:var(--muted);margin:.5rem 0}
footer{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;max-width:48rem;margin:1.4rem auto 0;padding:1rem clamp(1rem,3vw,2.2rem) 2.4rem;border-top:1px solid var(--line);font-size:.9rem;color:var(--ink-2)}
footer a{color:var(--ink-2)}

/* the picture: the curve of a life and the car drawn to scale */
.svg-bg{fill:var(--panel)}
.ax{stroke:var(--line);stroke-width:1;fill:none}
.gr{stroke:var(--line-soft);stroke-width:1;fill:none}
.tx{fill:var(--ink-2);font:600 12px "Atkinson Hyperlegible Next",sans-serif}
.tx.m{fill:var(--muted)}
.tx.b{fill:var(--ink);font-weight:800}
.tx.me{fill:var(--hot-text);font-weight:800}
.band{fill:var(--band);fill-opacity:.14}
.curve{stroke:var(--accent);stroke-width:3;fill:none}
.lab{stroke:var(--ink-2);stroke-width:2;stroke-dasharray:6 5;fill:none}
.labpt{fill:var(--panel);stroke:var(--ink-2);stroke-width:2}
.mark{fill:var(--me);stroke:var(--panel);stroke-width:2}
.markbar{stroke:var(--me);stroke-width:3;fill:none}
.markline{stroke:var(--me);stroke-width:2;stroke-dasharray:3 4;fill:none}
.road{fill:var(--road)}
.tick{stroke:var(--line);stroke-width:1}
.car{fill:var(--car)}
.carw{fill:var(--panel);stroke:var(--car);stroke-width:1.5}
.bar-me{fill:var(--me)}
.bar-1{fill:var(--accent);fill-opacity:.55}
.bar-2{fill:var(--accent);fill-opacity:.22;stroke:var(--accent);stroke-width:1.5}
.lg{font:600 12px "Atkinson Hyperlegible Next",sans-serif;fill:var(--ink-2)}
@media (max-width:30rem){.pad{height:clamp(14rem,48svh,24rem)}}
@media print{.pad,.share,.top,.manual{display:none}}
.cardh{font:800 1.35rem/1.15 Bricolage,"Atkinson Hyperlegible Next",sans-serif;letter-spacing:-.015em;margin:0 0 .6rem}
