/* ====================================================================
   Purpose : Design tokens and the base reset shared by every page on the domain.
   Detail  : The only sheet where a colour, a font stack, a radius, or an easing
             is written. Pages, the dashboard, and the canvas scripts read
             tokens; they never redefine one and never write a literal colour.
             Names are full English semantic names; a missing token breaks
             visibly because no var() carries a fallback. One palette, the
             Zanus brand, serves the public pages and the dashboard alike.
             The reset sets no background, focus ring, or selection colour:
             each surface sets its own.
   ==================================================================== */

/* ====================================================================
   Kind    : Component
   Name    : :root
   Purpose : The Zanus brand palette: black and graphite, silver text, red only as a signal.
   ==================================================================== */
:root {
  --color-ink: #000000;
  --color-graphite: #0c0c0e;
  --color-graphite-raised: #131316;
  --color-graphite-high: #1a1a1e;
  --color-well: #070708;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-line-strong: rgba(255, 255, 255, 0.18);
  --color-line-hover: rgba(255, 255, 255, 0.28);
  --color-grid: rgba(255, 255, 255, 0.03);
  --color-wash: rgba(255, 255, 255, 0.06);

  --color-paper: #f3f3f4;
  --color-paper-bright: #ffffff;
  --color-paper-soft: #cfcfd3;
  --color-paper-muted: #8c8c93;
  --color-paper-faint: #55555c;
  --color-paper-ghost: #3a3a40;
  --color-silver: #c8cbca;
  --color-silver-deep: #6d6d73;
  --color-press: #d6d6d9;

  --color-signal: #fe0000;
  --color-signal-bright: #ff2a2a;
  --color-signal-text: #ff7a7a;
  --color-signal-glow: rgba(254, 0, 0, 0.5);
  --color-signal-haze: rgba(254, 0, 0, 0.22);
  --color-signal-tint: rgba(255, 42, 42, 0.08);
  --color-signal-border: rgba(255, 42, 42, 0.35);
  --color-caution: #f2b955;

  --gradient-metal: linear-gradient(180deg, #ffffff 0%, #d9dcdc 40%, #8b8f90 55%, #e6e8e8 75%, #a9adae 100%);
  --gradient-panel: linear-gradient(180deg, #131316, #0c0c0e);
  --gradient-button: linear-gradient(180deg, #ffffff, #dcdcdf);
  --gradient-slash: linear-gradient(to bottom, rgba(254, 0, 0, 0), rgba(254, 0, 0, 0.95) 30%, #ffb0b0 50%, rgba(254, 0, 0, 0.95) 70%, rgba(254, 0, 0, 0));

  --shadow-panel: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-drop: 0 34px 40px rgba(0, 0, 0, 0.85);
  --shadow-signal: 0 0 10px #fe0000;
  --shadow-slash: 0 0 18px 2px rgba(254, 0, 0, 0.55), 0 0 60px 12px rgba(254, 0, 0, 0.22);
  --shadow-horizon: 0 -2px 0 rgba(255, 120, 120, 0.9), 0 -20px 60px rgba(254, 0, 0, 0.55), 0 -80px 200px rgba(254, 0, 0, 0.35), inset 0 30px 80px rgba(254, 0, 0, 0.12);

  --font-brand: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-control: 8px;
  --radius-panel: 14px;

  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);

  --measure-brand: 1240px;
  --gutter-brand: clamp(22px, 3vw, 36px);
}

/* ====================================================================
   Kind    : Component
   Name    : html
   Purpose : Base reset and document typography; everything inherits from here.
   ==================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
