:root {
  --main-width: 800px;
  --caption-font-size: .8em;
}

body {
  font-family: "Bricolage Grotesque", serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-stretch: 100%;
  font-size: 1.2em;
  max-width: var(--main-width);
  margin: auto;
  padding: 1em;
  line-height: 1.5;
}

.menu {
  text-align: center;
  padding: 0;
  justify-content: space-between;
  list-style: none;
  display: flex;

  li {
    a {
      text-decoration: none;
      padding: 5px;
      border-radius: 5px;
    }
  }
}

@media only screen and (max-width: 600px) {
  p {
    text-align: unset;
  }

  .menu {
    display: initial;
  }
}

.github-logo {
  max-width: 15%;
  min-width: 40px;
  float: right;
}

.book-title {
  text-decoration: underline;
}

.book-description {
  font-size: var(--caption-font-size);
}

.library dt {
  margin-top: 1rem;
}

figcaption {
  font-size: var(--caption-font-size);
}

pre {
  padding: 0.5em 0 0.5em 1em;
  overflow-x: auto;
}

pre code {
  white-space: pre-wrap;
}

figure img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
}

.published-on {
  text-align: right;
}

.svg-centre {
  display: flex;
  justify-content: center;
}

footer {
  margin-top: auto;
  width: 100%;
}

footer .updated-on-notice {
  font-size: var(--caption-font-size);
  font-style: italic;
  text-align: right;
}