:root {
  --font-sans: system-ui, sans-serif;
  --font-serif: 'Source Serif Pro', 'Source Serif 4', Gerogia, serif;
  --font-mono: monospace;
 
  --text-colour: #222222;
  --bg-body: #ffffff;
  --bg-code: #f1f1f1;
  --border-heavy: #444444;
  --border-light: #999999;
  --link-colour: #333333;
}



body {
  color: var(--text-colour);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: normal;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 40em;
  padding: 2em;
}

img {
  display: block;
  margin: 0.75em auto 0.8em;
  max-width: 95%;
}

figcaption {
  font-family: var(--font-sans);
  font-size: 0.9em;
  font-style: italic;
  text-align: center;
}

blockquote {
  background-color: #f8f8f8;
  border-left: 5px solid #666;
  font-size: 0.95em;
  font-family: var(--font-sans);
  margin-left: 2em;
  margin-right: 2em;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
  padding-left: 2em;
  padding-right: 1em;
}

pre {
  background-color: #f1f1f1;
  border-radius: 15px;
  font-family: var(--font-mono);
  padding: 1em;
  white-space: pre-wrap;
  word-wrap: break-word;
}

code {
  background-color: #f1f1f1;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-weight: normal;
  font-size: 15px;
  padding-bottom: 0.15em;
  padding-left: 0.3em;
  padding-right: 0.3em;
  padding-top: 0.15em;
}

#footnotes {
  text-indent: 1em;
}

.footnote-ref {
  font-size: 0.5em;
}

/* =======================
   Headings
   ======================= */
.blog-title {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: normal;
  margin-top: 3em;
  margin-bottom: 5em;
  text-align: left;
}

h1 {
  font-family: var(--font-sans);
  font-weight: normal;
  font-size: 24px;
  margin-top: 5em;
}

h2 {
  font-family: var(--font-sans);
  font-weight: bold;
  font-size: 20px;
  margin-top: 4em;
  margin-bottom: 1em;
}

h3 {
  font-family: var(--font-sans);
  font-weight: bold;
  font-size: 18px;
  margin-top: 2em;
}

/* =======================
   Tables
   ======================= */
table {
  border: none;
  border-collapse: collapse;
  border-top: 2px solid #444;
  border-bottom: 2px solid #444;
  font-family: var(--font-sans);
  font-size: 0.8em;
  margin-bottom: 1.5em;
  margin-left: auto;
  margin-right: auto;
  table-layout: fixed;
}

td,
th {
  border-top: 1px solid #999;
  padding-left: 1em;
  padding-right: 1em;
}

/* Allow tables to be full width
 * if they're wrapped in a figure.fullwidth
 * (Easier to insert from Pandoc than manually adding table) */
figure.fullwidth table {
  width: 90%;
}

/* =======================
   Links
   ======================= */
a {
  color: #333333;
  text-underline-offset: 20%;
  text-decoration-thickness: 0.5px;
}

a.nav {
  color: #333333;
  text-decoration: none;
}

a.nav:hover {
  text-decoration: underline;
}

.title-link,
.title-link:visited,
.title-link:hover,
.title-link:active {
  text-decoration: none;
  color: inherit;
}