/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --text: #1a1a1a;
  --muted: #888;
  --accent: #2563eb;
  --max-width: 640px;
}

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  padding: 0 1.5rem;
}

/* ── Layout ── */
header, main, footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 2.5rem;
}

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid #e5e5e5;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Nav ── */
.site-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.site-title:hover { color: var(--accent); }

/* ── Home ── */
.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-style: italic;
}

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

.post-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0ee;
}

.post-list time {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 90px;
}

.post-list a {
  color: var(--text);
  text-decoration: none;
}

.post-list a:hover { color: var(--accent); }

/* ── Post ── */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 1.7rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.post-header time {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

.post-content p { margin-bottom: 1.3rem; }
.post-content h2 { margin: 2rem 0 0.75rem; font-size: 1.2rem; }
.post-content h3 { margin: 1.5rem 0 0.5rem; font-size: 1rem; }
.post-content a { color: var(--accent); }
.post-content blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
}
.post-content code {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.85em;
  background: #f0f0ee;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.post-footer {
  margin-top: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.post-footer a { color: var(--muted); text-decoration: none; }
.post-footer a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 480px) {
  html { font-size: 17px; }
  .post-list li { flex-direction: column; gap: 0.2rem; }
}
