html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
  height: 100%;
}

body {
  box-sizing: border-box;
  max-width: 700px;
  min-height: 100%;
  margin: 0 auto;
  padding: 1em;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.75em;
  margin-bottom: 1.5em;
  gap: 0.5em 1em;
}

.site-name {
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}

header nav a {
  margin-left: 1em;
}

header nav a:first-child {
  margin-left: 0;
}

a {
  color: #0645ad;
}

a:visited {
  color: #0b0080;
}

h1, h2, h3 {
  line-height: 1.25;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 0.5em;
}

.post-date {
  color: #666;
  display: inline-block;
  min-width: 7em;
}

.tag-inprogress {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9a6700;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 0.3em;
  line-height: 1.4;
  vertical-align: middle;
}

.meta {
  color: #666;
  margin-top: -0.5em;
}

pre {
  overflow-x: auto;
  padding: 0.75em;
  background: #f4f4f4;
}

code {
  background: #f4f4f4;
  padding: 0.1em 0.3em;
}

pre code {
  background: none;
  padding: 0;
}

img {
  max-width: 100%;
}

footer {
  border-top: 1px solid #ccc;
  margin-top: 3em;
  padding-top: 1em;
  color: #666;
  font-size: 0.9em;
}

footer a {
  color: inherit;
}

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

  a {
    color: #6cb6ff;
  }

  a:visited {
    color: #b48ead;
  }

  pre, code {
    background: #1c1c1c;
  }

  header, footer {
    border-color: #333;
  }

  .post-date, .meta, footer {
    color: #999;
  }

  .tag-inprogress {
    color: #e3b341;
    border-color: #e3b341;
  }
}
