@font-face { font-family: Geist; src: url(fonts/geist-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/geist-600.woff2) format("woff2"); font-weight: 600 900; font-display: swap; }
/* the game's own 8x12 font (scripts/webfont.py): a font pixel is 1/12 em, so only sizes of 12px, 24px, 36px stay crisp */
@font-face { font-family: Quaza; src: url(fonts/quaza.woff2) format("woff2"); font-display: swap; }

/* a space station at night: deep navy, steel panels, one cyan glow */
:root {
  color-scheme: dark;
  --bg: #060a18;
  --card: #0e1630;
  --card-hi: #142042;
  --border: #253564;
  --steel: #4e6fa8;
  --fg: #e4ecff;
  --muted: #9fb0d6;
  --heading: #ffffff;
  --primary: #5adcff;
  --primary-fg: #04121e;
  --radius: 8px;
  --display: Geist, system-ui, sans-serif;
  --pixel: Quaza, ui-monospace, monospace;
  --gold: #ffecc8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; color: var(--fg); font: 17px/1.6 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 80% 50% at 75% -10%, rgb(90 220 255 / 0.14), transparent 70%) no-repeat,
    radial-gradient(1px 1px at 20% 30%, #fff8 50%, transparent), radial-gradient(1px 1px at 70% 60%, #fff6 50%, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff5 50%, transparent), radial-gradient(1px 1px at 85% 20%, #fff7 50%, transparent),
    var(--bg);
  background-size: auto, 300px 300px, 410px 410px, 370px 370px, 520px 520px, auto;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font: 400 36px/1.2 var(--pixel); text-transform: uppercase; color: var(--heading); margin-bottom: 10px; text-shadow: 0 0 14px rgb(90 220 255 / 0.45); }
@media (max-width: 600px) { h2 { font-size: 24px; } }
h3 { font: 400 24px/1.15 var(--pixel); text-transform: uppercase; color: var(--primary); margin-bottom: 10px; text-shadow: 0 0 10px rgb(90 220 255 / 0.4); }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* the bar along the top */
.top { position: sticky; top: 0; z-index: 10; background: rgb(6 10 24 / 0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 24px/1 var(--pixel); text-transform: uppercase; color: var(--heading); text-decoration: none; white-space: nowrap; }
.brand img { image-rendering: pixelated; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font: 400 12px/1 var(--pixel); text-transform: uppercase; letter-spacing: 1px; }
.top nav a:hover { color: var(--fg); }

/* buttons and badges: bevelled steel, lit top-left */
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 6px; background: linear-gradient(#8ff0ff, #2fb6e6); color: var(--primary-fg); font: 400 12px/1 var(--pixel); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; border: 1px solid #0b4a66; box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.7), inset -1px -1px 0 rgb(0 40 60 / 0.5), 0 0 24px rgb(90 220 255 / 0.25); transition: filter 0.15s; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: linear-gradient(var(--card-hi), var(--card)); color: var(--fg); border-color: var(--border); box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.12); }
.badge { display: inline-block; padding: 3px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.badge-glow { border-color: #1d6d8a; background: #0a2232; color: var(--primary); }

/* sections */
main { overflow-x: clip; }
main > section { padding: 80px 0 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--pixel); text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.sub, .meta { color: var(--muted); }
.sub { margin-bottom: 28px; }

/* the top of the page: the title screen's painting (backdrop.png, from scripts/paint.py), its chrome logo and gold tagline */
main > section.banner { padding: 0; }
.banner { position: relative; text-align: center; padding: 0; min-height: 440px; display: grid; align-content: center;
  background: linear-gradient(transparent 55%, var(--bg)), url(backdrop.png) center 35% / cover no-repeat; image-rendering: pixelated; border-bottom: 1px solid #000; }
.banner .wrap { padding: 56px 0 72px; background: radial-gradient(ellipse 34% 46% at 50% 58%, rgb(2 4 12 / 0.6), transparent 72%); }
.banner h1 { margin: 22px 0 10px; }
.banner .logo { width: min(586px, 100%); }
.tagline { font: 400 24px/1.2 var(--pixel); text-transform: uppercase; letter-spacing: 2px; color: var(--gold); text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 0 0 6px #ff7828, 0 0 18px rgb(255 120 40 / 0.6); margin: 0; }
@media (max-width: 600px) { .banner { min-height: 300px; } .tagline { font-size: 12px; } }
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
main > section.hero { padding-top: 40px; }
.logo { width: min(520px, 100%); image-rendering: pixelated; }
.lead { font-size: 1.3rem; color: var(--heading); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-shot { margin: 0; }
.hero-shot img, .gallery img { display: block; width: 100%; image-rendering: pixelated; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 20px 60px rgb(0 0 0 / 0.5), 0 0 0 1px #02040a, 0 0 0 5px #4a5268, 0 0 0 6px #02040a; }
.hero-shot figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.video { margin: 0 auto 28px; max-width: 800px; }
.video video { display: block; width: 100%; height: auto; image-rendering: pixelated; background: #000; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 20px 60px rgb(0 0 0 / 0.5), 0 0 0 4px #0b1226; }
.video figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* steel-framed glass, as the game's own panels: a brushed bevel lit top-left, dark glass with faint scanlines */
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: repeating-linear-gradient(transparent 0 2px, rgb(0 0 0 / 0.18) 2px 3px) padding-box, linear-gradient(#0c1e2c, #040c16) padding-box, linear-gradient(135deg, #c4ccdc, #5a6278 40%, #262a3c 75%, #12141e) border-box; border: 4px solid transparent; box-shadow: 0 0 0 1px #02040a, inset 0 0 0 1px #000, 0 10px 30px rgb(0 0 0 / 0.45); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* the robot line-up */
.robots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.robots li { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center; background: repeating-linear-gradient(transparent 0 2px, rgb(0 0 0 / 0.18) 2px 3px) padding-box, linear-gradient(#0c1e2c, #040c16) padding-box, linear-gradient(135deg, #c4ccdc, #5a6278 40%, #262a3c 75%, #12141e) border-box; border: 4px solid transparent; box-shadow: 0 0 0 1px #02040a, inset 0 0 0 1px #000, 0 10px 30px rgb(0 0 0 / 0.45); border-radius: var(--radius); padding: 12px; }
.robots img { grid-row: span 2; image-rendering: pixelated; background: radial-gradient(#123a44, #061218); border-radius: 4px; box-shadow: inset 0 0 0 1px #2a7a8a, 0 0 12px rgb(90 220 255 / 0.15); }
.robots b { font: 400 24px/1.1 var(--pixel); text-transform: uppercase; text-shadow: 0 0 8px currentColor; }
.robots span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.r0 { color: #4cff6a; } .r1 { color: #4cffd8; } .r2 { color: #5a9cff; } .r3 { color: #b07cff; }
.r4 { color: #ffe84c; } .r5 { color: #ff9a3a; } .r6 { color: #ff5ae8; } .r7 { color: #ff4c4c; }

/* screens */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery a { display: block; }

/* the station log, on a console screen */
.console { background: repeating-linear-gradient(transparent 0 2px, rgb(0 0 0 / 0.18) 2px 3px) padding-box, linear-gradient(#0c1e2c, #040c16) padding-box, linear-gradient(135deg, #c4ccdc, #5a6278 40%, #262a3c 75%, #12141e) border-box; border: 4px solid transparent; box-shadow: 0 0 0 1px #02040a, inset 0 0 0 1px #000, 0 10px 30px rgb(0 0 0 / 0.45); border-radius: var(--radius); padding: 28px; }
.milestones { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.milestones li { display: grid; grid-template-columns: 24px 160px 1fr; gap: 12px; align-items: baseline; color: var(--muted); }
.milestones li::before { content: "\25CB"; color: var(--border); }
.milestones li.done::before { content: "\25CF"; color: var(--primary); text-shadow: 0 0 8px var(--primary); }
.milestones li.now::before { content: "\25D0"; color: #ffe84c; }
.milestones b { color: var(--fg); }

/* the bottom */
.foot { display: flex; gap: 14px; align-items: flex-start; margin-top: 80px; padding: 28px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.foot img { image-rendering: pixelated; margin-top: 3px; }
.small { font-size: 0.8rem; }

/* the lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgb(2 4 12 / 0.9); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; image-rendering: pixelated; border-radius: 6px; }
.lightbox figcaption { color: var(--muted); margin-top: 8px; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--fg); font-size: 28px; cursor: pointer; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { top: 32px; right: 16px; transform: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .top nav { display: none; }
  .milestones li { grid-template-columns: 24px 1fr; }
  .milestones li span { grid-column: 2; }
}

/* the changelog */
.log { padding: 24px 28px; }
.log header { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; color: var(--gold); font: 400 12px/1 var(--pixel); text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 0 8px rgb(255 120 40 / 0.6); }
.log ul { margin: 0; padding-left: 20px; color: var(--muted); }
.log li { margin-bottom: 6px; }

/* the download */
.download { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 36px; }
.download p { margin: 0 0 10px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.93rem; display: grid; gap: 14px; align-content: center; }
.steps b { color: var(--fg); }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--bg); font: 600 0.75rem/1.5 ui-monospace, monospace; text-align: center; color: var(--primary); }
code { font: 0.85em ui-monospace, monospace; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }
