:root {
  --bg: #fafaf9;
  --text: #1c1917;
  --muted: #78716c;
  --accent: #292524;
  --border: #e7e5e4;
  --max-width: 640px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

header nav {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

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

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

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

.post-list time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.post-list a {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.post-list .excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header time {
  color: var(--muted);
  font-size: 0.85rem;
}

.post-content p {
  margin-bottom: 1.2rem;
}

.post-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
  font-style: italic;
}

.post-content code {
  background: var(--border);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--accent);
  color: var(--bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.page-description {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}
