/* ====== Ignition · Design Tokens ======
   The single source of truth for the Ignition theme. Every Ignition rule reads
   from these custom properties; nothing downstream hardcodes a hex.

   Scope: tokens live on :root and every name is --lp-*, so loading this file on a
   legacy page changes nothing until a rule reads them (it's linked sitewide since
   Phase 0). Pages opt into the Ignition shell with class="lp-ignition" on <body>
   plus components.css. See docs/ignition-sitewide-directive.md §3.

   Orange (--lp-cta*) is reserved for primary CTAs only. Never use it for
   headings, badges, hashtags, or a department color. */

:root {
  /* ── Surfaces ── */
  --lp-bg: #07070a;
  --lp-sky: linear-gradient(180deg, #020206 0%, #05040a 55%, #0a0e16 100%);
  --lp-navy: #0a0e16;
  --lp-sidebar-bg: #0b0a0d;
  --lp-line: #221d20;                 /* hairlines: sidebar edge, dividers, pill track */
  --lp-surface-live: linear-gradient(180deg, #17151b, #121015);
  --lp-surface-live-border: #2a2530;
  --lp-surface-pre: #09080a;
  --lp-surface-pre-border: #262226;
  --lp-surface: #121015;              /* solid panels (tool UI on adopted pages) */
  --lp-surface-2: #17151b;            /* raised solid panels, inputs */
  --lp-surface-raised: #1b181e;       /* tooltips, flyouts */
  --lp-surface-raised-border: #2c272f;
  --lp-hover: #141217;                /* row hover */
  --lp-inset-hi: inset 0 1px 0 rgba(255, 255, 255, .08);

  /* ── Text (all ≥ 4.5:1 on --lp-bg) ── */
  --lp-text: #ffffff;
  --lp-text-body: #ddd5d2;
  --lp-text-2: #b9b0b2;
  --lp-text-muted: #a39b9d;
  --lp-text-faint: #857d7f;
  --lp-text-nav: #bcb3b5;
  --lp-text-label: #857d7f;           /* mono section labels; spec's #7a7274 measured 4.47:1 on the sidebar, this is 4.9:1 */
  --lp-icon: #a39a9c;                 /* resting nav icon */

  /* ── Brand green ── */
  --lp-green: #59e900;
  --lp-green-rgb: 89, 233, 0;
  --lp-green-ink: #0a1404;            /* text on solid green */
  --lp-green-soft: #c3f7a0;           /* text on tinted green */
  --lp-green-grad: linear-gradient(180deg, #7bff2e 0%, #59e900 55%, #46c200 100%);
  --lp-glow-line: 0 1px 10px -2px rgba(89, 233, 0, .45);

  /* ── CTA orange (primary CTAs only) ──
     The pre-Ignition Squad4 button orange: amber → red-orange, left to right
     (Scott, 2026-11-14). Dark ink text keeps contrast ≥ 4.5:1 on both ends. */
  --lp-cta: #ff512f;
  --lp-cta-rgb: 255, 81, 47;
  --lp-cta-ink: #0a0402;
  --lp-cta-grad: linear-gradient(90deg, #ef9719 0%, #ff512f 100%);
  --lp-cta-grad-hover: linear-gradient(90deg, #c45208 0%, #e02d12 100%);   /* deeper so white text reads ≥ 4.6:1 */
  --lp-cta-ink-hover: #ffffff;        /* CTA text turns white on hover (Scott, 2026-11-14) */
  --lp-cta-hover: #e02d12;            /* solid hover fill (e.g. the sidebar CTA icon tile) */
  --lp-hashtag: #ff6b2f;              /* the "#" in #ExitVelocity (pre-Ignition --accent-orange) */

  /* ── Feedback states (modals, forms) ── */
  --lp-danger: #ff7a85;               /* errors: red, never orange; ≥ 4.5:1 on the modal panel */
  --lp-field: #0f0d12;                /* input background */

  /* ── Amber (ambient accents only, e.g. the hero's second satellite; not a CTA color) ── */
  --lp-amber: #ef9719;
  --lp-amber-rgb: 239, 151, 25;

  /* ── Departments (set per element via [data-dept]) ── */
  --lp-dept-blue: #0c63ff;    --lp-dept-blue-rgb: 12, 99, 255;    --lp-dept-blue-tint: #6ea2ff;
  --lp-dept-purple: #a78bfa;  --lp-dept-purple-rgb: 167, 139, 250; --lp-dept-purple-tint: #c4b5fd;
  --lp-dept-green: #59e900;   --lp-dept-green-rgb: 89, 233, 0;    --lp-dept-green-tint: #9cf56c;
  --lp-dept-cyan: #00bda5;    --lp-dept-cyan-rgb: 0, 189, 165;    --lp-dept-cyan-tint: #5fe3d0;

  /* ── Shape ── */
  --lp-radius-btn: 10px;
  --lp-radius-pill: 8px;
  --lp-radius-pills: 12px;
  --lp-radius-card: 20px;
  --lp-radius-tile: 14px;
  --lp-radius-band: 28px;

  /* ── Layout ── */
  --lp-bar-h: 51px;                   /* header + sidebar logo bar, incl. 1px green line, so the lines meet (69 → 60 → 51px, Scott 2026-11-14) */
  --lp-foot-h: 46px;                  /* footer bar = sidebar toggle bar, plus a 1px line on each, so they line up (was 68px) */
  --lp-wrap: 1440px;                  /* content max incl. gutters (1360px of cards); was 1200px in the reference */
  --lp-gutter: 40px;

  /* ── Type ── */
  --lp-font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lp-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ── Motion ── */
  --lp-ease: cubic-bezier(.2, .8, .2, 1);
  --lp-focus: 2px solid var(--lp-green);
}
@media (max-width: 768px) {
  :root { --lp-gutter: 24px; }
}
@media (max-width: 640px) {
  :root { --lp-gutter: 16px; }
}

/* Department hook: any element with data-dept gets --dept, --dept-rgb, --dept-tint.
   Cards, tiles, dots, and glows read these, so a card's color is one attribute.
   Gated by body.lp-ignition (page shell) or body.lp-nav (the sidebar on every page). */
body.lp-ignition [data-dept="blue"], body.lp-nav [data-dept="blue"]   { --dept: var(--lp-dept-blue);   --dept-rgb: var(--lp-dept-blue-rgb);   --dept-tint: var(--lp-dept-blue-tint);   --dept-ink: #ffffff; }
body.lp-ignition [data-dept="purple"], body.lp-nav [data-dept="purple"] { --dept: var(--lp-dept-purple); --dept-rgb: var(--lp-dept-purple-rgb); --dept-tint: var(--lp-dept-purple-tint); --dept-ink: #140a2a; }
body.lp-ignition [data-dept="green"], body.lp-nav [data-dept="green"]  { --dept: var(--lp-dept-green);  --dept-rgb: var(--lp-dept-green-rgb);  --dept-tint: var(--lp-dept-green-tint);  --dept-ink: #071003; }
body.lp-ignition [data-dept="cyan"], body.lp-nav [data-dept="cyan"]   { --dept: var(--lp-dept-cyan);   --dept-rgb: var(--lp-dept-cyan-rgb);   --dept-tint: var(--lp-dept-cyan-tint);   --dept-ink: #03110f; }
