/* ==========================================================================
   tokens.css — the design tokens and the four "skins".
   Every color on the site comes from these variables, so a skin is just a
   different set of values on <html data-theme="...">.

   The palettes are deliberately soft: muted accents, off-whites instead of
   pure white, and near-blacks instead of pure black, so nothing glares.
   ========================================================================== */

:root {
  /* Type */
  --font-display: "Pixelify Sans", "Trebuchet MS", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", ui-monospace, "Courier New", monospace;
  --font-term: "VT323", ui-monospace, "Courier New", monospace;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 10vw, 112px);

  /* The pixel-cornered outline: four hard shadows make a cross, which leaves
     the corners notched like a sprite. */
  --px-border: -4px 0 0 0 var(--line), 4px 0 0 0 var(--line), 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line);
  --bevel: inset -4px -4px 0 0 rgba(0, 0, 0, 0.18), inset 4px 4px 0 0 rgba(255, 255, 255, 0.22);

  /* ---- Skin: ARCADE (default) — slate night, soft neon ---- */
  color-scheme: dark;
  --bg: #171a26;
  --bg2: #1e2231;
  --ink: #ece9e1;
  --muted: #a3a8ba;
  --card: #262b3d;
  --line: #0b0d14;
  --shadow: #0b0d14;
  --a1: #f2c94c;
  --a2: #e8799f;
  --a3: #5fcfbd;
  --on-a1: #171a26;
  --on-a2: #0b0d14;
  --on-a3: #0b0d14;
  --hl: #f2c94c;
  --screen: #0b0d14;
  --screen-ink: #5fcfbd;
  --mascot: #f2c94c;
  --cloud: #2a3044;
  --grid: rgba(236, 233, 225, 0.045);
  --scanlines: 0.15;
}

/* ---- Skin: PAPER — warm parchment, not white ---- */
[data-theme="paper"] {
  color-scheme: light;
  --bg: #f1e8d6;
  --bg2: #e7dbc2;
  --ink: #2b2438;
  --muted: #5f566b;
  --card: #faf5ea;
  --line: #2b2438;
  --shadow: #2b2438;
  --a1: #e59a66;
  --a2: #4a5fc4;
  --a3: #256b5a;
  --on-a1: #2b2438;
  --on-a2: #ffffff;
  --on-a3: #ffffff;
  --hl: #c8562a;
  --screen: #2b2438;
  --screen-ink: #8fdcc6;
  --mascot: #e59a66;
  --cloud: #faf5ea;
  --grid: rgba(43, 36, 56, 0.06);
  --scanlines: 0;
}

/* ---- Skin: POCKET — sage handheld greens ---- */
[data-theme="pocket"] {
  color-scheme: light;
  --bg: #c9d6ae;
  --bg2: #b4c496;
  --ink: #24372a;
  --muted: #374b3a;
  --card: #dbe5c6;
  --line: #24372a;
  --shadow: #24372a;
  --a1: #2d5536;
  --a2: #24372a;
  --a3: #2d5536;
  --on-a1: #e6eed6;
  --on-a2: #e6eed6;
  --on-a3: #e6eed6;
  --hl: #2d5536;
  --screen: #24372a;
  --screen-ink: #c9d6ae;
  --mascot: #8fa870;
  --cloud: #dbe5c6;
  --grid: rgba(36, 55, 42, 0.09);
  --scanlines: 0;
}

/* ---- Skin: TERMINAL — warm amber on soft black ---- */
[data-theme="terminal"] {
  color-scheme: dark;
  --bg: #14110b;
  --bg2: #1c1810;
  --ink: #e8c47a;
  --muted: #b89a5e;
  --card: #1c1810;
  --line: #d9a441;
  --shadow: #5a4317;
  --a1: #e0ac3f;
  --a2: #d98a3d;
  --a3: #efd9a0;
  --on-a1: #14110b;
  --on-a2: #14110b;
  --on-a3: #14110b;
  --hl: #e0ac3f;
  --screen: #0a0906;
  --screen-ink: #e0ac3f;
  --mascot: #5a4317;
  --cloud: #262015;
  --grid: rgba(224, 172, 63, 0.06);
  --scanlines: 0.35;
}
