/**
 * Design tokens.
 *
 * The static export had no CSS variables — every colour was a hardcoded hex
 * repeated inline. These are those values, collected once.
 *
 * Two palettes coexist: the corporate International Fresh Food palette (used by
 * the homepage and careers page) and the JONA consumer-brand palette. JONA
 * overrides the shared aliases inside `.iff-jona`.
 */

:root {
  /* --- International Fresh Food palette --- */
  --iff-ink: #0d2818;
  --iff-green: #14532d;
  --iff-gold: #b8862b;
  --iff-cream: #f4f1e8;
  --iff-cream-2: #eae5d6;
  --iff-body: #3c4a41;
  --iff-muted: #5a6b5f;
  --iff-white: #fff;

  /* --- JONA palette --- */
  --jona-green: #17512f;
  --jona-green-2: #1f7a43;
  --jona-gold: #d9a441;
  --jona-cream: #faf7ef;
  --jona-ink: #23281f;
  --jona-body: #3c4438;
  --jona-tint-fresh: #eef3e8;
  --jona-tint-frozen: #eaf0f2;

  /* --- Semantic aliases; JONA re-points these --- */
  --c-bg: var(--iff-cream);
  --c-bg-alt: var(--iff-cream-2);
  --c-ink: var(--iff-ink);
  --c-body: var(--iff-body);
  --c-muted: var(--iff-muted);
  --c-accent: var(--iff-green);
  --c-highlight: var(--iff-gold);
  --c-on-dark: var(--iff-cream);

  /* Derived transparencies, repeated constantly in the source. */
  --c-hairline: rgb(13 40 24 / 12%);
  --c-hairline-strong: rgb(13 40 24 / 25%);
  --c-on-dark-soft: rgb(244 241 232 / 72%);
  --c-on-dark-faint: rgb(244 241 232 / 40%);
  --c-on-dark-hairline: rgb(244 241 232 / 14%);

  /* --- Typography --- */
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Fluid scale; the upper bound of each clamp is the desktop size in the source. */
  --fs-eyebrow: clamp(0.625rem, 0.58rem + 0.2vw, 0.75rem);
  --fs-small: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --fs-body: clamp(0.9375rem, 0.92rem + 0.12vw, 1rem);
  --fs-body-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.75vw, 1.875rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 2vw, 3.25rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem);
  --fs-stat: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);

  --tracking-eyebrow: 0.12em;
  --tracking-tight: -0.01em;
  --tracking-tighter: -0.02em;

  --lh-tight: 1.1;
  --lh-heading: 1.15;
  --lh-body: 1.7;

  /* --- Layout --- */
  --wrap: 1200px;
  --wrap-narrow: 1180px;
  /*
   * The source uses a fixed 48px gutter. The slope is set so the clamp reaches
   * that maximum at a 1200px viewport — the width the design is drawn at —
   * rather than only at 1280px, which would leave desktop layouts ~2px narrow
   * on each side.
   */
  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 3rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 6rem);
  --gap: clamp(1.5rem, 1rem + 2vw, 3rem);

  --radius: 2px;
  --radius-lg: 4px;

  --shadow-card: 0 12px 28px -8px rgb(13 40 24 / 25%);
  --shadow-modal: 0 32px 64px -16px rgb(13 40 24 / 45%);
  --shadow-float: drop-shadow(0 24px 40px rgb(0 0 0 / 35%));

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 260ms;

  --z-nav: 40;
  --z-dropdown: 50;
  --z-modal: 90;
  --z-consent: 100;
}

/* JONA re-points the semantic aliases; component CSS stays palette-agnostic. */
.iff-jona {
  --c-bg: var(--jona-cream);
  --c-bg-alt: var(--jona-tint-fresh);
  --c-ink: var(--jona-ink);
  --c-body: var(--jona-body);
  --c-accent: var(--jona-green-2);
  --c-highlight: var(--jona-gold);
  --c-on-dark: var(--jona-cream);
  --c-hairline: rgb(31 122 67 / 14%);
}

/*
 * The source set Space Grotesk as the homepage body font and overrode it to
 * Montserrat for English and Albanian only — which left Macedonian on Space
 * Grotesk, a face with no Cyrillic glyphs, so it silently fell back to the
 * system font. Montserrat covers latin, latin-ext and cyrillic, so all three
 * languages use it and Space Grotesk is not loaded at all.
 */

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0ms;
  }
}
