:root {
  --standard-border-radius: 0;
  --text: black;
  --text-light: #212121;
  --preformatted: var(--code);
  --min-width: 60rem;
}

body {
  grid-template-columns: 1fr min(var(--min-width), 90%) 1fr;
}

body > header {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: unset;
  & > :only-child {
    margin-block-start: 0;
  }
  & > nav {
    width: min(var(--min-width), 90%);
    display: flex;
    padding: 0.5rem 0;

    a {
      margin-bottom: unset;
    }

    & h1 {
      margin: unset;
      font-size: unset;
      line-height: 2;
      & > a {
        margin-left: unset;
        padding-left: unset;
        border: 1px transparent;
      }
    }
  }
}

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

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