:root {
  --bg: #140c14;
  --panel: #1f1420;
  --line: #3a2630;
  --ink: #fff4dc;
  --dim: #d8b898;
  --glow: #ffc850;
  --link: #ffd98a;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

img, video { display: block; max-width: 100%; height: auto; }

/* Pixel art keeps square pixels when the browser scales it. */
.logo, .pixel, .shots img { image-rendering: pixelated; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--bg) url("/media/hero.jpg") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero.short { min-height: 320px; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 12, 20, 0.95) 0%, rgba(20, 12, 20, 0.8) 45%, rgba(20, 12, 20, 0.15) 80%);
}

.hero .wrap { position: relative; width: 100%; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { margin: 0; }
.hero .logo { width: min(560px, 86vw); height: auto; margin: 0 0 18px -10px; }
.hero .tagline { font-size: 1.3rem; max-width: 540px; margin: 0 0 24px; }
.hero .when { color: var(--dim); font-family: var(--mono); font-size: 0.95rem; margin: 0 0 20px; }

.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--glow);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.95rem;
  background: rgba(255, 200, 80, 0.12);
}

.button:hover { background: rgba(255, 200, 80, 0.28); color: var(--ink); }
.button.primary { background: var(--glow); color: var(--bg); font-weight: 700; }
.button.primary:hover { background: var(--link); color: var(--bg); }
.hero .buttons { margin: 0; }

section { padding: 56px 0; border-bottom: 1px solid var(--line); }

h2 {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glow);
  margin: 0 0 18px;
}

.lead { font-size: 1.15rem; max-width: 780px; }
.note { color: var(--dim); max-width: 780px; margin: 0 0 18px; }

.trailer video { width: 100%; border: 1px solid var(--line); background: #000; }

.features { display: grid; gap: 40px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.feature:nth-child(even) .media { order: 2; }
.feature .media video { width: 100%; border: 1px solid var(--line); image-rendering: pixelated; }
.feature ul { margin: 0; padding-left: 20px; }
.feature li { margin: 0 0 8px; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.shots a { display: block; border: 1px solid var(--line); }
.shots a:hover { border-color: var(--glow); }

footer { padding: 32px 0 48px; color: var(--dim); font-size: 0.95rem; }
footer a { margin-right: 18px; }

.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.facts th { width: 190px; color: var(--dim); font-weight: 600; }

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.downloads figure { margin: 0; padding: 12px; background: var(--panel); border: 1px solid var(--line); }
.downloads figure img { width: 100%; height: 140px; object-fit: contain; background: #000; margin-bottom: 10px; }
.downloads figcaption { font-size: 0.9rem; color: var(--dim); }
.downloads figcaption a { display: block; font-size: 0.95rem; }

.mono { font-family: var(--mono); }

@media (max-width: 760px) {
  .hero { min-height: 0; background-position: 30% center; }
  .hero::before { background: rgba(20, 12, 20, 0.82); }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .media { order: 0; }
  .facts th { width: 120px; }
}
