/*
 * dugganusa.css — the one DugganUSA token set (docs/standards/brand-standard.md §4).
 *
 * Link it FIRST in <head>, before any page <style>, so a page can still override:
 *   <link rel="stylesheet" href="/css/dugganusa.css">
 *
 * DARK IS THE FIRST PAINT EVERYWHERE (Patrick 2026-10-14: "same initial colors"): www (Wix) can
 * only be dark, so every property opens dark. Light is opt-in via a toggle that sets
 * <html data-theme="light">; it does NOT follow the OS automatically.
 *
 * WCAG 2.1 AA (measured 2026-10-14): one indigo cannot pass both as text on #07080d (needs
 * L >= 0.187) and under white text (needs L <= 0.183), so the accent is split:
 *   --accent       fills, buttons, borders  (#4f46e5 dark; white on it 6.29:1)
 *   --accent-text  links / colored text     (#818cf8 dark 6.71:1 on bg; #4f46e5 light 6.29:1)
 * Every text/background pair below is >= 4.5:1. Check before changing any value.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg: #07080d; --bg-soft: #0e1017; --bg-card: #11141d; --bg-card-hover: #171b27;
  --border: #1f2433; --border-strong: #2c3245;
  --text: #f4f6fb; --text-soft: #a4adc1; --text-muted: #8b95ad;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-text: #818cf8; --accent-2: #22d3ee;
  --success: #22c55e; --warning: #f59e0b; --danger: #ef4444;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fbfbfd; --bg-soft: #f3f4f8; --bg-card: #ffffff; --bg-card-hover: #f6f7fb;
  --border: #e3e6ee; --border-strong: #cfd4e0;
  --text: #0d1020; --text-soft: #444c63; --text-muted: #5b6478;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-text: #4f46e5; --accent-2: #0e7490;
  --success: #15803d; --warning: #b45309; --danger: #dc2626;
  color-scheme: light;
}

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

/* Mono for indicators, hashes, commands and numbers (STANDARD §4). */
code, kbd, samp, pre, .mono { font-family: var(--font-mono); }
a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
