/* Design System v2.1 — canonical tokens. See /design.md for full documentation. */
:root {
  --brown-25:#FBF7F5; --brown-50:#F6EFEA; --brown-100:#EDDFD4; --brown-150:#E5CFBF; --brown-200:#DCBFAA; --brown-300:#CA9E7F; --brown-400:#B97E55; --brown-500:#A75E2A; --brown-600:#864B22; --brown-700:#643819; --brown-800:#432611;
  --moss-50:#F0F4EC; --moss-100:#E0E8D9; --moss-150:#D1DDC5; --moss-200:#BDD9A1; --moss-300:#9EBD7F; --moss-400:#80A857; --moss-500:#5C793E; --moss-600:#4D6534; --moss-700:#40542B; --moss-800:#364724; --moss-900:#212D16;
  --green-50:#CDE7CF; --green-100:#BCDBBD; --green-150:#AAD0AC; --green-200:#98C49A; --green-300:#75AC78; --green-400:#519555; --green-500:#2E7D32; --green-600:#256428; --green-700:#1C4B1E; --green-800:#123214;
  --blue-50:#E3F2FA; --blue-100:#CAE6F6; --blue-150:#B1DBF1; --blue-200:#98CFED; --blue-300:#66B7E3; --blue-400:#34A0DA; --blue-500:#0288D1; --blue-600:#026DA7; --blue-700:#01527D; --blue-800:#013654;
  --yellow-50:#FDF0E6; --yellow-100:#FBE2CC; --yellow-150:#FAD3B3; --yellow-200:#F8C49A; --yellow-300:#F4A767; --yellow-400:#F18935; --yellow-500:#ED6C02; --yellow-600:#BE5602; --yellow-700:#8E4101; --yellow-800:#5F2B01;
  --red-50:#FBEAEA; --red-100:#F6D5D5; --red-150:#F2C1C1; --red-200:#EDACAC; --red-300:#E58282; --red-400:#DC5959; --red-500:#D32F2F; --red-600:#A92626; --red-700:#7F1C1C; --red-800:#56241E;
  --grey-50:#F5F5F5; --grey-100:#ECECEC; --grey-150:#E2E2E2; --grey-200:#D8D8D8; --grey-300:#C5C5C5; --grey-400:#B1B1B1; --grey-500:#9E9E9E; --grey-600:#808080; --grey-700:#636363; --grey-800:#454545; --black-900:#0B0B0B; --white-100:#FFFFFF;
  --space-0:0; --space-0-5:2px; --space-1:4px; --space-1-5:6px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px; --space-6:24px; --space-7:28px; --space-8:32px; --space-9:36px; --space-10:40px; --space-11:44px; --space-12:48px; --space-14:56px; --space-16:64px; --space-20:80px; --space-24:96px;
  --radius-xxs:0; --radius-xs:2px; --radius-sm:4px; --radius-md:8px; --radius-lg:12px; --radius-xl:16px; --radius-2xl:32px; --radius-3xl:48px; --radius-4xl:96px; --radius-full:9999px;
  --stroke-0:0; --stroke-0-5:.5px; --stroke-1:1px; --stroke-1-5:1.5px; --stroke-2:2px;
  --shadow-primary:0 4px 16px 0 rgb(0 0 0 / .12); --shadow-sm:0 1px 4px 0 rgb(0 0 0 / .08); --shadow-lg:0 12px 32px 0 rgb(0 0 0 / .16);
  --font-heading:"Zilla Slab",Georgia,"Times New Roman",serif; --font-body:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif; --weight-regular:400; --weight-semibold:600; --weight-bold:700;
  --duration-instant:100ms; --duration-fast:150ms; --duration-base:200ms; --duration-slow:300ms; --ease-standard:cubic-bezier(.2,0,0,1); --z-base:0; --z-sticky:100; --z-header:200; --z-dropdown:300; --z-overlay:400; --z-modal:500; --z-toast:600; --z-tooltip:700; --control-md:32px; --control-lg:44px; --tap-target:44px; --icon-14:14px; --icon-16:16px; --icon-20:20px; --icon-24:24px; --icon-28:28px; --focus-ring-width:2px; --focus-ring-offset:2px; --content-width:1200px;
}

:root, :root[data-theme="light"] { color-scheme:light; --bg-page:var(--white-100); --bg-component:var(--white-100); --bg-raised:var(--white-100); --bg-scrim:rgb(11 11 11 / .5); --bg-header:rgb(255 255 255 / .8); --surface-primary:var(--brown-500); --surface-primary-hover:var(--brown-600); --surface-primary-pressed:var(--brown-700); --surface-primary-focused:var(--brown-400); --surface-primary-tint:var(--brown-25); --surface-secondary:var(--moss-600); --surface-secondary-hover:var(--moss-700); --surface-secondary-pressed:var(--moss-800); --surface-secondary-focused:var(--moss-500); --surface-secondary-tint:var(--moss-50); --surface-danger:var(--red-500); --surface-danger-hover:var(--red-600); --surface-danger-pressed:var(--red-700); --surface-danger-focused:var(--red-400); --surface-danger-tint:var(--red-50); --surface-success:var(--green-500); --surface-success-hover:var(--green-600); --surface-success-pressed:var(--green-700); --surface-success-focused:var(--green-400); --surface-success-tint:var(--green-50); --surface-warning-tint:var(--yellow-50); --surface-info-tint:var(--blue-50); --surface-neutral:var(--grey-500); --surface-neutral-hover:var(--grey-600); --surface-neutral-pressed:var(--grey-700); --surface-neutral-focused:var(--grey-400); --surface-disabled:var(--grey-200); --text-base:var(--black-900); --text-neutral:var(--grey-700); --text-placeholder:var(--grey-700); --text-hint:var(--grey-700); --text-filled:var(--black-900); --text-label:var(--black-900); --text-on-disabled:var(--grey-700); --text-on-primary:var(--white-100); --text-on-secondary:var(--white-100); --text-on-danger:var(--white-100); --text-on-success:var(--white-100); --text-primary:var(--brown-500); --text-secondary:var(--moss-600); --text-link:var(--moss-600); --text-success:var(--green-500); --text-warning:var(--yellow-600); --text-error:var(--red-500); --text-info:var(--blue-600); --border-neutral:var(--grey-600); --border-light:var(--grey-200); --icon-primary:var(--brown-500); --icon-disabled:var(--grey-600); --focus-color:var(--blue-500); }

:root[data-theme="dark"] { color-scheme:dark; --bg-page:var(--black-900); --bg-component:var(--black-900); --bg-raised:#161616; --bg-scrim:rgb(0 0 0 / .65); --bg-header:var(--black-900); --surface-primary-tint:var(--brown-800); --surface-secondary:var(--moss-500); --surface-secondary-hover:var(--moss-600); --surface-secondary-pressed:var(--moss-700); --surface-secondary-focused:var(--moss-400); --surface-secondary-tint:var(--moss-900); --surface-danger-tint:var(--red-800); --surface-success-tint:var(--green-600); --surface-warning-tint:var(--yellow-800); --surface-info-tint:var(--blue-800); --text-base:var(--white-100); --text-neutral:var(--grey-500); --text-placeholder:var(--grey-500); --text-hint:var(--grey-500); --text-filled:var(--white-100); --text-label:var(--white-100); --text-on-disabled:var(--grey-800); --text-primary:var(--brown-200); --text-secondary:var(--moss-200); --text-link:var(--moss-200); --text-success:var(--green-400); --text-warning:var(--yellow-500); --text-error:var(--red-400); --text-info:var(--blue-500); --icon-primary:var(--brown-300); --border-light:var(--grey-800); }

@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) { color-scheme:dark; --bg-page:var(--black-900); --bg-component:var(--black-900); --bg-raised:#161616; --bg-scrim:rgb(0 0 0 / .65); --bg-header:var(--black-900); --surface-primary-tint:var(--brown-800); --surface-secondary:var(--moss-500); --surface-secondary-hover:var(--moss-600); --surface-secondary-pressed:var(--moss-700); --surface-secondary-focused:var(--moss-400); --surface-secondary-tint:var(--moss-900); --surface-danger-tint:var(--red-800); --surface-success-tint:var(--green-600); --surface-warning-tint:var(--yellow-800); --surface-info-tint:var(--blue-800); --text-base:var(--white-100); --text-neutral:var(--grey-500); --text-placeholder:var(--grey-500); --text-hint:var(--grey-500); --text-filled:var(--white-100); --text-label:var(--white-100); --text-on-disabled:var(--grey-800); --text-primary:var(--brown-200); --text-secondary:var(--moss-200); --text-link:var(--moss-200); --text-success:var(--green-400); --text-warning:var(--yellow-500); --text-error:var(--red-400); --text-info:var(--blue-500); --icon-primary:var(--brown-300); --border-light:var(--grey-800); } }

/* Legacy aliases keep the current compositions semantic while their names are migrated. */
:root { --color-page:var(--bg-page); --color-surface:var(--bg-component); --color-surface-elevated:var(--bg-raised); --color-surface-raised:var(--bg-raised); --color-surface-sunken:var(--surface-primary-tint); --color-text:var(--text-base); --color-text-muted:var(--text-neutral); --color-text-subtle:var(--text-hint); --color-border:var(--border-light); --color-primary:var(--surface-primary); --color-primary-hover:var(--surface-primary-hover); --color-primary-ink:var(--text-primary); --color-primary-tint:var(--surface-primary-tint); --color-secondary:var(--surface-secondary); --color-secondary-ink:var(--text-secondary); --color-focus:var(--focus-color); --color-success:var(--surface-success); --color-on-primary:var(--text-on-primary); --color-on-secondary:var(--text-on-secondary); --color-black:var(--black-900); --color-white:var(--white-100); --color-grid:color-mix(in srgb,var(--text-primary) 7%,transparent); --shadow-card:var(--shadow-primary); --shadow-float:var(--shadow-lg); --radius-pill:var(--radius-full); --space-05:var(--space-0-5); --stroke-05:var(--stroke-0-5); --stroke-15:var(--stroke-1-5); --text-h1:48px; --text-h2:40px; --text-h3:32px; --text-h4:24px; --text-h5:20px; --text-h6:16px; --text-body-large:16px; --text-body:14px; --text-small:12px; --line-h1:56px; --line-h2:48px; --line-h3:40px; --line-h4:28px; --line-h5:24px; --line-h6:20px; --line-body-large:20px; --line-body:16px; --line-small:16px; }
