*, *::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;
}

@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;
}

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

[role="list"] [role="list"] {
  margin-left: 1.3rem;
}

[role="listitem"] {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

[role="listitem"]:has(pre, img, blockquote) {
  align-items: center;
}
