/* Mug & Market design tokens.
   Every colour, font and size the site uses lives here, taken from the
   Canva deck (see the design spec). New elements should only use these. */
:root {
  color-scheme: dark;

  /* Brand */
  --cream: #fff6e2;          /* body text, first line of titles */
  --gold: #e1b05c;           /* accent text, second line of titles, header bars */
  --gold-dark: #c39c4f;      /* frames and rules */
  --ink: #202020;            /* text on gold */
  --panel: rgba(32, 32, 32, 0.92);
  --panel-solid: #202020;
  --shade: rgba(98, 94, 94, 0.35);   /* quantity column */
  --side: rgba(98, 94, 94, 0.79);    /* side panels */
  --rule: #4a4540;
  --muted: #b9b1a3;
  --gold-pieces: #ffc259;

  /* Rarity: item names and materials */
  --r-common: #fff6e2;
  --r-uncommon: #72d67f;
  --r-rare: #619bc1;
  --r-very-rare: #a387e2;
  --r-legendary: #ffc259;
  --r-artifact: #e46a5f;

  /* Damage types: tiles use --tile-*, words in descriptions use --dmg-*.
     The text versions of Force and Necrotic are lightened to stay readable
     on the dark panel. */
  --dmg-acid: #72d67f;      --tile-acid: #d7fd58;
  --dmg-cold: #6ee1e8;      --tile-cold: #6ee1e8;
  --dmg-fire: #eb6b34;      --tile-fire: #eb6b34;
  --dmg-force: #e46a5f;     --tile-force: #c43535;
  --dmg-lightning: #619bc1; --tile-lightning: #395db9;
  --dmg-necrotic: #5aa86c;  --tile-necrotic: #3a774b;
  --dmg-poison: #1ba609;    --tile-poison: #1ba609;
  --dmg-psychic: #cb75ca;   --tile-psychic: #cb75ca;
  --dmg-radiant: #ffe459;   --tile-radiant: #ffe459;
  --dmg-thunder: #a387e2;   --tile-thunder: #8d79b9;
  --dmg-physical: #d4d4d4;  /* bludgeoning, piercing, slashing */

  /* Conditions */
  --cond-blinded: #7593e6;
  --cond-charmed: #cb75ca;
  --cond-deafened: #ffffff;
  --cond-exhaustion: #c0c0c0;
  --cond-frightened: #a387e2;
  --cond-grappled: #ffc259;
  --cond-invisible: #ffe459;
  --cond-paralyzed: #ffe459;
  --cond-poisoned: #1ba609;
  --cond-restrained: #e46a5f;
  --cond-stunned: #f3d2e6;
  --cond-other: #d4d4d4;

  /* Type */
  --f-title: "Young Serif", Georgia, serif;
  --f-label: "Sorts Mill Goudy", Georgia, serif;
  --f-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --t-hero: clamp(44px, 7vw, 96px);
  --t-h1: clamp(36px, 5vw, 64px);
  --t-h2: clamp(26px, 3vw, 40px);
  --t-item: 22px;
  --t-label: 17px;
  --t-body: 16px;
  --t-small: 13px;

  /* Space */
  --gap: 16px;
  --pad: clamp(16px, 3vw, 40px);
  --radius: 4px;
  --max: 1440px;
}
