/* ClickVerdict design tokens
   Calm audit-report UI. Colour is used for meaning, not decoration.
   One Verdict-blue highlight per screen (typically the primary action).
   Status colour is never used alone — always pair it with a label.
   Say “suspicious click”, never “confirmed fraud”. */

:root {
  /* ---------- Colour: surfaces ---------- */
  --color-ink: #14213D;
  --color-ink-muted: #3B4968; /* secondary text; 8.45:1 on Paper */
  --color-paper: #F7F8FA;
  --color-surface: #FFFFFF;
  --color-line: #E3E6EC;
  --color-white: #FFFFFF;

  /* ---------- Colour: brand ---------- */
  --color-blue: #2F5BEA;           /* Verdict blue — primary action, links on Paper */
  --color-blue-on-dark: #597CEE;   /* Tick / icons on Ink. #2F5BEA is only 2.89:1 on Ink. */

  /* ---------- Colour: status (indicators only, not text) ---------- */
  --color-clean: #1F9D6B;
  --color-suspicious: #B88400; /* refined from #E0A100 (2.13:1 on Paper) to meet 3:1 as an indicator */
  --color-blocked: #D64545;

  /* Darker text variants — 4.5:1+ on Paper, White, and the washes below */
  --color-clean-text: #146B48;
  --color-suspicious-text: #7A5800;
  --color-blocked-text: #9B1C1C;

  /* Pale washes for badges and error surfaces */
  --color-clean-bg: #DDEDE9;
  --color-suspicious-bg: #EFEADC;
  --color-blocked-bg: #F3E3E4;

  /* Disabled is exempt from 1.4.3, but kept distinguishable */
  --color-disabled-text: #7A8294;
  --color-disabled-bg: #E3E6EC;

  /* ---------- Typography ---------- */
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.75rem;     /* 12 — captions, table headers, badge labels */
  --text-sm: 0.8125rem;   /* 13 — helper text, compact UI */
  --text-md: 0.9375rem;   /* 15 — body, table cells, buttons */
  --text-lg: 1.0625rem;   /* 17 — prominent body */
  --text-xl: 1.25rem;     /* 20 — section titles */
  --text-2xl: 1.5rem;     /* 24 — page titles */
  --text-3xl: 1.875rem;   /* 30 — display */

  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-table: 1.45;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-caps: 0.08em;

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.25rem;   /* 20 */
  --space-6: 1.5rem;    /* 24 */
  --space-8: 2rem;      /* 32 */
  --space-10: 2.5rem;   /* 40 */
  --space-12: 3rem;     /* 48 */
  --space-16: 4rem;     /* 64 */
  --space-20: 5rem;     /* 80 */
  --space-24: 6rem;     /* 96 */

  /* ---------- Radii (modest; audit, not candy) ---------- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* ---------- Shadows (subtle) ---------- */
  --shadow-xs: 0 1px 1px rgba(20, 33, 61, 0.04);
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.06), 0 1px 3px rgba(20, 33, 61, 0.04);
  --shadow-md: 0 2px 4px rgba(20, 33, 61, 0.05), 0 8px 24px rgba(20, 33, 61, 0.06);
  --shadow-focus: 0 0 0 3px rgba(47, 91, 234, 0.28);

  /* ---------- Control metrics ---------- */
  --border-width: 1px;
  --control-height: 2.5rem; /* 40 */
  --control-pad-x: 0.875rem;
}

/* Dark-surface helpers (e.g. Ink marketing bars, not the default app chrome) */
.theme-ink {
  --color-text: var(--color-white);
  --color-text-muted: #C5CBD6;
  --color-bg: var(--color-ink);
  color: var(--color-text);
  background: var(--color-bg);
}
