/* ==========================================================================
   SanFo Labs — design tokens
   Every colour, size and radius used on the site is defined here.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-var.woff2") format("woff2");
}

:root {
  /* Colour */
  --sun: #fff9a8;          /* hero + CTA bands */
  --cream: #fffde5;        /* page base */
  --butter: #f6e96b;       /* highlights, chips, focus fill */
  --ink: #171717;          /* primary text, primary buttons */
  --ink-2: #4f4f4a;        /* secondary text (≥ 7:1 on cream) */
  --ink-3: #6b6a5f;        /* tertiary text, meta (≥ 4.5:1 on cream and white) */
  --leaf: #2daa69;         /* green fills, icons, live dots — never small text on white */
  --leaf-ink: #17733f;     /* green text and links (≥ 5.5:1 on white/cream) */
  --leaf-tint: #dcf3e6;    /* soft green surface */
  --card: #ffffff;
  --line: #eae6c7;
  --line-strong: #d9d3a6;
  --placeholder: #fff1b8;  /* legal placeholders */

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --stretch-display: 62%;
  --stretch-heading: 75%;

  --text-xs: 0.8125rem;   /* 13 */
  --text-sm: 0.9375rem;   /* 15 */
  --text-md: 1.0625rem;   /* 17 — body */
  --text-lg: 1.25rem;     /* 20 */
  --text-xl: 1.5rem;      /* 24 */
  --display-1: clamp(3.25rem, 1.6rem + 7.4vw, 8.25rem);
  --display-2: clamp(2.5rem, 1.5rem + 4.2vw, 5rem);
  --display-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);

  /* Space (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* Layout */
  --container: 76rem;     /* 1216px */
  --gutter: 1rem;         /* 16px on phones, grows below */
  --measure: 66ch;

  /* Radius — larger surfaces get larger radii */
  --r-sm: 10px;           /* inputs, small UI */
  --r-md: 16px;           /* widget mockups, inner cards */
  --r-lg: 24px;           /* cards */
  --r-xl: 36px;           /* bands, hero stage */
  --r-pill: 999px;

  /* Elevation — warm-tinted, never grey */
  --shadow-1: 0 1px 2px rgba(64, 56, 0, 0.08), 0 2px 6px rgba(64, 56, 0, 0.06);
  --shadow-2: 0 2px 4px rgba(64, 56, 0, 0.06), 0 12px 28px -8px rgba(64, 56, 0, 0.18);
  --shadow-3: 0 4px 10px rgba(64, 56, 0, 0.08), 0 28px 60px -16px rgba(64, 56, 0, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 140ms;
  --dur-2: 260ms;
  --dur-3: 520ms;

  --header-h: 4.25rem;
}

@media (min-width: 48em) {
  :root { --gutter: 2rem; }
}

@media (min-width: 90em) {
  :root { --gutter: 3rem; }
}
