/* ============================================================
   MacLeod Services v4 — Design Tokens
   Single source of truth for colour, type, spacing, radii and
   shadows across every MacLeod property (main site, blog,
   NULL SECTOR chrome, Neon Vault, Kindred North, AI Copilot,
   MSG Store, BDSN fundraising, sites offer, Daemon Network).
   v4.5 CLEAN LIGHT theme: light warm-neutral pages throughout,
   white / lightest-slate header & footer with slate text and a
   hairline border, MacLeod gold reserved for accents, the logo
   mark and primary buttons. Never hard-code a hex value in a
   component — always reference a token.
   ============================================================ */
:root {
  /* ---- Colour: surfaces ---- */
  --bg:          #faf8f4;  /* page background — warm neutral */
  --bg-2:        #f3efe8;  /* alt section / lightest slate band */
  --surface:     #ffffff;  /* card surface */
  --surface-2:   #f7f4ee;  /* raised surface / hover */
  --surface-3:   #eceff2;  /* chips, inset wells */
  --overlay:     rgba(43, 52, 64, 0.45);

  /* ---- Colour: lines & text ---- */
  --line:        #dde1e6;  /* hairline slate border */
  --line-strong: #b9c1ca;
  --text:        #2b3440;  /* slate body text */
  --text-2:      #45505e;  /* secondary text */
  --muted:       #5b6673;  /* captions, meta — real contrast on white */
  --faint:       #6e7987;  /* footnotes only */

  /* ---- Colour: brand & actions ---- */
  --gold:        #c99700;  /* MacLeod gold — accents, logo, focus border */
  --gold-2:      #e3b341;  /* gold highlight / gradient top */
  --gold-deep:   #8a6408;  /* text-grade gold: links, small accents on white */
  --gold-tint:   rgba(201, 151, 0, 0.10);
  --gold-line:   rgba(201, 151, 0, 0.45);
  --accent:      #3e7bfa;  /* steel blue — info/admin accents only, not buttons */
  --accent-2:    #2563c9;  /* accent text on light */
  --accent-tint: rgba(62, 123, 250, 0.10);
  --ink-on-gold: #2b3440;  /* slate text on gold buttons */
  --ink-on-accent: #ffffff;

  /* ---- Colour: status (darkened for light surfaces) ---- */
  --ok:          #1e7a46;
  --ok-tint:     rgba(30, 122, 70, 0.10);
  --warn:        #9a7200;
  --warn-tint:   rgba(154, 114, 0, 0.12);
  --danger:      #b3372a;
  --danger-2:    #b3372a;
  --danger-tint: rgba(179, 55, 42, 0.09);
  --info:        #2563c9;
  --info-tint:   rgba(37, 99, 201, 0.09);

  /* ---- Form fields (v4.5 shared field spec — the headline fix) ---- */
  --field-bg:     #ffffff;
  --field-line:   #c9cfd6;  /* 1.5px solid border on every field */
  --field-radius: 11px;     /* 10–12px */
  --field-pad:    13px 14px; /* 12–14px padding */
  --field-fs:     16px;     /* 16px text — also stops iOS zoom-on-focus */
  --field-ring:   0 0 0 3px rgba(201, 151, 0, 0.25);
  --placeholder:  #6f7d8b;

  /* ---- Typography ---- */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;   /* brand wordmark accents only */
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs:   0.78rem;
  --fs-sm:   0.88rem;
  --fs-base: 1rem;
  --fs-md:   1.13rem;
  --fs-lg:   1.32rem;
  --fs-xl:   1.62rem;
  --fs-2xl:  2.05rem;
  --fs-3xl:  2.62rem;
  --lh-tight: 1.22;
  --lh-body:  1.62;
  --fw-normal: 400;
  --fw-medium: 600;
  --fw-bold:   700;
  --fw-black:  800;
  --ls-label:  0.08em;  /* uppercase micro-labels */

  /* ---- Spacing (4px base) ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 22px;
  --sp-6: 28px;
  --sp-7: 40px;
  --sp-8: 56px;
  --wrap: 1120px;       /* content max width */
  --wrap-narrow: 780px; /* forms, articles */

  /* ---- Radii ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* ---- Shadows & focus (soft, light-theme) ---- */
  --shadow-card: 0 1px 2px rgba(43,52,64,.06), 0 8px 24px rgba(43,52,64,.07);
  --shadow-pop:  0 24px 60px rgba(43,52,64,.22), 0 0 0 1px rgba(43,52,64,.06);
  --shadow-bar:  0 10px 30px rgba(43,52,64,.14);
  --focus-ring: 0 0 0 3px rgba(201, 151, 0, 0.28);

  /* ---- Legacy aliases for the v4.4 tool shell (tools.css) ---- */
  --bg2:     var(--bg-2);
  --panel:   var(--surface);
  --panel2:  var(--bg-2);
  --ink:     var(--text);
  --gold-hi: var(--gold-2);
  --font:    var(--font-sans);
  --font-d:  var(--font-sans);
  --r:       var(--r-md);
  --shadow:  var(--shadow-card);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2,.7,.3,1);
  --dur: 180ms;
}

/* Respect users who ask for less motion, everywhere. */
@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}
