/* ==========================================================================
   Dark theme. Only the tokens change; every component in main.css reads them.
   The greys are warm-neutral rather than blue, so the page reads as paper at
   night instead of a terminal.
   Loaded with media="(prefers-color-scheme: dark)" when params.mode = "auto",
   or toggled on by js/themetoggle.js when params.mode = "toggle".
   ========================================================================== */
:root {
  --bg:          #0f1113;
  --bg-soft:     #15181b;
  --surface:     #16191d;
  --surface-2:   #1d2127;
  --border:      #282d34;
  --border-soft: #1f242a;

  --text:        #cdc9c2;
  --text-strong: #f1ede7;
  --muted:       #9c968e;
  --faint:       #7b756e;

  --accent:      #5ec2c6;
  --accent-ink:  #06191b;
  --accent-soft: rgba(94, 194, 198, 0.10);
  --accent-line: rgba(94, 194, 198, 0.30);
  --accent-glow: rgba(94, 194, 198, 0.11);
  --accent-glow-0: rgba(94, 194, 198, 0);

  --warm:        #dda268;
  --warm-soft:   rgba(221, 162, 104, 0.14);

  --alt:         #a09a92;
  --alt-soft:    rgba(160, 154, 146, 0.11);

  --code-bg:     #1b1f24;
  --pre-bg:      #0c0e11;
  --pre-text:    #d9dee4;

  --shadow:      0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 8px 24px -10px rgba(0, 0, 0, 0.65);
}

body {
  background-color: var(--bg);
  color: var(--text);
}

::selection { background: var(--accent); color: var(--accent-ink); }
::-moz-selection { background: var(--accent); color: var(--accent-ink); }

.vendor-name { color: var(--accent); }

.card, .featured, .contact { background: var(--surface); }

.cve { background: var(--bg-soft); }

.btn-primary { color: var(--accent-ink); font-weight: 600; }

pre { background: var(--pre-bg); border-color: var(--border); }
.highlight pre { background: var(--pre-bg); }

.video { border-color: var(--border); }

/* The warm pulse needs its own transparent stop in this theme. */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--warm-soft); }
  70%  { box-shadow: 0 0 0 7px rgba(221, 162, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(221, 162, 104, 0); }
}

/* Scrollbars */
* { scrollbar-color: var(--border) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #343a43; }
