:root {
  --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;
}

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

form {
  margin: 1.5rem 0;
}

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

section {
  border-top: none;
  margin: unset;
  padding: unset;
}

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

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

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

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

pre:has(> code) {
  background: var(--bg);
}

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