/* TWR design tokens: colour, type, shape, space and layout. One source for the storefront (linked right before ui.css) and the admin
   (linked right before admin.css). Components live in ui.css and admin.css; this file only declares variables. */

:root {
  /* colour */
  --ui-ink: #000000;          /* page */
  --ui-surface: #111311;      /* cards, sheets */
  --ui-surface-2: #1a1d1a;    /* raised: inputs, selected rows */
  --ui-line: #2a2e2a;         /* dividers */
  --ui-line-strong: #5b605b;  /* outlines that must be seen (3:1 on the page) */
  --ui-text: #f2f2f2;
  --ui-muted: #9a9f9a;
  --ui-signal: #00ff00;       /* the logo green: primary buttons, Valid, + Spins */
  --ui-on-signal: #000000;
  --ui-warn: #ffb020;
  --ui-bad: #ff7a7a;
  --ui-signal-tint: rgba(0, 255, 0, 0.12);
  --ui-warn-tint: rgba(255, 176, 32, 0.14);
  --ui-bad-tint: rgba(255, 122, 122, 0.14);
  --ui-backdrop: rgba(0, 0, 0, 0.72);

  /* type */
  --ui-font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ui-font-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shape and space */
  --ui-radius: 14px;
  --ui-radius-sm: 10px;
  --ui-pill: 999px;
  --ui-gutter: 16px;
  --ui-tap: 44px;

  /* layout */
  --ui-header-h: 56px;
  --ui-tabbar-h: 56px;
  --ui-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ui-bar-pad: 0px;           /* set by ui.js to the height of the action bars on the page */

  --ui-z-tabbar: 20;
  --ui-z-bar: 25;
  --ui-z-sheet: 1100;          /* above Dawn's cart drawer (1000) */
}
