/* ==========================================================================
   מגדלור — Design tokens

   Two colour contexts, one set of names:

   :root      light  — the content sheets that carry the reading material
   .on-dark   dark   — the hero and the un-scrolled header, which sit
                       directly on the video

   Components only ever reference the semantic names, so they adapt to
   whichever context they are dropped into.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---- Brand constants (context-independent) ---- */
  --navy-950: #060a14;
  --navy-900: #0f172a;
  --navy-800: #1b2540;

  /* ---- Light context ---- */
  --text-strong: #0f172a;
  --text: #33405c;
  --text-muted: #5d6981;

  --line: #dde3ec;
  --line-strong: #c5cddb;

  /* Gold: --accent is the text-safe tone, --accent-bright the graphic one.
     Raw gold on white is ~3:1, so it never carries body text here. */
  --accent: #8a5d0b;
  --accent-bright: #c98b16;
  --accent-soft: rgb(201 139 22 / 0.12);
  --accent-line: rgb(201 139 22 / 0.4);

  --support: #00695c;
  --support-strong: #00463d;
  --support-soft: rgb(0 105 92 / 0.09);
  --support-line: rgb(0 105 92 / 0.32);

  --sheet: rgb(247 249 252 / 0.95);
  --surface-raised: #ffffff;
  --surface-sunken: #f2f5f9;

  --btn-primary-bg: var(--navy-900);
  --btn-primary-fg: #ffffff;
  --btn-primary-bg-hover: var(--navy-800);

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
  --shadow-md: 0 4px 12px rgb(15 23 42 / 0.07);
  --shadow-lg: 0 18px 40px rgb(15 23 42 / 0.1);

  /* ---- Typography ---- */
  --font-display: "Rubik", "Heebo", system-ui, sans-serif;
  --font-body: "Assistant", "Heebo", system-ui, sans-serif;

  --text-hero: clamp(2.25rem, 1.5rem + 4vw, 5rem);
  --text-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);
  --text-h3: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --text-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --text-body: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  --leading-tight: 1.12;
  --leading-snug: 1.35;
  --leading-normal: 1.7;

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-gap: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  /* Video showing between the sheets. */
  --sheet-gap: clamp(1.5rem, 0.75rem + 3vw, 3.5rem);

  --container: 1200px;
  --container-narrow: 720px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);

  /* ---- Shape ---- */
  --radius-sm: 0.375rem;
  --radius: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* ---- Motion ---- */
  --duration-fast: 150ms;
  --duration: 260ms;
  --duration-slow: 620ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Dark context — content sitting directly on the video
   -------------------------------------------------------------------------- */

.on-dark {
  color-scheme: dark;

  --text-strong: #ffffff;
  --text: #ccd6e8;
  --text-muted: #a3aec5;

  --line: rgb(255 255 255 / 0.14);
  --line-strong: rgb(255 255 255 / 0.26);

  --accent: #e0a83c;
  --accent-bright: #f2c063;
  --accent-soft: rgb(224 168 60 / 0.14);
  --accent-line: rgb(224 168 60 / 0.4);

  --support: #5ad3bd;
  --support-strong: #7fe0cd;
  --support-soft: rgb(90 211 189 / 0.14);
  --support-line: rgb(90 211 189 / 0.4);

  --surface-raised: rgb(19 28 48 / 0.72);
  --surface-sunken: rgb(5 9 18 / 0.6);

  /* On dark, the lit button is the gold one. */
  --btn-primary-bg: #e0a83c;
  --btn-primary-fg: var(--navy-950);
  --btn-primary-bg-hover: #f2c063;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 6px 18px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 24px 50px rgb(0 0 0 / 0.45);
}
