/* Chafer design tokens: neutrals, type, shape, space and depth.
   The customer's color scale (--brand-50 ... --brand-950, --on-brand-*, --brand-text, --brand-ring, --brand-rgb) is
   written per company by the {% brand_vars %} tag in the page head; core/brand_scale.py works it out. */

/* the two typefaces, served from the app (SIL Open Font License, files and licenses in fonts/). Variable fonts, Latin
   subsets; both keep their tabular figures. */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-italic-var.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }

:root {
  /* neutrals */
  --hq-white: #FFFFFF;
  --hq-ground: #F3F4F6;
  --hq-tray: #F7F8F9;
  --hq-line: #ECEDF0;
  --hq-slate: #5B616B;
  --hq-charcoal: #16181B;
  --hq-ink: 22, 24, 27;              /* charcoal as r,g,b for rgba() */

  /* status colors: the same for every customer */
  --hq-ok-bg: #E7F5EE;   --hq-ok-text: #1E6B45;   --hq-ok: #1E8A57;
  --hq-warn-bg: #FFF4DB; --hq-warn-text: #8A5A00; --hq-warn: #C27A00;
  --hq-bad-bg: #FDECEA;  --hq-bad-text: #9A2A1D;  --hq-bad: #C0392B;

  /* tones: fixed colors that tell kinds of things apart (a print's department, an action's icon, a request's
     priority). Never the company color, and never a status: those are the status colors above. */
  --hq-tone-red: #B91C1C;    --hq-tone-orange: #C2410C; --hq-tone-amber: #B45309;
  --hq-tone-green: #15803D;  --hq-tone-teal: #0F766E;   --hq-tone-blue: #1D4ED8;
  --hq-tone-violet: #6D28D9; --hq-tone-pink: #C11574;
  --hq-mute: #98A2B3;        /* a dot or bar with no color of its own (no venue, no status) */

  /* the dark ground: the crew app and the TV boards are read in a hurry, from a kitchen line or across a room. Charcoal,
     cards one step up (the dock's key gray), fine light lines, white words, quieter words that still read at 4.5:1 on
     a card, and the status words' dark-ground shades (6.5:1 or more on a card). */
  --hq-dark-ground: #16181B;  --hq-dark-card: #25282C;  --hq-dark-card-2: #2B2E33;
  --hq-dark-line: rgba(255, 255, 255, .09);  --hq-dark-rule: rgba(255, 255, 255, .16);
  --hq-dark-text: #FFFFFF;    --hq-dark-soft: #C9CDD3;  --hq-dark-dim: #858B94;
  --hq-dark-quiet: #9EA3AA;   /* quiet words on the staff screens' dark cards: 5.4:1 on the lighter card */
  --hq-dark-ok: #5FD39A;      --hq-dark-ok-bg: #0D2B1E;
  --hq-dark-warn: #F5B451;    --hq-dark-warn-bg: #2B200B;
  --hq-dark-bad: #FF8A80;     --hq-dark-bad-bg: #3A1F1C;  --hq-dark-bad-text: #FFB4A8;

  /* the floor plan: the drawing's own lines and the 3D room around it (read by the editor's script, so a saved
     picture keeps them), and the table linens a planner picks for the 3D view */
  --hq-plan-wall: #344054;   --hq-plan-grid: #E4E7EC;   --hq-plan-grid-5: #D0D5DD;
  --hq-plan-paper: #F2F4F7;  --hq-plan-room: #ECE7DF;
  --hq-linen-white: #F7F6F2; --hq-linen-ivory: #F1E8D2; --hq-linen-champagne: #E4CFA6; --hq-linen-blush: #E9C3BE;
  --hq-linen-sage: #A7B79C;  --hq-linen-navy: #22314F;  --hq-linen-black: #1E1E20;

  /* type */
  --hq-font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --hq-font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hq-text-body: 15px;   --hq-line-body: 22px;
  --hq-text-label: 12.5px;
  --hq-text-figure: 24px;
  --hq-text-hero: 56px;   /* one or two per screen, for the number that matters there */

  /* shape */
  --hq-radius-pill: 999px;
  --hq-radius-card: 18px;
  --hq-radius-field: 12px;
  --hq-radius-swatch: 10px;

  /* space: a 4px step; touch targets 44 to 48px */
  --hq-space-1: 4px;  --hq-space-2: 8px;  --hq-space-3: 12px; --hq-space-4: 16px;
  --hq-space-5: 20px; --hq-space-6: 24px; --hq-space-8: 32px; --hq-space-10: 40px;
  --hq-touch: 44px;

  /* depth: one light from straight above */
  --hq-well: inset 0 1px 2px rgba(var(--hq-ink), .08), inset 0 0 0 1px rgba(var(--hq-ink), .05);
  --hq-resting: 0 0 0 1px rgba(var(--hq-ink), .06), 0 1px 0 rgba(var(--hq-ink), .04), 0 1px 3px rgba(var(--hq-ink), .05), 0 8px 20px -12px rgba(var(--hq-ink), .12);
  --hq-raised: 0 0 0 1px rgba(var(--hq-ink), .08), 0 1px 1px rgba(var(--hq-ink), .06), 0 3px 6px -2px rgba(var(--hq-ink), .10), 0 14px 28px -14px rgba(var(--hq-ink), .22);
  --hq-floating: inset 0 1px 0 rgba(255, 255, 255, .10), 0 0 0 1px rgba(var(--hq-ink), .90), 0 2px 2px rgba(var(--hq-ink), .10), 0 8px 16px -6px rgba(var(--hq-ink), .22), 0 28px 48px -16px rgba(var(--hq-ink), .38);
  --hq-highlight: inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 -1px 0 rgba(var(--hq-ink), .20);
}
