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

:root {
  --bg: #f9f8f5;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #2c5f8a;
  --border: #e0ddd6;
  --max-width: 680px;
}

html {
  font-size: 18px;
}

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

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

/* ── Header ── */

header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.tagline {
  color: var(--muted);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Intro ── */

.intro {
  margin-bottom: 3rem;
}

.intro p {
  font-size: 1rem;
}

/* ── Post card ── */

.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}

.post-card:hover {
  border-color: var(--accent);
}

.post-card h2 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.post-card .dek {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Footer ── */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

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

footer a:hover {
  text-decoration: underline;
}

/* ── Post page ── */

.back-link {
  display: inline-block;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.back-link:hover {
  color: var(--accent);
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.post-header .dek {
  color: var(--muted);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.975rem;
  line-height: 1.5;
}

.post-body p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
}

.post-body h2 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
}

/* ── Responsive ── */

@media (min-width: 480px) {
  html {
    font-size: 19px;
  }
}
