@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --mist: #eef1f3;
  --ink: #15222c;
  --slate: #56656f;
  --rule: #c9d2d8;
  --jade: #0b7a6a;
  --core: #15222c;
  --shell: #0b7a6a;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #10181e;
    --ink: #e7ecef;
    --slate: #9aa8b1;
    --rule: #2a3640;
    --jade: #4cc7b3;
    --core: #e7ecef;
    --shell: #4cc7b3;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --mist: #10181e;
  --ink: #e7ecef;
  --slate: #9aa8b1;
  --rule: #2a3640;
  --jade: #4cc7b3;
  --core: #e7ecef;
  --shell: #4cc7b3;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Schibsted Grotesk", system-ui, sans-serif;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) 1rem 3rem;
}

/* The mark: a solid core, offset inside its shell, moving toward the next corner. */
.mark {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 2rem;
}
.mark .shell { fill: none; stroke: var(--shell); stroke-width: 6; }
.mark .core { fill: var(--core); }

h1 {
  margin: 0;
  font-size: clamp(3rem, 13vw, 6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 30ch;
  margin: 1.5rem 0 0;
  font-size: clamp(1.25rem, 3.4vw, 1.5625rem);
  line-height: 1.35;
  color: var(--slate);
}

section {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.game {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
.game img { width: 4.5rem; height: 4.5rem; border-radius: 1.1rem; }
.game h3 { margin: 0; font-size: 1.5625rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.game p { margin: 0.35rem 0 0; max-width: 46ch; }

a {
  color: var(--jade);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 2px; }

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 2rem;
  margin: 0;
}
dt { color: var(--slate); }
dd { margin: 0; }

@media (max-width: 30rem) {
  dl { grid-template-columns: 1fr; gap: 0; }
  dd { margin-bottom: 0.9rem; }
}

footer {
  margin-top: 4.5rem;
  font-size: 0.875rem;
  color: var(--slate);
}
footer p { margin: 0.25rem 0; }
