/*
 * The guide pages outside the bundle (rules.html, the lists, the board generator):
 * the poster's paper, ink, sakura and sky, Apfel Grotezk from /fonts, nothing from elsewhere.
 * privacy.html and imprint.html keep their own copy of the same look inline.
 */
@font-face { font-family: 'Apfel Grotezk'; font-weight: 400; font-display: swap; src: url('/fonts/ApfelGrotezk-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Apfel Grotezk'; font-weight: 500; font-display: swap; src: url('/fonts/ApfelGrotezk-Mittel.woff2') format('woff2'); }
@font-face { font-family: 'Apfel Grotezk'; font-weight: 600; font-display: swap; src: url('/fonts/ApfelGrotezk-Satt.woff2') format('woff2'); }
@font-face { font-family: 'Apfel Grotezk'; font-weight: 700; font-display: swap; src: url('/fonts/ApfelGrotezk-Fett.woff2') format('woff2'); }

:root {
  /* washi paper, plum ink, sakura and baby blue (2026-10-15, same values as src/ui/tokens.css --land-*) */
  --paper: #f8f1ee;
  --card: #fffbfc;
  --ink: #241a2b;
  --muted: #6e5c73;
  --rule: #d9c6cf;
  --sun: #f3c3d2;
  --sky: #b3dcf5;
  --sky-2: #d6edfb;
  --plum: #6a3d9a;
  --red: #b3321d;
  --line: 3px;
  --gutter: 32px;
  --shadow: 6px 6px 0 var(--ink);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.6 'Apfel Grotezk', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

/* ---- the bar and the foot ---------------------------------------------------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter); border-bottom: var(--line) solid var(--ink);
}
.mark { font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.045em; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.bar nav a:not(.btn) { text-decoration: none; }
.bar nav a:not(.btn):hover { text-decoration: underline; }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 20px var(--gutter) 28px; border-top: var(--line) solid var(--ink);
  font-size: 14.5px; color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---- buttons ------------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 9px 20px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--plum); border-color: var(--plum); color: var(--paper);
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--sun); border-color: var(--ink); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--sky); color: var(--ink); }
.btn--big { padding: 13px 28px; font-size: 17px; }

/* ---- the article ------------------------------------------------------------------ */
main { max-width: 46rem; padding: 48px var(--gutter) 72px; }
main.wide { max-width: 76rem; }
.prose { max-width: 46rem; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0 0 18px; font-size: clamp(40px, 7vw, 72px); font-weight: 700; line-height: 0.95; letter-spacing: -0.045em; }
.lede { margin: 0 0 30px; font-size: 20px; line-height: 1.5; }
h2 { margin: 52px 0 12px; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; scroll-margin-top: 16px; }
h3 { margin: 30px 0 6px; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
p, ul, ol, table, figure, dl { margin: 0 0 16px; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 6px; }
strong { font-weight: 700; }
.muted, .note { color: var(--muted); }
.note { font-size: 15px; }
hr { border: 0; border-top: var(--line) solid var(--ink); margin: 48px 0; }

.toc { padding: 18px 24px; border: 2px solid var(--ink); border-radius: 12px; background: var(--sky-2); }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 0 0 4px; }

figure img { display: block; border: var(--line) solid var(--ink); border-radius: 12px; }
figcaption { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.side { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: start; }
.side figure { margin: 4px 0 0; }

/* The sun box: the short version, and the way into the game. */
.box { margin: 28px 0; padding: 22px 26px 8px; border: var(--line) solid var(--ink); border-radius: 12px; background: var(--card); }
.box h2, .box h3 { margin-top: 0; }
.cta { margin: 40px 0; padding: 24px 26px; border: var(--line) solid var(--ink); border-radius: 12px; background: var(--sun); box-shadow: var(--shadow); }
.cta h2, .cta h3 { margin: 0 0 6px; }
.cta p { margin: 0 0 16px; }

/* ---- tables ------------------------------------------------------------------------ */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { border-bottom: 2px solid var(--ink); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }

/* ---- the pieces drawn into the rules ---------------------------------------------- */
.cards { display: flex; flex-wrap: wrap; gap: 14px; padding: 0; list-style: none; }
.cards li { margin: 0; width: 104px; text-align: center; font-size: 14px; line-height: 1.3; }
.cards .icon { --icon: 64px; margin: 0 auto 6px; }

/* a resource's symbol on its round plate, as the board shows it under a number */
.icon { --icon: 30px; display: grid; place-items: center; flex: none; width: var(--icon); height: var(--icon); border-radius: 50%; background: #f4ecd9; border: 2px solid #b8954a; }
.icon img { display: block; width: 78%; height: 78%; object-fit: contain; }
.cards b { display: block; font-size: 15px; }
.cards small { color: var(--muted); }

.costs { padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.costs li { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.costs .piece img { display: block; width: 72px; max-height: 58px; object-fit: contain; margin: 0 auto; }
.costs b { display: block; }
.costs small { color: var(--muted); }
.costs .price { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }
.costs .term { display: inline-flex; align-items: center; gap: 4px; }
.costs .term small { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.costs .op { font-style: normal; font-weight: 700; padding: 0 1px; }

.tokens { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.tokens li { display: grid; place-items: center; width: 54px; height: 54px; margin: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--card); line-height: 1; }
.tokens b { font-size: 19px; }
.tokens span { font-size: 9px; letter-spacing: 1px; margin-top: -10px; }
.tokens .red { color: var(--red); }

.awards { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; list-style: none; }
.awards li { margin: 0; font-size: 14.5px; }
.awards img { display: block; width: 240px; margin-bottom: 6px; }

/* ---- lists of games ---------------------------------------------------------------- */
.game { margin: 0 0 12px; padding: 18px 22px 6px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); }
.game h3 { margin: 0 0 4px; }
.game .meta { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); }
.game.ours { background: var(--sun); }
.tag { display: inline-block; margin-left: 8px; padding: 1px 9px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 12.5px; font-weight: 600; vertical-align: 3px; }

/* ---- questions --------------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 4px; }

.disclaimer { margin: 40px 0 0; padding: 14px 18px; border: 2px dashed var(--muted); border-radius: 10px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 720px) {
  :root { --gutter: 16px; --shadow: 4px 4px 0 var(--ink); }
  body { font-size: 16px; }
  .mark { font-size: 28px; }
  .bar nav { gap: 14px; }
  .bar nav .hide-sm { display: none; }
  main { padding-top: 36px; }
  .lede { font-size: 18px; }
  h2 { font-size: 24px; }
  .toc ol { columns: 1; }
  .side { grid-template-columns: 1fr; }
  .side figure { max-width: 260px; }
}

@media print {
  .bar nav, .foot, .cta, .no-print { display: none !important; }
  body { font-size: 12pt; }
  main { padding: 0; max-width: none; }
}
