:root {
  --text-color: #333;
  --aside-color: #29627e;
  --body-max-width: 650px;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: Verdana;
  margin: 40px auto;
  max-width: var(--body-max-width);
  line-height: 1.6;
  font-size: 16px;
  color: var(--text-color);
  padding: 0 10px 70px 10px;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia;
  margin: 20px 0;
  line-height: 1.2;
}

figure {
  width: 100%;
  margin: auto;
}

figure img {
  display: block;
  max-width: 100%;
}

figure figcaption {
  display: block;
  color: gray;
  text-align: center;
}

.subheader {
  margin: 20px 0;
  line-height: 1.2
}

header a {
  color: var(--text-color);
}

header a:visited {
  color: var(--text-color);
}

header h1 {
  font-size: 48px;
}

header a.title {
  /*text-decoration: none;*/
  font-weight: bold;
}

header ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  margin: 20px 0;
  padding-left: 0;
}

header ul li {
  margin-right: 1rem;
}

.blog-list {
  padding-left: 0;
}

.blog-list a {
  display: inline-block;
}

.blog-list time {
  font-family: monospace;
}

.blog-list li {
  display: grid;
  grid-template-columns: 1fr 3fr;
  margin: 5px 0;
}

aside {
  border: 2px var(--aside-color) dotted;
  box-sizing: border-box;
  color:  var(--aside-color);
  font-style: italic;
  padding: 10px;
  width: 100%;
}

aside:nth-of-type(odd) {
  right: 3%;
}

aside:nth-of-type(even) {
  left: 3%;
}

@media (min-width: 1250px) {
  aside {
    border: none;
    position: absolute;
    width: 20%;
    /* minor hack until I can figure out how to position it relative to the previous paragraph. */
    margin-top: -5rem;
  }
}

blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  margin: 1.5em 10px;
  padding: 1em 10px;
  quotes: "\201C""\201D""\2018""\2019";
}

blockquote:before {
  color: #ccc;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

cite.article {
  font-style: normal;
}

cite.article::before {
  content: "\201C";
}

cite.article::after {
  content: "\201D";
}

iframe {
  border:none;
}

.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
}
