:root {
  --ink: #111111;
  --muted: #666666;
  --line: #e6e6e6;
  --bg: #ffffff;
  --soft: #f6f6f4;
  --max: 1120px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

/* Buttons */

.button {
  display: inline-block;
  padding: 13px 24px;
  border: 1.5px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

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

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Splash */

.hero {
  padding: 88px 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
}

.tagline {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 20px;
}

.hero p.blurb {
  max-width: 34em;
  margin: 0;
}

/* Sections */

.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 32px;
  font-size: 32px;
  font-weight: 700;
}

.prose {
  max-width: 40em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Game cards */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.game-card {
  display: block;
  text-decoration: none;
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.15s;
}

.game-card:hover img {
  opacity: 0.88;
}

.game-card h3 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
}

.game-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Game page */

.game-head {
  padding: 56px 0 40px;
}

.back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.back:hover {
  color: var(--ink);
}

.game-head h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
}

.game-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  padding: 64px 0 80px;
}

.game-body h2 {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 700;
}

.game-body .prose + h2 {
  margin-top: 48px;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.features li:last-child {
  border-bottom: 1px solid var(--line);
}

.details {
  align-self: start;
  padding: 28px;
  background: var(--soft);
}

.details dl {
  margin: 0 0 24px;
}

.details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.details dd {
  margin: 2px 0 18px;
}

.details .button {
  display: block;
  text-align: center;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.shots a {
  display: block;
}

.shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.15s;
}

.shots a:hover img {
  opacity: 0.88;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.social {
  display: flex;
  gap: 24px;
}

.social a {
  text-decoration: none;
}

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

/* Not found */

.notfound {
  padding: 120px 0;
}

.notfound h1 {
  margin-bottom: 16px;
  font-size: 48px;
  font-weight: 800;
}

/* Small screens */

@media (max-width: 800px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero .art {
    order: -1;
  }

  .section {
    padding: 56px 0;
  }

  .game-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 56px;
  }

  .site-nav {
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .shots {
    grid-template-columns: 1fr;
  }
}
