/* Raccord design tokens for the web (Design system v0.1, tokens.json). Keep in sync with app/src/theme/tokens.ts. */
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("fonts/BarlowSemiCondensed_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url("fonts/BarlowSemiCondensed_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url("fonts/AtkinsonHyperlegibleNext_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url("fonts/AtkinsonHyperlegibleNext_700Bold.ttf") format("truetype"); }

:root {
  --ground: #eef1f5; --surface: #ffffff; --surface-sunken: #e4e9f0;
  --ink: #0e1a2b; --ink-muted: #3b4759; --line: #c5cdd8; --line-strong: #6b7789;
  --brand: #1f4596; --on-brand: #ffffff; --brand-soft: #e3eafa;
  --success: #0b6b45; --success-soft: #e3f4ea; --danger: #b42318; --danger-soft: #fde7e5;
  --warning: #8a4b00; --warning-soft: #fff1d6; --focus: #0e1a2b;
  --font-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px;
  --target-min: 56px; --target: 64px;
  --type-body: 18px; --type-body-lh: 26px; --type-body-lg: 20px; --type-body-lg-lh: 28px;
  --type-caption: 15px; --type-caption-lh: 20px; --type-label: 20px; --type-label-lh: 24px;
  --type-title: 24px; --type-title-lh: 30px; --type-title-lg: 30px; --type-title-lg-lh: 36px;
  --type-amount: 48px; --type-amount-lh: 52px;
  /* Landing page only (not in the app scale): hero headline, smaller on phones. */
  --type-hero: 40px; --type-hero-lh: 44px; --type-hero-sm: 34px; --type-hero-sm-lh: 38px;
  --border-line: 2px; --border-focus: 3px; --hairline: 1px;
  --icon-md: 24px; --icon-stroke: 2.4;
  --content-max: 720px;
  --elev-1: 0 1px 2px rgba(14,26,43,0.12); --elev-2: 0 4px 12px rgba(14,26,43,0.16);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b111a; --surface: #141c28; --surface-sunken: #0f1621;
    --ink: #f2f5f9; --ink-muted: #b4bfcd; --line: #2a3546; --line-strong: #7c8ba1;
    --brand: #8eadf2; --on-brand: #0b111a; --brand-soft: #1d2c4a;
    --success: #6fd8a8; --success-soft: #0f2a22; --danger: #ff8f80; --danger-soft: #33171a;
    --warning: #ffc266; --warning-soft: #2e2210; --focus: #f2f5f9;
    --elev-1: 0 1px 2px rgba(0,0,0,0.5); --elev-2: 0 4px 12px rgba(0,0,0,0.6);
  }
}
