:root {
  color-scheme: dark;
  --navy: #0b0e1a;
  --panel: rgba(11, 14, 26, 0.82);
  --ink: #fff;
  --ink-dim: rgba(255, 255, 255, 0.78);
  --ink-faint: rgba(255, 255, 255, 0.5);
  --rule: rgba(255, 255, 255, 0.22);
  --cyan: #5cd9f2;
  --yellow: #fcdb5c;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--navy); }

body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  image-rendering: pixelated;
}

a { color: var(--ink); }

main, header {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.hud-button {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 0;
}

.hud-button::before { content: "[ "; }
.hud-button::after { content: " ]"; }
.hud-button:hover { color: var(--cyan); }
.hud-button.quiet { color: var(--ink-faint); cursor: default; }

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  color: var(--navy);
  background: var(--ink);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.store-button svg { width: 20px; height: 20px; }
.store-button:hover { background: var(--cyan); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.sprite {
  --frames: 32;
  --side: 88;
  --scale: 4;
  width: calc(var(--side) * var(--scale) * 1px);
  height: calc(var(--side) * var(--scale) * 1px);
  max-width: 100%;
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-size: calc(var(--frames) * 100%) 100%;
  image-rendering: pixelated;
  animation: spin 4.48s steps(var(--frames)) infinite;
}

@keyframes spin {
  from { background-position: 0 0; }
  to { background-position: calc(var(--frames) * 100% / (var(--frames) - 1)) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sprite { animation: none; }
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero .sprite { justify-self: center; }

h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.tagline {
  color: var(--cyan);
  margin: 0 0 24px;
}

.lede {
  color: var(--ink-dim);
  margin: 0 0 28px;
  max-width: 34em;
}

.links {
  margin: 28px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.links a { color: var(--ink-dim); }

.doc {
  max-width: 640px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.doc header {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.doc h1 { font-size: 22px; margin: 0 0 4px; }
.doc h2 { font-size: 15px; margin: 32px 0 8px; }
.doc p { color: var(--ink-dim); margin: 0 0 12px; }
.doc .meta { color: var(--ink-faint); margin-bottom: 24px; }
.doc a { color: var(--cyan); }

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    min-height: auto;
    padding-top: 40px;
  }
  .hero .sprite { --scale: 3; }
  .lede { margin-left: auto; margin-right: auto; }
}
