* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

body {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

nav {
  margin-bottom: 3rem;
}

nav a {
  margin-right: 1.5rem;
  color: #111;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

nav a:first-child {
  font-weight: 600;
}

main {
  min-height: 60vh;
}

h1, h2, h3 {
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  line-height: 1.3;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }

p, ul, ol {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
}

a {
  color: #111;
}

article header {
  margin-bottom: 2rem;
}

article header h1 {
  margin: 0 0 0.25rem;
}

article header time {
  color: #666;
  font-size: 0.9rem;
}

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  border-radius: 3px;
}

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

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

.post-list li {
  margin-bottom: 0.75rem;
}

.post-list time {
  color: #666;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.85rem;
}

@media (prefers-color-scheme: dark) {
  html {
    color: #eee;
    background: #111;
  }
  nav a, a {
    color: #eee;
  }
  article header time, .post-list time, footer {
    color: #999;
  }
  code, pre {
    background: #222;
  }
  footer {
    border-top-color: #333;
  }
}
