/* Style adapted from https://www.systutorials.com/ */
:root {
  color-scheme: light dark;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.7;
  padding: 1.5rem 1rem 3rem;
}
main {
  max-width: 60rem;
  margin: 0 auto;
}
header.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}
header.site .site-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: inherit;
  text-decoration: none;
}
header.site nav a {
  margin-left: 1.2rem;
}
h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}
h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.6rem;
}
h3 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.5rem;
}
h4 {
  font-size: 1rem;
  margin: 1.6rem 0 0.4rem;
}
p {
  margin-bottom: 1rem;
  color: #555;
}
a {
  color: #0a58ca;
}
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
li {
  margin-bottom: 0.25rem;
}
img {
  max-width: 100%;
  height: auto;
}
blockquote {
  border-left: 4px solid #ddd;
  padding: 0.1rem 1rem;
  margin: 0 0 1rem;
  color: #777;
}
table {
  border-collapse: collapse;
  margin-bottom: 1rem;
}
th, td {
  border: 1px solid #ddd;
  padding: 0.4rem 0.7rem;
  text-align: left;
}
th {
  background: #00000008;
}
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}
.meta {
  margin: 0 0 1.2rem;
  color: #888;
  font-size: 0.9rem;
}
ul.posts {
  list-style: none;
  padding-left: 0;
}
ul.posts li {
  margin-bottom: 0.45rem;
}
ul.posts time {
  color: #888;
  font-size: 0.9rem;
  display: inline-block;
  min-width: 5.5rem;
}
.recent-post {
  margin-bottom: 1.2rem;
}
.recent-post h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}
.recent-post .meta {
  margin: 0;
}
code, pre {
  font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}
:not(pre) > code {
  background: #0000000f;
  padding: 0.15em 0.35em;
  border-radius: 4px;
}
pre {
  background: #ececec;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}
footer.site {
  border-top: 1px solid #ddd;
  margin-top: 3rem;
  padding-top: 1rem;
  color: #888;
  font-size: 0.9rem;
}
footer.site a {
  margin-left: 1rem;
}
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #ddd;
  }
  header.site {
    border-color: #333;
  }
  p {
    color: #bbb;
  }
  a {
    color: #6ea8fe;
  }
  blockquote {
    border-color: #333;
    color: #999;
  }
  th, td {
    border-color: #333;
  }
  th {
    background: #ffffff0d;
  }
  hr {
    border-color: #333;
  }
  .meta, ul.posts time {
    color: #888;
  }
  :not(pre) > code {
    background: #ffffff14;
  }
  pre {
    background: #262626;
  }
  footer.site {
    border-color: #333;
  }
}
