/* ==========================================================================
   Dark: the app's original theme, and the default.

   A theme is only colors: CSS variables on :root. The pages use these
   names (var(--bg-panel), var(--accent-red)) and never a color of their
   own, so a theme changes the look without touching style.css or the
   scripts. Scripts read them with doctorParserColor("accent-red").

   Base colors are #rrggbb. Some names point at another one
   (var(--accent-gold)) or are a see-through mix of one; style.css makes its
   own tints the same way: color-mix(in srgb, var(--accent-red) 15%,
   transparent).

   Every theme sets the same names, and its text reads at least 7:1 on its
   surfaces (4.5:1 for muted text and accents): theme_test.go checks both.

   Not here: the class colors (--arch-*) and the timer and info bar
   defaults come from internal/palette (/palette.css); they're the same in
   every theme. A theme only says how class names read as text
   (--arch-*-text).
   ========================================================================== */

:root {
  color-scheme: dark;          /* the browser's own scrollbars and controls */

  /* Surfaces, darkest to lightest */
  --bg-deep: #07090c;          /* the status bar under the nav */
  --bg-main: #0a0c10;          /* the page */
  --bg-panel: #11141a;         /* panels, menus */
  --bg-subrow: #141822;        /* nested rows, dialogs */
  --bg-panel-header: #161b24;  /* panel headers, selects */
  --bg-card: #191f2b;          /* cards, chips */
  --bg-row-hover: #1c2331;     /* a table row under the mouse */
  --bg-raised: #242b35;        /* toasts and pop-ups above the page */
  --bg-input: #2a2f3a;         /* switches and fields */
  --bg-editor: #1a202b;        /* the guide editor's page */
  --bg-field: #1a202b;         /* text boxes and dropdowns: set apart from the page and panels */

  /* Lines */
  --border-color: #273042;
  --border-subtle: #1e2533;

  /* Text */
  --text-strong: #ffffff;      /* names and headings that stand out */
  --text-primary: #f0f3f6;
  --text-secondary: #a6afba;
  --text-muted: #838c9a;
  --text-link: #58a6ff;
  --text-on-color: #0a0c10;    /* on a solid accent: blue or green chips */
  --text-on-accent: #1a1305;   /* on solid gold: badges, the in-combat chip */
  --text-drill: var(--accent-gold); /* names that open a breakdown: players, abilities */

  /* Tint and shadow: mixed in at a few percent to lift or darken a surface.
     The tint is the opposite of the page (white on dark, black on light). */
  --tint: #ffffff;
  --shadow-color: #000000;

  /* Accents: states and highlights */
  --accent-blue: #66a6fd;
  --accent-cyan: #39c5cf;
  --accent-green: #3fb950;     /* good, healing, on */
  --accent-red: #fa7b75;       /* bad, damage, deaths */
  --accent-gold: #e3b341;      /* attention, live, selected */
  --accent-orange: #f0883e;
  --accent-purple: #bc8cff;
  --accent-ward: #2ecc71;      /* wards and absorbs */
  --accent-fatal: #ff73a2;     /* the killing blow */
  --accent-heal: var(--accent-cyan);
  --focus: var(--accent-gold);

  /* The meter's bars for your side */
  --bar-ally-start: color-mix(in srgb, var(--accent-blue) 22%, transparent);
  --bar-ally-end: color-mix(in srgb, var(--accent-blue) 8%, transparent);

  /* Class names as text: the class colors (internal/palette), made
     readable on this theme's panels */
  --arch-fighter-text: color-mix(in srgb, var(--arch-fighter), var(--tint) 32%);
  --arch-priest-text: color-mix(in srgb, var(--arch-priest), var(--tint) 18%);
  --arch-scout-text: var(--arch-scout);
  --arch-mage-text: color-mix(in srgb, var(--arch-mage), var(--tint) 28%);

  /* Charts: series in a fixed order (validated for neighbors in stacks,
     bars and lines), then the neutral ones */
  --chart-1: #3987e5;
  --chart-2: #d95926;
  --chart-3: #199e70;
  --chart-4: #c98500;
  --chart-5: #d55181;
  --chart-6: #008300;
  --chart-7: #9085e9;
  --chart-8: #e66767;
  --chart-others: #4b5563;     /* everyone past the biggest eight */
  --chart-mob: #8b949e;        /* the other side */

  /* Damage schools */
  --school-mental: #be8cfc;
  --school-heat: #ff794e;
  --school-cold: #4fc3f7;
  --school-magic: #4daaf6;
  --school-divine: #ffd740;
  --school-poison: #66bb6a;
  --school-disease: #b5a19a;
  --school-other: #94a8b1;

  /* Loot tiers */
  --tier-celestial: #00ff66;
  --tier-ethereal: #ff5e1a;
  --tier-mythical: #c489ff;
  --tier-fabled: #f48080;
  --tier-legendary: #ff9900;   /* and mastercrafted */
  --tier-treasured: #00e5ff;
  --tier-handcrafted: #a3e635;

  /* The info bar preview's stand-in for the game behind it */
  --preview-backdrop-a: #3b4a32;
  --preview-backdrop-b: #485a3d;
}
