/*
 * HELDER WERKBLAD: design tokens for the COS acquisition tool.
 *
 * A light working surface in the manner of a modern automation dashboard: a soft cool grey desk,
 * white rounded cards with a hairline edge and almost no shadow, one confident blue for the action
 * that moves the work forward, and small coloured dots for state. Calm enough to read four hundred
 * companies in a row; clear enough that the next click is never in doubt.
 *
 * Two layers only. Primitives name raw values; semantics name roles. Components read the semantic
 * layer, so the world changes here and nowhere else.
 *
 * Light only, on purpose: one to three salespeople at a desk in a Dutch office, daylight from a
 * window, a list open for an hour at a stretch.
 */

/* ============================================================
   Faces

   Archivo carries everything: navigation, titles, controls and
   data. A plain, firm grotesque with real tabular figures, which
   a list of scores and counts needs more than character.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- Primitive: the blue ----------
     One blue for the primary action, the current place and the focus ring. */
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-200: #c7d7fd;
  --blue-100: #dfe8fe;
  --blue-50: #eff4ff;

  /* ---------- Primitive: cool neutrals ---------- */
  --white: #ffffff;
  --grey-25: #f5f6f8;
  --grey-50: #f0f2f5;
  --grey-100: #e9ecf0;
  --grey-200: #e2e5ea;
  --grey-300: #cdd2d9;
  --grey-500: #858c97;
  --grey-600: #5b6370;
  --grey-800: #29303a;
  --ink: #111827;

  /* ---------- Primitive: state colours ----------
     Each lives as a dot or a soft pill, never as a coloured row. */
  --green-500: #16a34a;
  --green-50: #e9f8ef;
  --green-700: #15803d;

  --amber-500: #f59e0b;
  --amber-50: #fff6e5;
  --amber-800: #8a4b00;

  --violet-50: #f3effe;
  --violet-700: #6d3fd1;

  --red-600: #dc2626;
  --red-50: #fdeeee;

  /* ---------- Primitive: the score ramp ----------
     The score reads as a tone of the blue against its neighbours down the list. */
  --zone-0: #e6ebf3;
  --zone-1: #dbe5fb;
  --zone-2: #c9d8fc;
  --zone-3: #b4c9fb;
  --zone-4: #9cb8fa;
  --zone-5: #82a5f8;
  --zone-6: #6893f5;
  --zone-7: #4f80f1;
  --zone-8: #3b71ee;
  --zone-9: #2c67ec;
  --zone-10: #2563eb;

  /* ---------- Semantic: surfaces ---------- */
  --surface-desk: var(--grey-25);
  --surface-field: var(--white);
  --surface-card: var(--white);
  --surface-nav: var(--white);
  --surface-nav-active: var(--blue-50);
  --surface-inset: var(--grey-50);
  --surface-soft-button: var(--grey-50);
  --surface-soft-button-hover: var(--grey-100);
  --surface-row-hover: var(--grey-25);
  --surface-row-marked: var(--blue-50);

  /* ---------- Semantic: ink ---------- */
  --text: var(--ink);
  --text-strong: var(--ink);
  --text-muted: var(--grey-600);
  --text-faint: var(--grey-500);
  --text-on-primary: var(--white);

  /* ---------- Semantic: lines ---------- */
  --rule-hair: var(--grey-200);
  --rule-mid: var(--grey-300);
  --rule-strong: var(--grey-800);

  --width-hair: 1px;
  --width-strong: 2px;

  /* ---------- Semantic: the primary action ---------- */
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-wash: var(--blue-50);
  --primary-wash-strong: var(--blue-100);
  --primary-ink: var(--blue-700);

  /* Kept as aliases so older rules keep reading a role, not a colour. */
  --accent: var(--primary);
  --accent-hover: var(--primary-hover);
  --accent-wash: var(--primary-wash);

  /* ---------- Semantic: state ---------- */
  --state-ok: var(--green-500);
  --state-ok-wash: var(--green-50);
  --state-ok-ink: var(--green-700);

  /* Something needs the operator: a bounce, an opt-out, an uncertain match. */
  --state-attention: var(--amber-500);
  --state-attention-wash: var(--amber-50);
  --state-attention-ink: var(--amber-800);

  --state-idle: var(--grey-300);

  /* Already a customer: a fact that ends the conversation, set apart in violet. */
  --state-known-wash: var(--violet-50);
  --state-known-ink: var(--violet-700);

  --danger: var(--red-600);
  --danger-wash: var(--red-50);

  /* ---------- Semantic: focus ---------- */
  --focus: var(--blue-500);
  --focus-width: 2px;
  --focus-offset: 2px;
  --ring: 0 0 0 3px rgb(37 99 235 / 0.18);

  /* ---------- Semantic: type ---------- */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Archivo", "Segoe UI", system-ui, sans-serif;

  --wd-narrow: 88%;
  --wd-normal: 100%;

  --text-2xs: 0.6875rem;  /* 11px  sidebar headings */
  --text-xs: 0.75rem;     /* 12px  meta lines */
  --text-sm: 0.8125rem;   /* 13px  facts and secondary text */
  --text-base: 0.875rem;  /* 14px  controls and labels */
  --text-md: 0.9375rem;   /* 15px  card titles and prose */
  --text-lg: 1.0625rem;   /* 17px  section titles */
  --text-xl: 1.375rem;    /* 22px  dialog and sub-screen titles */
  --text-2xl: 1.625rem;   /* 26px  screen titles and figures */
  --text-3xl: 1.875rem;   /* 30px  the terrain name */

  --leading-tight: 1.2;
  --leading-normal: 1.45;
  --leading-prose: 1.6;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 700;

  --track-caps: 0.06em;
  --track-display: -0.015em;

  /* ---------- Semantic: the grid ---------- */
  --cols: 12;
  --gutter: 1.5rem;

  /* ---------- Semantic: space. 4px base. ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  --space-11: 5rem;
  --space-12: 6rem;

  /* ---------- Semantic: shape ----------
     Two radii with a reason each: controls at 8px, the cards that hold them at 12px. */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgb(16 24 40 / 0.04), 0 1px 3px rgb(16 24 40 / 0.03);
  --shadow-card-hover: 0 4px 12px rgb(16 24 40 / 0.07), 0 1px 3px rgb(16 24 40 / 0.04);
  --shadow-overlay: 0 24px 48px rgb(16 24 40 / 0.18), 0 4px 12px rgb(16 24 40 / 0.08);

  /* ---------- Semantic: layout ---------- */
  --side-width: 15.5rem;
  --content-max: 96rem;
  --prose-max: 34rem;
  --page-pad: var(--space-8);
  --aside-width: 15.5rem;

  /* ---------- Semantic: motion ---------- */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
}
