/*
 * FlashCRF — the IBM design system (DESIGN.md) as CSS custom properties.
 *
 * This file holds the tokens and the base type; app.css holds the components
 * that use them.
 *
 * Flat geometry: every corner is 0px, depth comes from 1px hairlines and from
 * a change of surface. IBM Blue is the only accent; the flag colours are the
 * documented semantic green / yellow / red and blue.
 *
 * The spec sets a 14px floor for body text, so the 12px caption token of the
 * design system is not used here.
 */

:root {
  --primary: #0f62fe;
  --on-primary: #ffffff;
  --ink: #161616;
  --ink-muted: #525252;
  --ink-subtle: #8c8c8c;
  --canvas: #ffffff;
  --surface-1: #f4f4f4;
  --surface-2: #e0e0e0;
  --inverse-canvas: #161616;
  --inverse-ink: #ffffff;
  --inverse-ink-muted: #c6c6c6;
  --hairline: #e0e0e0;
  --hairline-strong: #161616;
  --blue-60: #0043ce;
  --blue-80: #002d9c;
  --blue-hover: #0050e6;
  --success: #24a148;
  --warning: #f1c21b;
  --error: #da1e28;
  --info: #0f62fe;

  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  --radius: 0px;

  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --body-size: 16px;
  --small-size: 14px;
  --tracking: 0.16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: 1.5;
  letter-spacing: var(--tracking);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--blue-60);
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: var(--small-size);
  word-break: break-all;
}
