/* Shared styles for the static pages. Colours mirror design/design-system/tokens.json (Dan / Noć). */
:root {
  --bg: #f8f5f0;
  --surface: #ffffff;
  --line: #e5ded3;
  --ink: #16181b;
  --ink-muted: #686c73;
  --accent: #0f766e;
  --accent-tint: rgba(15, 118, 110, 0.1);
  --danger: #b42318;
  --danger-tint: #fbe4e1;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #17191c;
    --line: #2a2e34;
    --ink: #f3f1ed;
    --ink-muted: #9ba0a8;
    --accent: #9fe3d6;
    --accent-tint: rgba(159, 227, 214, 0.12);
    --danger: #ff8f85;
    --danger-tint: rgba(255, 143, 133, 0.14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 32px 20px 64px; }
header.site { max-width: 680px; margin: 0 auto; padding: 20px 20px 0; }
header.site a { color: var(--ink); font-weight: 700; font-size: 20px; text-decoration: none; }

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 4px; }
a { color: var(--accent); }
.meta { color: var(--ink-muted); font-size: 15px; margin-bottom: 24px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 16px 0; }
.card > :last-child { margin-bottom: 0; }
.note { background: var(--accent-tint); border-radius: 16px; padding: 16px 20px; margin: 16px 0; }
.note > :last-child { margin-bottom: 0; }
.warn { background: var(--danger-tint); border-radius: 16px; padding: 16px 20px; margin: 16px 0; }
.warn > :last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
th { color: var(--ink-muted); font-weight: 600; }
.scroll { overflow-x: auto; }

/* Unfilled facts in a draft; must be gone before the page goes live. */
mark { background: #ffe58a; color: #16181b; padding: 0 3px; border-radius: 3px; }

footer.site { max-width: 680px; margin: 0 auto; padding: 0 20px 40px; color: var(--ink-muted); font-size: 15px; }
footer.site a { color: var(--ink-muted); }
