/* Static SEO pages in the board design (see AGENTS.md "Design System - The Board").
   Mirrors the app tokens in src/index.css; these pages ship without Tailwind. */

@font-face {
  font-family: "Dela Gothic One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dela-gothic-one-400-normal-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-400-normal-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-700-normal-latin.woff2") format("woff2");
}

/* Board by day: cream paper, ink outlines. */
:root {
  color-scheme: light dark;
  --ink: #0a0a0a;
  --gold: #ffc93c;
  --gold-hover: #ffd566;
  --cream: #fff6de;
  --flood: #2b4bff;
  --mint: #3ddc97;
  --duel: #ff4d5e;

  --bg: #f6eeda;
  --piece: #fffbf0;
  --piece-hover: #ede2c6;
  --text: #0a0a0a;
  --muted: #5f5544;
  --edge: var(--ink);
  --link: var(--flood);

  --display: "Dela Gothic One", "Atkinson Hyperlegible", sans-serif;
  --sans: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
}

/* Board at night: warm charcoal table. Ink vanishes on it, so edges lighten. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2a2723;
    --piece: #37332f;
    --piece-hover: #48433d;
    --text: #fffbf0;
    --muted: #ccc3b0;
    --edge: #746e65;
    --link: #9fb0ff;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
strong,
th {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.page {
  min-height: 100vh;
  padding: 20px 16px 40px;
}

.wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
}

/* Header: the brand tile from the app's HomeLink, nav as chips. */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: transform 150ms ease;
}

.brand:hover {
  transform: rotate(-2deg);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 3px solid var(--edge);
  border-radius: 10px;
  background: var(--gold);
  box-shadow: 0 4px 0 var(--edge);
  color: var(--ink);
  font-size: 18px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  padding: 6px 14px;
  border: 2px solid var(--edge);
  border-radius: 999px;
  background: var(--piece);
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 13px;
  transition: background-color 120ms ease;
}

.nav a:hover {
  background: var(--piece-hover);
}

/* Hero: big display headline, gold primary action. */
.hero {
  max-width: 860px;
  padding-bottom: 48px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 1;
}

.lead {
  max-width: 660px;
  margin: 0 0 32px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Pressable board buttons: lift on hover, sink into the shadow on press. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 3px solid var(--edge);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--edge);
  font-family: var(--display);
  font-size: 16px;
  text-decoration: none;
  transition:
    transform 80ms ease,
    box-shadow 80ms ease,
    background-color 120ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--edge);
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

.button.primary:hover {
  background: var(--gold-hover);
}

.button.secondary {
  background: var(--piece);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--piece-hover);
}

/* Sections are board pieces laid on the table. */
.section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  margin-bottom: 28px;
  padding: 32px;
  border: 3px solid var(--edge);
  border-radius: 18px;
  background: var(--piece);
  box-shadow: 0 6px 0 var(--edge);
}

.section h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
}

.section p,
.section li {
  font-size: 17px;
  line-height: 1.7;
}

.section p:first-child {
  margin-top: 0;
}

.section p:last-child {
  margin-bottom: 0;
}

.list {
  margin: 0;
  padding-left: 22px;
}

.list li::marker {
  color: var(--flood);
}

/* Game modes as tokens, each with its board color. */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mode {
  padding: 18px;
  border: 3px solid var(--edge);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 4px 0 var(--edge);
}

.mode strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 17px;
}

.mode strong::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--flood);
}

.mode:nth-child(3n + 2) strong::before {
  background: var(--mint);
}

.mode:nth-child(3n + 3) strong::before {
  background: var(--duel);
}

.mode span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Comparison table (wiki-game-fast). */
.comp-table {
  width: 100%;
  margin: 20px 0;
  border: 3px solid var(--edge);
  border-radius: 14px;
  border-spacing: 0;
  overflow: hidden;
}

.comp-table th,
.comp-table td {
  padding: 12px 14px;
  border-bottom: 2px solid var(--edge);
  text-align: left;
  line-height: 1.5;
}

.comp-table tr:last-child td {
  border-bottom: 0;
}

.comp-table th {
  background: var(--bg);
  font-size: 15px;
}

.highlight-win {
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 24px 0;
  border-top: 3px solid var(--edge);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 760px) {
  .header {
    padding-bottom: 40px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
  }

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

  .comp-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .button {
    transition: none;
  }

  .brand:hover,
  .button:hover,
  .button:active {
    transform: none;
  }
}

/* Blog index: each post is a pressable board piece. */
.post-list {
  display: grid;
  gap: 20px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.post-card {
  display: block;
  padding: 28px 32px;
  border: 3px solid var(--edge);
  border-radius: 18px;
  background: var(--piece);
  box-shadow: 0 6px 0 var(--edge);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 80ms ease,
    box-shadow 80ms ease,
    background-color 120ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  background: var(--piece-hover);
}

.post-card:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--edge);
}

.post-card .post-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
}

.post-card h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.1;
}

.post-card p {
  max-width: 720px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .post-card {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card {
    transition: none;
  }

  .post-card:hover,
  .post-card:active {
    transform: none;
  }
}
