
:root{color-scheme:light;--ink:#172923;--teal:#005a4e;--rule:#bac9c0;--paper:#fafaf4;--muted:#475951;--warm:#f8cfa4;--deep:#12382e;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:840px;margin:auto;padding-inline:clamp(16px,4vw,40px)}header{padding-block:20px;border-bottom:1px solid var(--rule);display:flex;justify-content:space-between;gap:10px;align-items:center}header span,.kicker,dt{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700}.kicker{color:var(--teal)}a{color:var(--teal);text-underline-offset:3px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ec851b;outline-offset:3px}main{padding-bottom:34px}h1,h2{font-family:Georgia,serif;font-weight:500;line-height:1.08;letter-spacing:-.035em;text-wrap:balance}h1{font-size:clamp(2.45rem,7.3vw,4.8rem);margin:.4rem 0 .7rem}h2{font-size:clamp(1.9rem,5vw,2.8rem);margin:0 0 10px}h3{font-size:1.12rem;margin:.8rem 0 .3rem}p,li,summary{line-height:1.53}section{margin-top:clamp(24px,5vw,48px);scroll-margin-top:14px}p{max-width:65ch;margin:.55rem 0 .9rem}.stage{background:var(--deep);color:#f8fff9;padding:clamp(15px,3vw,28px);border-radius:14px;margin:15px 0}.stage h2{font-family:inherit;font-size:1.22rem;margin:0;letter-spacing:-.015em;font-weight:650}.stage p{margin:.35rem 0 .75rem;color:#e1eee7}.stations,.films{display:grid;grid-template-columns:1fr 1fr;gap:14px}.station{border:1px solid #849d8f;border-radius:8px;padding:8px 12px}.station strong{display:block;margin-bottom:4px}.switch{color:#fff;background:#214c40;border:1px solid #87a696;border-radius:5px;display:flex;align-items:center;justify-content:space-between;padding:5px 9px;margin:6px 0;width:100%;font:inherit;cursor:pointer;min-height:43px}.switch[aria-pressed=true]{background:#c8efd6;color:#12382e}.switch b{font:bold 1.05rem ui-monospace,monospace}.cases{list-style:none;margin:14px 0 10px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.cases li{border-top:4px solid #8bdfb3;background:#214c40;padding:6px 8px;border-radius:2px}.cases li.fail{border-color:var(--warm)}.cases b,.cases span{display:block}.cases span{font-size:.83rem}.cases .status{font-weight:700;color:#ccf0d6}.cases .fail .status{color:#ffdcbb}output{font-weight:650;font-size:1.02rem}details{border-bottom:1px solid var(--rule);padding:.55rem 0 .7rem}summary{cursor:pointer;font-weight:640;color:var(--teal)}.films article{min-width:0}.films p{font-size:.93rem}ol.path{padding-left:1.25rem}.path li{padding:.15rem 0 .42rem}code,pre{font: .95em ui-monospace,SFMono-Regular,Consolas,monospace}pre{overflow-x:auto;background:#e9eee7;border-left:3px solid var(--teal);padding:14px;line-height:1.6}footer{padding-block:22px 40px;border-top:1px solid var(--rule);color:var(--muted)}@media(max-width:580px){header{padding-block:12px}.stations{gap:8px}.station{padding:7px}.films{grid-template-columns:1fr;gap:18px}.cases li{padding:5px}.stage{margin-top:12px}.switch{padding:4px 6px}section:first-child{margin-top:19px}}

.lesson{max-width:760px}.lesson h2{margin-top:1.4em}.lesson h3{margin-top:1.2em}.lesson section{border-top:1px solid var(--rule)}.lesson details{margin:.8rem 0}.lesson li{margin:.35rem 0}.lesson blockquote{margin:1rem 0;padding:0 1rem;border-left:3px solid var(--teal)}

#prediction{border:1px solid #849d8f;border-radius:8px;margin:0 0 12px;padding:8px 12px 12px;min-width:0}
#prediction legend{padding:0 4px;font-weight:700}.guess-options{display:flex;flex-wrap:wrap;gap:5px}
.guess-options label{display:inline-flex;align-items:center;min-height:44px;gap:3px;padding-right:6px;cursor:pointer}
#prediction button{min-height:44px;padding:6px 10px;font:inherit;border-radius:5px;border:1px solid #83ab9a;color:#143b30;background:#e3f4e8;cursor:pointer}
#prediction button:disabled{color:#c5d1ca;background:#354d44;cursor:default}#guess-feedback:empty{display:none}
figure{margin:1.5rem 0}figure img{display:block;max-width:100%;height:auto}
