:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  line-height: 1.65;
  background: Canvas;
  color: CanvasText;
}

body {
  max-width: 78ch;
  padding: 1rem 1.25rem 3rem;
  margin: auto;
}

header nav,
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer {
  border-top: 1px solid GrayText;
  padding-top: 1rem;
  margin-top: 2.5rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

a {
  text-underline-offset: 0.16em;
}

pre {
  background: color-mix(in srgb, CanvasText 8%, Canvas);
  border-radius: 0.5rem;
  overflow-x: auto;
  padding: 1rem;
  tab-size: 4;
}

:not(pre) > code {
  overflow-wrap: anywhere;
}

blockquote {
  border-inline-start: 0.16rem solid GrayText;
  margin-inline: 0;
  padding-inline: 1rem;
}

table {
  border-collapse: collapse;
}

th,
td {
  border: 1px solid GrayText;
  padding: 0.25rem 0.5rem;
  text-align: start;
}

img {
  max-width: 100%;
  height: auto;
}
