:root { color-scheme: dark; --background: #101e2a; --ink: #edf2f4; --muted: #b6c7d1; --accent: #8bd8cc; --rule: #344a59; --gold: #edc880; }
body { background: radial-gradient(ellipse at 85% 5%, #1b3547 0, transparent 40rem), var(--background); }
.site-header { padding-block: 1.2rem; }
.site-header > a:last-child { font-size: .95rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(200px, 1fr); gap: 2rem; align-items: center; padding: 4.5rem 0 3rem; }
h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
.title-dot { color: var(--gold); }
.hero .lead { font-size: clamp(1.35rem, 3vw, 2rem); max-width: 34rem; }
.intro { max-width: 37rem; color: var(--muted); }
.eyebrow { font-size: .875rem; letter-spacing: .1em; }
.hero-art { width: 100%; max-width: 330px; justify-self: end; }
.chapter-nav { border-block: 1px solid var(--rule); padding-block: .5rem; gap: .4rem 1.5rem; }
.chapter-nav a { color: var(--muted); font-size: .95rem; }
.chapter { padding-block: 4rem; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.chapter-heading { max-width: 46rem; margin-bottom: 2rem; }
h2 { font-size: clamp(2rem, 4.1vw, 3.3rem); margin-bottom: 1.3rem; }
.chapter-heading > p:last-child { color: var(--muted); font-size: 1.1rem; }
.experiment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.story { min-width: 0; }
.story > p { color: var(--muted); }
.story strong { color: var(--ink); }
.insight { font: 1.5rem/1.5 Georgia, serif; color: var(--gold) !important; border-left: 2px solid var(--gold); padding-left: 1rem; margin-block: 2rem; }
.instrument { border: 1px solid #426174; border-radius: .6rem; background-color: #142735; background-image: linear-gradient(#42617416 1px, transparent 1px), linear-gradient(90deg, #42617416 1px, transparent 1px); background-size: 24px 24px; padding: 1.5rem; min-width: 0; }
.instrument-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.5rem; color: var(--gold); font-size: .95rem; }
svg { display: block; width: 100%; height: auto; overflow: visible; }
svg text { fill: var(--muted); font: 16px system-ui, sans-serif; }
.hero-art text { font-size: 13px; letter-spacing: 1.4px; }
.orbit { fill: none; stroke: #7293a8; stroke-width: 1.5; }
.sight { fill: none; stroke: #8bd8cc; stroke-width: 2; }
.earth { fill: #234d63; stroke: #8bd8cc; stroke-width: 1.5; }
.gold-fill, .sun { fill: var(--gold); }
.teal-fill { fill: var(--accent); }
.gold-line { stroke: var(--gold); stroke-width: 2; fill: none; }
.teal-line { stroke: var(--accent); fill: none; }
.shadow-line { stroke: #edf2f4; stroke-width: 5; fill: none; }
.background-stars { stroke: #7893a6; fill: none; stroke-width: 1.5; }
.caption { color: var(--muted); font-size: .9rem; margin: .8rem 0 0; }
.diagram-panel .caption { padding-bottom: .3rem; }
#stick-diagram { margin-top: 2rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
label { display: flex; flex-wrap: wrap; gap: .3rem .8rem; justify-content: space-between; align-items: baseline; font-weight: 600; line-height: 1.5; }
label output { color: var(--gold); font-weight: 400; font-variant-numeric: tabular-nums; }
input, select, button { font: inherit; }
input[type=range] { display: block; width: 100%; min-height: 44px; accent-color: var(--gold); margin: .2rem 0 1.5rem; cursor: pointer; }
button { min-height: 44px; padding: .5rem .85rem; border: 1px solid #7293a8; background: #1b3547; color: var(--ink); border-radius: .3rem; cursor: pointer; }
button:hover { border-color: var(--accent); background: #25465b; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.big-result { display: block; color: var(--gold); font-family: Georgia, serif; font-size: clamp(1.65rem, 2.8vw, 2.2rem); line-height: 1.3; margin: .5rem 0 1rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.equation { color: var(--muted); font-size: .95rem; }
.result-box { border-left: 2px solid var(--gold); padding: .5rem 0 .5rem 1.25rem; margin: 1.5rem 0; }
.result-box > span { color: var(--muted); font-size: .9rem; }
.result-box p { margin-bottom: 0; color: var(--muted); }
.result-box p + p { margin-top: .5rem; }
details { margin-top: 1.2rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
summary { cursor: pointer; color: var(--accent); padding-block: .2rem .65rem; }
details p { color: var(--muted); margin-top: .6rem; }
details p:last-child { margin-bottom: 0; }
.formula { color: var(--gold); padding: .75rem; background: #0b1823; border-radius: .3rem; font: 1.05rem/1.8 ui-monospace, monospace; overflow-wrap: anywhere; }
.metric-note { margin-block: 3rem; border: 1px solid #6a634d; border-radius: .6rem; background: #252a2b; padding: clamp(1.2rem, 4vw, 3rem); }
.metric-note > p { max-width: 52rem; }
.metric-note .eyebrow { color: var(--gold); }
.metric-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-block: 2rem; gap: 0; text-align: center; color: var(--gold); font-size: .9rem; }
.metric-scale > div { grid-column: 1/-1; height: 12px; margin: 1rem 10%; background: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 25%), linear-gradient(var(--gold),var(--gold)) center/100% 1px no-repeat; border-right: 2px solid var(--gold); }
.metric-scale p { grid-column: 1/-1; color: var(--muted); font-size: 1rem; margin: 0; }
.unit-panel { padding: clamp(1.2rem, 4vw, 3rem); margin-block: 3rem; background: #17313e; border: 1px solid #426174; border-radius: .6rem; }
.unit-panel > p { max-width: 48rem; }
.unit-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-top: 2rem; }
.unit-controls > div { flex: 1 1 11rem; min-width: 0; }
.unit-controls input, .unit-controls select { width: 100%; min-height: 46px; margin-top: .4rem; background: #0b1823; color: var(--ink); border: 1px solid #7293a8; border-radius: .3rem; padding: .5rem; }
#conversion-error { color: #ffceaa; margin-top: .75rem; }
.conversions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem 2rem; margin-block: 2rem; }
.conversions > div { border-top: 1px solid var(--rule); padding-top: .75rem; }
dt { color: var(--muted); font-size: .95rem; }
dd { margin: .25rem 0 0; font: clamp(1.25rem, 2.2vw, 1.65rem)/1.4 Georgia, serif; color: var(--gold); overflow-wrap: anywhere; }
.closing, .about-experiment { padding-block: 2rem; }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.closing-grid h3 { margin-bottom: .8rem; }
.closing-grid p, .about-experiment p { color: var(--muted); }
.about-experiment { border-top: 1px solid var(--rule); max-width: 52rem; }
.about-experiment h2 { font-size: 1.65rem; }
.site-footer { border-top: 1px solid var(--rule); font-size: .9rem; }
.notice { padding: 1rem; border: 1px solid var(--gold); }
.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
figure.instrument { margin: 0; }
.instrument img { display: block; width: 100%; height: auto; }
.instrument h3 { margin-bottom: 0; color: var(--gold); }
figcaption { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-top: .75rem; }
.diagram-key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; color: var(--muted); }
.equator-key { color: var(--gold); }
.season-reasoning { margin-top: 2.5rem; }
.phase-strip { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.5rem 1rem; margin-block: 2.5rem 1rem; }
.phase-strip li { display: grid; justify-items: center; align-content: start; gap: .6rem; text-align: center; font-size: .95rem; }
.phase-strip img { width: 80px; height: 80px; }
.eclipse-figure { margin-block: 1rem !important; padding: 1rem; }
.eclipse-note { border-left: 2px solid var(--gold); padding: .5rem 0 .5rem 1.5rem; margin-block: 2.5rem; max-width: 48rem; }
.eclipse-note p { color: var(--muted); }
.lunar-view { align-items: center; }
.lunar-view figure { max-width: 25rem; justify-self: center; width: 100%; }
@media(max-width: 700px) { .season-grid { grid-template-columns: 1fr; } .season-grid figure { max-width: 30rem; justify-self: center; width: 100%; } .phase-strip { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 850px) { .experiment { gap: 2rem; } .instrument { padding: 1rem; } }
@media(max-width: 700px) { .hero { grid-template-columns: 1fr; padding-top: 3rem; gap: 0; } .hero-art { width: 200px; justify-self: center; } .experiment, .closing-grid { grid-template-columns: 1fr; } .chapter { padding-block: 3rem; } .diagram-panel { max-width: 34rem; width: 100%; justify-self: center; } .hero .lead { margin-top: 1rem; } }
@media(max-width: 400px) { .page-width { width: calc(100% - 2rem); } .conversions { grid-template-columns: 1fr; } .metric-scale { font-size: .8rem; } .chapter-nav { gap: .3rem 1rem; } }
@media print { :root { --ink: #111; --muted: #333; --gold: #644719; --accent: #124655; } body, .instrument, .metric-note, .unit-panel { background: white; } .hero-art, .chapter-nav, button, input, select { display: none; } .experiment { display: block; } .chapter, .metric-note, .unit-panel { break-inside: avoid; } }
