/* ==========================================================================
   EWD Labs design tokens. Change colours, fonts and spacing here and the
   whole site follows. Flat colours only: no gradients, no heavy shadows.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-latin-wght.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/instrument-sans-latin-wght.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

  /* Space (4px grid) */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;   --s7: 3rem;    --s8: 4.5rem;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --border: 1px solid var(--line);

  /* Layout */
  --page-max: 1200px;
  --content-max: 72ch;
  --header-h: 64px;

  /* Light theme (default) */
  --bg: #ffffff;
  --surface: #f4f5fa;
  --raised: #ffffff;
  --ink: #15172e;
  --muted: #555a75;
  --line: #e3e5ef;
  --line-strong: #c9ccdc;
  --focus: #4f46e5;

  --brand: #4f46e5;        /* solid fills, buttons */
  --brand-ink: #4338ca;    /* brand-coloured text on light backgrounds */
  --on-brand: #ffffff;
  --brand-soft: #eef0ff;

  /* Category colours: solid fill / text-safe ink / soft tint */
  --finance: #0a7c5a;   --finance-ink: #047857;   --finance-soft: #e3f6ef;
  --developer: #0277bd; --developer-ink: #0369a1; --developer-soft: #e2f2fb;
  --text: #d0450b;      --text-ink: #c2410c;      --text-soft: #fdeee4;
  --seo-web: #db2777;   --seo-web-ink: #be185d;   --seo-web-soft: #fce8f1;
  --image: #0b7d73;     --image-ink: #0f766e;     --image-soft: #e0f4f2;
  --everyday: #7c3aed;  --everyday-ink: #6d28d9;  --everyday-soft: #f0e9fd;
  --on-category: #ffffff;

  --success: #047857;
  --danger: #b91c1c;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0e1020;
  --surface: #161930;
  --raised: #1c1f3a;
  --ink: #edeef8;
  --muted: #a6aac4;
  --line: #2a2e4c;
  --line-strong: #3c4166;
  --focus: #a5b4fc;

  --brand: #5b5ef0;
  --brand-ink: #a5b4fc;
  --on-brand: #ffffff;
  --brand-soft: #23264a;

  --finance: #10b981;   --finance-ink: #34d399;   --finance-soft: #12302a;
  --developer: #0ea5e9; --developer-ink: #38bdf8; --developer-soft: #10293b;
  --text: #f97316;      --text-ink: #fb923c;      --text-soft: #36231a;
  --seo-web: #ec4899;   --seo-web-ink: #f472b6;   --seo-web-soft: #36192b;
  --image: #14b8a6;     --image-ink: #2dd4bf;     --image-soft: #112f2d;
  --everyday: #9d74f7;  --everyday-ink: #a78bfa;  --everyday-soft: #261d42;
  --on-category: #0e1020;

  --success: #34d399;
  --danger: #f87171;
}
