/* Farmer Constructions design tokens. Source of truth for colour, type,
   space, shape and motion. Loaded before style.css on every page.
   Palette is the client-supplied scheme (assets/brand/colour-scheme-reference.png).
   Lime is the accent and nothing else: CTAs, the plan drawing, dimension lines. */

:root {
  /* grounds: three dark grounds, no two adjacent sections share one */
  --g-site: #142128;        /* page ground */
  --g-panel: #21343d;       /* alternating section ground, cards */
  --g-navy: #002639;        /* header, footer, chapter breaks */
  --g-raised: #2a3f4a;      /* cards sitting on the panel ground */
  --g-field: #0e181d;       /* form inputs */

  /* supporting: the brand navy's own hue at full brightness. Used as light
     (glows, rims, hover haze), never as a fill, button or section ground. */
  --azure: #1e9dd8;
  --azure-glow: rgba(30, 157, 216, 0.28);   /* radial glows on navy grounds */
  --azure-haze: rgba(30, 157, 216, 0.10);   /* hover tint on cards */
  --azure-line: rgba(30, 157, 216, 0.35);   /* hairline/rim on raised cards */

  /* accent */
  --lime: #dae544;
  --lime-deep: #c6d12f;     /* hover */
  --lime-dim: rgba(218, 229, 68, 0.14);
  --lime-line: rgba(218, 229, 68, 0.55);
  --on-lime: #0b1a22;       /* text on a lime ground */

  /* text */
  --text: #f4f6f4;          /* headings */
  --text-body: #aebbc1;     /* body */
  --text-muted: #7f8f97;    /* captions, 4.6:1 on --g-site */
  --text-on-photo: #d5dde0; /* body copy laid over a photograph */
  --line: rgba(174, 187, 193, 0.16);
  --line-strong: rgba(174, 187, 193, 0.32);

  /* scrims: the page ground at five strengths, laid over photography */
  --scrim-0: rgba(11, 26, 34, 0);
  --scrim-1: rgba(11, 26, 34, 0.3);
  --scrim-2: rgba(11, 26, 34, 0.55);
  --scrim-3: rgba(11, 26, 34, 0.8);
  --scrim-4: rgba(11, 26, 34, 0.94);
  --overlay: rgba(6, 14, 19, 0.95); /* lightbox backdrop */

  /* feedback */
  --ok: #8fd694;
  --warn: #f2c14e;
  --error: #ff8a80;

  /* type: Bricolage Grotesque carries the voice, IBM Plex Sans the body,
     IBM Plex Mono the drafting labels (dimension lines, figures, steps) */
  --font-display: "Bricolage Grotesque", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-hero: clamp(2.5rem, 5.2vw + 0.5rem, 4.5rem);
  --text-h1: clamp(2.125rem, 3vw + 0.9rem, 3.25rem);
  --text-h2: clamp(1.75rem, 1.8vw + 0.9rem, 2.5rem);
  --text-h3: 1.25rem;
  --text-quote: clamp(1.375rem, 1.2vw + 1rem, 2rem);
  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-body: 1.6;
  --track-caps: 0.12em;

  /* space (house scale) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --section-y: var(--s-7);

  /* shape */
  --radius-btn: 6px;
  --radius-field: 6px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  --shadow-header: 0 1px 0 var(--line);
  /* a linked card while hovered or focused: an azure rim, light pooling under
     the lifted card and a haze rising from its foot */
  --shadow-lit:
    0 0 0 1px var(--azure-line),
    0 var(--s-5) var(--s-7) calc(var(--s-4) * -1) var(--azure-glow),
    inset 0 calc(var(--s-7) * -1) var(--s-8) calc(var(--s-7) * -1) var(--azure-haze);

  /* layout */
  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --callbar-h: 60px;

  /* motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-fast: 160ms;
  --dur-med: 280ms;
  --dur-slow: 520ms;

  /* layers */
  --z-header: 100;
  --z-callbar: 150;
  --z-sheet: 200;
  --z-lightbox: 300;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 80px;
    --section-y: var(--s-8);
  }
}
