/* Reggie design tokens: Kitchen Ticket Rail.
   Contrast pairs are checked against WCAG 2.2 AA; keep new text colours at 4.5:1 or above on --paper and --steel-ground.
   The steel header carries ink only: signal colours drop below 4.5:1 on --steel-header. */
:root {
  /* Steel shell */
  --steel-rail: #4f5763;
  --steel-rail-active: #3f4651;
  --steel-rail-text: #e4e8ec;
  --steel-rail-text-strong: #ffffff;
  --steel-header: #c3c7cd;
  --steel-header-lip: #8a9099;
  --steel-ground: #d9dcdf;

  /* Thermal paper and ink */
  --paper: #fbfaf6;
  --paper-sunk: #f1f0ea;
  --ink: #1b1b1b;
  --ink-soft: #262626;
  --text-muted: #5a5f66;
  --text-faint: #6b7078;
  --rule: #d6d4cc;
  --rule-dashed: #b9b5aa;
  --field-border: #8a9099;
  --field-ground: #ffffff;
  --ink-overlay: rgba(27, 27, 27, 0.06);
  --ink-press: rgba(27, 27, 27, 0.18);

  /* Signal colours: one job each */
  --printer-red: #b42a24;
  --printer-red-wash: #f7e4e2;
  --tile-green: #285f4f;
  --tile-green-wash: #e2efe9;
  --expo-blue: #2459b8;
  --expo-blue-wash: #e3ebf8;
  --pending-amber: #6b5314;
  --closed-gray: #565b63;

  --status-new: var(--expo-blue);
  --status-open: var(--ink);
  --status-pending: var(--pending-amber);
  --status-resolved: var(--tile-green);
  --status-closed: var(--closed-gray);
  --late: var(--printer-red);
  --priority-high: var(--printer-red);

  --focus-ring: var(--expo-blue);
  --selection: #cfdcf3;

  /* Type */
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-data: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --text-xs: 0.75rem;   /* 12px: stamps, column heads */
  --text-sm: 0.8125rem; /* 13px: meta rows */
  --text-md: 0.875rem;  /* 14px: body and table cells */
  --text-lg: 1rem;      /* 16px: stub subject */
  --text-xl: 1.25rem;   /* 20px: section heads and the header page title */
  --text-2xl: 1.5rem;   /* 24px: welcome and sign-in headings */
  --text-3xl: 1.875rem; /* 30px: ticket stub header */
  --leading-tight: 1.25;
  --leading-normal: 1.45;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-stamp: 0.08em;

  /* Space: 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Shape */
  --radius-paper: 2px;
  --radius-control: 4px;
  --radius-rail: 8px;
  --perforation: 6px;

  /* Depth: paper rests flat, lifts on hover or focus */
  --shadow-paper: 0 1px 0 rgba(27, 27, 27, 0.06), 0 1px 2px rgba(27, 27, 27, 0.08);
  --shadow-lift: 0 6px 14px -4px rgba(27, 27, 27, 0.22), 0 2px 4px rgba(27, 27, 27, 0.08);
  --shadow-header: inset 0 -3px 0 var(--steel-header-lip);

  /* Shell sizes */
  --rail-width: 64px;
  --header-height: 60px;
  --row-height: 40px;

  /* Motion: shared scale from transitions.dev */
  --duration-micro: 80ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: ease-out;
  --scale-small: 0.98;

  /* Layers */
  --z-rail: 20;
  --z-header: 30;
  --z-popover: 40;
  --z-toast: 50;
}
