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

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.75;
  color: #1a1a1a;
  background: #fff;
  padding: 0 1.25rem;
}

/* ── Site header ─────────────────────────────── */

.site-header {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.site-header h1 {
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: -0.01em;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-header h1 a:hover {
  text-decoration: underline;
}

.site-tagline {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #777;
}

/* ── Main content area ───────────────────────── */

main {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Blog index ──────────────────────────────── */

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

.post-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid #ebebeb;
}

.post-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
}

.post-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.post-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-excerpt {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.6;
}

/* ── Individual post ─────────────────────────── */

.post-full {
  padding: 2.5rem 0 5rem;
}

.post-full > header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #ebebeb;
}

.post-full > header h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

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

.post-content h2 {
  font-size: 1.35rem;
  font-weight: bold;
  margin: 2.25rem 0 0.6rem;
}

.post-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 1.75rem 0 0.5rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.6rem;
  margin-bottom: 1.3rem;
}

.post-content li {
  margin-bottom: 0.3rem;
}

.post-content blockquote {
  border-left: 3px solid #ccc;
  padding-left: 1.1rem;
  color: #555;
  margin: 1.5rem 0;
  font-style: italic;
}

.post-content a {
  color: #1a1a1a;
}

.post-content code {
  font-family: 'Consolas', 'Source Code Pro', monospace;
  font-size: 0.85em;
  background: #f3f3f3;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.post-content pre {
  background: #f3f3f3;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.3rem;
  line-height: 1.55;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875em;
}

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

.post-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

/* ── Back link (on post pages) ───────────────── */

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
}

.back-link:hover {
  color: #1a1a1a;
}

/* ── Site footer ─────────────────────────────── */

.site-footer {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ebebeb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: #bbb;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 0 1rem;
  }

  .site-header {
    margin-top: 2rem;
  }

  .post-full > header h1 {
    font-size: 1.5rem;
  }
}
