/* ==========================================================================
   Design tokens - the single source of truth for every page
   (landing.html, webui.html, tos.html all link this file first).

   Component rules in the pages read tokens only (no colours, fonts or sizes
   of their own), so restyling the whole site means editing values here and
   nothing else.  An optional theme override can go at the end of this file,
   e.g.
     [data-theme="dark"] { --bg:#141414; --surface:#1e1e1e; --surface-alt:#2a2a2a;
                           --line:#3a3a3a; --ink:#e6e6e6; --ink-soft:#999999; }
   ========================================================================== */
:root {
  /* surfaces */
  --bg:          #f2f2f2;             /* page */
  --surface:     #ffffff;             /* cards, buttons, inputs, table heads */
  --surface-alt: #f9f9f9;             /* muted fill: chips, zebra rows, log, drop zone */
  --overlay:     rgba(0, 0, 0, .45);  /* modal backdrop */
  --veil:        rgba(0, 0, 0, .6);   /* darkening over background video (hero) */
  --line:        #78708c;             /* regular borders */
  --line-strong: #8c8c8c;             /* emphasis borders (diagrams, hover) */

  /* text */
  --ink:      #010509;                /* primary text */
  --ink-soft: #595959;                /* secondary text, labels, hints */
  --ink-invert:      #ffffff;         /* text over video / dark surfaces */
  --ink-invert-soft: rgba(255, 255, 255, .8);

  /* the only chromatic colours: accent + status */
  --accent:       #c0472b;            /* links, focus, primary button, active tab */
  --accent-hover: #951f1f;
  --on-accent:    #ffffff;            /* text on accent fills */
  --warn:    #8a5a00;  --warn-bg: #faf3e0;
  --bad:     #b3261e;  --bad-bg:  #fdecec;

  /* typography */
  --font: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
  --mono: 'Nimbus Mono PS', 'Courier New', monospace; ;
  --fs-xl: 1.8rem;                      /* hero / display */
  --fs-lg: 1.3rem;                      /* page title */
  --fs:    15px;                      /* body */
  --fs-sm: 0.85rem;                      /* tables, labels, secondary text */
  --fs-xs: 0.5rem;                    /* chips, diagram labels, fine print */

  /* shape, spacing, effects */
  --radius: 4px;
  --sp-1: 4px;  --sp-2: 7px;  --sp-3: 12px;  --sp-4: 21px;  --sp-5: 61px;
  --border: 1px solid var(--line);
  --focus:  2px solid var(--accent);
  --shadow: none;
}

/* shared base (used by every page) */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs)/1.5 var(--font); }
a { color: var(--accent); }
:focus-visible { outline: var(--focus); outline-offset: 1px; }

li{
list-style: none;
}
