:root {
  --paper: #f3f0e8;
  --ink: #171714;
  --muted: #716f67;
  --line: #c9c5ba;
  --accent: #e24b32;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.intro {
  padding-block: clamp(72px, 12vw, 150px);
}

.game-meta,
.game-number {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.84;
}

.game-list {
  padding-bottom: 96px;
}

.game {
  display: grid;
  grid-template-columns: minmax(48px, 0.5fr) 3fr;
  gap: 24px;
  padding-block: 52px;
  border-top: 1px solid var(--line);
}

.game:first-child {
  border-top-color: var(--ink);
}

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

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

.game-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
}

.status {
  color: var(--ink);
  font-weight: 700;
}

.status::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status.released {
  color: var(--accent);
}

.status.building {
  animation: pulse 2s ease-in-out infinite;
}

.game h2 {
  margin: 12px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.featured {
  grid-template-columns: minmax(48px, 0.35fr) minmax(280px, 1.15fr) minmax(280px, 0.9fr);
  padding-block: 64px;
}

.game-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-self: start;
}

.game-media.development-media {
  grid-template-columns: 0.65fr 1.35fr;
}

.game-media.wide-media {
  grid-template-columns: 1fr;
}

.game-media.gallery-grid {
  grid-template-columns: 1fr 1fr;
}

.game-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  object-fit: contain;
}

.design-focus {
  margin-top: 16px !important;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.game .game-hook {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.game .game-copy {
  line-height: 1.65;
}

.project-note {
  margin-top: 18px !important;
  color: var(--ink) !important;
}

.store-link {
  display: inline-block;
  padding: 10px 13px;
  border: 1px solid var(--ink);
  text-decoration: none;
}

.store-link:hover,
.store-link:focus-visible {
  border-color: var(--accent);
}

.game p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.in-progress {
  opacity: 0.72;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 28px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status.building {
    animation: none;
  }
}

@media (max-width: 860px) {
  .featured {
    grid-template-columns: 34px 1fr;
  }

  .game-media {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .game {
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding-block: 38px;
  }

  .game-media {
    margin-top: 12px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}
