/* ==========================================================================
   Endpoint — Color tokens
   Editorial light theme. Near-black ink, white paper, a confident
   security red accent, slate neutrals, and a severity scale for advisories.
   ========================================================================== */
:root {
  /* --- Base palette ---------------------------------------------------- */

  /* Ink (text + dark surfaces) */
  --ink-900: #0e1117;   /* primary text, dark header/footer */
  --ink-800: #161b24;
  --ink-700: #2a2f3a;   /* strong body text */
  --ink-600: #434a59;
  --ink-500: #5a6172;   /* secondary text */
  --ink-400: #858b99;   /* muted / meta text */
  --ink-300: #aab0bc;   /* disabled text, faint labels */

  /* Paper + surfaces */
  --paper:           #ffffff;
  --surface-muted:   #f6f7f9;  /* page background sections */
  --surface-sunken:  #eef0f3;  /* inset wells, code blocks */
  --surface-inverse: #0b0f1a;  /* dark sections, header/footer */

  /* Borders / hairlines */
  --line-100: #eceff3;  /* faint dividers */
  --line-200: #e3e6eb;  /* default border */
  --line-300: #cdd2da;  /* strong border / inputs */

  /* Brand red — security / alert accent */
  --red-50:  #fef1f1;
  --red-100: #fcdada;
  --red-200: #f7b4b4;
  --red-400: #f23b3b;
  --red-500: #ec0000;   /* PRIMARY brand red — RGB(236,0,0) */
  --red-600: #c80000;   /* hover / pressed */
  --red-700: #a00000;

  /* Severity scale (threat advisories / tech alerts) */
  --sev-critical: #cc0000;
  --sev-high:     #ef5a23;
  --sev-medium:   #d99405;
  --sev-low:      #2f8f46;
  --sev-info:     #1e6fd9;

  /* Tint backgrounds for callouts / badges */
  --tint-critical: #fdebeb;
  --tint-high:     #fdeee6;
  --tint-medium:   #fbf2dc;
  --tint-low:      #e9f5ec;
  --tint-info:     #e8f1fc;

  /* --- Semantic aliases ------------------------------------------------ */
  --text-strong:    var(--ink-900);
  --text-body:      var(--ink-700);
  --text-secondary: var(--ink-500);
  --text-muted:     var(--ink-400);
  --text-on-dark:   #ffffff;
  --text-on-dark-muted: #aeb6c4;
  --text-brand:     var(--red-500);

  --surface-page:   var(--paper);
  --surface-card:   var(--paper);
  --surface-soft:   var(--surface-muted);
  --surface-code:   var(--surface-sunken);

  --border-default: var(--line-200);
  --border-strong:  var(--line-300);
  --border-faint:   var(--line-100);

  --brand:          var(--red-500);
  --brand-hover:    var(--red-600);
  --brand-tint:     var(--red-50);

  --focus-ring:     color-mix(in srgb, var(--red-500) 45%, transparent);
}
