:root {
  --ink: #172d36;
  --paper: #fffdf5;
  --news: #fbf3dc;
  --blue: #37a9c6;
  --red: #ee5a46;
  --yellow: #f5c84b;
  --muted: #596c72;
  --line: 3px solid var(--ink);
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(23,45,54,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,45,54,.05) 1px, transparent 1px),
    var(--news);
  background-size: 34px 34px;
  font-weight: 800;
}

button, a { font: inherit; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 6px solid var(--ink);
  background: var(--paper);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
}

.masthead nav {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.masthead nav a,
.lang button {
  min-height: 42px;
  padding: 0 14px;
  display: inline-grid;
  place-items: center;
  border: var(--line);
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(23,45,54,.16);
}

.masthead nav a.active,
.masthead nav a:hover,
.lang button.active {
  background: var(--yellow);
}

.lang {
  display: flex;
  gap: 6px;
}

.lang button {
  cursor: pointer;
  padding: 0 11px;
}

.front-page {
  padding: 28px clamp(18px, 4vw, 56px) 56px;
  display: grid;
  grid-template-columns: 1.1fr .62fr;
  grid-template-areas:
    "headline side"
    "ticker side"
    "game side";
  gap: 20px;
  align-items: start;
}

.headline {
  grid-area: headline;
  min-height: 220px;
  padding: 22px 0;
  border-bottom: 8px double var(--ink);
}

.edition {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: var(--line);
  background: var(--red);
  color: white;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 126px);
  line-height: .82;
  letter-spacing: 0;
}

.headline p:not(.edition),
.article-hero p:not(.edition) {
  max-width: 850px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.ticker {
  grid-area: ticker;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ticker span,
.press-game,
.side-column article,
.feature-list article,
.guide-strip article,
.contact-sheet article,
.plain-copy article {
  background: rgba(255,253,245,.94);
  border: var(--line);
  box-shadow: 8px 8px 0 rgba(23,45,54,.14);
}

.ticker span {
  min-height: 76px;
  padding: 12px;
  display: grid;
  align-content: center;
}

.ticker b {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
}

.ticker strong {
  font-size: 34px;
}

.press-game {
  grid-area: game;
  overflow: hidden;
}

canvas {
  width: 100%;
  display: block;
  background: var(--blue);
  aspect-ratio: 1100 / 620;
}

.controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-top: var(--line);
}

.controls button,
.mobile-controls button {
  border: var(--line);
  background: var(--yellow);
  color: var(--ink);
  min-height: 52px;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
}

.controls p {
  margin: 0;
  color: var(--muted);
}

.mobile-controls {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 14px 14px;
}

.side-column {
  grid-area: side;
  display: grid;
  gap: 20px;
  position: sticky;
  top: 106px;
}

.side-column article,
.feature-list article,
.guide-strip article,
.contact-sheet article,
.plain-copy article {
  padding: 22px;
}

.side-column img,
.feature-list img {
  width: 130px;
  max-width: 100%;
}

h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: .98;
}

p {
  color: var(--muted);
  line-height: 1.48;
}

.article-page {
  padding: 42px clamp(18px, 6vw, 92px) 70px;
}

.article-hero {
  min-height: 340px;
  display: grid;
  align-content: center;
  border-bottom: 8px double var(--ink);
  margin-bottom: 28px;
}

.article-hero.compact {
  min-height: 250px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.guide-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-strip span {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 56px;
  padding: 0 14px;
  background: var(--yellow);
  border: var(--line);
  font-size: 26px;
}

.contact-sheet {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}

.plain-copy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1080px) {
  .masthead {
    grid-template-columns: 1fr auto;
  }

  .masthead nav {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .front-page {
    grid-template-columns: 1fr;
    grid-template-areas:
      "headline"
      "ticker"
      "game"
      "side";
  }

  .side-column {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .masthead {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    width: 100%;
    max-width: 100vw;
  }

  .brand {
    justify-content: center;
  }

  .masthead nav {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    max-width: 320px;
    justify-self: start;
  }

  .masthead nav a,
  .lang button {
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    font-size: 13px;
  }

  .lang {
    justify-content: center;
  }

  .front-page,
  .article-page {
    padding: 18px 14px 38px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .front-page > *,
  .article-page > * {
    width: min(100%, 360px);
    max-width: 360px;
  }

  h1 {
    font-size: 36px;
    line-height: .96;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .headline,
  .article-hero,
  .press-game,
  .side-column article,
  .feature-list article,
  .guide-strip article,
  .contact-sheet article,
  .plain-copy article {
    max-width: 100%;
    min-width: 0;
  }

  .headline p:not(.edition),
  .article-hero p:not(.edition),
  p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ticker,
  .side-column,
  .feature-list,
  .guide-strip,
  .contact-sheet,
  .plain-copy {
    grid-template-columns: 1fr;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .mobile-controls {
    display: grid;
  }

  .article-hero,
  .article-hero.compact {
    min-height: 220px;
  }
}
