/*
 * theme.css: every themeable value lives here (brand palette, fonts, and the
 * map's data colours). Mirrors Robson Fletcher Data, Strategy & Storytelling's
 * site, like turnout_simulator/theme.css.
 */
:root {
  --color-charcoal:  #2F2F2F;
  --color-offwhite:  #F7F7F9;
  --color-medblue:   #4C5FA9;
  --color-navy:      #1F3C88;

  --color-text:      var(--color-charcoal);
  --color-muted:     #6b6a66;
  --color-bg:        var(--color-offwhite);
  --color-panel:     rgba(255, 255, 255, 0.94);
  --color-border:    rgba(47, 47, 47, 0.14);
  --color-accent:    var(--color-medblue);

  /*
   * Spike colours: a diverging scale for "share of the hex's value that is
   * non-residential". Blue arm = residential, red-orange arm = non-residential,
   * neutral grey = mixed. Validated with the dataviz skill's validate_palette.js
   * (--pairs all, light surface): CVD worst pair dE 11.6, normal-vision 15.6.
   * app.js reads these five custom properties, so change them here only.
   */
  --share-0: #1c5cab;  /* 90%+ residential */
  --share-1: #6da7ec;  /* mostly residential */
  --share-2: #8a8882;  /* mixed */
  --share-3: #f3a07a;  /* mostly non-residential */
  --share-4: #cf3a1c;  /* 90%+ non-residential */
  --fade:    #dcdbd6;  /* low-value hexes fade toward this neutral */

  --font-heading: "Merriweather", Georgia, serif;
  --font-body:    "Lato", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 0.35rem;
}
