/* -------------------------------- 

File#: _1_scrollbar
Title: Scrollbar
Descr: (WebKit) Custom Scrollbar
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
  font-size: 2.0736rem;
}



@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }
}

/* component */
.custom-scrollbar::-webkit-scrollbar {
  width: 16px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background-color: hsla(230, 13%, 9%, 0);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  background-clip: content-box;
  border-radius: 50em;
  background-color: hsla(230, 13%, 9%, 0.125);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: hsla(230, 13%, 9%, 0.2);
}

/* demo */
.demo-custom-scrollbar-wrapper {
  background-color: hsl(240, 4%, 95%);
  border-radius: 0.375em;
  overflow: auto;
  padding: 1.5rem;
  height: 480px;
}

.demo-custom-scrollbar-text-component {
  line-height: 1.5;
}

.demo-custom-scrollbar-text-component > * {
  margin-bottom: 1.25rem;
}

.demo-custom-scrollbar-text-component :where(h1, h2, h3, h4) {
  line-height: 1.2;
  margin-top: 2rem;
}

.demo-custom-scrollbar-text-component > *:first-child {
  margin-top: 0;
}

.demo-custom-scrollbar-text-component > *:last-child {
  margin-bottom: 0;
}

.demo-custom-scrollbar-text-component p {
  color: hsl(225, 4%, 47%);
}