/* The palette is Potholes' own: asphalt blue-greys and roadworks amber. */
:root {
  color-scheme: dark;
  --bg: #0f1820;
  --panel: #18242f;
  --border: #2a3a49;
  --text: #e6edf3;
  --muted: #8ea2b5;
  --accent: #f2b233;
  --accent-hover: #ffc54d;
  --ink: #05080b;
  --display: 'Overpass', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* The barrier tape along the top. */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--ink) 12px 24px);
}

header.site {
  padding-top: 72px;
  padding-bottom: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand svg {
  flex: none;
  width: clamp(44px, 8vw, 60px);
  height: auto;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 34em;
  margin: 28px 0 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.lede span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.game {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.game img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
}

.game-body {
  padding: 28px 32px 32px;
}

.game-body p {
  margin: 0 0 12px;
  max-width: 40em;
}

.tag {
  display: inline-block;
  padding: 5px 9px 3px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h3 {
  margin: 10px 0 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.game-body .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 24px 0 0;
}

.button {
  padding: 11px 20px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--ink);
}

footer.site {
  margin-top: 80px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  header.site {
    padding-top: 48px;
    padding-bottom: 44px;
  }

  .lede {
    font-size: 1.1rem;
  }

  .game-body {
    padding: 22px 20px 24px;
  }
}
