/* Inspired by https://jgthms.com/web-design-in-4-minutes/ */
body {
  margin: 0 auto;
  max-width: 40em;
  font-family: "Helvetica", "Arial", sans-serif;
  line-height: 1.5;
  padding: 0em 1em;
}

main {
  margin: 0em 0em;
}

a {
  text-decoration: none;
}

ol,
ul {
  margin: 1em 1em;
  padding-left: 2em;
}

ol {
  list-style: decimal;
}

ul {
  list-style: circle;
}

h1 {
  font-size: x-large;
}

h2 {
  margin-top: 1em;
  font-size: large;
}

h3 {
  margin-top: 1em;
  font-size: medium;
}

h1,
h2,
h3,
strong {
  font-weight: bold;
}

p {
  margin-bottom: 1em;
}

@media (prefers-color-scheme: light) {
  body {
    background: #ffffff;
    color: #566b78;
  }

  h1,
  h2,
  h3,
  strong {
    color: #333;
  }
}

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

  h1,
  h2,
  h3,
  strong {
    color: #d0d0d0;
  }

  .social-links img {
    filter: invert(1);
  }
}

a, a strong {
  color: #e81c4f;
}

code {
  font-family: 'Courier New', Courier, monospace;
}

pre {
  overflow: auto;
  margin: 0 0 1em 0;
}

pre table td:nth-of-type(1) {
  padding: 0 0.5em 0 0;
  text-align: right;
  /* Safari */
  -webkit-user-select: none;
  user-select: none;
}

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

.social-links {
  list-style: none;
  padding: 0;
  text-align: center;
}

.social-links img {
  height: 20px;
  margin-right: 3px;
}

.social-links li {
  display: inline;
  padding: 0 4px;
  line-height: 0;
}

.social-links a:hover {
  color: #e81c4f;
}

blockquote {
  padding: 0 0 0 1rem;
  border-left: 3px solid #ccc;
}

.date {
  font-size: small;
  font-weight: bold;
}
.post-list {
  line-height: 1;
  margin: 0;
  padding-left: 0;
  list-style-type: none;
}
.post-list li {
  margin-bottom: 1em;
}
