html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  color-scheme: dark;
}

@layer base {
  html,
  body {
    margin: 0;
    padding: 0;
  }

  body {
    overscroll-behavior: none;
  }

  main > :first-child {
    margin-top: 0 !important;
  }

  main > :last-child {
    margin-bottom: 0 !important;
  }
}

::-webkit-scrollbar {
  display: none;
}

#mobileMenu {
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
}

footer a[href="#product"]::before {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  background: url("assets/autopitch-mark.svg") center / contain no-repeat;
  content: "";
  vertical-align: middle;
}

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