:root {
  --bg: #f4f2fb; --surface: rgba(255, 255, 255, .82); --raised: #e9e5f6; --line: rgba(40, 20, 90, .12); --ink: #120b2c; --muted: #544c73; --faint: #7a7396;
  --accent: #7c3aed; --grad: linear-gradient(100deg, #7c3aed, #db2777 55%, #ea580c); --blob-a: rgba(124, 58, 237, .2); --blob-b: rgba(219, 39, 119, .13); --land: 90, 60, 170; --map: #e6e1f5; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #05030f; --surface: rgba(18, 13, 38, .74); --raised: #221a42; --line: rgba(255, 255, 255, .09); --ink: #f4f1ff; --muted: #aca4cb; --faint: #837ba5; --accent: #c4b5fd; --grad: linear-gradient(100deg, #c4b5fd, #f9a8d4 55%, #fdba74); --blob-a: rgba(124, 58, 237, .24); --blob-b: rgba(219, 39, 119, .13); --land: 167, 139, 250; --map: #080517; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #05030f; --surface: rgba(18, 13, 38, .74); --raised: #221a42; --line: rgba(255, 255, 255, .09); --ink: #f4f1ff; --muted: #aca4cb; --faint: #837ba5; --accent: #c4b5fd; --grad: linear-gradient(100deg, #c4b5fd, #f9a8d4 55%, #fdba74); --blob-a: rgba(124, 58, 237, .24); --blob-b: rgba(219, 39, 119, .13); --land: 167, 139, 250; --map: #080517; color-scheme: dark; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60vmax 40vmax at 6% 30%, var(--blob-a), transparent 70%), radial-gradient(54vmax 36vmax at 98% 60%, var(--blob-b), transparent 70%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 max(16px, calc(50% - 620px)); background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; margin-right: auto; }
.brand img { border-radius: 8px; }
.icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.icon:hover { border-color: var(--accent); }
.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
.hero { position: relative; min-height: min(68vh, 620px); display: flex; align-items: flex-end; color: #fff; background: #0b0620 center / cover no-repeat; animation: settle 2.4s ease-out; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 3, 15, .25) 30%, rgba(5, 3, 15, .92)); }
@keyframes settle { from { background-size: 112%; } }
.hero-in { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 16px; }
.eyebrow { font-weight: 700; color: #ddd6fe; }
h1 { max-width: 22ch; font-size: clamp(34px, 6vw, 68px); line-height: 1.02; letter-spacing: -.04em; font-weight: 850; text-wrap: balance; }
.pic-credit { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.countdown { margin-top: 16px; }
.countdown small { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 650; color: #fff; }
.clock { display: flex; gap: 8px; }
.clock span { min-width: 74px; padding: 7px 8px 6px; text-align: center; font-size: 11.5px; color: rgba(255, 255, 255, .8); border-radius: 13px; background: rgba(20, 12, 50, .55); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.clock b { display: block; font-size: 30px; line-height: 1.1; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.page { max-width: 1240px; margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
.panel { min-width: 0; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.note { font-size: 12.5px; color: var(--faint); }
.section { font-size: 23px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
#iss-map { display: block; width: 100%; aspect-ratio: 2.2 / 1; min-height: 210px; border-radius: 14px; background: var(--map); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.stat { padding: 8px 12px; border-radius: 12px; background: var(--raised); }
.stat small { display: block; font-size: 12px; color: var(--muted); }
.stat b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#orrery { display: block; width: 100%; aspect-ratio: 1.45 / 1; }
.distances { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 16px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.distances div { display: flex; justify-content: space-between; gap: 8px; }
.distances b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sun-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.sun-img { width: 100%; border-radius: 50%; display: block; box-shadow: 0 0 44px -6px #fb923c; animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 66px 2px #f59e0b; } }
.sun-stats { display: grid; gap: 7px; }
.xray { display: flex; align-items: flex-end; gap: 1px; height: 52px; margin: 12px 0 6px; }
.xray i { flex: 1; min-height: 1px; border-radius: 1px 1px 0 0; background: linear-gradient(180deg, #f59e0b, #db2777); }
.launches { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.launch { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.launch:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px var(--accent); }
.launch img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--raised); }
.launch div { padding: 11px 13px 13px; }
.launch h3 { font-size: 15.5px; line-height: 1.25; letter-spacing: -.015em; }
.launch p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.when { font-weight: 750; color: var(--accent); font-variant-numeric: tabular-nums; }
.status { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--raised); }
.status.go { color: #fff; background: #059669; }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.person { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--raised); flex: none; }
.rock { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rock:first-child { border-top: 0; }
.rock small { color: var(--faint); font-size: 12px; }
.rock b { text-align: right; font-variant-numeric: tabular-nums; }
.moon-row { display: flex; align-items: center; gap: 18px; }
#moon { width: 130px; height: 130px; flex: none; filter: drop-shadow(0 0 22px rgba(253, 230, 138, .35)); }
#moon-text b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
#moon-text span { color: var(--muted); font-size: 13.5px; }
.voyagers { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 12px; }
.earth { display: block; width: 100%; max-width: 340px; margin: 0 auto; border-radius: 50%; }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.article { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s; }
.article:hover { transform: translateY(-3px); }
.article img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--raised); }
.article h3 { padding: 9px 12px 2px; font-size: 14.5px; line-height: 1.28; letter-spacing: -.012em; }
.article span { padding: 0 12px 10px; font-size: 12px; color: var(--faint); }
.foot { max-width: 1240px; margin: 0 auto; padding: 4px 16px 32px; font-size: 12px; color: var(--faint); }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .clock span { min-width: 0; flex: 1; } .clock b { font-size: 23px; } .sun-grid { grid-template-columns: minmax(0, 1fr); } .sun-img { max-width: 220px; margin: 0 auto; } .moon-row { gap: 12px; } #moon { width: 100px; height: 100px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
