/* ==========================================================================
   UCeed — design tokens
   One solid background (Pollen) for every page and every section.
   Five core colours: Pollen, Ink, Sunflower, Sprout, Clay.
   Paper (white) is used only to fill form fields.
   ========================================================================== */

@font-face {
  font-family: "Aleo";
  src: url("../assets/fonts/Aleo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/SchibstedGrotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette */
  --pollen:    #FFF3CC;  /* the only page background */
  --ink:       #111111;  /* text, headlines, primary buttons, the wordmark */
  --sunflower: #FFC524;  /* brand colour: big fields, tiles, the spiral ground */
  --sprout:    #1E7A4C;  /* accent: one seed in many, hover, success */
  --clay:      #6B655C;  /* secondary text and captions */

  /* Derived (solid values, never opacity) */
  --paper:      #FFFFFF; /* form fields only */
  --husk:       #F5E3A6; /* quiet fills: chips, tags, empty tiles */
  --ink-soft:   #2B2A27; /* hover state for Ink */

  /* Semantic */
  --bg: var(--pollen);
  --text: var(--ink);
  --text-muted: var(--clay);
  --heading: var(--ink);
  --link: var(--ink);
  --accent: var(--sprout);
  --field: var(--paper);
  --error: #A32A1F;
  --success: var(--sprout);

  /* Typography */
  --font-display: "Aleo", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(3rem, 1.6rem + 6.4vw, 7.5rem);
  --fs-h1: clamp(2.6rem, 1.7rem + 4.2vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.4rem, 1.25rem + 0.7vw, 1.875rem);
  --fs-h4: 1.25rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-stat: clamp(2.75rem, 2rem + 3.4vw, 5.25rem);

  --lh-tight: 0.98;
  --lh-heading: 1.06;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  --track-display: -0.03em;
  --track-heading: -0.02em;
  --track-label: 0.06em;

  /* Spacing — 4px base, named steps */
  --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;
  --space-9: 6rem;
  --space-10: 8rem;
  --section: clamp(4.5rem, 2.75rem + 7.5vw, 9.5rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --page-pad: clamp(1rem, 0.25rem + 4vw, 4rem);
  --measure: 38rem;
  --header-h: 5rem;

  /* Shape & motion */
  --radius: 8px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 420ms;
  --dur-slow: 800ms;
}
