:root {
  color-scheme: light;
  --text: #1a1a1a;
  --muted: #555;
  --border: #e0e0e0;
  --bg: #fafafa;
  --accent: #2563eb;
  --max-width: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.site-nav a {
  color: var(--muted);
}

.site-main {
  padding: 2rem 1rem 3rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.3;
}

.page-intro,
.home-body {
  color: var(--muted);
}

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

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

.post-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.recent-posts h2 {
  margin-top: 2.5rem;
  font-size: 1.125rem;
}

.post-body :is(h2, h3, h4) {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.post-body pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.post-body code {
  font-size: 0.9em;
}

.post-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
