/* Colours, radii and fonts from design/tokens.json (light theme, dark theme under prefers-color-scheme). */
:root {
  --surface-0: #daf1de; /* mint-100 */
  --surface-1: #eaf7ec; /* mint-50 */
  --surface-2: #f6fcf7; /* mint-25 */
  --surface-3: #c5e4cb; /* mint-200 */
  --border-subtle: #8eb69b; /* sage-400 */
  --text: #051f20; /* forest-950 */
  --text-muted: #235347; /* forest-700 */
  --header-bg: #051f20; /* forest-950 */
  --header-text: #daf1de; /* mint-100 */
  --header-muted: #8eb69b; /* sage-400 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 9999px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-0: #051f20;
    --surface-1: #0b2b26;
    --surface-2: #163832;
    --surface-3: #235347;
    --border-subtle: #235347;
    --text: #daf1de;
    --text-muted: #8eb69b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text);
  font: 400 17px/1.6 "Barlow", system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
h1, h2, .brand { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; line-height: 1.1; }

header { background: var(--header-bg); color: var(--header-text); padding: 20px 16px 32px; }
header .bar, main, footer { max-width: 760px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 26px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: var(--radius-sm); }
header h1 { font-size: 44px; margin: 28px 0 6px; }
header p { margin: 0; color: var(--header-muted); }

main { padding: 24px 16px 8px; }
nav.toc, section {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
nav.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; }
section h2 { font-size: 28px; margin: 0 0 8px; scroll-margin-top: 16px; }
section h3 { font-size: 17px; margin: 18px 0 4px; }
section p, section ul { margin: 8px 0; }
section ul { padding-left: 20px; }
.note { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
code { font-size: 15px; background: var(--surface-3); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }

footer { padding: 8px 16px 40px; color: var(--text-muted); font-size: 15px; }

/* Home page */
.hero { max-width: none; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 16px; background: var(--header-bg); color: var(--header-text); }
.hero img { width: 128px; height: 128px; border-radius: 28px; }
.hero h1 { font-size: 64px; margin: 20px 0 8px; letter-spacing: 0.5px; }
.hero p { margin: 0 0 28px; max-width: 30ch; font-size: 20px; color: var(--header-muted); }
.pill { display: inline-block; padding: 14px 28px; border-radius: var(--radius-pill); background: var(--header-text); color: var(--header-bg); font-weight: 600; text-decoration: none; min-height: 48px; }
.hero small { margin-top: 40px; color: var(--header-muted); }
