/* Design tokens - נאמן
 * Central source of truth for color, typography, spacing.
 * Import this file first; everything else layers on top.
 * Do not hardcode hex values in components - reference tokens only.
 */

:root {
  /* --- Ink (text + strong surfaces) --- */
  --ink: #0C1B2E;
  --ink-soft: #2B3A52;
  --muted: #5A6478;
  --subtle: #8B95A6;

  /* --- Surfaces (page + cards) --- */
  --sheet: #F5F1E8;
  --parchment: #ECE5D3;
  --linen: #DBD2BE;
  --sheet-inverse: #0C1B2E;

  /* --- Semantic accents --- */
  --olive: #3E5A43;            /* verified / trust confirmed */
  --olive-soft: #7A8F6D;
  --olive-bg: #E5E8DC;
  --bronze: #A66F2C;           /* accent / eyebrow / inline link */
  --bronze-soft: #C08E5B;
  --bronze-bg: #EFE4D0;
  --flag: #8B1C22;             /* rare: material risk. NOT a generic error red. */
  --flag-bg: #F0DCDA;

  /* --- Edges --- */
  --edge: rgba(12, 27, 46, 0.09);
  --edge-strong: rgba(12, 27, 46, 0.20);
  --edge-ink: rgba(245, 241, 232, 0.16);   /* on dark backgrounds */

  /* --- Typography --- */
  --font-serif: "Frank Ruhl Libre", "David Libre", "Noto Serif Hebrew", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Assistant", "Heebo", "Noto Sans Hebrew", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Iosevka", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale (desktop baseline) */
  --text-micro: 12px;
  --text-sm: 14px;
  --text-base: 17px;           /* slightly larger than 16; Hebrew reads better */
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 44px;
  --text-display: 68px;

  /* Line heights */
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.45;
  --lh-loose: 1.65;

  /* Letter spacing */
  --tracking-eyebrow: 0.18em;
  --tracking-tight: -0.01em;
  --tracking-normal: 0;

  /* --- Spacing (4px grid) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* --- Radii --- */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* --- Containers --- */
  --col-narrow: 680px;
  --col-regular: 960px;
  --col-wide: 1200px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-normal: 200ms;
}

@media (max-width: 768px) {
  :root {
    --text-3xl: 32px;
    --text-display: 44px;
    --space-9: 56px;
    --space-10: 72px;
  }
}
