:root {
  --paper: #fafafa;
  --surface: #ffffff;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --ink: #18181b;
  --muted: #52525b;
  --faint: #a1a1aa;
  --red: #dc2626;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, p, ul { margin: 0; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.mono { font-family: var(--mono); }
.bracket { color: var(--red); }
.muted { color: var(--faint); }

.label {
  display: block;
  width: fit-content;
  margin-bottom: 28px;
  font: 500 14px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--faint);
}

/* The bracket from the logo slides in before a link on hover. */
.bracket-link {
  position: relative;
  text-decoration: none;
}
.bracket-link::before {
  content: "(";
  position: absolute;
  left: -0.7em;
  color: var(--red);
  opacity: 0;
  transform: translateX(0.4em);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.bracket-link:hover::before,
.bracket-link:focus-visible::before {
  opacity: 1;
  transform: none;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.site-header__logo img { width: 64px; height: 64px; }

.nav { display: flex; gap: clamp(24px, 4vw, 56px); }
.nav a { font-size: 16px; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(24px, 4vw, 48px);
}
.hero__headline {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero__lede {
  margin-top: 24px;
  max-width: 32em;
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--muted);
}
.hero .button { margin-top: 40px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.button:hover { background: #000; }
.button--outline {
  min-height: 48px;
  width: 100%;
  padding: 0 12px;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.button--outline:hover { background: var(--ink); color: var(--paper); }

.section {
  padding-block: 56px 64px;
  border-top: 1px solid var(--line);
}
main > .wrap:first-child > .section:first-child { border-top: 0; }

.games { display: grid; gap: 30px; }
.game-card + .prose { margin-top: 48px; }

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: center;
  gap: 32px;
  padding: 40px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
}
.game-card__title { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.game-card__title a { text-decoration: none; }
.game-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.game-card__pitch { margin-top: 12px; font-size: 20px; color: var(--muted); }
.game-card__platforms {
  margin-top: 20px;
  font: 14px/1.5 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.game-card__stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  padding: 0;
  list-style: none;
}
.game-card--next {
  display: block;
  padding: 52px 44px;
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--faint);
  text-align: center;
  font-size: 18px;
}

.prose { max-width: 40em; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: 22px; }
.prose a { text-decoration-color: var(--red); text-underline-offset: 3px; }
.prose code { font: 0.9em var(--mono); }

/* The first picture spans the row, the rest go two to a row. */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  margin-top: 56px;
}
.shot { margin: 0; }
.shot:first-child { grid-column: 1 / -1; }
.shot img { width: 100%; border: 1px solid var(--line); }
.shot figcaption {
  margin-top: 10px;
  font: 13px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

.studio {
  max-width: none;
  columns: 2;
  column-gap: 80px;
  font-size: 20px;
}
.studio > * { break-inside: avoid; }
.studio > * + * { color: var(--muted); }

.page-title { margin-bottom: 32px; font-size: 44px; line-height: 1.1; font-weight: 600; }

.log { padding: 0; list-style: none; }
.log li + li { margin-top: 8px; }
.log .mono { margin-right: 16px; color: var(--faint); }

.contact__email {
  position: relative;
  display: inline-block;
  padding-left: 0.6em;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__email::before {
  content: "(";
  position: absolute;
  left: 0;
  color: var(--red);
}
.contact__email:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--faint);
}
.site-footer__bottom a:hover { color: var(--ink); }
.dot { margin-inline: 14px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .hero__logo { width: min(200px, 55vw); }
  .hero__text { justify-self: stretch; }
  .hero .button { width: 100%; }
  .game-card { grid-template-columns: 1fr; padding: 28px 24px; }
  .game-card:not(.game-card--next) { border-left-width: 5px; }
  .game-card__stores { gap: 12px; }
  .game-card__title { font-size: 32px; }
  .game-card__pitch { font-size: 16px; }
  .game-card__platforms { font-size: 12px; }
  .game-card--next { padding: 32px 24px; font-size: 15px; }
  .shots { grid-template-columns: 1fr; gap: 24px; }
  .studio { columns: 1; font-size: 17px; }
  .studio > * + * { margin-top: 1em; }
  .page-title { font-size: 34px; }
}
