@font-face {
  font-family: "Inconsolata";
  src: url("/assets/fonts/Inconsolata-VariableFont.ttf") format("truetype supports variations"),
       url("/assets/fonts/Inconsolata-VariableFont.ttf") format("truetype-variations");
  font-weight: 200 900;
}

@font-face {
  font-family: "CommitMono";
  src: url("/assets/fonts/CommitMono-400-Regular.ttf");
}

body {
  background-color: #242526;
  font-family: "CommitMono";
  color: #ffffff;
  opacity: 0.87;
  margin: 5% auto;
  max-width: 73%;
  line-height: 1.8;
  font-size: 18px;
  padding: 0 10px;
}

h1 {
  font-size: 2em;
  font-weight: 550;
}

nav {
  border-bottom: 1px solid #3a3b3c;
  padding-bottom: 0.6em;
  margin-bottom: 1.4em;
}

nav a {
  margin-right: 1.2em;
}

/* shamelessly lifted from: https://stackoverflow.com/a/48694906 - thanks! :^) */
pre {
  background: #1b1c1d;
  border: 1px solid #3a3b3c;
  border-left: 3px solid #f36d33;
  color: #ddd;
  page-break-inside: avoid;
  font-family: monospace;
  font-size: 0.9375em;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1em 1.5em;
  display: block;
  word-wrap: break-word;
}

a:hover, a:visited {
  color: #b0b3b8;
}

a:link {
  color: #e4e6eb;
}

p {
  font-size: 1em;
  font-weight: 400;
}

@media (max-width: 600px) {
  body {
    max-width: 100%;
    margin: 8% auto;
  }

  h1 {
    font-size: 1.6em;
  }
}
