/* =======================
   Base Styles
   ======================= */
body {
  color: #222;
  font-family: 'Source Serif 4', 'Source Serif Pro', Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 40em;
  padding: 2em;
  @media (prefers-color-scheme: dark) {
    background-color: #262626;
    color: #eee;
  }
}

img {
  display: block;
  margin-bottom: 0.75em;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75em;
  max-width: 90%;
}

figcaption {
  font-family: serif;
  font-size: 15px;
  font-style: italic;
  text-align: center;
}

blockquote {
  background-color: #f8f8f8;
  border-left: 5px solid #666;
  font-size: 15px;
  font-family: sans-serif;
  margin-left: 1em;
  margin-right: 1em;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
  padding-left: 3em;
  padding-right: 1em;
  @media (prefers-color-scheme: dark) {
    background-color: #666;
    border-left: 5px solid #ddd;
  }
}

pre {
  background-color: #f8f8f8;
  padding: 1em;
  white-space: pre-wrap;
  word-wrap: break-word;
  @media (prefers-color-scheme: dark) {
    background-color: #444;
  }
}

code {
  background-color: #f8f8f8;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-weight: normal;
  font-size: 15px;
  @media (prefers-color-scheme: dark) {
    background-color: #444;
  }

}

#footnotes {
  text-indent: 1em;
}

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

/* =======================
   Headings
   ======================= */
h1 {
  font-family: system-ui, sans-serif;
  font-weight: normal;
  font-size: 20px;
  margin-top: 5em;
}
h2 {
  font-family: system-ui, sans-serif;
  font-weight: bold;
  font-size: 18px;
  margin-top: 4em;
}
h3 {
  font-family: system-ui, sans-serif;
  font-weight: bold;
  font-size: 15px;
  margin-top: 1em;
}

.blog-title {
  font-family: 'Source Serif 4', 'Source Serif Pro', Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  font-size: 19px;
  font-weight: bold;
  margin-top: 3em;
  margin-bottom: 5em;
  text-align: left;
}

/* =======================
   Tables
   ======================= */
table {
  border: none;
  border-collapse: collapse;
  border-top: 2px solid #444;
  border-bottom: 2px solid #444;
  font-family: monospace;
  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;
}


/* =======================
   Links
   ======================= */
a {
  color: inherit;
  text-decoration-color: #ccc;
  text-decoration-style: solid;
}

a:hover {
  color: inherit;
  text-decoration-color: #222;
  text-decoration-style: solid;
}

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

.title-link:hover {
  text-decoration: none;
}
