:root{font:100%/1.55 system-ui,sans-serif;color:#141925;background:#f7f5ef;--ink:#151927;--muted:#56605f;--lime:#d6f378;--frame:#e0e2db;--paper:#fffdf8}
*{box-sizing:border-box}
body{margin:0}
a{color:inherit;text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
main,header nav,footer{width:min(70rem,calc(100% - 2rem));margin-inline:auto}
header{border-bottom:1px solid var(--frame)}
nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0}
nav a{font-weight:720}
.brand{display:inline-flex;align-items:center;gap:.55rem;text-decoration:none}
.brand b{height:.9rem;width:.9rem;border:3px solid #2e694c;border-radius:50%}
h1,h2,h3,p{margin:0 0 .8rem}
h1,h2{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.045em;line-height:1.04}
h1{font-size:clamp(2.7rem,7vw,5.75rem);max-width:15ch}
h2{font-size:clamp(1.75rem,3.4vw,2.58rem)}
h3{line-height:1.22}
p{max-width:68ch}
.hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:2rem;background:var(--ink);color:white;padding:clamp(1.65rem,5vw,4rem);margin:1.5rem 0 2rem;border-radius:1.25rem;overflow:hidden}
.hero p{max-width:40ch;color:#dce2db;font-size:1.09rem}
.hero .type{color:var(--lime);display:block;font-family:ui-monospace,monospace;font-weight:850;font-size:.9rem;margin-bottom:1.35rem}
.visual{aspect-ratio:1.4;position:relative;display:flex;justify-content:center;align-items:center;gap:5%;background:repeating-linear-gradient(0deg,#adbfa322 0 1px,transparent 1px 14px),#202838;border-radius:1rem;border:1px solid #c6daaa42;overflow:hidden}
.visual span{width:4%;height:var(--size);min-height:12%;background:var(--lime);border-radius:99px;animation:wake .55s ease-out both;animation-delay:var(--delay);transform-origin:center}
.visual.keyboard{gap:3%;padding:12%;align-items:end;background:#202838}
.visual.keyboard span{width:9%;height:var(--size);background:#edf4df;border-radius:3px}
.visual.keyboard span:nth-child(3n){background:#d6f378}
.visual.bands span{border-radius:.2rem;height:24%;width:8%;margin-inline:-2%}
.visual.bands span:nth-child(3n+1){height:58%;background:#ffc27b}
@keyframes wake{from{transform:scaleY(.35);opacity:.5}}
.panel,.notes,.cta,.choices article{border:1px solid var(--frame);border-radius:1rem;background:var(--paper);padding:clamp(1.15rem,3vw,2rem)}
.panel{margin-bottom:1.25rem}
.notes,.cta{margin:1.2rem 0}
.cta{background:#e4f4cb;border-color:#8ba782}
.cta p{color:#29372b}
.controls,.line,.picks{display:flex;flex-wrap:wrap;align-items:end;gap:.7rem}
.controls{margin:1.15rem 0}
label{font-weight:700;display:grid;gap:.3rem}
button,select,a.button{font:inherit;font-weight:730;min-height:2.75rem;border:1px solid #273133;border-radius:.5rem;padding:.55rem .84rem}
button,a.button{background:#1d2834;color:#fff;cursor:pointer;text-decoration:none}
button[aria-pressed=true]{background:#d6f378;color:#141925;border-color:#385127}
button:hover,a.button:hover{filter:brightness(1.16)}
button:disabled{opacity:.55;cursor:default}
select{color:var(--ink);background:#fff}
:focus-visible{outline:3px solid #176f64;outline-offset:3px}
.picks{margin:.65rem 0}
#status{min-height:1.65rem;margin-top:.8rem;color:#27382f;font-weight:700}
.notice{color:var(--muted)}
.counts{display:grid;grid-template-columns:repeat(var(--pulses,7),minmax(0,1fr));gap:.4rem;margin:1rem 0;max-width:42rem}
.counts span{display:grid;place-items:center;border-radius:.4rem;min-height:2.9rem;border:1px solid #bac6b8;background:#edeeeb;font:750 1rem ui-monospace,monospace}
.counts .strong{background:#d6f378;color:#172115;border-color:#6b8762}
.counts .active{outline:3px solid #173b53;outline-offset:1px}
.notes ul{padding-inline-start:1.15rem}
.notes li{margin:.3rem 0}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.choices h2{font-size:1.85rem}
.choices a{font-weight:740}
.choices p{color:#374340}
.choices .swatch{width:2rem;height:.35rem;margin-bottom:.8rem;background:#5d8e6e}
.choices article:nth-child(2n) .swatch{background:#9c6353}
.cta .line{align-items:center}
audio{display:block;width:min(100%,34rem);margin:.75rem 0}
fieldset{border:1px solid #bdcabe;margin:1rem 0;border-radius:.5rem;padding:.75rem}
fieldset label{display:flex;align-items:center;gap:.5rem;min-height:2.25rem}
legend{font-weight:800}
details summary{cursor:pointer;font-weight:720}
footer{padding:1.3rem 0 2rem;color:#43504c;border-top:1px solid var(--frame);margin-top:2rem}
@media(max-width:41rem){.hero,.choices{grid-template-columns:1fr}.visual{height:7rem;aspect-ratio:auto}.hero{gap:1rem}.counts{gap:.25rem}}
@media(prefers-reduced-motion:reduce){*,*::after,*::before{animation:none!important;scroll-behavior:auto!important}}
