:root {
  --sans-font: -apple-system, BlinkMacSystemFont, sans-serif;
  --standard-border-radius: 0;
  --preformatted: var(--code);
  --min-width: 60rem;
  --accent-error: #ffe0e0;
}

@media (prefers-color-scheme: light) {
  :root {
    --text: black;
    --text-light: #212121;
  }
}

body {
  grid-template-columns: 1fr min(var(--min-width), 90%) 1fr;
  font-size: unset;
  line-height: 1.25;
}

body > header {
  align-items: baseline;
  display: flex;
  justify-content: center;
  padding: unset;
}
body > header > :only-child {
  margin-block-start: unset;
}
header > nav {
  width: min(var(--min-width), 90%);
  display: flex;
  align-items: baseline;
  padding: 0.5rem 0;
}
header > nav a {
  margin-bottom: unset;
  font-size: 1.15rem;
}
nav > h1 > a {
  margin-left: unset;
  padding-left: unset;
  border: 1px transparent;
  text-decoration: none;
}
body > header h1 {
  margin: unset;
  font-size: 1.15rem;
}

@media only screen and (max-width: 600px) {
  header > nav {
    display: unset;
  }
}
@media only screen and (max-width: 720px) {
  header > nav {
    padding: 1.5ex 0;
  }
}

main {
  padding-top: unset;
}

form {
  margin: 1.5rem 0;
}

fieldset {
  display: flex;
  column-gap: 1ex;
  border: none;
  padding: unset;
  margin: unset;
}

section {
  border: none;
  margin: unset;
  padding: unset;
  overflow-x: auto;
  overflow-y: hidden;
}

input[type="search"] {
  width: 100%;
}

dt::after {
  content: ": ";
}

dd {
  margin-inline-start: 1rem;
}

dd > p,
td > p {
  margin: unset;
}

dl {
  display: grid;
  align-items: baseline;
  grid-row-gap: 1ch;
  grid-template-rows: 1fr;
  grid-template-columns: max-content minmax(90%, 1fr);
}

pre {
  margin: unset;
  padding: 1ch 1.4ch;
}

#pagination {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  a[rel="next"] {
    margin-left: auto;
  }
}
section > footer {
  text-align: center;
}

.error {
  background: var(--accent-error);
}

h2 {
  font-size: 1.5rem;
}

h2:only-child {
  margin-top: 0;
}

h3 {
  margin: unset;
  font-size: 1.25rem;
  display: inline-block;
}

blockquote > p {
  margin: unset;
}

dialog {
  max-width: unset;
  width: min(var(--min-width), 90%);
}

dialog > button {
  float: right;
}

dialog > h2 {
  margin-top: 0.5rem;
}

table {
  width: 100%;
  margin-top: 0;
}

td,
th {
  padding: 0.25rem 0.5rem;
}

ul:only-child {
  padding-inline-start: unset;
  margin: unset;
}

li {
  display: inline-block;
  margin-right: 1ex;
  list-style: none;
}

p:last-child {
  margin-bottom: unset;
}