:root { color-scheme: dark; --ink: #f5f2ea; --muted: #aaa9b1; --line: #30313b; --accent: #ef5b3f; --deep: #090a0f; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--deep); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: radial-gradient(#fff 0.65px, transparent 0.65px); background-size: 31px 31px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
.hero, main, footer { position: relative; width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
nav { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
nav a { color: var(--muted); text-decoration: none; }
.mark, .eyebrow { letter-spacing: .18em; font-size: .73rem; font-weight: 750; text-transform: uppercase; }
.mark::before { content: "✦"; color: var(--accent); margin-right: .65rem; }
.hero-copy { padding: clamp(70px, 12vw, 150px) 0 75px; max-width: 870px; }
.eyebrow { color: var(--accent); }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: .98; margin: .3em 0; }
h1 { font-size: clamp(4rem, 10vw, 8.5rem); letter-spacing: -.055em; }
.intro { max-width: 600px; color: var(--muted); font-size: 1.1rem; }
main { padding-bottom: 90px; }
.date-form { padding: 30px 0 45px; border-top: 1px solid var(--line); }
.date-form label { display: block; color: var(--muted); margin-bottom: 10px; font-size: .84rem; text-transform: uppercase; letter-spacing: .12em; }
.controls { display: flex; gap: 12px; }
input, button { min-height: 52px; border: 1px solid var(--line); font: inherit; }
input { width: min(340px, 100%); padding: 0 18px; background: #111218; color: var(--ink); color-scheme: dark; }
button { padding: 0 24px; cursor: pointer; background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
button:hover { background: #ff6c50; }
.apod-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); border: 1px solid var(--line); background: #0e0f15; }
.media { min-height: 480px; background: #050507; display: grid; place-items: center; overflow: hidden; }
.media img { display: block; width: 100%; height: 100%; max-height: 800px; object-fit: cover; }
.media iframe { width: 100%; min-height: 560px; border: 0; }
.media-missing { color: var(--muted); padding: 30px; }
.details { padding: clamp(30px, 5vw, 65px); }
.details h2, .message-panel h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.explanation { color: #cac8c2; }
.credit { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: .85rem; }
.message, .message-panel { color: #ffc1b5; }
.message-panel { padding: 50px; border: 1px solid var(--line); background: #131017; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
@media (max-width: 780px) { .apod-card { grid-template-columns: 1fr; } .media { min-height: 280px; } .controls, footer { flex-direction: column; } button, input { width: 100%; } }
