/* FoodHaatch V2 brand palette — "Serving Hatch" (2026-09-28).
   Single source of truth for brand colours and type, exposed as CSS custom
   properties on :root. Link this (cache-busted) on any page that should pick
   up the brand look. Kept separate from the dashboard's own :root so it can
   be adopted page by page.

   The token NAMES are unchanged from the teal/purple palette so every page
   that already reads var(--brand) etc. warms up without an edit. What each
   name MEANS is unchanged too: --brand is still the primary (nav, headers,
   primary buttons), --warn still means "attention", --danger "urgent". */

/* Self-hosted (SIL OFL), latin subset only. Not Google-hosted: the till runs
   offline as a PWA, and a third-party font request would hand every
   visitor's IP to Google. Variable fonts — one file covers every weight. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/static/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/figtree-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/figtree-italic-latin.woff2') format('woff2');
}

:root {
  --brand:        #0E5C4E;   /* juniper — nav, headers, primary buttons */
  --brand-light:  #7ED6B6;   /* on-dark text (nav links) and light fills */
  --brand-pale:   #DDEFE7;
  --brand-dark:   #0A4639;

  --accent:       #A93668;   /* beetroot — highlights, links, selected states */
  --accent-pale:  #F8E2EC;
  --accent-dark:  #7A2149;

  --warn:         #FFB23F;   /* mango — attention flags (solid fill + --warn-text) */
  --warn-text:    #6B3F00;
  --danger:       #D23B2A;   /* chilli — urgent/overdue only */

  --bg:           #FBF4EC;   /* oat — page background */
  --text:         #2B211B;   /* char-brown */
  --text-muted:   #7C6B5E;

  /* New in Serving Hatch. Mango doubles as the ONE "go" action per screen
     (Open the till, New customer) — keep it scarce or it stops meaning go. */
  --mango:        #FFB23F;
  --mango-pale:   #FFEFD3;
  --mango-text:   #3A2200;   /* text ON a solid mango button */
  --herb:         #2F8A55;   /* good / confirmed */
  --herb-pale:    #E0F2E6;
  --danger-pale:  #FBE3DF;
  --line:         #EADCCB;   /* warm hairline for borders and dividers */
  --surface-2:    #F4E9DC;   /* toasted oat — wells, inputs, table heads */
  --shadow-card:  0 1px 2px rgba(60,35,15,.06), 0 6px 18px -6px rgba(60,35,15,.12);
  --surface:      #FFFFFF;   /* card white — also the awning's light stripe */

  /* The Serving Hatch design study's names for the same colours. Aliases, not
     copies, so the two spellings can never drift apart. */
  --ground:       var(--bg);      /* #FBF4EC oat */
  --juniper:      var(--brand);   /* #0E5C4E */

  --font-display: 'Bricolage Grotesque', ui-rounded, 'Avenir Next', system-ui, sans-serif;
  --font-body:    'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* `html body` rather than `body`: nearly every V2 page sets its own
   `body { font-family: -apple-system,… }` in a <style> AFTER this link, and a
   bare `body` here would lose to it on source order. Controls use
   font-family:inherit throughout, so they follow. */
html body { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

/* The logo strip above the nav. ~64 pages each declare
   `.topbar { background:var(--brand-dark) }` in their own <style>, which loads
   AFTER this file — so this needs the higher specificity, not source order.
   Juniper --brand, not --brand-dark: #0A4639 read as the old dark green. */
html body .topbar { background: var(--brand); border-bottom-color: rgba(255, 255, 255, 0.1); }
