/* ════════════════════════════════════════════════════════════════════════
   Design tokens — the single source of truth for the whole site.

   Change a colour here and it changes everywhere. Per-page stylesheets
   map their own local names onto these tokens rather than redefining
   values, so nothing drifts.

   Fonts are self-hosted (no third-party requests, GDPR).
   ════════════════════════════════════════════════════════════════════════ */

/* Body — Inter */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/inter-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/inter-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/inter-latin-700-normal.woff2") format("woff2")}
/* Display — Space Grotesk */
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2")}
/* Mono — IBM Plex Mono */
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2")}

:root{
  /* Surfaces, darkest to lightest */
  --dg-bg:#f4f5f7;
  --dg-surface:#ffffff;
  --dg-surface-2:#f1f2f5;
  --dg-surface-3:#e3e5ea;

  /* Lines */
  --dg-border:#dee0e6;
  --dg-border-2:#c3c8d2;

  /* Text, brightest to dimmest */
  --dg-text:#14181f;
  --dg-text-dim:#2c3340;
  --dg-muted:#586173;
  --dg-faint:#5d6675;

  /* Brand accent */
  --dg-accent:#0070ac;          /* accent text + borders (WCAG AA on dark) */
  --dg-accent-btn:#00629a;      /* accent as a background behind white text */
  --dg-accent-soft:rgba(0,112,172,.10);
  --dg-accent-line:rgba(0,112,172,.35);

  /* Status */
  --dg-ok:#1a7344;      --dg-ok-soft:rgba(26,115,68,.10);   --dg-ok-line:rgba(26,115,68,.35);
  --dg-warn:#8a5b00;    --dg-warn-soft:rgba(138,91,0,.10); --dg-warn-line:rgba(138,91,0,.35);
  --dg-danger:#b3261e;  --dg-danger-soft:rgba(179,38,30,.08); --dg-danger-line:rgba(179,38,30,.35);
  --dg-info:#1f4fd0;    --dg-info-soft:rgba(31,79,208,.08);
  --dg-purple:#6b3fa0;  --dg-purple-soft:rgba(107,63,160,.09);

  /* Type */
  --dg-sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --dg-display:"Space Grotesk","Inter",-apple-system,sans-serif;
  --dg-mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;

  --dg-radius:12px;
  --dg-radius-sm:8px;

  /* Depth */
  --dg-shadow:0 1px 0 rgba(15,22,38,.05), 0 2px 8px rgba(15,22,38,.06);
  --dg-scrim:rgba(240,242,245,.90);
  --dg-sticky-bar:rgba(244,245,247,.93);

  /* Sticky notes are physical objects — same colour in either theme */
  --dg-note-y:#f0cf65;
  --dg-note-b:#7fa8e8;
  --dg-note-g:#7fcf9b;
  --dg-note-ink:#16181d;
}

/* ── Shared chrome ──────────────────────────────────────────────────────── */
