/* ═════════════════════════════════════════════════════════════
   THEMES
   Every colour and font on the site comes from the variables in
   this file. Pick the active theme in /js/theme.js.
   ═════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "VT323";
  src: url("/fonts/vt323.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ── Shared by all themes (fonts, shapes) ───────────────────── */
:root {
  --font-display: "VT323", "Courier New", monospace;   /* headings, prices, buttons */
  --font-body: "Plex Mono", "Consolas", "Courier New", monospace; /* everything else */
  --radius: 2px;          /* corner rounding: 0 = sharp, 8px = soft */
  --scanlines: 0.07;      /* CRT scanline strength: 0 = off */
  --glow: 0.45;           /* heading glow strength: 0 = off */
}

/* ── green: phosphor terminal (default) ─────────────────────── */
:root,
html[data-theme="green"] {
  color-scheme: dark;
  --bg: #080c09;          /* page background */
  --panel: #0e1510;       /* cards and boxes */
  --panel-2: #131d16;     /* title bars, hover */
  --line: #24382a;        /* borders */
  --text: #c5dec6;        /* body text */
  --dim: #7d9a80;         /* secondary text */
  --accent: #5dfc8c;      /* headings, links, primary buttons */
  --accent-ink: #04140a;  /* text on top of accent */
  --accent-2: #ffb627;    /* prices, highlights */
  --danger: #ff6b5e;      /* sold / errors */
}

/* ── amber: monochrome monitor ──────────────────────────────── */
html[data-theme="amber"] {
  color-scheme: dark;
  --bg: #0d0903;
  --panel: #161006;
  --panel-2: #1f1709;
  --line: #3d2d10;
  --text: #e8d2a6;
  --dim: #a38a5c;
  --accent: #ffb000;
  --accent-ink: #1a0f00;
  --accent-2: #ffe08a;
  --danger: #ff6b5e;
}

/* ── beige: light beige-box / printed manual ────────────────── */
html[data-theme="beige"] {
  color-scheme: light;
  --bg: #efe9da;
  --panel: #f8f4e9;
  --panel-2: #e4dcc8;
  --line: #b9ae93;
  --text: #2a2720;
  --dim: #6b6455;
  --accent: #1f5c3a;
  --accent-ink: #f8f4e9;
  --accent-2: #a8361c;
  --danger: #a8361c;
  --scanlines: 0;
  --glow: 0;
}

/* ── blue: DOS utility ──────────────────────────────────────── */
html[data-theme="blue"] {
  color-scheme: dark;
  --bg: #050a2e;
  --panel: #0a1247;
  --panel-2: #111b5e;
  --line: #2e3f9e;
  --text: #d5dcff;
  --dim: #8f9bd6;
  --accent: #55ffff;
  --accent-ink: #020624;
  --accent-2: #ffff55;
  --danger: #ff7a7a;
  --scanlines: 0.04;
  --glow: 0.3;
}
