/* ============================================================
   FID Finance — Foundation Tokens
   Bron: Claude Design "FID Finance Design System" → colors_and_type.css
   Afwijking: fonts self-hosted (geen Google Fonts @import), paden
   aangepast naar ../fonts/. Zie design-system/README.md.
   ============================================================ */

/* ---------- Webfonts (self-hosted) ---------- */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/space-grotesk-300.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/space-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-grotesk-700.woff2') format('woff2'); }

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/plus-jakarta-sans-300.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plus-jakarta-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plus-jakarta-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plus-jakarta-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-700.woff2') format('woff2'); }

@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'); }

:root {
  /* ─── Brand colors (official palette card) ─── */
  --fid-navy-900: #212D46;
  --fid-navy-700: #62789E;
  --fid-blue-500: #759AD0;
  --fid-blue-300: #B2C8E8;
  --fid-yellow-500: #F6B519;
  --fid-yellow-400: #F8C345;
  --fid-gray-100: #DAD9D9;
  --fid-white: #FFFFFF;

  /* ─── Extended scale ─── */
  --fid-ink: #081723;
  --fid-paper: #FDFCF9;
  --fid-paper-2: #F4F5F7;
  --fid-line: #E6E7EB;
  --fid-muted: #6F7587;
  --fid-navy-50: #EEF1F7;
  --fid-yellow-50: #FFF4D8;

  /* ─── Semantic ─── */
  --bg-app: var(--fid-paper);
  --bg-surface: var(--fid-white);
  --bg-inverted: var(--fid-navy-900);
  --bg-accent: var(--fid-yellow-500);

  --fg-1: var(--fid-ink);
  --fg-2: var(--fid-navy-900);
  --fg-3: var(--fid-muted);
  --fg-on-dark: var(--fid-white);
  --fg-on-accent: var(--fid-navy-900);

  --border-1: var(--fid-line);
  --border-strong: var(--fid-navy-900);

  --accent: var(--fid-yellow-500);
  --accent-ink: var(--fid-navy-900);
  --link: var(--fid-navy-900);
  --link-hover: var(--fid-navy-700);

  --success: #2E8A5A;
  --warning: var(--fid-yellow-500);
  --danger:  #C7423B;

  /* ─── Typography ─── */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-12: 0.75rem;  --fs-14: 0.875rem; --fs-16: 1rem;   --fs-18: 1.125rem;
  --fs-20: 1.25rem;  --fs-24: 1.5rem;   --fs-32: 2rem;   --fs-40: 2.5rem;
  --fs-56: 3.5rem;   --fs-72: 4.5rem;   --fs-96: 6rem;

  --lh-tight: 1.05; --lh-snug: 1.2; --lh-normal: 1.45; --lh-loose: 1.65;

  --tracking-tight: -0.02em;
  --tracking-snug:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:  0.04em;
  --tracking-mono:  0.02em;

  /* ─── Spacing (4px base) ─── */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  /* ─── Radii ─── */
  --r-0: 0; --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 20px; --r-pill: 999px;

  /* ─── Shadows ─── */
  --shadow-1: 0 1px 0 rgba(33,45,70,.04), 0 1px 2px rgba(33,45,70,.06);
  --shadow-2: 0 2px 4px rgba(33,45,70,.06), 0 8px 24px rgba(33,45,70,.08);
  --shadow-3: 0 12px 40px rgba(33,45,70,.12);
  --shadow-inset: inset 0 0 0 1px var(--border-1);

  /* ─── Motion ─── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-med: 220ms;
  --dur-slow: 420ms;
}

/* ============================================================
   Semantic element styles
   ============================================================ */
html, body {
  background: var(--bg-app);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
  margin: 0 0 var(--sp-4);
}
h1 { font-size: clamp(var(--fs-40), 6vw, var(--fs-96)); letter-spacing: -0.03em; }
h2 { font-size: clamp(var(--fs-32), 4vw, var(--fs-56)); }
h3 { font-size: var(--fs-24); letter-spacing: var(--tracking-snug); }
h4 { font-size: var(--fs-18); letter-spacing: 0; }
h5 { font-size: var(--fs-14); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-3); font-weight: 600; }

p {
  font-size: var(--fs-16);
  line-height: var(--lh-loose);
  color: var(--fg-1);
  margin: 0 0 var(--sp-4);
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--link-hover); }

small, .text-meta { font-size: var(--fs-12); color: var(--fg-3); letter-spacing: var(--tracking-wide); }

code, pre, .text-mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: var(--tracking-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex;
  gap: var(--sp-3);
  align-items: center;
}
.eyebrow .num { color: var(--fid-yellow-500); font-weight: 600; }

.data-tape {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  gap: var(--sp-7);
  flex-wrap: wrap;
}
.data-tape b { color: var(--fg-2); font-weight: 500; margin-right: var(--sp-2); }

blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 400;
  color: var(--fg-2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  border-left: 2px solid var(--fid-yellow-500);
  padding-left: var(--sp-5);
  margin: var(--sp-6) 0;
}

::selection { background: var(--fid-yellow-500); color: var(--fid-navy-900); }
