/* Runlevel Security — design tokens (R identity, November 2026)
   Light theme is the default. Put data-theme="dark" on any section to switch it to navy. */

:root, [data-theme="light"] {
  /* Brand */
  --midnight-navy: #0b2a44;   /* core: authority, trust, stability */
  --brick-red:     #c64536;   /* action and response: notch, CTAs, red full stop, slashes */
  --warm-ivory:    #f4f2ed;   /* warm, modern light base */
  --slate-blue:    #718594;   /* rules, outer bars of the three-levels device on navy */
  --white:         #ffffff;

  /* Supporting */
  --navy-deep:     #061b2e;   /* footer */
  --navy-header:   #08233a;   /* site header */
  --navy-raised:   #133a5c;   /* panels inside dark sections */
  --red-hover:     #b03a2c;   /* hover for red buttons (white text 6.0:1) */
  --red-urgent:    #9a2f24;   /* incident banner (white text 7.5:1) */
  --soft-grey:     #e8eded;   /* alternate light band */

  /* Semantic (light) */
  --surface:        var(--warm-ivory);
  --surface-raised: #ffffff;
  --surface-soft:   var(--soft-grey);
  --ink:            var(--midnight-navy);  /* 13.1:1 on ivory */
  --ink-muted:      #4e6273;               /* 5.7:1 on ivory */
  --kicker:         #a8392c;               /* text-safe red, 5.7:1 on ivory */
  --accent:         var(--brick-red);
  --accent-hover:   var(--red-hover);
  --on-accent:      #ffffff;               /* 4.9:1 on brick-red */
  --border:         #d5dfe0;
  --focus-ring:     var(--midnight-navy);
  --levels-outer:   var(--midnight-navy);  /* three-levels outer bars on light */

  /* Type */
  --font-sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Menlo, Consolas, monospace;

  /* Spacing: 8px grid */
  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-6: 48px; --space-8: 64px; --space-11: 88px;
  --shell-max: 1216px;

  /* Shape */
  --radius-none: 0px;     /* default: square corners */
  --radius-icon: 20%;     /* rounded app icon only */
  --radius-round: 50%;    /* number discs only */
  --control-height: 48px;
  --rule-width: 64px;
  --rule-thickness: 4px;
  --shadow-menu: 0 16px 32px rgba(1,12,22,0.22);
}

[data-theme="dark"] {
  --surface:        var(--midnight-navy);
  --surface-raised: var(--navy-raised);
  --surface-soft:   var(--navy-deep);
  --ink:            #ffffff;   /* 14.7:1 on navy */
  --ink-muted:      #b6c8d2;   /* 8.5:1 on navy */
  --kicker:         #f3a291;   /* 7.3:1 on navy */
  --border:         #36536e;
  --focus-ring:     #f3a291;
  --levels-outer:   var(--slate-blue);
}
