/* Design tokens, DESIGN.md v2 (the red reform). The ONLY file allowed to contain raw colour values.
   Anchor: a Damascus food court at the lunch rush; the black buzzer puck with its LED ring on a red band. */

@font-face {
  font-family: "Alexandria";
  src: url("/fonts/alexandria-vf.woff2") format("woff2-variations"), url("/fonts/alexandria-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the red system */
  --red: #DA1F2B; /* brand: white on it 4.99:1 */
  --red-deep: #9E1219; /* pattern strokes, pressed, red text on tint (7.71:1 on paper) */
  --red-ink: #7A0E14; /* darkest red: band shade, dark slides */
  --red-tint: #FFECEC; /* attention cards, chips */
  --red-on-ink: #FF8A90; /* red text on --ink (8.15:1): snackbar action */
  --on-red: #FFFFFF;
  --on-red-2: rgba(255, 255, 255, 0.85); /* DECORATION ONLY (rings, outlines): 3.9:1 on red, never text */
  --band-shade: rgba(122, 14, 20, 0.55);
  --on-red-ghost: rgba(255, 255, 255, 0.16); /* staff: quiet controls on the band */
  --red-glow: rgba(218, 31, 43, 0.28); /* staff: an attention card's arrival ring */
  --ready-glow: rgba(14, 122, 62, 0.3); /* staff: a card that arrives ready */
  --arrive-ring: rgba(20, 20, 20, 0.14); /* staff: a new waiting card's arrival ring (neutral) */

  /* paper and ink */
  --paper: #FAF7F5;
  --paper-2: #F2ECE8;
  --card: #FFFFFF;
  --white: #FFFFFF;
  --ink: #141414;
  --ink-2: #5E5A57; /* 6.40:1 on paper */
  --line: #ECE6E2;
  --line-2: #DED5CF;
  --scrim: rgba(20, 20, 20, 0.42);

  /* the puck */
  --led-h1: #FFD54A;
  --led-h2: #FF9F1C;
  --led-h3: #FF4A4A;
  --led-grn: #55DE91;
  --led-coral: #FF6B5E;
  --led-coral-line: #EB5646; /* the no-answer dashed outline on paper: 3.31:1 (the fill coral is 2.62:1); still coral, never the overdue red */
  --led-slate: #AAB7C4;
  --puck: #151517;
  --puck-rim: #2A2A2E;
  --puck-hi: #3A3A40;
  --puck-ink: #F7F5F3;
  --puck-ink-2: #B4B0AC; /* 8.46:1 on the puck */
  --puck-hi-line: rgba(255, 255, 255, 0.12);
  --puck-shade: rgba(0, 0, 0, 0.6);
  --puck-gloss: radial-gradient(circle at 36% 24%, #3A3A40 0%, #242428 34%, #151517 68%, #0E0E10 100%);
  --puck-dish: radial-gradient(circle at 50% 18%, #202024 0%, #141416 60%, #0C0C0E 100%);
  --puck-sheen: radial-gradient(ellipse 72% 46% at 50% 4%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0) 72%);

  /* LEDs */
  --led-off: #38383E;
  --led-wait: #FFB21E;
  --led-ready: #EFFFF4;
  --live: #8DF2B4; /* the staff connection dot while live */
  --live-glow: 0 0 0 1px rgba(141, 242, 180, 0.5), 0 0 8px rgba(141, 242, 180, 0.8);
  --led-lens: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.06);
  --led-glow-wait: 0 0 0 1px rgba(255, 178, 30, 0.4), 0 0 10px rgba(255, 178, 30, 0.8), 0 0 22px rgba(255, 140, 20, 0.35);
  --led-glow-ready: 0 0 0 1px rgba(239, 255, 244, 0.5), 0 0 10px rgba(239, 255, 244, 0.9), 0 0 22px rgba(120, 255, 170, 0.35);

  /* states: ready is state only, never brand */
  --ready: #0E7A3E; /* white on it 5.42:1 */
  --ready-night: #085027; /* the ready page: darker than --ready so red to green also changes luminance (1.9:1, not 1.09:1) */
  --ready-hi: #10883F;
  --ready-tint: #E4F4EA;
  --ready-ink: #FFFFFF;
  --amber-tint: #FFF4DC;
  --amber-ink: #8A5A00; /* 5.43:1 on amber tint */

  /* board (dark TV, read from 3 to 5 m) */
  --board-bg: var(--puck);
  --board-ink: var(--puck-ink);
  --board-ink-2: #9A9692;

  /* pattern */
  --pattern: url("/img/food-pattern.svg");
  --pattern-light: url("/img/food-pattern-light.svg");
  --band-veil: color-mix(in srgb, var(--red) 50%, transparent); /* staff bar: half-strength pattern */
  --pattern-size: 224px;
  /* puts the tile's one clean line (y 244.6 of 256) on the band's top edge: no half glyphs there */
  --pattern-y: calc(var(--pattern-size) * 0.045);

  /* shape */
  --radius-card: 14px;
  --radius-btn: 14px;
  --radius-key: 14px;
  --radius-chip: 999px;
  --radius-sheet: 14px;
  --key-min: 56px;
  --btn-h: 52px;
  --btn-h-sm: 44px;
  --gutter: 20px;

  /* depth (warm shadows) */
  --shadow-card: 0 1px 0 rgba(20, 20, 20, 0.04), 0 8px 18px -12px rgba(122, 14, 20, 0.16);
  --shadow-card-lift: 0 1px 0 rgba(20, 20, 20, 0.04), 0 22px 40px -18px rgba(122, 14, 20, 0.3);
  --shadow-key: 0 1px 0 rgba(20, 20, 20, 0.05), 0 2px 0 #ECE6E2, 0 10px 18px -12px rgba(122, 14, 20, 0.3);
  --shadow-key-press: 0 1px 0 rgba(20, 20, 20, 0.05);
  --shadow-puck-drop: 0 24px 40px -18px rgba(0, 0, 0, 0.45), 0 4px 10px -4px rgba(0, 0, 0, 0.35);
  --shadow-sheet: 0 -18px 40px -20px rgba(20, 20, 20, 0.3);
  --shadow-snack: 0 18px 30px -16px rgba(0, 0, 0, 0.5);

  /* type: Alexandria, one variable file */
  --font: "Alexandria", "Segoe UI", Tahoma, system-ui, sans-serif;
  --w-body: 400;
  --w-ui: 600;
  --w-display: 700;
  --w-num: 800;
  --fs-xs: 13px;
  --fs-meta: 15px;
  --fs-body: 17px;
  --fs-title: 20px;
  --fs-display: 28px;
  --fs-num-sm: 26px;
  --fs-num: 36px;
  --lh-body: 1.75;
  --lh-head: 1.3;

  /* motion: one curve, three durations */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-mid: 280ms;
  --t-slow: 520ms;
  --led-in: 200ms;
  --flood-in: 520ms;

  /* staff rack v5 (2026-11-15) */
  --scrim-paper: rgba(250, 247, 245, 0.35); /* the light scrim behind an open bloom */
  --badge-amber: #F4B740; /* the muted-bell and megaphone badges */
  --badge-amber-ink: #3A2A00;
  --voice-hi: #FFC955; /* «بصوتك»: the megaphone button */
  --voice-lo: #E39A00;
  --voice-ink: #2A1C00;
  --amber-text-glow: rgba(255, 160, 30, 0.45); /* the amber code on a code puck */
  --ptr-shadow: drop-shadow(0 2px 2px rgba(20, 20, 20, 0.25)); /* the look-here pointer */
}

/* brand-plan shop colour: a NAME on <html> (PLAN §16.6); red is the default. White on --red is 4.99:1 or more. */
.accent-red { --red: #DA1F2B; }
.accent-blue { --red: #1B4FB0; --red-deep: #173F8A; --red-ink: #10295C; --red-tint: #E8F0FF; }
.accent-teal { --red: #0B6E68; --red-deep: #0A524E; --red-ink: #063834; --red-tint: #E2F5F3; }
.accent-orange { --red: #B24A08; --red-deep: #8A3806; --red-ink: #5E2604; --red-tint: #FFEFE0; }
.accent-brown { --red: #7A4A2E; --red-deep: #5E3822; --red-ink: #3E2415; --red-tint: #F6ECE5; }
.accent-black { --red: #303036; --red-deep: #26262B; --red-ink: #17171A; --red-tint: #EDEDEF; }
/* the pattern is red: a recoloured band takes the white one */
:is(.accent-blue, .accent-teal, .accent-orange, .accent-brown, .accent-black) {
  --pattern: var(--pattern-light);
  --band-shade: color-mix(in srgb, var(--red-ink) 55%, transparent);
}

/* Base, shared by every page */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--w-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[lang="ar"], [dir="rtl"] { letter-spacing: 0 !important; }
h1, h2, h3 { line-height: var(--lh-head); margin: 0; font-weight: var(--w-display); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
img, svg { display: block; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--red-tint); color: var(--red-ink); }
.visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
