/* The plain pages around the game (How to play, FAQ, About, Trucks), written by tools/site/site.mjs.
   Same palette and pixel fonts as the game's HUD (src/style.css), nothing from the game's bundle. */
@font-face { font-family: 'Pixelify Sans'; font-weight: 400; font-display: swap; src: url(/fonts/pixelify-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url(/fonts/pixelify-sans-700.woff2) format('woff2'); }
@font-face { font-family: 'Silkscreen'; font-weight: 400; font-display: swap; src: url(/fonts/silkscreen-400.woff2) format('woff2'); }
:root {
  --ink: #2a1f2d;
  --paper: #fff4dc;
  --card: #fffaf0;
  --red: #e2412f;
  --red-d: #a52a1d;
  --gold: #ffcc3d;
  --blue-d: #1f5fa8;
  --night: #24324a;
  --muted: #5d4e5f;
  --line: #e6d6b4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night) linear-gradient(180deg, #2f5f9e 0, var(--night) 520px) no-repeat;
  color: var(--ink);
  font: 18px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
/* Pixel font for headings only. Its "fi" ligature reads as an "A" (as in src/style.css): ligatures off. */
h1, h2, h3, dt, .top nav, footer nav, .trucks tbody th {
  font-family: 'Pixelify Sans', system-ui, sans-serif;
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'clig' 0;
}
a { color: var(--blue-d); }
.top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 960px; margin: 0 auto; padding: 14px 16px;
}
.brand img { display: block; width: 120px; height: auto; image-rendering: pixelated; }
.top nav { display: flex; gap: 4px 16px; flex-wrap: wrap; flex: 1; }
.top nav a { color: #fff; text-decoration: none; font-size: 17px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.btn {
  display: inline-block; padding: 8px 16px; background: var(--red); color: #fff; text-decoration: none;
  font-family: 'Silkscreen', 'Pixelify Sans', sans-serif; font-size: 15px; letter-spacing: .02em;
  border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); border-radius: 2px;
}
.btn:hover { background: var(--red-d); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.big { font-size: 20px; padding: 12px 22px; }
main {
  max-width: 960px; margin: 8px auto 24px; padding: 28px clamp(16px, 4vw, 40px) 36px;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
}
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; color: var(--red-d); }
h2 { font-size: 26px; line-height: 1.2; margin: 36px 0 12px; }
h3 { font-size: 20px; margin: 0 0 4px; }
.lead { font-size: 20px; margin: 0 0 8px; }
p, li, dd { max-width: 70ch; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 64px; background: var(--card); border: 2px solid var(--line); }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; background: var(--gold); border: 2px solid var(--ink);
  font: 20px 'Silkscreen', sans-serif;
}
.steps p { margin: 0; }
.pairs { margin: 0; display: grid; gap: 10px; }
.pairs div { padding: 12px 16px; background: var(--card); border: 2px solid var(--line); }
.pairs dt { font-weight: 700; font-size: 19px; }
.pairs dd { margin: 2px 0 0; }
.tips { padding-left: 22px; }
.tips li { margin: 6px 0; }
.faq section { padding: 4px 0 8px; border-bottom: 2px dashed var(--line); }
.faq h2 { font-size: 21px; margin: 18px 0 6px; }
.faq p { margin: 0 0 8px; }
.shot { margin: 20px 0 0; }
.shot img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.trucks { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.trucks th, .trucks td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.trucks thead th { font-family: 'Silkscreen', sans-serif; font-size: 13px; background: var(--ink); color: var(--paper); border: 0; }
.trucks tbody th { white-space: nowrap; font-size: 18px; }
.trucks .num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 16px; }
.cta { margin: 36px 0 0; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.cta span { color: var(--muted); }
footer { max-width: 960px; margin: 0 auto; padding: 8px 16px 32px; color: #c9d4e6; font-size: 16px; }
footer nav { display: flex; gap: 6px 16px; flex-wrap: wrap; }
footer a { color: #fff; }
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top .play { display: none; }
  .brand img { width: 96px; }
  main { border-left: 0; border-right: 0; }
  .steps li { padding-left: 56px; }
  .steps li::before { left: 10px; }
  /* The truck table as one card per truck. */
  .trucks { min-width: 0; }
  .trucks thead { display: none; }
  .trucks tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 2px solid var(--line); }
  .trucks th, .trucks td { padding: 0; border: 0; }
  .trucks td:nth-of-type(1) { grid-column: 1; grid-row: 2; color: var(--muted); }
  .trucks td.num { grid-column: 2; grid-row: 1; }
  .trucks td:nth-of-type(3) { grid-column: 1 / -1; }
}
