/* GLOBAL DESIGN TOKENS. Sections never edit these; they override the semantic vars in themes.css. */
:root{
  /* typography */
  --font-sans: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-serif: Georgia,"Times New Roman",serif;
  --font-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --fs-xs:.78rem; --fs-sm:.875rem; --fs-md:1rem; --fs-lg:1.125rem; --fs-xl:1.4rem; --fs-2xl:clamp(1.8rem,3.2vw,2.25rem); --fs-hero:clamp(2rem,4.3vw,3.35rem);
  --fw-regular:400; --fw-medium:500; --fw-bold:700; --lh-tight:1.15; --lh-body:1.6;
  /* spacing */
  --sp-1:.25rem; --sp-2:.5rem; --sp-3:.75rem; --sp-4:1rem; --sp-5:1.5rem; --sp-6:2rem; --sp-7:3rem; --sp-8:4rem;
  /* radius */
  --r-sm:5px; --r-md:9px; --r-lg:14px; --r-xl:20px; --r-pill:999px;
  /* shadows */
  --sh-sm:0 1px 2px rgb(20 35 31/.05); --sh-md:0 8px 22px rgb(20 35 31/.09); --sh-lg:0 18px 48px rgb(20 35 31/.16);
  /* transitions */
  --t-fast:120ms ease; --t-base:200ms ease; --t-slow:360ms cubic-bezier(.2,.8,.2,1);
  /* layout widths (breakpoints: 640 / 900 / 1200, used in @media, since custom props can't be used there) */
  --w-narrow:44rem; --w-content:72rem; --w-wide:84rem; --header-h:4rem;
  /* component states */
  --focus-ring:0 0 0 3px color-mix(in srgb,var(--focus,var(--accent)) 45%,transparent);
  --hover-lift:translateY(-2px); --disabled-opacity:.5;
  --z-header:50; --z-drawer:60; --z-modal:70;
}
/* neutral palette: light */
:root,[data-mode="light"]{
  --bg:#F4F5F1; --surface:#FFFFFF; --surface-2:#EDF1EE; --surface-elevated:#FFFFFF; --border:#D6DEDA;
  --text:#202A2B; --text-secondary:#3E4C4B; --text-muted:#596866;
  --ok:#216B43; --warn:#805300; --err:#B32632; --info:#245D8F;
}
/* neutral palette: dark */
[data-mode="dark"]{
  --bg:#080B0B; --surface:#101514; --surface-2:#171E1C; --surface-elevated:#1C2522; --border:#34423D;
  --text:#F1F4EF; --text-secondary:#D2DBD5; --text-muted:#AAB8B0;
  --ok:#83D6A0; --warn:#F0C36A; --err:#FF8C8C; --info:#8FC8FF;
}
@media (prefers-color-scheme:dark){
  :root:not([data-mode]){
    --bg:#080B0B; --surface:#101514; --surface-2:#171E1C; --surface-elevated:#1C2522; --border:#34423D;
    --text:#F1F4EF; --text-secondary:#D2DBD5; --text-muted:#AAB8B0;
    --ok:#83D6A0; --warn:#F0C36A; --err:#FF8C8C; --info:#8FC8FF;
  }
}
