:root {
  --fg: #1a1a1a;
  --muted: #666;
  --bg: #fafafa;
  --link: #0b5cff;
  --rule: #e5e5e5;
}

* { box-sizing: border-box; }

body {
  font: 16px/1.6 ui-serif, Georgia, "Times New Roman", serif;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
  padding: 0 1rem;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.site-header {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.site-title {
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
}

.site-header nav a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover { color: var(--link); }

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

h1, h2, h3 {
  font-family: ui-sans-serif, -apple-system, system-ui, sans-serif;
  line-height: 1.25;
}

article header time,
.post-list time {
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

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

img { max-width: 100%; height: auto; border-radius: 4px; }

.post-body img { display: block; margin: 1.5rem auto; }

pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

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

.post-tags {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.post-tags a {
  margin-right: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
