:root{color-scheme:dark;--night:#13192d;--cream:#fcf3df;--dim:#d7cfcb;--gold:#e4c997;--rule:#d0bb8c48;font:16px/1.5 system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 12% 19%,#34405b 0,transparent 48%),linear-gradient(120deg,#1e263f,#12172b 70%);color:var(--cream);min-height:100vh}
a{color:inherit;text-underline-offset:4px}button{font:inherit;color:inherit;cursor:pointer}button,a,summary,input{touch-action:manipulation}:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.mast,main,footer{width:min(1100px,calc(100% - 64px));margin-inline:auto}
.mast{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:24px 0 18px;border-bottom:1px solid var(--rule)}
.brand,.home{text-decoration:none}.brand{font:clamp(22px,3vw,29px)/1.15 Georgia,serif;letter-spacing:-.04em}.home{font-size:14px;padding:10px 0}.home:hover,footer a:hover{text-decoration:underline;color:white}
.intro{margin:clamp(24px,4vw,52px) 0 28px}.trail,.label,.caption,legend{font-size:11px;font-weight:650;letter-spacing:.17em;text-transform:uppercase;color:var(--gold)}
.trail{margin:0 0 9px}h1,h2{font-family:Georgia,serif;font-weight:400;margin:0;letter-spacing:-.045em}h1{font-size:clamp(39px,5.6vw,74px);line-height:1.04}h1 em{color:#f2dfb9;font-weight:400}
.observatory{display:grid;grid-template-columns:1.08fr 1fr;gap:clamp(22px,6vw,82px);align-items:center}
.window{height:clamp(285px,28vw,380px);position:relative;overflow:hidden;border-radius:180px 180px 8px 8px;background:linear-gradient(#0b152a90,#171c34b0 70%,#14192edc),url('assets/moon-window-garden.webp') center 43%/cover;border:1px solid #d9bd8d9e;isolation:isolate}
.window:before{content:"";position:absolute;inset:7px;border:1px solid #dfc98c60;border-radius:inherit;pointer-events:none}.sky{position:absolute;inset:7% 0 13%;display:grid;place-items:center}.ring{height:89%;aspect-ratio:1;position:relative;display:grid;place-items:center;border-radius:50%;border:1px solid #ddcba87a;box-shadow:0 0 0 8px #1c294329,0 0 0 9px #eddcbd27}.ring:before,.ring:after{content:"";position:absolute;width:5px;height:5px;transform:rotate(45deg);background:var(--gold)}.ring:before{top:-3px}.ring:after{bottom:-3px}
.disc,.mini{background-image:url('assets/moon-phases.webp');background-size:400% 200%;background-position:var(--x) var(--y);background-repeat:no-repeat;border-radius:50%}.disc{width:80%;aspect-ratio:1;background-color:#172039;box-shadow:0 0 35px #d7bd9a33}
.caption{position:absolute;bottom:14px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:12px;font-size:10px;color:#fff1d9;text-shadow:0 1px 4px #02040a}.caption i{width:24px;height:1px;background:currentColor}
.label{margin:0 0 8px;font-size:10px}.notes h2{font-size:clamp(34px,4vw,53px);line-height:1.07}.notes p:not(.label){color:var(--dim);font-size:16px;line-height:1.65;max-width:45ch}.stepper{display:flex;gap:10px;margin:20px 0}.stepper button{padding:9px 17px;min-height:44px;min-width:46px;border:1px solid #dfc89780;border-radius:30px;background:transparent}.stepper #next{background:#ecd9b6;color:#292239;border-color:transparent}.stepper #next span{margin-left:12px}.stepper button:hover{box-shadow:0 0 0 2px #ddc59977}.notes details{border-top:1px solid var(--rule);padding-top:11px}.notes summary{cursor:pointer;min-height:40px;align-content:center;color:var(--gold);font-size:14px}
.cycle{margin:30px 0 27px;border:0;border-top:1px solid var(--rule);padding:12px 0 0;min-width:0}.cycle legend{padding:0 15px 0 0}.cycle>div{display:grid;grid-template-columns:repeat(8,1fr);gap:4px}.choice{position:relative;cursor:pointer;min-width:0}.choice input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.option{font-size:12px;color:var(--dim);text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:80px;padding:7px 3px;border:1px solid transparent;border-radius:9px}.mini{width:30px;aspect-ratio:1;box-shadow:0 0 0 1px #f2dfa84d}.choice input:checked+.option{background:#d4bd9420;border-color:#d8bc8899;color:#fff3da}.choice input:focus-visible+.option{outline:2px solid var(--cream);outline-offset:1px}.choice:hover .option{background:#c5ac8d14}
footer{padding:18px 0 28px;border-top:1px solid var(--rule);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--dim)}
@media(max-width:700px){.mast,main,footer{width:calc(100% - 36px);max-width:540px}.mast{padding:12px 0 9px}.intro{margin:22px 0 18px}h1{max-width:16ch}.observatory{grid-template-columns:1fr;gap:20px}.window{height:clamp(195px,50vw,265px);border-radius:110px 110px 7px 7px}.notes p:not(.label){margin:8px 0 12px;font-size:15px}.stepper{margin:13px 0}.cycle{margin-top:17px}.cycle>div{grid-template-columns:repeat(4,1fr)}.option{min-height:68px;font-size:11px}.home{font-size:13px}.notes h2{font-size:36px}}
