/* =========================================================
   DESIGN TOKENS
   The one place to adjust the look of the whole site.
   Every page loads this before style.css, and
   design-system.html shows each value live.
========================================================= */

/* ---------- Typeface ---------- */
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Variable.woff2') format('woff2'),
       url('fonts/GeneralSans-Variable.woff') format('woff');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-VariableItalic.woff2') format('woff2'),
       url('fonts/GeneralSans-VariableItalic.woff') format('woff');
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---------- Colour: light theme (default) ---------- */
  --bg: #f0f0f0;             /* page paper: neutral grey */
  --bg2: #fafafa;            /* raised surfaces: cards, inputs, menus */
  --fg: #111111;             /* ink: text, pill buttons */
  --muted: #555555;          /* secondary text */
  --border: #d9d9d9;         /* hairlines */
  --accent: #bf3427;         /* coral for text and links (4.5:1 on paper) */
  --accent-bright: #df3b2e;  /* coral for large type and decoration */
  --on-accent: #ffffff;      /* text on a coral fill: button hover, active nav pill (5.6:1) */

  /* ---------- Colour: dark bands (logo strip, footer) ---------- */
  --ink-band: #161616;
  --on-dark: #f2f2ee;
  --on-dark-muted: #b0b0b0;
  --on-dark-border: #2c2c2c;
  --on-dark-surface: #1f1f1f;
  --accent-on-dark: #f2553f;

  /* ---------- Colour: project blocks ---------- */
  --block-teal: #0c576a;
  --block-navy: #13213a;
  --block-charcoal: #262626;
  --block-coral: #bf3427;
  --block-teal-accent: #ffb3a7;  /* stat colour on teal (coral fails contrast there) */
  --block-indigo: #2d2b64;       /* matches the VidCruiter cover image */
  --block-indigo-accent: #ffb3a7; /* stat colour on indigo (coral is too dim there) */
  --block-raspberry: #c31e51;    /* matches the Pink Papers cover image */
  --block-lavender: #524ea8;     /* matches the Eastlink cover image */
  --block-light: #f0f0f0;        /* light block, for light cover images (same in both themes) */
  --on-light: #111111;           /* text on the light block */
  --on-light-muted: #555555;
  --accent-on-light: #bf3427;    /* stat and button hover on the light block */

  /* ---------- Type ---------- */
  --font: 'General Sans', system-ui, -apple-system, sans-serif;
  --font-display: var(--font);

  --text-hero: clamp(2.5rem, 4.6vw, 4.5rem);         /* homepage headline */
  --text-page-title: clamp(2.4rem, 5.1vw, 3.75rem);    /* top of inner pages */
  --text-feature: clamp(1.9rem, 3.75vw, 3.2rem);   /* project block headline */
  --text-lead: clamp(1.375rem, 3vw, 2.25rem);       /* intro statements, CTAs */
  --text-body: 1.1875rem;
  --text-small: 1rem;
  --text-label: 0.8125rem;                          /* uppercase labels */

  --weight-body: 400;
  --weight-heading: 500;
  --weight-strong: 600;                             /* buttons, logo */

  --tracking-hero: -0.03em;
  --tracking-display: -0.025em;
  --tracking-display-sm: -0.01em;
  --tracking-label: 0.12em;

  --leading-body: 1.6;

  /* ---------- Layout ---------- */
  --container: 1440px;
  --gutter: clamp(1.5rem, 5vw, 4rem);               /* page side padding */
  --section-space: clamp(3rem, 6vw, 5rem);
  --section-space-lg: clamp(3rem, 6vw, 6rem);
  --nav-height: 84px;
  --radius: 6px;
}

/* ---------- Colour: dark theme (via the toggle) ---------- */
[data-theme="dark"] {
  --bg: #121212;
  --bg2: #1c1c1c;
  --fg: #f2f2ee;
  --muted: #a8a8a8;
  --border: #2a2a2a;
  --accent: #f2553f;
  --accent-bright: #f2553f;
  --on-accent: #121212;      /* white is only 3.4:1 on the brighter dark coral; dark text reads 5.5:1 */
  --ink-band: #0b0b0b;
}
