/* =========================================================
   EAST/CNTRL design tokens
   One-to-one with Figma "EAST/CNTRL - Identiteit" (01 Design system).
   Change a value here and the whole page follows.
   ========================================================= */

@font-face { font-family: 'Geist'; src: url('../assets/fonts/Geist-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../assets/fonts/Geist-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../assets/fonts/Geist-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* ---------- primitives ---------- */
  --neutral-50: #f2f2ee;
  --neutral-100: #e4e4df;
  --neutral-300: #bebeb8;
  --neutral-500: #8c8c86;
  --neutral-600: #65655f;
  --neutral-800: #2a2a28;
  --neutral-900: #181817;
  --neutral-950: #0f0f0e;
  --orange-500: #ec4918;

  /* ---------- semantic colour ----------
     light-dark() picks the value from the active color-scheme,
     so every token is defined once for both modes. */
  color-scheme: light dark;
  --color-bg-page:        light-dark(var(--neutral-100), var(--neutral-950));
  --color-bg-media:       light-dark(var(--neutral-50),  var(--neutral-900));
  --color-text-primary:   light-dark(var(--neutral-950), var(--neutral-50));
  --color-text-secondary: light-dark(var(--neutral-600), var(--neutral-500));
  --color-text-accent:    light-dark(var(--neutral-950), var(--orange-500));
  --color-border-default: light-dark(var(--neutral-300), var(--neutral-800));
  --color-border-strong:  light-dark(var(--neutral-950), var(--neutral-50));
  --color-accent-surface: var(--orange-500);
  --color-accent-on:      var(--neutral-50);
  --color-link-hover:     var(--orange-500);   /* text links (not buttons); white on orange surfaces */
  --color-mark:           var(--neutral-50);   /* hero EC symbol, light in both modes */

  /* ---------- type ----------
     Fluid between the Mobile (390) and Desktop (1440) Figma styles. */
  --font: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --fluid: ((100vw - 390px) / 1050); /* 1px of growth per Figma px between 390 and 1440 */

  --fs-display-xl: clamp(4rem, calc(4rem + 96 * var(--fluid)), 10rem);       /* 64 → 160 */
  --fs-display-l:  clamp(3rem, calc(3rem + 64 * var(--fluid)), 7rem);         /* 48 → 112 */
  --fs-copy-l:     clamp(1.875rem, calc(1.875rem + 10 * var(--fluid)), 2.5rem); /* 30 → 40 */
  --fs-heading-s:  clamp(1.25rem, calc(1.25rem + 6 * var(--fluid)), 1.625rem);  /* 20 → 26 */
  --fs-body: 1rem;                                                                /* 16 */
  --fs-label: clamp(0.8125rem, calc(0.8125rem + 1 * var(--fluid)), 0.875rem);   /* 13 → 14 */

  /* ---------- spacing (Figma space/*) ---------- */
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  /* section rhythm: mobile → desktop */
  --space-section: clamp(7.5rem, calc(7.5rem + 80 * var(--fluid)), 12.5rem);  /* 120 → 200 */
  --space-section-s: clamp(6rem, calc(6rem + 64 * var(--fluid)), 10rem);      /* 96 → 160 */

  /* ---------- grid ---------- */
  --cols: 4;
  --margin: 1rem;       /* 16 */
  --gutter: 0.75rem;    /* 12 */
  --page-max: none;     /* full-bleed editorial grid; set e.g. 90rem to cap it again */

  /* ---------- shape & motion ---------- */
  --radius: 0;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.625, 0.05, 0, 1);   /* slow start, fast settle: theme flip and button hovers */
  --dur: 0.6s;
}

@media (min-width: 48rem) {        /* 768: tablet */
  :root { --cols: 8; --margin: 2rem; }
}
@media (min-width: 64rem) {        /* 1024: desktop, Figma 1440 grid */
  :root { --cols: 12; --margin: 3rem; }
}

/* ---------- theme override (theme toggle); default follows the system ---------- */
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark']  { color-scheme: dark; }
