/* Shared tokens and base styles for every page (board, generated pages, privacy). */
:root {
  --bg:#f5f6f8; --card:#fff; --fg:#16181d; --mute:#5b6270; --line:#dde0e6; --tag:#eceef2;
  --acc:#c2410c; --acc-ink:#fff; --yes:#1d7a3a; --no:#b42318; --nr:#1d5fa8; --hi:#fff4e5;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;
  --t-xs:12px; --t-sm:13px; --t-md:14px; --t-lg:16px; --t-xl:20px; --t-2xl:26px;
  --r-sm:6px; --r-md:10px; --fast:160ms; --slow:240ms; --ease:cubic-bezier(.2,.7,.3,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#121418; --card:#1a1d23; --fg:#e8eaee; --mute:#9ba2ae; --line:#2c3038; --tag:#252931;
    --acc:#ff8a4c; --acc-ink:#1a0d05; --yes:#5fd38a; --no:#ff8b80; --nr:#7cb6ff; --hi:#3a2a1c; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--t-md)/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acc); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 3px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Site navigation on generated pages and the privacy page. */
nav.top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: var(--t-md); }
nav.top .brand { font-weight: 700; color: var(--fg); text-decoration: none; margin-right: var(--s2); }
nav.top a[aria-current] { color: var(--fg); text-decoration: none; font-weight: 600; }
.site-foot { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.site-foot p { flex-basis: 100%; margin: 0 0 var(--s1); }

@media (pointer: coarse) {
  nav.top a, .site-foot a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Inline padding grows a text link's tap area to 44px without moving the text. */
  main a, .intro a { padding-block: 14px; }
}
@media (max-width: 700px) {
  nav.top { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
