/* LAYOUT */
body {
  margin: 0 auto;
  max-width: 70ch;
}
section {
  padding-bottom: .5em;
}
p + section, pre + section {
  padding-top: .5em;
}
pre {
  overflow: auto;
}
figure {
  margin: 1em 0;
}
figure > img {
  display: block;
  margin: 0 auto;
}
figcaption {
  text-align: center;
  padding-top: .5em;
}
nav {
  display: flex;
  flex-wrap: wrap;
}
nav > a {
  line-height: 2.5;
  padding: 0 1ch;
}
nav > a:first-child {
  padding: 0 2ch;
  align-content: end;
}
footer {
  padding: 0 1ch;
}
#gif + figcaption {
  display: none;
}
#gif {
  max-width: 70ch;
  height: auto;
}

/* keep footer at bottom of short pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  margin-bottom: auto;
}

/* COLOURS */
/* basis: https://github.com/YorickPeterse/vim-paper */
body {
  background: hsl(48 43% 91%);
}
nav, footer {
  background: hsl(228 43% 91%);
}
a {
  color: hsl(228 93% 41%);
}
a:visited {
  color: hsl(228 43% 41%);
}
footer {
  border-top: thin solid hsl(228 43% 81%);
}
nav {
  border-bottom: thin solid hsl(228 43% 81%);
}
nav > a:hover {
  background: hsl(228 43% 81%);
}
nav > [aria-current="page"] {
  background: hsl(228 43% 81%);
}
nav > a {
  color: black;
}
nav > a:visited {
  color: black;
}

/* TYPEFACE */
body {
  font-family: sans-serif;
  line-height: 1.5;
}
code, kbd {
  font-size: 0.9rem;
}
figcaption {
  font-style: italic;
}
pre.fstree {
  line-height: 1.2;
}
nav > a {
  text-decoration: none;
}
nav > a:first-child {
  font-size: small;
}
nav > [aria-current="page"] {
  font-weight: bold;
  cursor: default;
}
footer {
  font-size: 0.9rem;
  line-height: 1;
}
