:root {
  --sc-scrollbar-track-bg: var(--sc-gray-100);
  --sc-scrollbar-thumb-bg: var(--sc-gray-400);
  --sc-scrollbar-thumb-hover-bg: var(--sc-gray-500);
  --sc-scrollbar-thumb-active-bg: var(--sc-gray-600);
}

:root[data-sc-theme='dark'] {
  --sc-scrollbar-track-bg: var(--sc-gray-700);
  --sc-scrollbar-thumb-bg: var(--sc-gray-600);
  --sc-scrollbar-thumb-hover-bg: var(--sc-gray-500);
  --sc-scrollbar-thumb-active-bg: var(--sc-gray-400);
}

@media (any-pointer: fine) {
  ::-webkit-scrollbar {
    width: 7px;
    height: 7px;
  }

  ::-webkit-scrollbar-track {
    background-color: var(--sc-scrollbar-track-bg);
  }

  ::-webkit-scrollbar-thumb {
    background-color: var(--sc-scrollbar-thumb-bg);
    border-radius: var(--sc-rounded-full);
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--sc-scrollbar-thumb-hover-bg);
  }

  ::-webkit-scrollbar-thumb:active {
    background-color: var(--sc-scrollbar-thumb-active-bg);
  }
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--sc-font-sans-serif);
  font-size: var(--sc-text-base);
  line-height: 1.5;
  color: var(--sc-body-color);
  background-color: var(--sc-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: var(--sc-font-monospace);
}

a {
  text-decoration: none;
  color: var(--sc-primary);

  &:hover {
    text-decoration: underline;
  }
}
