/* Theme: "Parchment & Copper" - final oaken.tools theme.
   Light warm parchment with beveled wooden frames, dark item slots, and
   serif typography matching the game (Sitka / Crimson Pro / Book Antiqua). */

:root {
  /* Surfaces */
  --bg: #e8ddc4;
  --bg-soft: #ded0b0;
  --bg-card: #f3ebd7;
  --bg-hover: #faf3e0;
  --header-bg: #1d1007;          /* matches the tower mark's background */
  --header-text: #f4e8d0;
  --header-text-dim: #c2a878;
  --header-accent: #f0b541;
  --header-border: #3a2518;
  --tier-frame: #46321c;
  --border: #c9b691;
  --chip-bg: #e6d9bb;

  /* Ink */
  --text: #2f2313;
  --text-dim: #6b5a3e;
  --text-faint: #99866a;
  --tier-dim: #7c6a4d;

  /* Accent (copper/amber, game gold #f0b541 darkened for light bg) */
  --accent: #b0631c;
  --accent-soft: #f0e0c0;
  --accent-contrast: #fff8ec;

  /* Beveled wooden frame (dark outline -> light inner highlight) */
  --frame-outer: #46321c;
  --frame-inner: #fdf6e3;
  --frame-shadow: 0 1px 3px rgba(60, 40, 18, 0.18);

  /* Dark item slot (echoes the game's spr_box: #331d16 + #563226) */
  --slot-bg: #3a2518;
  --slot-outer: #180d06;
  --slot-inner: #6b4a2e;

  --overlay-dim: rgba(60, 45, 22, 0.4);
  --radius: 5px;

  /* Serif typography. Crimson Pro is the game's stat/number font. */
  --font-ui: "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-display: "Crimson Pro", Georgia, "Times New Roman", serif;

  /* Rarity badge colors */
  --badge-forged: #7a3d9e;        --badge-forged-border: #c9a0dd;    --badge-forged-bg: #f3e6f8;
  --badge-special: #2f7fa5;       --badge-special-border: #8fc4dd;   --badge-special-bg: #e3f1f8;
  --badge-cursed: #a02828;        --badge-cursed-border: #e0a0a0;   --badge-cursed-bg: #fae5e5;
  --badge-legendary: #9a6a0a;     --badge-legendary-border: #e6c77f; --badge-legendary-bg: #fbf0cf;

  /* Tag colors */
  --tag-family: #8a6514;
  --tag-kind: #3f6b2f;

  /* Tier-diff highlight (what changed vs the previous level) */
  --delta-bg: #f3dda0;
  --delta-text: #6b3a0a;

  /* Rarity name colors (grey normal, blue rare, purple epic, gold legendary,
     red cursed, magenta forged, green special). */
  --rarity-common: #7a7568;
  --rarity-rare: #2f6fb0;
  --rarity-epic: #8a3fc0;
  --rarity-legendary: #b8730a;
  --rarity-cursed: #b03030;
  --rarity-forged: #a03a7a;
  --rarity-special: #2f7d5a;
}
