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

:is(h1, h2, h3, h4, h5, h6, p, blockquote, hr, ul, ol, pre) + * {
  margin-top: 1rem;
}

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 70ch;
  margin-inline: auto;
  padding-inline: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

input, button, textarea, select {
  font: inherit;
}

code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1em;
}

pre {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: none;
  border-top: 1px solid currentColor;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

blockquote {
  border-inline-start: 2px solid currentColor;
  padding-inline-start: 1ch;
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

ul, ol {
  padding-inline-start: 1.5rem;
}

li + li {
  margin-top: 0.5rem;
}

li > :is(pre, blockquote) {
  margin: 0;
}

