/* Waldup design tokens: the single source of colours, type and shared sizes
   for both front ends. Flask loads this from base.html, React from
   frontend/index.html, before any other Waldup stylesheet.

   The values are defined in the bundle, not here:
     colours  DEF-BRAND-001 (docs/bundles/definitions/DEF-BRAND-001.md)
     type     DEF-BRAND-002 (docs/bundles/definitions/DEF-BRAND-002.md)
   Change them there first. Why: decisions 0001, 0003 and 0004 in docs/decisions/.
   Code uses var(--wd-*), never literal values (RUL-UI-002). */

@font-face {
  font-family: 'Aileron';
  src: url("../webfonts/Aileron-Heavy-webfont.woff") format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url("../webfonts/Aileron-HeavyItalic-webfont.woff") format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colours: DEF-BRAND-001 */
  --wd-navy: #012138;
  --wd-ridge: #004469;
  --wd-navy-m: #024D72;
  --wd-blue: #009EDB;
  --wd-blue-ink: #0078A6;
  --wd-grey-bg: #EFF8FF;
  --wd-white: #FFFFFF;
  --wd-mid: #3A5A72;
  --wd-muted: #52748A;
  --wd-haze: #7A9BB0;
  --wd-border: #DCE8F0;
  --wd-orange: #E07020;
  --wd-orange-ink: #AF5718;
  --wd-green: #0E6E40;
  --wd-amber: #F5A623;
  --wd-red: #C82333;

  /* Type: DEF-BRAND-002 */
  --wd-font-head: 'Aileron', 'Helvetica Neue', Arial, sans-serif;
  --wd-font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --wd-fw-regular: 400;
  --wd-fw-semibold: 600;
  --wd-fw-bold: 700;
  --wd-fw-heavy: 900;
  --wd-fs-display: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  --wd-fs-h1: clamp(2rem, 1.5rem + 2vw, 3rem);
  --wd-fs-h2: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --wd-fs-h3: clamp(1.375rem, 1.3rem + 0.25vw, 1.5rem);
  --wd-fs-h4: 1.25rem;
  --wd-fs-h5: 1rem;
  --wd-fs-body-l: 1.125rem;
  --wd-fs-body: 1rem;
  --wd-fs-body-s: 0.875rem;
  --wd-fs-caption: 0.75rem;
  --wd-lh-heading: 1.1;
  --wd-lh-ui: 1.4;
  --wd-lh-body: 1.6;

  /* Layout: kept from waldup-redesign.css until the foundations
     (spacing, radius, shadows, breakpoints) are defined; see the UI kit spec. */
  --wd-radius: 8px;
  --wd-nav-h: 52px;
}
