/* blog/assets/blog.css
   Blog-specific styles — Tailwind handles the rest via CDN. */

/* ── Layout ──────────────────────────────────────────── */

.blog-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Post listing (blog/index.html) ──────────────────── */

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

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

.post-list li:last-child {
  border-bottom: none;
}

.post-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.post-title a {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

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

.post-tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #f3f4f6;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: #374151;
}

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

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.post-content h2 { margin-top: 2rem; }
.post-content h3 { margin-top: 1.5rem; }

.post-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-content code {
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}

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

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

.post-content blockquote {
  border-left: 4px solid #e5e7eb;
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: #6b7280;
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #6b7280;
}

.back-link:hover {
  color: inherit;
}
