:root{color-scheme:light;--ink:#1a1f21;--muted:#536066;--accent:#396885;background:#fff;color:var(--ink)}
*{box-sizing:border-box}
html,body{margin:0;background:white}
body{font-family:var(--sans);min-height:100dvh;display:flex;flex-direction:column}
[hidden]{display:none!important}
a{color:inherit;text-underline-offset:.2em}
button,select,input{font:inherit}
button{color:inherit;cursor:pointer}
:focus-visible{outline:2px solid #386e90;outline-offset:3px}
body main{flex:1;display:grid;align-items:center;min-width:0}
#explore{width:min(87vw,74rem);margin:1.25rem auto}
.explainer{display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.2fr);gap:clamp(2rem,5vw,6.5rem);align-items:center}
.story h1{font-size:clamp(2.65rem,4.4vw,4.75rem);font-weight:400;letter-spacing:-.055em;line-height:1.025;text-wrap:balance;margin:0}
#lead{font-size:clamp(1.03rem,1.35vw,1.24rem);line-height:1.45;margin:1.2em 0 .72em;color:#343d41}
#scope{font-size:clamp(.87rem,1.1vw,1rem);line-height:1.45;color:var(--muted);margin:0;max-width:48ch}
.experiment{margin:0;min-width:0;text-align:center}
#visual{display:grid;place-items:center;min-width:0;width:100%}
#visual svg{display:block;width:100%;height:auto;max-height:min(43dvh,23rem)}
#visual #sphere{display:block;width:min(100%,44dvh,24rem);aspect-ratio:1;touch-action:none;cursor:grab}
#visual #sphere:active{cursor:grabbing}
#controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.5rem .75rem;margin:.85rem 0 .48rem;color:#394750;font-size:.92rem}
#controls button,#controls select{font:inherit;background:transparent;color:inherit;border:0;padding:.38rem .52rem;border-radius:.35rem}
#controls button:is([aria-pressed=true],[aria-selected=true]),#controls button:hover{color:#162c3a;background:#edf2f5}
#controls input{accent-color:#476e87;max-width:90%}#controls label{display:inline-flex;align-items:center;gap:.45em}
#caption{font-size:.91rem;line-height:1.4;color:#46545c;max-width:53ch;margin:0 auto}
#caption output{color:#243d4a;font-variant-numeric:tabular-nums}
.paper-credit{width:min(87vw,74rem);margin:.5rem auto clamp(1rem,3vh,2.2rem);line-height:1.45;color:var(--muted)}
.paper-credit strong{font-weight:400;color:#232c30}.paper-credit span,.paper-credit small{font-size:.78rem}
.paper-credit small{display:block}.paper-credit a{text-decoration:none}.paper-credit a:hover{text-decoration:underline}
#full-text{width:min(calc(100% - 2.5rem),46rem);margin:clamp(2rem,6vh,5rem) auto;font:1.08rem/1.65 var(--sans);overflow-wrap:anywhere;min-width:0}
#full-text h1,#full-text h2,#full-text h3,#full-text h4{font-weight:400;line-height:1.16;letter-spacing:-.026em}
#full-text h1{font-size:clamp(2rem,3.5vw,3.4rem);margin:0 0 .5em}#full-text h2{margin:1.65em 0 .5em;font-size:1.65rem}
#full-text h5{font-size:1rem}#full-text p{margin:.75em 0}#full-text .date{font-size:.9rem;color:var(--muted)}
#full-text table{font-size:.87em;border-collapse:collapse}#full-text th,#full-text td{padding:.2rem .52rem;text-align:left}
#full-text .wide{overflow-x:auto;max-width:100%}#full-text math[display=block]{margin:1em auto}
#full-text pre{white-space:pre-wrap}#full-text:focus{outline:none}
@media(max-width:700px) and (min-height:501px){
 #explore{width:min(90vw,29rem);margin:.65rem auto}.explainer{grid-template-columns:1fr;gap:clamp(.65rem,2.1dvh,1.4rem)}
 .story h1{font-size:clamp(1.88rem,6.8vw,2.7rem)}#lead{font-size:1rem;line-height:1.33;margin:.65em 0 .45em}#scope{font-size:.84rem;line-height:1.32}
 #visual svg{max-height:clamp(8rem,26dvh,15rem)}#visual #sphere{width:min(32dvh,15rem)}
 #controls{font-size:.83rem;gap:.32rem;margin:.45rem 0 .22rem}#caption{font-size:.82rem}.paper-credit{width:90vw;margin:.6rem auto .85rem}
}
@media(max-height:520px){.story h1{font-size:1.95rem}#explore{width:92vw;margin:.5rem auto}.explainer{gap:.85rem}#lead{margin:.55em 0;font-size:.9rem}#scope,#controls,#caption{font-size:.78rem}.paper-credit{margin:.3rem auto}.paper-credit small{font-size:.70rem}}
@media print{#explore,.paper-credit{display:none!important}#full-text[hidden]{display:block!important}#full-text{width:auto;margin:0;font-family:Georgia,serif}}

body.reading header.lab-header{position:sticky;top:0}
#full-text,#full-text [id]{scroll-margin-top:4.75rem}

#more summary{width:fit-content;cursor:pointer;font-size:.8rem;color:var(--muted)}
#more #scope{margin:.5rem 0}
@media(max-width:700px) and (max-height:680px){
 #explore{width:91vw;margin:.4rem auto}.explainer{gap:.4rem}
 .story h1{font-size:1.7rem}#lead{font-size:.94rem;line-height:1.32;margin:.42rem 0}
 #visual svg{max-height:24dvh}#visual #sphere{width:min(27dvh,10rem)}
 #caption{font-size:.78rem;line-height:1.28}
 .paper-credit{margin:.3rem auto .4rem}.paper-credit strong{font-size:.87rem}.paper-credit span{font-size:.73rem}
 #controls{gap:.12rem .25rem;font-size:.77rem}#controls button{padding:.25rem .32rem}
}
@media(max-width:410px){
 body header.reader-head nav{gap:.58rem}
 body header.reader-head nav :is(a,button){white-space:nowrap;font-size:.79rem}
}
