body {
  font-family: sans-serif;
  font-variant-numeric: oldstyle-nums;
}

h1, h2, h3, h4, h5, h6, h7, h8 {
  line-height: initial;
  font-family: monospace;
  text-align: left;
}

.site-name {
  font-size: 26px;
  font-family: monospace;
  padding: 26px 0;
}
.site-name:after {
  content: " ";
  white-space: pre;
  color: white;
  border-radius: 3px;
  height: 26px;
  background: #000;
  animation: cursor 1.0s steps(1) infinite;
}
@keyframes cursor {
  50% {
    background: none;
  }
  100% {
    background: #000;
  }
}

nav {
  text-align: center;
  color: #C8ACA9;
  font-size: 20px;
}
nav a {
  color: #C8ACA9;
  margin: 5px;
}

.article-body.footer {
  text-align: center;
  color: #C8ACA9;
  padding-top: 20px;
  padding-bottom: 50px;
}

a:hover {
  filter: brightness(0.6);
}

h1 {
  margin: 20px 0;
}
time {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  background-color: #b59a85;
  color: #fff;
  padding: 0 5px;
  border-radius: 4px;
}
.tag {
  font-size: 16px;
  background-color: #959bbf;
  color: #fff;
  padding: 0 5px;
  border-radius: 4px;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  color: #000;
  font-size: 20px;
  line-height: 1.6em;
  text-align: justify;
}

.toc {
  display: block;
  float: none;
  padding: 0;
  margin: 0;
  width: 250px;
  font-size: 15px;
  line-height: 1.1;
  padding: 20px 10px;
  margin: 10px 30px 20px 0;
  background: #f8f8f8;
  border: #888 1px solid;
}
.toc:before {
  content: "Contents";
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li {
  margin: 10px 0;
}
.toc li:before {
  content: "";
}
.toc li a {
  color: #C8ACA9;
}
.toc li a:hover {
  text-decoration-style: wavy;
}
.toc li > ol {
  padding-left: 10px;
}

.sidenote {
  display: none;
}

@media (min-width: 750px) {
  .toc {
    float: left;
  }
}

@media (min-width: 900px) {
  .sidenote {
    display: initial;
    float: right;
    font-size: 15px;
    margin-right: -270px;
    width: 250px;
    line-height: 1.35;
  }

  .article-body {
    padding-right: 270px;
  }

  .nosidenotes .article-body {
    padding-right: 20px;
  }
}

@media (min-width: 1360px) {
  .article-body {
    padding-right: 20px;
  }

  .toc {
    display: initial;
    float: left;
    position: fixed;
    position: sticky;
    top: 20px;
    margin: -10px 0 0 -280px;
    padding: 10px;
    text-align: left;
    width: 240px;
    border: none;
  }

  .toc:before {
    content: "";
  }

  .toc.js-enabled li.active > a {
    color: #222;
  }
}

code {
  border: grey 1px solid;
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
  border-radius: 4px;
  background-color: #f8f8f8;
}

pre {
  border: grey 1px solid;
  border-radius: 4px;
  background-color: #f8f8f8;
}
pre code {
  border: none;
  padding: 1em;
  overflow-x: auto;
  font-size: 15px;
}

figure {
  margin: 30px;
  text-align: center;
  font-size: 0.8em;
  font-style: italic;
}

.post-list li a {
  color: #999;
  text-decoration-style: solid;
}

.post-list li a:hover {
  color: #000;
  text-decoration-style: wavy;
}

ol li::marker {
  font-family: sans-serif;
  font-variant-numeric: oldstyle-nums;
}
