/* ==========================================================================
   themes.css — the two-palette theme layer for 332321.xyz
   ==========================================================================

   WHAT THIS FILE IS
   Pure token remapping. A theme only re-declares the semantic tokens listed
   below; it never styles a component. Components read tokens, so a theme
   change is a single variable swap.

   TWO PALETTES
       current  — "ink"   (default)
       light    — "paper"

   The other eight palettes were retired so the homepage and the tools share
   one look. A saved key from the old set is no longer valid; the inline
   head snippet falls back to the system preference and js/theme-switcher.js
   repairs the stored value on the next load.

   THE THEME CONTRACT
   Both blocks re-map the same tokens, in this order:

       --bg-primary    --bg-secondary   --bg-elevated   --bg-inset
       --bg-hover      --bg-gradient-end
       --text-primary  --text-secondary --text-muted
       --accent        --accent-hover   --accent-contrast
       --accent-alt
       --border        --border-strong
       --success       --success-text

   Everything else (--accent-soft, --success-soft, --focus-ring, …) is
   DERIVED in tokens.css §3 and follows automatically.

   THEME KEYS ARE A CONTRACT WITH js/theme-switcher.js
       current, light

   LOAD ORDER (hard requirement — themes.css MUST be the last stylesheet):
       <link rel="stylesheet" href="css/tokens.css">
       <link rel="stylesheet" href="css/base.css">
       <link rel="stylesheet" href="css/style.css">          (homepage only)
       <link rel="stylesheet" href="css/about-privacy.css">  (homepage only)
       <link rel="stylesheet" href="css/themes.css">         <-- LAST
   ========================================================================== */

@layer theme {

/* --------------------------------------------------------------------------
   current — ink
   Warm near-black, paper text, brass accent.
   -------------------------------------------------------------------------- */
[data-theme="current"] {
  --bg-primary: #0b0a08;
  --bg-secondary: #12100c;
  --bg-elevated: #17140f;
  --bg-inset: #17140f;
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-gradient-end: rgba(18, 16, 12, 0.95);
  --text-primary: #efe8d9;
  --text-secondary: #b8ae9b;
  --text-muted: #857c6a;
  --accent: #c9a24a;
  --accent-hover: #e0bc63;
  --accent-contrast: #14110b;
  --accent-alt: #c9a8ff;
  --border: rgba(201, 162, 74, 0.16);
  --border-strong: #403a2d;
  --success: #3fb950;
  --success-text: #7ee787;
}

/* --------------------------------------------------------------------------
   light — paper
   Warm off-white, ink text, brass accent.
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --bg-primary: #f3eee3;
  --bg-secondary: #ebe5d7;
  --bg-elevated: #fffdf7;
  --bg-inset: #ebe5d7;
  --bg-hover: rgba(23, 20, 14, 0.06);
  --bg-gradient-end: rgba(235, 229, 215, 0.95);
  --text-primary: #17140e;
  --text-secondary: #4f483a;
  --text-muted: #6f6757;
  --accent: #7a5a12;
  --accent-hover: #5f460c;
  --accent-contrast: #f3eee3;
  --accent-alt: #6a3fc4;
  --border: rgba(23, 20, 14, 0.14);
  --border-strong: #bdb19a;
  --success: #1a7f37;
  --success-text: #116329;
}

}
