/* Raidu - Typography (Brand V3, design system v1)
   Switzer leads everywhere, display and body, self-hosted from assets/fonts/.
   The system stack is its fallback only. There is no monospace face (4.3.0):
   machine truth (hashes, timings, IDs, verdict signatures, costs) is set in
   Switzer with tabular figures, so numbers still line up in columns.
   Two scales live here: the dense product scale (--text-2xs to --text-6xl,
   aligned to Tailwind, unchanged) for app screens, and the marketing display
   scale (--text-display to --text-lead) for the website, decks and documents.
   Nothing ships off either scale. */

:root {
  --font-display: 'Switzer', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-sans:    'Switzer', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  /* Kept as a role so components keep one name for machine values; it now
     resolves to Switzer. Pair it with tabular figures (see base.css). */
  --font-mono:    'Switzer', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  /* Logotype/wordmark only - final brand kit FINAL-2026-09-16. Falls back to
     --font-sans, not the system stack, so a missed webfont still lands on
     the brand body face rather than the OS default. See fonts.css for why
     this isn't just folded into --font-display. */
  --font-logo:    'Raidu Display', 'Switzer', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Type scale (px) - aligned to Tailwind's default scale (2026-09-16),
     which is what "text-lg", "text-2xl" etc. actually mean everywhere else
     a developer has used Tailwind. --text-2xs and --text-md aren't in
     Tailwind's scale (it has no step between xs/sm or base/lg) - both stay
     RDS-only values, unchanged. */
  --text-2xs: 12px; /* was 11px: kept as a name for compatibility, now the same step as --text-xs (nothing under 12px) */
  --text-xs:  12px;
  --text-sm:  14px;
  --text-base:16px;
  --text-md:  17px;
  --text-lg:  18px;
  --text-xl:  20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;

  /* Marketing display scale (design system v1). Size / line / tracking.
     Mobile: display 56, h1 44, h2 36; the rest hold. */
  --text-display: 112px; --leading-display: 0.96; --tracking-display-xl: -0.045em;
  --text-h1:      72px;  --leading-h1:      1;    --tracking-h1:         -0.04em;
  --text-h2:      48px;  --leading-h2:      1.04; --tracking-h2:         -0.035em;
  --text-h3:      32px;  --leading-h3:      1.1;  --tracking-h3:         -0.025em;
  --text-lead:    28px;  --leading-lead:    1.3;  --tracking-lead:       -0.02em;
  --text-large:   21px;  --leading-large:   1.4;  --tracking-large:      -0.01em;

  /* Product scale: the names app screens use. Aliases onto the steps above, plus
     one new step (--text-caption 13px). Page title is the only product-specific
     value; the marketing H1 stays on --text-h1. */
  --text-caption: 13px;
  --text-page:    var(--text-3xl);   /* 30px, 600, -0.02em */
  --text-section: var(--text-xl);    /* 20px, 600, -0.02em */
  --text-card:    var(--text-md);    /* 17px, 600 */
  --text-body:    var(--text-sm);    /* 14px, 400 */
  --text-label:   var(--text-caption); /* 13px, 600 */
  --tracking-page: -0.02em;

  /* Weights */
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-normal:  var(--weight-regular); /* alias, found undefined in the full-package audit */

  /* Line heights */
  --leading-none:  1;
  --leading-tight: 1.12;
  --leading-snug:  1.3;
  --leading-normal:1.55;
  --leading-relaxed: var(--leading-normal); /* alias, no looser step exists yet, found undefined in the full-package audit */

  /* Letter spacing - the system display face tightens well at display sizes */
  --tracking-display: -0.035em;
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.02em;
  --tracking-label:   0.08em;  /* uppercase mono labels */
}
