/* The one place for the website's colours, fonts and shape. Change a value here and every page and the hex map follow.
   Colour values must be 6-digit hex: the map reads them to draw. */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Condensed:ital,wght@0,700;0,800;1,800;1,900&family=Jua&display=swap');

:root {
  /* The runner figure on the map. */
  --runner-skin: #e8b08a;
  --runner-hair: #3b2a20;
  --accent: #ff6a00;
  --on-accent: #16140f;

  --bg: #16140f;
  --surface: #201e19;
  --raised: #2b2923;
  --outline: #3a3731;
  --text: #fbfaf8;
  --muted: #a7a29a;
  --danger: #ff6b5e;

  /* Other runners on the map. */
  --rival-1: #00d1ff;
  --rival-2: #ff3bd4;
  --rival-3: #b6ff3b;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-jersey: 'Jua', var(--font-display); /* the name on the runner's shirt */

  --radius: 18px;
  color-scheme: light dark;
}

/* Follows the visitor's system setting. The accent stays the logo orange in both. */
@media (prefers-color-scheme: light) {
  :root {
    --accent: #ff6a00;
    --on-accent: #16140f;

    --bg: #fbfaf8;
    --surface: #ffffff;
    --raised: #f4f2ed;
    --outline: #d8d3c8;
    --text: #16140f;
    --muted: #67635d;
    --danger: #b42318;

    --rival-1: #007a99;
    --rival-2: #c0178f;
    --rival-3: #4f7a00;
  }
}
