/* Asteroid Miner's pages: the game's own look (deep space, glowing vector lines, viridian light,
   monospaced HUD text). Colours are the game's Palette (App/Rendering.swift) and launch colour.
   The game uses Apple's fonts (SF Mono in its menus, Avenir Next Condensed on the flight HUD, SF Pro
   Thin for the title), which can't be self-hosted; open fonts stand in: IBM Plex Mono, Barlow
   Condensed and Inter Thin, all SIL OFL (licences in fonts/). */
@font-face { font-family: "Plex Mono"; src: url("/asteroid-miner/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/asteroid-miner/fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/asteroid-miner/fonts/BarlowCondensed-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Thin"; src: url("/asteroid-miner/fonts/InterDisplay-Thin.woff") format("woff"); font-weight: 100 300; font-display: swap; }

:root {
  color-scheme: dark;
  --space: #030409;      /* launch background */
  --rock: #08090d;       /* rock fill */
  --panel: #05080d;
  --line: #d6e0f0;       /* Palette.line */
  --viridian: #40f2ad;   /* Palette.viridian */
  --amber: #ffbd4d;      /* Palette.amber */
  --danger: #ff456b;     /* Palette.danger */
  --dim: #73859e;        /* Palette.dim */
  --rule: rgba(214, 224, 240, .14);
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hud: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--line);
  background: var(--space);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { background: var(--space); }
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--space);
  /* A sparse starfield, drawn in CSS so the page stays script-free. */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(214,224,240,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, rgba(214,224,240,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 32%, rgba(214,224,240,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 47%, rgba(214,224,240,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 58%, rgba(214,224,240,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 71%, rgba(214,224,240,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 84%, rgba(214,224,240,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 93%, rgba(214,224,240,.4) 50%, transparent 51%),
    radial-gradient(60rem 40rem at 50% -10%, rgba(64,242,173,.07), transparent 70%);
  background-size: 520px 520px, 520px 520px, 520px 520px, 520px 520px, 520px 520px, 520px 520px, 520px 520px, 520px 520px, 100% 100%;
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat;
}
a { color: var(--viridian); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--line); }
a:focus-visible { outline: 1px solid var(--viridian); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--viridian); color: var(--space); }

.page { max-width: 46rem; margin: 0 auto; padding: 0 16px; }

/* HUD-style small caps: the game writes its labels in tracked, upper-case mono. */
.label, .top, footer, .store, .chips li, .sign, h2, .screen figcaption {
  font-family: var(--hud);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-size: .95rem; }
.top { flex-wrap: wrap; row-gap: .4rem; }
.top a { color: var(--dim); text-decoration: none; white-space: nowrap; }
.top a:hover { color: var(--line); }
.top nav { display: flex; gap: 1.2rem; }

h1, h2 { font-weight: 400; }
h1 {
  font-family: "Inter Thin", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 100;
  font-size: clamp(1.9rem, 8.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: .16em;
  margin: 0 -.16em 0 0; /* the tracking after the last letter shouldn't push the line off centre */
  color: var(--line);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(64,242,173,.7), 0 0 2px rgba(64,242,173,.5);
}
h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--dim);
  margin: 2.6rem 0 .9rem;
}
p { margin: 0 0 1rem; }
.muted { color: var(--dim); }
strong { color: var(--viridian); font-weight: 600; }

/* The game page */
.hero { text-align: center; padding: 3rem 0 1.6rem; }
.hero .icon { width: 112px; height: 112px; border-radius: 25px; display: block; margin: 0 auto 1.6rem; border: 1px solid rgba(214,224,240,.35); box-shadow: 0 0 40px rgba(64,242,173,.22); }
.hero .label { font-family: var(--mono); font-size: .72rem; color: var(--viridian); opacity: .85; letter-spacing: .5em; margin: 0 0 .9rem; }
.tagline { font-size: 1.12rem; line-height: 1.5; max-width: 34rem; margin: 1.3rem auto 0; }
.motto { color: var(--dim); font-size: .82rem; margin: .8rem auto 0; }

/* The gameplay video, framed like the game's HUD panels. */
.screen { position: relative; margin: 1.2rem 0 2.4rem; padding: 6px; border: 1px solid rgba(64,242,173,.45); border-radius: 4px; background: var(--panel); box-shadow: 0 0 60px rgba(64,242,173,.08); }
.screen video, .screen .placeholder { display: block; width: 100%; height: auto; border-radius: 2px; background: #000; }
.screen figcaption { font-size: .9rem; color: var(--dim); padding: .6rem .3rem .2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.panel { background: rgba(5,8,13,.92); border: 1px solid rgba(64,242,173,.45); border-radius: 4px; padding: 1.2rem 1.3rem; margin: 1.6rem 0 2rem; }
.panel .sign { font-size: 1.1rem; color: var(--viridian); margin-bottom: .7rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.facts li { padding-left: 1.5rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: .48rem; height: .48rem; border: 1px solid var(--viridian); transform: rotate(45deg); box-shadow: 0 0 6px rgba(64,242,173,.7); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .3rem 0 1.1rem; }
.chips li { font-size: 1rem; padding: .4rem .7rem; border: 1px solid rgba(214,224,240,.3); border-radius: 3px; color: var(--line); }
.chips li:nth-child(1) { border-color: rgba(64,242,173,.6); color: var(--viridian); }
.chips li:nth-child(2) { border-color: rgba(214,224,240,.55); }
.chips li:nth-child(3) { border-color: rgba(255,189,77,.6); color: var(--amber); }

.cta { text-align: center; margin: 2.8rem 0 0; }
.store { display: inline-block; font-size: 1.15rem; color: var(--viridian); background: rgba(0,0,0,.35); border: 1px solid rgba(64,242,173,.5); border-radius: 3px; padding: .85rem 1.2rem; text-decoration: none; }
.store.soon { cursor: default; }
.cta .muted { font-size: .82rem; margin-top: .9rem; }

/* Prose pages: privacy, support */
.doc { padding: 1.6rem 0 1rem; }
.doc h1 { font-size: clamp(1.7rem, 7vw, 2.6rem); letter-spacing: .14em; }
.doc .dated { color: var(--dim); margin-top: .8rem; font-size: .85rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .45rem; }
.qa h2 { color: var(--line); letter-spacing: .08em; margin-top: 2rem; }

footer { border-top: 1px solid var(--rule); margin-top: 3.4rem; padding: 1.2rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; font-size: .9rem; color: var(--dim); }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

@media (max-width: 520px) {
  body { font-size: .95rem; }
  .top { font-size: .85rem; letter-spacing: .1em; }
  .top nav { gap: .9rem; }
  .hero { padding-top: 2rem; }
  .hero .icon { width: 92px; height: 92px; border-radius: 21px; }
  .hero .label { letter-spacing: .36em; font-size: .66rem; }
  .panel { padding: 1rem 1.05rem; }
  .screen figcaption span:last-child { display: none; }
}
