.leaf-device::after {
  content: "🍃";
}

:root {
  --colour-link: #3b9a04;
  --colour-link-hover: #2b6f04;
  --colour-focus: #3b9a04;
}

.theme-switcher {
  position: absolute;
  top: 1em;
  right: 1em;
}

.theme-switcher::after {
  content: "🌚";
}

/* Dark colours: the device's choice unless the theme switcher chose light, or the theme switcher's choice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --colour-link: #dc6d2c;
    --colour-link-hover: #fda26d;
    --colour-focus: #fda26d;
  }

  :root:not([data-theme="light"]) .leaf-device::after {
    content: "🍂";
  }

  :root:not([data-theme="light"]) .theme-switcher::after {
    content: "🌝";
  }
}

:root[data-theme="dark"] {
  --colour-link: #dc6d2c;
  --colour-link-hover: #fda26d;
  --colour-focus: #fda26d;
}

:root[data-theme="dark"] .leaf-device::after {
  content: "🍂";
}
