:root {
  --ink: #080b10;
  --ink-2: #0f131a;
  --ink-3: #0b0e14;
  --raised: #1c222c;
  --cloud: #e8ecf2;
  --mist: #c4ccd8;
  --haze: #929cab;
  --accent: #f5c518;
  --accent-hi: #ffd648;
  --on-accent: #1a1402;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.24);
  --scrim: rgb(9 12 17 / 0.91);

  /* the game's own faces, from assets/fonts in the repo */
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-h3: clamp(1.5rem, 2.2vw, 2rem);
  --step-h2: clamp(2.6rem, 5.4vw, 5rem);

  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 72px;
  --max: 1320px;
  --radius: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  accent-color: var(--accent);
  scrollbar-color: #2a323f var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:not(.motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--cloud);
  font: 400 var(--step-0)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  overflow-x: clip;
}
img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.005em; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
section[id] { scroll-margin-top: var(--nav-h); }
.tnum { font-variant-numeric: tabular-nums; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: var(--cloud); color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: none; }

.h2 { font-size: var(--step-h2); line-height: 0.95; }
.lead { max-width: 38em; color: var(--haze); font-size: var(--step-1); line-height: 1.6; }
.h2 + .lead { margin-top: clamp(18px, 2vw, 26px); }
.split-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease-out);
}
.nav.is-solid {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.menu-open .nav { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 700 1.3rem/1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
}
.logo img { width: 30px; height: 30px; }

.nav__links { display: flex; gap: clamp(14px, 2.2vw, 34px); list-style: none; }
.nav__links a {
  display: inline-block; padding: 12px 2px;
  color: var(--haze); font-size: 0.95rem; font-weight: 500; text-decoration: none;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--cloud); }
.nav__links a.is-current, .nav__links a[aria-current="page"] { color: var(--cloud); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.5em; }
.nav__end { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 4px 0 12px;
  border: 0; background: none; cursor: pointer; font-size: 0.92rem;
}
.nav__toggle i { position: relative; width: 20px; height: 10px; }
.nav__toggle i::before, .nav__toggle i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav__toggle i::before { top: 0; }
.nav__toggle i::after { top: 8.5px; }
.nav__toggle[aria-expanded="true"] i::before { top: 4.25px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i::after { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  background: var(--ink-3);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; }
.menu li { border-bottom: 1px solid var(--line); }
.menu li a {
  display: block; padding: 14px 0;
  font: 700 clamp(2.4rem, 11vw, 3.6rem)/1 var(--f-display); text-transform: uppercase;
  text-decoration: none;
}
.menu li a[aria-current="page"] { color: var(--accent); }
.menu__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--haze); font-size: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 1rem/1.15 var(--f-body); text-decoration: none; text-align: left;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn small { display: block; font: 500 0.75rem/1.3 var(--f-data); opacity: 0.75; }
.btn--light { background: var(--accent); color: var(--on-accent); }
.btn--light:hover { background: var(--accent-hi); }
.btn--ghost { border-color: var(--line-strong); color: var(--cloud); background: rgb(8 11 16 / 0.5); }
.btn--ghost:hover { border-color: var(--cloud); background: rgb(8 11 16 / 0.8); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.foot { background: var(--ink-3); border-top: 1px solid var(--line); }
.foot__top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-block: clamp(88px, 12vw, 160px) clamp(56px, 7vw, 90px);
}
.strips {
  position: relative; display: grid; place-items: center;
  height: clamp(200px, 24vw, 340px);
  overflow: hidden;
}
.strip {
  position: absolute; left: -4%; width: 108%;
  padding: 0.2em 0;
  overflow: hidden; white-space: nowrap;
  font: 700 clamp(2.2rem, 5.6vw, 5rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.01em;
}
.strip--a { z-index: 2; background: var(--accent); color: var(--on-accent); transform: rotate(-4deg); box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.9); }
.strip--b { background: var(--raised); color: var(--cloud); transform: rotate(3deg); border-block: 1px solid var(--line); }
.strip__track { display: flex; width: max-content; will-change: transform; }
.strip__group { display: flex; align-items: center; gap: 0.45em; padding-right: 0.45em; }
.strip__group svg { width: 0.62em; height: 0.62em; flex: none; }
.strip__dot { fill: currentColor; }
.strip--b .strip__dot { fill: var(--accent); }
.strip__ghost { color: transparent; -webkit-text-stroke: 1.5px var(--cloud); }
.foot__bottom {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
  padding: 30px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--haze); font-size: 0.84rem;
}
.foot__bottom p { max-width: 70ch; }
.credits { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-self: start; }
.credit {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px 0 16px;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--cloud); font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.credit svg { width: 24px; height: 24px; flex: none; }
.credit b { color: var(--accent); font-weight: 600; transition: color 0.25s; }
.credit:hover { background: var(--accent); color: var(--on-accent); }
.credit:hover b { color: inherit; }
.credit--minor { border-color: var(--line-strong); }
.credit--minor b { color: var(--cloud); }
.credit--minor span { color: var(--haze); transition: color 0.25s; }
.credit--minor:hover { background: var(--raised); color: var(--cloud); border-color: var(--cloud); }
.credit--minor:hover span { color: var(--mist); }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; }
.foot__links a, .foot__links button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--cloud); font-size: 0.88rem; text-decoration: none;
}
.foot__links a:hover, .foot__links button:hover { color: var(--accent); }

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__end .btn { display: none; }
  .foot__bottom { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
