:root {
  /* Font families */
  --font-sans: 'Sora', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Azeret Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Font sizes — rem, relative to html's root font-size in site.css under the html element.
     Values unchanged from the original scale; the ~20% density reduction
     comes entirely from site.css's root font-size (14px->11px / 16px->13px),
     so every rem-based token below shrinks automatically from one dial. */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Spacing — converted from px to rem at the old 16px root (value/16), so the
     single root font-size change below applies the same ratio here too. */
  --space-xs: 0.25rem;   /* was 4px */
  --space-sm: 0.5rem;    /* was 8px */
  --space-md: 0.75rem;   /* was 12px */
  --space-lg: 1rem;      /* was 16px */
  --space-xl: 1.5rem;    /* was 24px */

  /* Radius — same px/16 conversion as spacing. */
  --radius-xxs: 0.125rem; /* was 2px */
  --radius-xs: 0.25rem;   /* was 4px */
  --radius-sm: 0.5rem;    /* was 8px, canonical buttons/inputs */
  --radius-md: 0.75rem;   /* was 12px, AI-feature buttons/cards */
  --radius-circle: 50%;   /* square elements only — for non-square pill/stadium shapes use --radius-pill */
  --radius-pill: 9999px;  /* status badges/pills — deliberately NOT rem-converted: functions as a "max out" stadium value, not a proportional size */

  /* Elevation — left as literal px. Shadow blur/offset proportionality is a
     secondary visual-depth concern, not a reading-density one. */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 10px 24px rgba(0,0,0,.18);

  /* Component tokens */
  --btn-padding-y: var(--space-sm);
  --btn-padding-x: 1rem;        /* was 16px */
  --btn-font-size: var(--font-size-sm);
  --btn-radius: var(--radius-xxs);
  /* --btn-icon-size deliberately breaks the clean px/16 rule (which would give 2rem,
     i.e. 22px at the 11px mobile root) — that would violate the WCAG 2.2 SC 2.5.8 (AA)
     24x24px minimum target size. Hand-tuned instead so the mobile root still
     clears 24px with a small safety margin: */
  --btn-icon-size: 2.25rem;     /* was 32px -> 24.75px @ 11px root (mobile), 29.25px @ 13px root (desktop) */
  --btn-icon-size-lg: 2.75rem;  /* was 44px -> 30.25px @ 11px root (mobile), 35.75px @ 13px root (desktop); clean px/16 rule, comfortably clears the AA floor at both breakpoints */
  --btn-ai-radius: var(--radius-md);
  --btn-ai-padding-y: 0.75rem;  /* was 12px */
  --btn-ai-padding-x: 1.125rem; /* was 18px */
  --btn-ai-font-size: var(--font-size-sm);
  --label-font-size: var(--font-size-sm);
  --label-font-weight: var(--font-weight-medium);
  --label-color: var(--color-text-muted);

  /* MDB cascade override point */
  --mdb-font-roboto: var(--font-sans);
  --mdb-font-monospace: var(--font-mono);
}
