@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f3f0e8;
  --paper-2: #e8e3d6;
  --ink: #17201b;
  --ink-2: #4a544d;
  --field: #2d5a3a;
  --cone: #e2652b;
  --line: #cfc8b6;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

a { color: inherit; }

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

/* Header */

.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  color: #fff;
}

.top--solid {
  position: static;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.mark b {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 3px 6px 2px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  font-size: 15px;
  font-weight: 600;
}

.nav a { text-decoration: none; opacity: 0.85; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* Hero */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #2a3a30;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 70%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 18, 13, 0.82) 0%, rgba(10, 18, 13, 0.35) 45%, rgba(10, 18, 13, 0) 70%),
    linear-gradient(to bottom, rgba(10, 18, 13, 0.45) 0%, rgba(10, 18, 13, 0) 22%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(40px, 8vh, 88px);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(44px, 8.4vw, 112px);
  font-weight: 800;
  font-stretch: 88%;
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.hero .lede {
  max-width: 38ch;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.9vw, 21px);
  color: rgba(255, 255, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  background: #fff;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 2px currentColor;
}

.btn:hover { filter: brightness(0.94); }

/* Sections */

.section { padding: clamp(64px, 10vw, 128px) 0; }

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  font-stretch: 90%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.section .intro {
  max-width: 52ch;
  margin: 0 0 clamp(32px, 5vw, 56px);
  color: var(--ink-2);
  font-size: 19px;
}

/* Game cards */

.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.game {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}

.game figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
}

.game figure img { width: 100%; height: 100%; object-fit: cover; }

.game .body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: clamp(20px, 2.6vw, 32px);
}

.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--ink-2);
}

.tag--soon { background: #fbe5d9; color: #9a3c12; }

.game h3 {
  margin: 4px 0 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  font-stretch: 92%;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.game p { margin: 0; color: var(--ink-2); }

.game .go {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  color: var(--field);
}

.game:hover .go { text-decoration: underline; text-underline-offset: 4px; }

/* Facts */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li { border-top: 2px solid var(--ink); padding-top: 18px; }

.facts strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 800;
  font-stretch: 95%;
}

.facts span { color: var(--ink-2); }

.band { background: var(--paper-2); }

/* Wide picture with caption */

.plate { margin: 0; }

.plate img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.plate figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* Footer */

.foot {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.foot p { margin: 0; }

/* Simple pages (404) */

.plain {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.plain h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1;
}

.plain p { color: var(--ink-2); max-width: 44ch; }

.plain .btn { background: var(--ink); color: #fff; }

@media (max-width: 760px) {
  .games, .facts { grid-template-columns: minmax(0, 1fr); }
  /* On a phone the text would cover the whole picture, so the picture sits
     above it instead of under it. */
  .hero { display: block; min-height: 0; }
  .hero img { position: static; aspect-ratio: 4 / 3; object-position: 82% 80%; }
  .hero::after { background: linear-gradient(to bottom, rgba(10, 18, 13, 0.55) 0%, rgba(10, 18, 13, 0) 18%); bottom: auto; height: calc(100vw * 0.75); }
  .hero .wrap { padding-top: 28px; padding-bottom: 44px; }
}

@media (max-width: 400px) {
  .mark { font-size: 17px; gap: 6px; }
  .mark b { font-size: 11px; padding: 2px 5px 1px; }
  .nav { gap: 12px; font-size: 14px; }
  .nav .long { display: none; }
}
