/* Dead Protocol Hotline — 8-bit cartoon theme
   Base: personal design standard v1.0.0
   Variant: 8-bit cartoon on a neobrutalist skeleton (chunky borders, hard shadows, no radius)
   Default mode: dark */

:root {
  /* spacing (core.spacingScale) */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  /* pixel geometry: straight corners only, thick borders, chunky shadows */
  --radius: 0px;
  --border-w: 4px;
  --border-w-thin: 2px;
  --pixel: 4px;
  --shadow-pixel: 6px 6px 0 var(--ink);
  --shadow-pixel-sm: 3px 3px 0 var(--ink);

  /* type */
  --font-pixel: "Press Start 2P", "Courier New", ui-monospace, monospace;
  --font-heading: "Press Start 2P", "Courier New", ui-monospace, monospace;
  --font-body: ui-monospace, "Cascadia Mono", "Courier New", monospace;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 42px;

  --leading-tight: 1.35;
  --leading-body: 1.7;

  /* motion */
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-playful: cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-content: 1160px;
}

/* DARK (default) — midnight arcade */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  --ink: #0d0714;
  --bg: #170d21;
  --surface: #22132f;
  --surface-raised: #2c1a3b;
  --border: #4a2f5e;
  --text: #efe8ff;
  --text-muted: #b9a6cc;
  --text-faint: #8b76a3;

  --accent: #ff7a1a;
  --accent-hi: #ffab4a;
  --accent-ink: #1a0b02;
  --amber: #ffc23d;
  --slime: #7cf07c;
  --blood: #ff3b5c;
  --ghost: #d9d2ec;
  --bone: #f4e6c8;

  --scanline: rgba(0, 0, 0, 0.28);
  --pixel-grid: rgba(255, 255, 255, 0.03);
}

/* LIGHT — paper arcade */
[data-theme="light"] {
  color-scheme: light;

  --ink: #1a1024;
  --bg: #f6eefb;
  --surface: #ffffff;
  --surface-raised: #fdf7ff;
  --border: #cbb8dc;
  --text: #1a1024;
  --text-muted: #5c4470;
  --text-faint: #8b76a3;

  --accent: #e2590a;
  --accent-hi: #ff7a1a;
  --accent-ink: #ffffff;
  --amber: #b26b00;
  --slime: #2f7d1f;
  --blood: #c02038;
  --ghost: #6b5c85;
  --bone: #8a6a3a;

  --scanline: rgba(26, 16, 36, 0.05);
  --pixel-grid: rgba(26, 16, 36, 0.04);
}

:root {
  --focus-ring: 3px solid var(--accent);
  --focus-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}
