html {
  font-feature-settings: "rlig" 1, "calt" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  font-size: clamp(0.5rem, 0.04rem + 2.2857vw, 0.95rem);
}

h2 {
  font-weight: 800;
}

body {
  background-color: #010409;
  color: #eaeaea;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2rem;
}

* {
  box-sizing: border-box;
}

a {
  color: #aaa;
  text-decoration: none;
}

a:hover {
  color: var(--hover-color, #eaeaea) !important;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 500;
}

li {
  list-style: none;
  line-height: 3.2rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  gap: 0.5ch;
}

/* if mobile */
@media (max-width: 600px) {
  body {
    --description-font-size: 2.6rem;
  }
}

.demo-pre ::selection {
  background-color: #61616150;
}

.demo-pre code.focused > span {
  /* filter: brightness(0.5); */
  filter: contrast(0.3);
  transition: filter 0.5s;
}
/* .demo-pre:hover code.focused > span {
  filter: unset;
} */
