/* zarbdar.app: the website's shared style (home, how to play, FAQ). Cream paper, ink, burgundy;
   Dark Jungle Green in dark mode. The game itself (/play/) has its own style. */
@font-face { font-family: 'Gabarito'; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/gabarito-latin.woff2) format('woff2'); }
:root {
  --bg: #EAE4D6; --paper: #F6F2EA; --ink: #151517; --muted: #6a6358; --ring: #d6cdbd;
  --brand: #6E2123; --tile: #151517; --tile-text: #fff; --cross: #6E2123;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1F201F; --paper: #2c2d2b; --ink: #F2F1EC; --muted: #a3a49e; --ring: #3d3e3b;
    --brand: #c85a5c; --tile: #F2F1EC; --tile-text: #1F201F; --cross: #7a2629; }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Gabarito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.logo { display: block; height: auto; }
.logo.d { display: none; }
@media (prefers-color-scheme: dark) { .logo.l { display: none; } .logo.d { display: block; } }

/* top bar: the logo home, and the three places to go */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.top .home .logo { width: 132px; }
.top nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 800;
  border-radius: 999px; padding: 13px 26px; font-size: 18px; background: var(--cross); color: #fff; }
.btn.small { padding: 8px 18px; font-size: 15px; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ring); }

/* reading pages (how to play, FAQ) */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.doc h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 6px; }
.doc .updated { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.doc .lead { font-size: 20px; line-height: 1.5; margin: 0 0 8px; }
.doc h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 17px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ring); vertical-align: top; }
.doc th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.doc td.n { font-variant-numeric: tabular-nums; font-weight: 700; }
.tiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tiles span { width: 46px; height: 50px; border-radius: 10px; background: var(--tile); color: var(--tile-text); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 800; font-size: 19px; line-height: 1; }
.tiles span small { font-size: 11px; font-weight: 600; opacity: .7; margin-top: 3px; }
.callout { background: var(--paper); border-radius: 16px; padding: 18px 20px; margin: 22px 0; }
.callout p { margin: 0; }
.qa h2 { font-size: 21px; margin-top: 34px; }
.cta-band { text-align: center; padding: 40px 16px 56px; }
.cta-band h2 { margin: 0 0 16px; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; }

footer { border-top: 1px solid var(--ring); padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; font-weight: 600; color: var(--ink); }
footer a:hover { color: var(--brand); }
@media (max-width: 560px) { .top .home .logo { width: 112px; } .top nav { font-size: 14px; gap: 4px 14px; } }
