/* WBC Operations: Design Tokens
   Source of truth: design-system/wbc-operations/MASTER.md
   Brand values come from the Wagyu Biltong Co. design system (tokens.json).
   Operations-only additions are marked OPS. */

@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;

  /* Ground and ink (brand) */
  --surface: #151415;
  --surface-raised: #222022;
  --surface-sunken: #1b1a1b;            /* OPS: table stripes, empty days */
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.5);
  --hairline: rgba(255, 255, 255, 0.16); /* OPS: 0.1 in brand; raised so table rules stay visible */
  --focus: #ea973b;

  /* Buttons (brand) */
  --btn: #151515;
  --btn-hover: #4e4e4e;
  --btn-border: #ffffff;

  /* Product ranges (brand). Code the product, never the UI. */
  --range-wagyu: #ea973b;     --on-range-wagyu: #151415;    /* 7.9:1 */
  --range-angus: #c12c43;     --on-range-angus: #ffffff;    /* 5.7:1 */
  --range-drewors: #7f8340;   --on-range-drewors: #151415;  /* 4.6:1 */
  --range-contract: #5e5e5e;  --on-range-contract: #ffffff; /* 6.5:1 */

  /* OPS: chart strokes. Lighter tints where the brand colour is under 3:1 as a thin line. */
  --line-wagyu: #ea973b;      /* solid */
  --line-angus: #e8657a;      /* dashed */
  --line-drewors: #aab05c;    /* dotted */
  --line-contract: #a9a9a9;   /* dash-dot */

  /* OPS: status. Not brand colours. Always paired with an icon and a word. */
  --status-ok: #9ccc65;       /* 9.8:1 on surface */
  --status-warn: #f2c94c;     /* 11.6:1; yellow, kept apart from Wagyu orange */
  --status-bad: #ff8a7d;      /* 8.0:1 */
  --status-info: #8ab4f8;     /* 8.7:1 */
  --status-stale: rgba(255, 255, 255, 0.6);

  /* Type */
  --font-ui: "Proxima Nova", proxima-nova, Figtree, system-ui, sans-serif;
  --font-display: "Luxury Gold", Montserrat, "Proxima Nova", sans-serif;
  --text-xs: 12px;    /* stamps and axis labels only, never body */
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-kpi: 40px;
  --leading: 1.5;

  /* Spacing: dense dashboard scale (density 8/10) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  /* Shape */
  --radius-card: 10px;   /* cards and panels: rounded at the owner's request */
  --radius-control: 0px; /* chips, buttons, inputs: square, per brand */

  /* Touch */
  --hit: 44px;           /* office and phone */
  --hit-floor: 56px;     /* floor tablet, gloved hands */

  /* Motion */
  --fade: 200ms ease-out;
}

/* Wall screens: read from across the room */
:root[data-mode="wall"] {
  --text-sm: 18px;
  --text-base: 22px;
  --text-lg: 28px;
  --text-xl: 40px;
  --text-kpi: 72px;
  --space-4: 20px;
  --space-5: 28px;
}

/* Floor tablet */
:root[data-mode="floor"] {
  --hit: var(--hit-floor);
  --text-base: 18px;
}

/* Light theme: documents, print, bright offices */
:root[data-theme="light"] {
  color-scheme: light;
  --surface: #ffffff;
  --surface-raised: #f2f2f2;
  --surface-sunken: #f7f7f7;
  --ink: #151415;
  --ink-muted: rgba(21, 20, 21, 0.6);
  --border: rgba(21, 20, 21, 0.5);
  --hairline: rgba(21, 20, 21, 0.16);
  --focus: #151415;
  --btn-border: #151515;
  --status-ok: #3b6d11;
  --status-warn: #854f0b;
  --status-bad: #b42318;
  --status-info: #1a56b0;
  --status-stale: rgba(21, 20, 21, 0.6);
  --line-wagyu: #a85f0c;
  --line-angus: #c12c43;
  --line-drewors: #5f6330;
  --line-contract: #5e5e5e;
}

.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
