/* ============================================================
 * WC // UI KIT v2 — TOKENS
 * ------------------------------------------------------------
 * Tactical telemetry / CRT terminal mode (industrial-brutalist
 * discipline). Dense data displays, monospaced dominance, ASCII
 * framing, single-substrate dark, single accent color story.
 *
 * NO border-radius anywhere except hard-coded pill targets.
 * NO gradients on surfaces (only on display headlines).
 * Monospace-first typography.
 * ============================================================ */

:root {
  /* ============ BRAND PALETTE (locked) ============ */
  --wc-ground:        #1F0E33;
  --wc-purple:        #5A2E80;       /* MAIN brand purple (darkened 2026-06-07) */
  --wc-purple-bright: #8B4DC4;       /* BRIGHT purple — splats, hover halos, sparks */
  --wc-lime:          #B8FF38;
  --wc-orange:        #FF6A00;
  --wc-ink:           #F5ECFA;
  --wc-muted:         #B8A0CE;

  /* ============ TELEMETRY SURFACES ============ */
  --wc-bg:            #0E061B;      /* deactivated CRT — deeper than ground */
  --wc-bg-1:          #15092A;      /* base substrate */
  --wc-bg-2:          #1B0E35;      /* raised panel */
  --wc-bg-3:          #271847;      /* hover / active surface */
  --wc-bg-4:          #321E5A;      /* selected */

  /* ============ INK SCALE ============ */
  --wc-ink-1:         #F5ECFA;      /* primary text */
  --wc-ink-2:         #D9C8E6;      /* secondary */
  --wc-ink-3:         #A892C2;      /* tertiary / labels */
  --wc-ink-4:         #6F5C8C;      /* hint / disabled */
  --wc-ink-5:         #3D2E5A;      /* nearly background */

  /* ============ LINE WEIGHTS ============ */
  --wc-line:          rgba(90, 46, 128, 0.45);
  --wc-line-soft:     rgba(90, 46, 128, 0.20);
  --wc-line-faint:    rgba(90, 46, 128, 0.10);
  --wc-line-lime:     rgba(184, 255, 56, 0.45);
  --wc-line-orange:   rgba(255, 106, 0, 0.55);

  /* ============ STATUS — color-coded (mil/sci-fi convention) ============ */
  --wc-ok:            #B8FF38;      /* nominal / green analog */
  --wc-warn:          #FF6A00;      /* caution */
  --wc-crit:          #FF3D5C;      /* critical / hostile */
  --wc-info:          #56C7FF;      /* nope — out of palette. We don't use. */
  --wc-neutral:       #A892C2;      /* unknown / inactive */

  /* IMPORTANT: WC has no blue. --wc-info above is included as a
     reserved slot but the kit DOES NOT use it. State system uses
     only ok/warn/crit/neutral. */

  /* ============ TYPOGRAPHY ============ */
  --wc-font-mono:     "JetBrains Mono", "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wc-font-display:  "Archivo Black", "Monument Extended", "Inter Black", system-ui, sans-serif;

  /* Sizes — telemetry favors smaller, denser type */
  --wc-text-micro:    9px;
  --wc-text-tag:      10px;
  --wc-text-label:    11px;
  --wc-text-mono:     12px;
  --wc-text-base:     13px;
  --wc-text-display-sm: 18px;
  --wc-text-display:    32px;
  --wc-text-display-lg: 56px;
  --wc-text-display-xl: 88px;

  /* Tracking — tight on display, generous on labels */
  --wc-track-display: -0.04em;
  --wc-track-base:    0.02em;
  --wc-track-mono:    0.04em;
  --wc-track-tag:     0.18em;
  --wc-track-label:   0.22em;
  --wc-track-eyebrow: 0.26em;

  /* Leading */
  --wc-lead-tight:    0.92;
  --wc-lead-snug:     1.2;
  --wc-lead-base:     1.45;

  /* ============ SPACING ============ */
  --wc-sp-0:    0;
  --wc-sp-px:   1px;
  --wc-sp-1:    2px;
  --wc-sp-2:    4px;
  --wc-sp-3:    6px;
  --wc-sp-4:    8px;
  --wc-sp-5:    12px;
  --wc-sp-6:    16px;
  --wc-sp-7:    24px;
  --wc-sp-8:    32px;
  --wc-sp-9:    48px;

  /* ============ Z-INDEX LADDER ============ */
  --wc-z-base:        0;
  --wc-z-grain:       1;
  --wc-z-scan:        2;
  --wc-z-hud:         100;
  --wc-z-window:      200;
  --wc-z-window-top:  300;
  --wc-z-overlay:     1000;
  --wc-z-cmd:         1500;
  --wc-z-toast:       2000;

  /* ============ MOTION ============ */
  --wc-dur-flash:     80ms;
  --wc-dur-fast:      140ms;
  --wc-dur-base:      220ms;
  --wc-dur-slow:      420ms;
  --wc-dur-amb:       6000ms;       /* ambient breathing */

  --wc-ease-out:      cubic-bezier(0.2, 0.7, 0.1, 1);
  --wc-ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --wc-ease-snap:     cubic-bezier(0.85, 0, 0.15, 1);
  --wc-ease-pop:      cubic-bezier(0.5, 1.8, 0.5, 1);

  /* ============ GLOW ============ */
  --wc-glow-lime:     0 0 20px rgba(184, 255, 56, 0.40);
  --wc-glow-orange:   0 0 20px rgba(255, 106, 0, 0.45);
  --wc-glow-crit:     0 0 18px rgba(255, 61, 92, 0.55);
  --wc-glow-purple:   0 0 28px rgba(90, 46, 128, 0.40);

  /* ============ SHADOWS ============ */
  --wc-shadow-flat:   inset 0 0 0 1px var(--wc-line);
  --wc-shadow-lift:   0 4px 16px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--wc-line);
  --wc-shadow-window: 0 18px 60px rgba(0, 0, 0, 0.78), 0 0 0 1px var(--wc-line);
  --wc-shadow-focus:  0 0 0 1px var(--wc-lime), 0 0 24px rgba(184, 255, 56, 0.18);
}

/* ============ BASE RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  background: var(--wc-bg);
  color: var(--wc-ink-1);
  font-family: var(--wc-font-mono);
  font-size: var(--wc-text-mono);
  line-height: var(--wc-lead-base);
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea {
  font-family: inherit; color: inherit; background: transparent; border: 0;
  outline: none;
  letter-spacing: var(--wc-track-mono);
}

/* ============ TYPE UTILITY CLASSES ============ */
.wc2-display {
  font-family: var(--wc-font-display);
  font-size: var(--wc-text-display);
  line-height: var(--wc-lead-tight);
  letter-spacing: var(--wc-track-display);
  text-transform: uppercase;
}
.wc2-display-xl { font-size: var(--wc-text-display-xl); }
.wc2-display-lg { font-size: var(--wc-text-display-lg); }
.wc2-display-sm { font-size: var(--wc-text-display-sm); }

.wc2-label {
  font-family: var(--wc-font-mono);
  font-size: var(--wc-text-label);
  font-weight: 700;
  letter-spacing: var(--wc-track-label);
  text-transform: uppercase;
  color: var(--wc-ink-3);
}
.wc2-tag {
  font-family: var(--wc-font-mono);
  font-size: var(--wc-text-tag);
  font-weight: 700;
  letter-spacing: var(--wc-track-tag);
  text-transform: uppercase;
}
.wc2-micro {
  font-family: var(--wc-font-mono);
  font-size: var(--wc-text-micro);
  font-weight: 700;
  letter-spacing: var(--wc-track-tag);
  text-transform: uppercase;
  color: var(--wc-ink-4);
}
.wc2-mono {
  font-family: var(--wc-font-mono);
  font-size: var(--wc-text-mono);
  font-variant-numeric: tabular-nums;
}
.wc2-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
}

/* Status colors */
.wc2-ok    { color: var(--wc-ok); }
.wc2-warn  { color: var(--wc-warn); }
.wc2-crit  { color: var(--wc-crit); }
.wc2-mute  { color: var(--wc-ink-3); }
.wc2-faint { color: var(--wc-ink-4); }
