:root{font-family:Georgia,serif;color:#f0e9d8;background:#101b2b;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 12%,#2a4055,#101b2b 65%)}main{max-width:900px;margin:auto;padding:1.5rem clamp(1rem,4vw,3rem) 3rem}
a{color:#f3dba3;text-underline-offset:4px}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ffde8b;outline-offset:4px}.skip{position:absolute;top:-5rem;left:1rem;padding:.7rem;background:#283d52;z-index:20}.skip:focus{top:1rem}
nav{display:flex;flex-wrap:wrap;gap:1rem;font:600 .85rem/1.6 system-ui,sans-serif;margin-bottom:2.6rem}header{text-align:center}.eyebrow{font:700 .73rem/1.5 system-ui,sans-serif;letter-spacing:.15em;color:#e2c88e}h1{font-weight:normal;font-size:clamp(2.5rem,7vw,4.9rem);line-height:1.1;letter-spacing:-.04em;margin:.4rem 0 1rem}em{font-weight:normal;color:#f1d69d}.lead{font:1rem/1.8 system-ui,sans-serif;color:#cedce1;max-width:38rem;margin:0 auto 2.7rem}
#experiment{background:#1b3044;border:1px solid #7a9aa75c;border-radius:1.4rem;padding:clamp(1rem,3vw,2rem)}h2{font-size:clamp(1.6rem,4vw,2.2rem);font-weight:normal;margin:.2rem 0 .5rem}#experiment>p{font:.95rem/1.7 system-ui,sans-serif;color:#d2dfe2}
.window{height:clamp(240px,43vw,345px);position:relative;overflow:hidden;isolation:isolate;border:10px solid #2a4153;outline:2px solid #a99c7b;border-radius:44% 44% 1rem 1rem/15% 15% 1rem 1rem;background:linear-gradient(#142b47,#355570);box-shadow:0 12px 28px #0006}
.stars{position:absolute;top:11%;left:10%;width:80%;display:flex;justify-content:space-between;color:#ffefc7;font-size:1.3rem;text-shadow:0 0 14px #fff5bb;z-index:1}.stars span{font-size:2rem}
.moon{position:absolute;left:61%;top:17%;width:clamp(60px,10vw,92px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 32% 28%,#fff9e3,#d7c68e);box-shadow:0 0 34px 12px #fff0bc35;transform:translateX(var(--moon,0px));transition:transform .22s ease;z-index:2}
.hill{position:absolute;bottom:-60%;left:-20%;height:95%;width:140%;border-radius:50% 50% 0 0;background:#264c56;transform:translateX(var(--hill,0px));transition:transform .22s ease;z-index:3}
.tree{position:absolute;left:41%;bottom:10%;height:72%;width:26%;transform:translateX(var(--tree,0px));transition:transform .22s ease;z-index:4}.trunk{position:absolute;bottom:0;left:45%;height:70%;width:12%;background:#392b2d;border-radius:12px}.crown{position:absolute;top:3%;left:5%;width:90%;height:63%;background:#214843;border-radius:50%;box-shadow:inset -20px -14px #173a3b}
.ground{position:absolute;bottom:0;left:0;right:0;height:13%;background:#20433d;z-index:5}.near-label,.far-label{position:absolute;bottom:4%;z-index:6;color:#f5e2b2;font:700 .66rem system-ui,sans-serif;letter-spacing:.09em}.near-label{left:5%}.far-label{right:5%}
.controls{margin:1.4rem 0 .5rem;font:1rem/1.6 system-ui,sans-serif}.controls label{font-weight:700}.controls small{font-weight:normal;color:#bbced5}.range-row{display:flex;align-items:center;gap:.7rem;margin:.8rem 0;color:#d1dce0;font-size:.82rem}.range-row span{white-space:nowrap}.range-row input{flex:1;min-width:0;accent-color:#f3dba3;cursor:pointer;height:30px}#readout{min-height:2.5rem;color:#f4dfb0;font-size:.92rem}
button{padding:.7rem 1.1rem;border-radius:99px;border:1px solid #b8a97d;background:#304b5e;color:#fff1d2;cursor:pointer;font:600 .83rem system-ui,sans-serif}button:hover{background:#466478}
#experiment>.note{font-size:.79rem;color:#b9ccd2}.explanation{max-width:700px;margin:3.5rem auto 0}.explanation p{font:1rem/1.85 system-ui,sans-serif;color:#d2dfe2}.explanation .eyebrow{font-size:.73rem;color:#e2c88e}
details{padding:1rem 1.2rem;border:1px solid #7896a266;background:#1b3044;border-radius:.8rem;font:1rem/1.7 system-ui,sans-serif}summary{cursor:pointer;color:#f3dba3;font-weight:700}
.explanation .sources{font-size:.8rem;border-top:1px solid #7896a255;margin-top:2rem;padding-top:1rem}
blockquote{font-size:clamp(1.2rem,3vw,1.7rem);font-style:italic;line-height:1.6;text-align:center;color:#efdbac;margin:3.2rem auto;max-width:640px}
footer{text-align:center;color:#b8cbd1;font:.8rem/1.8 system-ui,sans-serif}
@media(max-width:450px){.window{height:255px}.tree{left:33%;width:38%;height:68%}.near-label,.far-label{font-size:.55rem}}
@media(prefers-reduced-motion:reduce){.moon,.hill,.tree{transition:none}}
