body {
  font-family: 'Source Serif 4', 'Noto Serif SC', serif;
  font-size: 18px;
  margin: auto;
  padding: 16px;
  max-width: 720px;
  text-align: left;
  background-color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  color: #222;
}

a {
  color: #3273dc;
}

.title {
  text-decoration: none;
  border: 0;
}

.title span {
  font-weight: 400;
}

nav a {
  margin-right: 10px;
}

textarea {
  width: 100%;
  font-size: 1rem;
}

input {
  font-size: 1rem;
}

main, article {
  line-height: 1.8;
}

table {
  width: 100%;
}

img {
  max-width: 100%;
}

code {
  padding: 2px 5px;
  background-color: #f2f2f2;
  font-size: 0.875rem;
}

pre code {
  color: #222;
  display: block;
  padding: 0;
  background-color: unset;
  white-space: pre-wrap;
  font-size: 0.875rem;
  overflow-x: auto;
}

div.highlight pre {
  background-color: initial;
  color: initial;
}

div.highlight code {
  background-color: unset;
  color: unset;
}

pre {
  padding: 1rem;
  overflow: auto;
}

pre[data-linenos] {
  padding: 1rem 0;
}

pre table td {
  padding: 0;
}

pre table td:nth-of-type(1) {
  text-align: center;
  user-select: none;
}

pre mark {
  display: block;
  background-color: rgba(246, 241, 188, 0.4) !important;
}

pre table {
  width: 100%;
  border-collapse: collapse;
}

blockquote {
  border-left: 1px solid #999;
  color: #222;
  padding-left: 20px;
  font-style: italic;
}

footer {
  margin-top: 72px;
  color: #777;
}

.helptext {
  color: #777;
  font-size: small;
}

.errorlist {
  color: #eba613;
  font-size: small;
}

/* blog posts */
ul.blog-posts {
  list-style-type: none;
  padding: unset;
}

ul.blog-posts li {
  display: flex;
}

ul.blog-posts li span {
  flex: 0 0 130px;
}

ul.blog-posts li a:visited {
  color: #8b6fcb;
}


@media (prefers-color-scheme: dark) {
  body {
    background-color: #333;
    color: #ddd;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  strong,
  b {
    color: #eee;
  }

  a {
    color: #8cc2dd;
  }

  code {
    background-color: #777;
  }

  pre code {
    color: #ddd;
  }

  pre mark {
    display: block;
    color: #ddd;
    background-color: rgba(86, 102, 178, 0.4) !important;
  }


  blockquote {
    color: #ccc;
  }

  textarea,
  input {
    background-color: #252525;
    color: #ddd;
  }

  .helptext {
    color: #aaa;
  }
}
