:root {
  color-scheme: light dark;
  --bg: #fdfdfd;
  --fg: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #005f87;
  --rule: #e0e0e0;
  --code-bg: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d2021;
    --fg: #ebdbb2;
    --muted: #928374;
    --accent: #83a598;
    --rule: #3c3836;
    --code-bg: #282828;
  }
}

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}

a {
  color: var(--accent);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a {
  margin-left: 0.75rem;
}

.site-footer {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

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

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

.post-list li {
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0;
}

.post-list time,
.meta {
  color: var(--muted);
}

.tag {
  margin-left: 0.5rem;
}

pre {
  overflow-x: auto;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

code {
  background: var(--code-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

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

blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

img {
  max-width: 100%;
}
