html {
  min-width: 20rem;
  scroll-padding-top: var(--header-scroll-offset);
  background: var(--color-bg);
  color: var(--color-text);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-bg);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  border-radius: var(--radius-none);
  color: inherit;
  background: transparent;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:where(#work, #about, #contact) {
  scroll-margin-top: var(--header-scroll-offset);
}

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

