
:root {
  --ink: #121214; --panel: #1b1b1f; --line: #2c2c33;
  --text: #f3f3f5; --muted: #a2a2ad; --accent: #2b8fff; --accent-ink: #04121f;
  /* The 45-degree cut of the wordmark's letters, reused on every picture. */
  --cut: clamp(18px, 3vw, 40px);
  --display: "Chakra Petch", "Arial Narrow", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); font: 16px/1.55 Inter, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9; background: var(--text); color: var(--ink); padding: 8px 12px; }

header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.mark { display: inline-flex; align-items: baseline; text-decoration: none; font: 700 26px/1 var(--display); letter-spacing: .02em; }
.mark svg { height: .7em; width: auto; margin-right: .035em; fill: currentColor; }
nav { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; justify-content: flex-end; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }
/* On a phone the wordmark, the link and the button share one line. */
@media (max-width: 420px) { .mark { font-size: 21px; } nav { gap: 8px 14px; flex-wrap: nowrap; } }

.button { display: inline-block; padding: 12px 22px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.button:hover { background: #57a6ff; }
nav .button, nav .button:hover { color: var(--accent-ink); padding: 8px 16px; }
.button.quiet { background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button.quiet:hover { background: var(--panel); }

.cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

/* The hero: the game's banner, with its name set large across the bottom edge. */
.hero { position: relative; }
.hero .banner { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; background: var(--panel); }
.hero .words { margin-top: calc(-1 * clamp(28px, 6vw, 84px)); position: relative; padding-right: var(--cut); }
h1 { font: 700 clamp(40px, 9vw, 124px)/.92 var(--display); letter-spacing: -.01em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; /* Half of it sits on the banner, whatever the banner looks like. */ text-shadow: 0 2px 28px rgb(18 18 20 / .6); }
.hero p { max-width: 62ch; color: var(--muted); margin: 20px 0 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.actions small { color: var(--muted); }

h2 { font: 700 clamp(24px, 3.4vw, 36px)/1.1 var(--display); margin: 0 0 20px; }
section { margin-top: clamp(56px, 9vw, 112px); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); }
.grid a { text-decoration: none; display: block; }
.grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--panel); --cut: 22px; }
.grid strong { display: block; margin-top: 12px; font: 700 20px/1.2 var(--display); }
.grid span { color: var(--muted); font-size: 14px; }
.grid a:hover strong { color: var(--accent); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); }
.steps li::before { content: counter(step); display: block; font: 700 40px/1 var(--display); color: var(--text); margin-bottom: 8px; }
.steps b { color: var(--text); font-weight: 600; }
.note { color: var(--muted); max-width: 70ch; margin-top: 20px; font-size: 15px; }

.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 28px 0 0; padding: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; }
.about { max-width: 68ch; white-space: pre-line; font-size: 18px; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); --cut: 24px; }
.rows { margin: 0; padding: 0; list-style: none; max-width: 68ch; }
.rows li { border-top: 1px solid var(--line); padding: 16px 0; }
.rows b { font: 700 18px/1.2 var(--display); }
.rows p { margin: 6px 0 0; color: var(--muted); white-space: pre-line; }

footer { margin-top: clamp(64px, 10vw, 128px); border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
