html {
  scroll-behavior: smooth;
}

::selection { @apply bg-sky-500/40 dark:bg-sky-400/40; }

::-webkit-scrollbar {
  width: 0.6em;
  height: 0.6em;
  background: transparent;
}

::-webkit-scrollbar-track {
  background-color: theme("colors.white");
}

.dark ::-webkit-scrollbar-track {
  background-color: theme("colors.zinc.900");
}

::-webkit-scrollbar-thumb {
  border-radius: theme("borderRadius.lg");
  background-color: theme("colors.gray.300");
}

::-webkit-scrollbar-thumb:hover {
  background-color: theme("colors.zinc.400");
}

::-webkit-scrollbar-thumb:active {
  background-color: theme("colors.zinc.500");
}

.dark ::-webkit-scrollbar-thumb {
  background-color: theme("colors.zinc.700");
}

.dark ::-webkit-scrollbar-thumb:hover {
  background-color: theme("colors.zinc.600");
}

.dark ::-webkit-scrollbar-thumb:active {
  background-color: theme("colors.zinc.500");
}

:is(h1, h2, h3, h4, h5, h6) {
  scroll-margin-top: 6rem;
}
