/* Design tokens for the IJB NEXT pre-login page, from the IJB NEXT house style.
   Components only use var(--...); brand values live here. The page is dark by design. */

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/work-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Brand colours */
  --color-navy: #122941; /* PMS 289 C */
  --color-lime: #85ec00; /* PMS 802 C */
  --color-white: #ffffff;

  /* Derived surfaces (night = the black of the brand gradient) */
  --color-night: #080c0e;
  --color-deep: #0b1210;
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-surface-strong: rgba(255, 255, 255, 0.1);
  --color-line: rgba(255, 255, 255, 0.14);
  --color-line-strong: rgba(255, 255, 255, 0.28);
  --color-text: #f4f7f1;
  --color-text-muted: rgba(244, 247, 241, 0.64);
  --color-text-dim: rgba(244, 247, 241, 0.32);
  --color-lime-soft: rgba(133, 236, 0, 0.16);
  --color-lime-glow: rgba(133, 236, 0, 0.55);
  --color-on-lime: #0d1f05;
  --color-accent-text: var(--color-lime); /* lime text; a darker green on light sections */

  /* Chapter tones: each chapter a step lighter. The dark steps follow the brand gradient
     from black (#080c0e) to deep green (#182718); the last chapters are daylight. */
  --tone-1: #080c0e;
  --tone-2: #0b1110;
  --tone-3: #0e1712;
  --tone-4: #121c13;
  --tone-5: #152215;
  --tone-6: #182718;
  --tone-7: #e3eadf;
  --tone-8: #eef3ea;
  --tone-9: #f7faf4;

  /* Brand gradient: black and deep green into lime, with grain */
  --gradient-brand:
    radial-gradient(120% 90% at 50% 0%, rgba(133, 236, 0, 0.55), transparent 60%),
    linear-gradient(160deg, #182718 0%, var(--color-night) 70%);
  --gradient-glow: radial-gradient(closest-side, rgba(133, 236, 0, 0.9), rgba(133, 236, 0, 0.25) 55%, transparent);

  /* Typography */
  --font-display: 'Barlow', 'Arial', sans-serif;
  --font-body: 'Barlow', 'Arial', sans-serif;
  --font-label: 'Work Sans', 'Arial', sans-serif;

  --tracking-title: 0.03em; /* letterspatiering 30 */
  --tracking-label: 0.1em; /* letterspatiering 100 */
  --leading-title: 0.9; /* 90% van de lettergrootte */
  --leading-body: 1.5; /* 150% van de lettergrootte */

  --size-label: 0.75rem;
  --size-button: 0.95rem; /* buttons and menus: sentence case, no capitals */
  --size-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --size-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --size-h3: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  --size-h2: clamp(2.5rem, 1.6rem + 4vw, 6rem);
  --size-h1: clamp(3.25rem, 1.5rem + 8vw, 10.5rem);
  --size-giant: clamp(18rem, 8rem + 46vw, 56rem);

  /* Layout */
  --gutter: clamp(16px, 4vw, 64px);
  --content-max: 1440px;
  --header-height: 88px;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --radius-pill: 999px;
  --radius-button: 10px;

  /* Effects */
  --blur-glass: 18px;
  --shadow-glow: 0 0 40px rgba(133, 236, 0, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.5s;

  /* Film grain (SVG turbulence), used as overlay like the brand gradients */
  --texture-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
