*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

body {
  font-family: var(--ds-font-sans);
  font-size: var(--ds-font-size-base);
  line-height: var(--ds-line-height-base);
  color: var(--ds-color-text);
  background-color: var(--ds-color-bg);
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: var(--ds-line-height-tight);
}

a {
  color: var(--ds-color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--ds-color-accent-hover);
}

code, pre {
  font-family: var(--ds-font-mono);
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
