:root{color-scheme:light;--paper:#f8f8f4;--ink:#1d2226;--muted:#4e5557;--border:#d3d6cf;--sage:#deeda0;--gold:#ffd588;--mint:#9ee8d7;--night:#191b2d;--mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;font-family:Inter,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}a{color:inherit}button,input{font:inherit}button{color:inherit;cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #8b69cc;outline-offset:3px}button{touch-action:manipulation}.skip{position:absolute;top:-6rem;background:white;padding:12px;z-index:10}.skip:focus{top:0}header{border-bottom:1px solid var(--border)}.top,main,footer{width:min(1540px,100%);margin:auto;padding-inline:clamp(14px,3.2vw,54px)}.top{display:flex;align-items:center;gap:35px;min-height:58px}.brand{font-weight:800;text-decoration:none;letter-spacing:-.055em;font-size:1.24rem}.brand span{color:#65821a}.crumb{display:flex;align-items:center;gap:12px;font-size:.875rem}.crumb a{text-decoration:none}.crumb a:hover,footer a:hover{text-decoration:underline}.crumb span{color:#5e6666}.sources{display:flex;gap:.4em;align-items:center;margin-left:auto;padding:10px 0 10px 12px;background:none;border:0;font-weight:650;font-size:.9rem}.sources span{font-size:1rem}.intro{padding:clamp(17px,2.4vw,36px) 0 clamp(15px,1.45vw,24px)}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.7rem,5.4vw,5.8rem);line-height:1.04;letter-spacing:-.065em;font-weight:400;margin:0}.intro em{color:#594c79;font-weight:400}.intro p{margin:.55rem 0 0;font-size:clamp(1rem,1.25vw,1.22rem);line-height:1.5;color:var(--muted)}
.stages{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 12px}.stages button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid transparent;border-radius:22px;padding:7px 18px;background:transparent;font-size:.92rem;font-weight:650}.stages button:hover{background:#ebede6}.stages button[aria-current=true]{background:var(--ink);color:white}.stages svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linejoin:round;stroke-linecap:round}
.instrument{display:grid;grid-template-columns:minmax(0,3fr) minmax(265px,1fr);border:1px solid #c3c6bd;border-radius:18px;overflow:hidden;background:#fff}.visual{min-width:0;display:flex;flex-direction:column;background:var(--night);color:#f1f2fa}.plot-head,.plot-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px clamp(15px,2vw,28px);min-height:56px}.plot-head{border-bottom:1px solid #454758;background:#1d1f32}.plot-head h2{font:500 clamp(1.1rem,1.6vw,1.45rem) Georgia,serif;margin:0}.play{background:#303248;color:#fff;border:1px solid #56596e;border-radius:24px;min-height:38px;padding:5px 14px;display:inline-flex;align-items:center;gap:8px;font-size:.875rem}.play:before{content:"";display:inline-block;border-block:5px solid transparent;border-left:8px solid var(--mint)}.play.running:before{height:10px;width:4px;border:0;border-inline:3px solid var(--mint)}.play:hover{background:#40435a}.drawing{position:relative;height:clamp(340px,50vh,735px);flex:auto;overflow:hidden;isolation:isolate}.plot-foot{border-top:1px solid #424457;min-height:44px;font-size:.87rem;line-height:1.4;color:#dbdbea;justify-content:flex-start;gap:18px;flex-wrap:wrap}.key{display:inline-flex;align-items:center;gap:7px}.swatch{width:17px;height:2px;background:var(--mint);display:inline-block}.swatch.gold{background:var(--gold)}.swatch.ring{height:10px;width:10px;border:2px solid var(--gold);background:transparent;border-radius:50%}.swatch.lilac{background:#bd9eed}.swatch.tile{height:11px;width:11px;border-radius:3px;background:#bfa1ed}
.guide{padding:clamp(18px,2.15vw,34px);display:flex;flex-direction:column;justify-content:space-between;gap:18px;background:#fcfcf9}.guide h2{font:400 clamp(1.8rem,2.55vw,3rem)/1.04 Georgia,serif;letter-spacing:-.045em;margin:0 0 12px}.guide p{line-height:1.52;margin:0 0 18px;color:#3e4648;font-size:1rem}.guide .readout{margin:12px 0 0;font-size:.96rem;line-height:1.45}.readout strong{color:#202631}.mini-label{display:block;font-size:.85rem;font-weight:700;margin:12px 0 7px}.options{display:flex;gap:6px;flex-wrap:wrap}.options button,.light,.primary{min-height:42px;border-radius:8px;border:1px solid var(--border);font-size:.9rem;font-weight:650}.options button{padding:6px 10px;background:#f0f1eb;font-variant-numeric:tabular-nums;min-width:42px}.options button[aria-pressed=true]{color:#393150;background:#e7ddf7;border-color:#a48cbf}.guide-actions{display:flex;gap:8px;flex-wrap:wrap}.light,.primary{padding:9px 12px}.light{background:white}.primary{background:var(--sage);border-color:#c4d67e}.primary:hover,.light:hover,.options button:hover{filter:brightness(.96)}.range{width:100%;min-height:30px;accent-color:#6c548e;cursor:pointer}output{font:600 .9rem var(--mono)}.range-label{display:flex;align-items:center;justify-content:space-between}
.field{position:absolute;inset:14px 19px 38px 44px;background:#24263d;border:1px solid #807c96}.field img{display:block;width:100%;height:100%;pointer-events:none}.cell-strip{position:absolute;top:0;bottom:0;left:37.5%;width:25%;background:#e4d9ff0b;border-inline:1px dashed #e1dcff80;pointer-events:none}.midline{position:absolute;inset:0 auto 0 50%;width:2px;transform:translateX(-50%);background:var(--gold);pointer-events:none}.axis{position:absolute;pointer-events:none;color:#dcdeef;font:500 .79rem/1 var(--mono);white-space:nowrap}.xtick{top:calc(100% + 9px);transform:translateX(-50%)}.ytick{right:calc(100% + 7px);transform:translateY(-50%)}.half{color:#ffe5aa}.ax-end{right:0;top:calc(100% + 8px);font-family:inherit;color:#b9bdd1}.zero{position:absolute;left:50%;width:43px;height:39px;transform:translate(-50%,-50%);background:none;border:0;border-radius:50%;display:grid;place-items:center}.zero:before{content:"";border:2px solid #ffe2a0;width:12px;height:12px;background:#503d33;border-radius:100%;box-shadow:0 0 0 3px #252338b3}.zero[aria-pressed=true]:before{background:#fff4c3;box-shadow:0 0 0 6px #ffcf7f52,0 0 0 11px #ffe8b41d}.zero span{position:absolute;left:calc(50% + 22px);border:1px solid #aaa2b8;background:#232338ed;border-radius:5px;font:.85rem var(--mono);color:#f4e8fa;padding:3px 6px;pointer-events:none}.zero[aria-pressed=true] span{color:#ffe6a9;border-color:#ffd588}.probe{position:absolute;pointer-events:none;width:19px;height:19px;border:2px solid white;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 4px #24283e80}.probe[hidden]{display:none}.graphic{display:block;width:100%;height:100%;overflow:visible}.graphic text{font-family:var(--mono);font-size:13px;fill:#d1d2e2}.graphic .annotation{font-family:Inter,Arial,sans-serif;font-size:14px;fill:#f6edff}.prime-board{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse at center,#38334e,#1b1d2f 72%)}.array{display:grid;gap:clamp(3px,.55vw,8px);align-content:center;justify-content:center;width:90%;height:67%}.pebble{background:linear-gradient(155deg,#e3d0fc,#bea0e0 55%,#9875bc);border:1px solid #f3ddff9c;border-radius:15%;box-shadow:inset 0 -3px 0 #5b44725c}.equation{margin:12px 0 0;font:400 clamp(1.6rem,3vw,3rem) Georgia,serif;color:#f7e9ff}.clickable{cursor:crosshair}footer{padding-block:20px 28px;display:flex;justify-content:space-between;font-size:.875rem;color:#4c5552}footer a{text-decoration:none}
dialog{max-width:min(540px,calc(100% - 28px));max-height:82dvh;border:1px solid var(--border);border-radius:16px;background:#fbfbf7;color:var(--ink);padding:22px 26px;box-shadow:0 14px 90px #10112240}dialog::backdrop{background:#1819249c}.dialog-head{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}dialog h2{margin:4px 0 10px;letter-spacing:-.04em;font:400 2rem/1.12 Georgia,serif}dialog h3{margin:1.25em 0 .25em;font-size:1.05rem}dialog p,dialog li{font-size:1rem;line-height:1.55}dialog ul{padding-left:1.3rem}dialog li{margin-bottom:9px}dialog a{color:#4f387a;text-underline-offset:3px}#close{border:1px solid var(--border);border-radius:50%;background:white;min-width:42px;min-height:42px;font-size:1.5rem}.formula{font-family:Georgia,serif;padding:10px 12px;background:#ebe8ef;border-radius:6px;overflow-wrap:anywhere}
@media(min-width:1500px){.drawing{min-height:490px}}
@media(max-width:850px){.instrument{grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr)}.top{gap:20px}.guide{padding:16px}.stages button{padding:7px 12px}.drawing{height:clamp(340px,47vh,500px)}}
@media(max-width:660px){.top{min-height:47px}.brand{font-size:1.1rem}.crumb>span{display:none}.crumb{font-size:.8rem}.top{gap:13px}.sources{font-size:.82rem}.intro{padding:16px 0 10px}h1{font-size:clamp(2.35rem,8.7vw,3.6rem)}.intro p{margin:.4rem 0 0;font-size:1rem;line-height:1.4}.stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin-bottom:8px}.stages button{padding:5px 2px;gap:4px;flex-direction:column;font-size:.8rem;line-height:1.12;white-space:normal;border-radius:8px;min-height:53px}.stages svg{width:16px;height:16px}.instrument{display:flex;flex-direction:column;border-radius:12px}.plot-head{min-height:46px;padding:5px 12px}.play{min-height:35px}.drawing{height:clamp(320px,46svh,550px);flex:auto}.plot-foot{min-height:37px;padding:7px 12px;font-size:.79rem;gap:12px}.guide{padding:18px;gap:15px}.guide h2{font-size:1.85rem;margin-bottom:6px}.guide p{margin-bottom:12px}.guide-actions{gap:7px}.guide .readout{margin-top:8px}.field{inset:12px 12px 34px 33px}.ax-end{display:none}footer{font-size:.8rem}.zero{height:36px}.zero span{font-size:.78rem}}
@media(max-width:360px){.crumb{display:none}.plot-foot{gap:8px}.stages button{font-size:.75rem}}
@media(prefers-reduced-motion:no-preference){.pebble{animation:place .4s backwards;animation-delay:calc(var(--i) * 9ms)}@keyframes place{from{opacity:.2;transform:translateY(8px) scale(.92)}}}

.field:focus-visible,.graphic:focus-visible{outline:3px solid var(--mint);outline-offset:-3px}
.axis-name{position:absolute;font:500 .76rem var(--mono);color:#d5d4e3;pointer-events:none}
.axis-name.height{left:2px;top:3px;background:#232338e8;padding:2px 4px;border-radius:3px}
.axis-name.side{right:0;bottom:-24px}
@media(max-width:660px){.axis-name.side{display:none}.stages button{font-size:.77rem}.stages{column-gap:1px}}

.inspection{position:absolute;left:9px;bottom:8px;pointer-events:none;border:1px solid #a59bb0;border-radius:6px;background:#212238f5;color:#f7f4fb;padding:6px 9px;font-size:.85rem;font-variant-numeric:tabular-nums}
