/* =====================================================================
   Neo styling pack: tokens (0.9.0)
   LEARN: Every value the neo look uses, in one file, for light and dark.
   LEARN: The component file (neo.css) only ever uses these names, so the
   LEARN: pack can move into Domboc's theming module by mapping these names
   LEARN: onto Domboc's tokens (see PACK.md) without touching the shapes.
   LEARN: Base names (--ink, --surface, --btn, the stage colours ...) are set
   LEARN: by the base stylesheet; this file adds what's special to neo and
   LEARN: its dark values.
   ===================================================================== */
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakrapetch-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakrapetch-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakrapetch-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakrapetch-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* ---- Type ---- */
  --display: "Chakra Petch", var(--font);  /* LEARN: angular face for headings, numbers and buttons; Selawik stays for reading */

  /* ---- Shape: the angular preset ---- */
  --cut: 12px;           /* LEARN: corner cut on tiles, panels, messages */
  --cut-btn: 8px;        /* LEARN: corner cut on buttons */
  --cut-field: 8px;      /* LEARN: notch on the bottom-right of inputs */
  --slant: 5px;          /* LEARN: how far tags and chips lean */
  --bracket: 16px;       /* LEARN: length of the corner brackets on panels */

  /* ---- Colour: what neo adds to the base ---- */
  --night: #0b1a24;      /* LEARN: office bar: deep loch blue, not black */
  --night-glass: rgba(11, 26, 36, .9);
  --on-night: #b8c7d1;   /* LEARN: menu words on the bar (10.2:1) */
  --wire: #00e4f0;       /* LEARN: Travel by Taxi cyan, for line work on the dark bar (13:1 on night) */
  --wire-ink: #00666e;   /* LEARN: the same lines on light surfaces (loch, 6.7:1) */
  --plate: #fff;         /* LEARN: panels */
  --plate-inner: #f6f8f9;/* LEARN: panels inside panels, and fields */
  --frame: #c3ccd4;      /* LEARN: 1px frame round plates and tables */
  --page: #eef1f4;       /* LEARN: office page behind the plates */
  --grid: #d5dce2;       /* LEARN: the faint dot grid on office pages */
  --ghost: #dfe3e7;      /* LEARN: second-choice buttons */
  --sweep: #7ff4fa;      /* LEARN: the light band that sweeps across buttons on hover */
  /* LEARN: Main buttons in the Travel by Taxi colours: brand cyan with black text (13.4:1). */
  --btn: #00e4f0; --btn-dark: #00c4cf; --on-btn: #000;
  --zero-a: #5d656e; --zero-b: #555c64;   /* LEARN: hatching on empty tiles (white text 5.6:1+) */
  --tile-line: rgba(255, 255, 255, .55);
}

/* ---- Dark office mode (also follows the device when set to Automatic) ---- */
:root[data-mode=dark] {
  --plate: #15232d; --plate-inner: #0e1a22; --frame: #2f414d; --page: #0a141b; --grid: #1a2a35;
  --ghost: #24353f; --wire-ink: #4fb8c1; --night: #060f15; --night-glass: rgba(6, 15, 21, .9);
}
@media (prefers-color-scheme: dark) {
  :root[data-mode=auto] {
    --plate: #15232d; --plate-inner: #0e1a22; --frame: #2f414d; --page: #0a141b; --grid: #1a2a35;
    --ghost: #24353f; --wire-ink: #4fb8c1; --night: #060f15; --night-glass: rgba(6, 15, 21, .9);
  }
}
