/* Global element defaults on top of Bootstrap's reboot. */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--gu-bg);
  color: var(--gu-text);
  font-family: var(--gu-font-sans);
}

a {
  color: var(--gu-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--gu-accent-light);
}

::selection {
  background: var(--gu-accent);
  color: var(--gu-bg);
}

input::placeholder,
textarea::placeholder {
  color: var(--gu-text-faint);
}

:focus-visible {
  outline: 2px solid var(--gu-accent);
  outline-offset: 2px;
}

.gu-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gu-accent);
  color: var(--gu-bg);
  padding: 10px 18px;
  border-radius: 0 0 var(--gu-radius-sm) 0;
  font-weight: 700;
}

.gu-skip-link:focus {
  left: 0;
  color: var(--gu-bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important; /* third-party + own animations off for vestibular safety */
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
