:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --ink: #101c4d;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }

.arcade {
  width: min(100% - clamp(24px, 4vw, 56px), 980px);
  margin: 0 auto;
  padding: 0 0 clamp(22px, 4vw, 40px);
}

.hero {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1536 / 458;
  border-bottom: 3px solid var(--ink);
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: auto;
}

.hero-copy {
  padding: 2.8% 0 0 1.6%;
}

.hero h1 {
  margin: 0;
  width: 59.2%;
}

.wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.hero p {
  margin: 0.12em 0 0 0.28em;
  font-size: clamp(24px, 4.15vw, 41px);
  font-weight: 850;
  line-height: 0.99;
  letter-spacing: -0.067em;
}

.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.55vw, 16px);
  padding-top: clamp(15px, 1.9vw, 19px);
}

.game {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: #fffaf2;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.parkour { --accent: #1649df; --button-ink: #fff; }
.karate { --accent: #ff6749; --button-ink: #171e45; }
.downhill { --accent: #25d4ad; --button-ink: #112947; }

.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.62;
  object-fit: cover;
}

.game-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(10px, 1.4vw, 14px);
}

.game h2 {
  margin: 0;
  font-size: clamp(27px, 4.05vw, 40px);
  font-weight: 950;
  font-style: italic;
  line-height: .96;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.game p {
  margin: .5em 0 .9em;
  font-size: clamp(14px, 1.43vw, 15px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.27;
}

.play {
  display: inline-grid;
  min-height: 44px;
  min-width: clamp(85px, 11vw, 112px);
  margin-top: auto;
  place-items: center;
  padding: .15em .85em;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  background: var(--accent);
  color: var(--button-ink);
  font-size: clamp(18px, 2.48vw, 25px);
  font-style: italic;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

@media (hover: hover) {
  .game:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 0 var(--ink);
  }
  .game:hover .play { filter: brightness(1.08); }
}
.game:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.game:focus-visible {
  outline: 3px solid #1749ed;
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .hero {
    display: flex;
    flex-direction: column-reverse;
    aspect-ratio: auto;
    overflow: hidden;
    text-align: center;
  }
  .hero-copy { padding: 17px 0 0; }
  .hero h1 { width: min(100%, 420px); margin-inline: auto; }
  .hero p {
    margin: .35em 0 0;
    font-size: clamp(23px, 6.8vw, 40px);
    line-height: 1.04;
  }
  .hero p br { display: none; }
  .hero-art {
    position: relative;
    align-self: flex-end;
    width: 195%;
    max-width: 1020px;
    margin-top: 5px;
  }
  .games { grid-template-columns: 1fr; gap: 19px; }
  .game h2 { font-size: clamp(33px, 9vw, 49px); }
  .game p { font-size: clamp(15px, 4.05vw, 19px); }
  .game-copy { padding: 15px; }
  .cover { aspect-ratio: 1.78; }
  .play { min-width: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  .game { transition: none; }
}

.grapple { --accent: #623bda; --button-ink: #fff; }
.bank-shot { --accent: #ffc34d; --button-ink: #17244e; }
.river-rush { --accent: #18caea; --button-ink: #17244e; }
.canyon-glider { --accent: #ffd35c; --button-ink: #17244e; }
.magnet-mayhem { --accent: #ba9cf7; --button-ink: #17244e; }
.pancake-panic { --accent: #ff88a3; --button-ink: #17244e; }
.canyon-glider h2, .magnet-mayhem h2, .pancake-panic h2 { font-size: clamp(21px, 3.35vw, 33px); }
@media (max-width: 680px) {
  .canyon-glider h2, .magnet-mayhem h2, .pancake-panic h2 { font-size: clamp(28px, 7.6vw, 43px); }
}
