/*
 * Design tokens. Colours are RGB channels, used as rgb(var(--name)) or rgb(var(--name) / .5),
 * so a brand refresh is a change to this file only. A hex in a component is a bug.
 *
 * The palette is the old site's own: its deep green, leaf green, lime, sunshine yellow and
 * turmeric gold, now on plain white, with its lavender/indigo and a paprika red as accents.
 * Large areas use the soft tints; indigo, leaf and turmeric also colour icons and single
 * words. Structure follows docs/agents/design.md
 * (Feetpath's habits). Contrast notes are for the pairings actually used.
 */
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  /* Surfaces: white pages. Colour comes from the tints below, never from the page itself. */
  --paper: 255 255 255;
  --paper-tint: 249 248 244;   /* table heads and toolbars in the admin */
  --paper-deep: 244 242 236;   /* the one "quiet highlight": hovered rows, frames, placeholders */
  --white: 255 255 255;

  --ink-900: 32 33 26;
  --ink-700: 70 70 60;
  --ink-500: 104 101 90;       /* 5.3:1 on paper */
  --ink-400: 138 133 120;
  --ink-300: 205 196 181;
  --ink-200: 230 223 210;
  --ink-100: 241 235 224;

  /* The action colour. White on it is 9.6:1. Hover darkens, never lightens. */
  --brand: 29 88 38;
  --brand-strong: 18 61 25;
  --brand-soft: 226 240 229;

  /* Spice colours for large areas, numbers and single words. Ink text on all of them is AA.
     White text only on --chilli (5.2:1) and --brand; on --leaf only at heading sizes. */
  --leaf: 8 172 104;
  --lime: 125 200 0;
  --lime-ink: 86 140 0;         /* lime dark enough for large text on paper (3.9:1, headings only) */
  --sun: 246 210 33;
  --accent: 248 172 18;        /* turmeric gold */
  --chilli: 200 54 28;
  --moss: 30 128 74;            /* mid green for big panels: white on it is 5.0:1 */
  --leaf-ink: 4 120 72;         /* leaf dark enough for headings on pale tints (4.6:1) */
  --gold-ink: 176 110 0;        /* turmeric dark enough for headings on cream (3.9:1, large text only) */

  --indigo: 91 75 219;          /* the old "Sourcing the rare" violet; white on it is 6.0:1 */
  --indigo-soft: 239 236 251;
  --mint: 230 246 240;
  --lime-soft: 238 248 212;
  --lime-pale: 227 243 195;     /* the big split panel behind "Natural, organic & special" */
  --sun-soft: 255 247 233;      /* the cream card */
  --chilli-soft: 252 229 220;

  /* State colours stay apart from the brand and are always paired with words. */
  --state-ok: 21 94 117;
  --state-warn: 146 72 0;
  --state-bad: 176 32 32;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius: the website is hard-edged; the admin uses this scale and nothing else. */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --ease: cubic-bezier(.4, 0, 1, 1);
  --ease-settle: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 144px);
  --wrap: 1360px;
  color-scheme: light;
}
