h1, h2, h3 {
  font-weight: 500;
}
.site-nav {
  & > p {
    display: flex;
    flex-wrap: wrap;
    &:last-child {
      border-bottom: 1px dashed var(--rule-color);
    }
  }
  a {
    display: inline-block;
    background: white;
    padding: .2em .5em;
    margin-right: .5em;
    &:hover {
      background: var(--accent);
      color: white;
    }
    &[aria-current] {
      box-shadow: 0 1.5px var(--accent), inset 0 -1px var(--accent);
      margin-bottom: -1px;
    }
  }
  /* icons (e.g., GitHub) and the print button of pages.js (<span class="pagesjs-toggle">,
     which pushes the icons after it to the right): same size, 1.5em on hover */
  img, svg { width: 1.1em; height: 1.1em; vertical-align: middle; transition: transform .15s; }
  a:hover :is(img, svg) { transform: scale(1.36); }
  a:hover img { filter: invert(1); }
  /* square boxes around the icons (1.1em + padding), centered in the row */
  a:has(> :is(img, svg)) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 1.6em;
    height: 1.6em;
    padding: 0;
    margin-right: 0;
  }
  .pagesjs-toggle { display: flex; align-self: center; margin-left: auto; }
  /* package version next to the name: center it in the flex row */
  .version { align-self: center; margin-right: .5em; }
}
/* package logo (e.g., a hex sticker) on the home page of a package site */
.logo {
  float: right;
  width: 120px;
  margin: 0 0 1em 1em;
}
.comments {
  margin-top: 2em;
}
footer {
  border-top: 1px dashed var(--rule-color);
  margin-top: 2em;
  .flex-col {
    gap: 2em;
  }
}
:is(.site-nav, footer) a {
  text-decoration: none;
}
article:not(.pagesjs *), .frontmatter {
  box-shadow: none;
  margin-top: auto;
  @media (prefers-color-scheme: dark) {
    box-shadow: 0 0 0 1px #bbb;
  }
}
.frontmatter {
  background: linear-gradient(0, white, aliceblue);
}
