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

.blog-index-list {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 720px;
}

.blog-index-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-index-item:last-child {
  border-bottom: none;
}

.blog-index-item time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-right: 0.5rem;
}

.blog-index-item a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.35rem 0 0.5rem;
  color: var(--fg);
  text-decoration: none;
}

.blog-index-item a:hover {
  color: var(--accent-light);
}

.blog-index-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Tag pill ────────────────────────────────────────────────────────────── */

.tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent-light) 15%, transparent);
  color: var(--accent-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Blog post page ──────────────────────────────────────────────────────── */

.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.post-header {
  display: block;
  height: auto;
  padding: 0 0 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  justify-content: unset;
  align-items: unset;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

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

.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.post-header h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.post-description {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Post images ─────────────────────────────────────────────────────────── */

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 1.5rem auto;
}

/* ── Post body typography ────────────────────────────────────────────────── */

.post-body {
  font-size: 1rem;
  line-height: 1.75;
}

.post-body h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.post-body h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.5rem;
}

.post-body h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 1.75rem 0 0.4rem;
}

.post-body p {
  margin: 0 0 1.25rem;
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.post-body li {
  margin-bottom: 0.4rem;
}

.post-body a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover {
  text-decoration: none;
}

.post-body code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.875em;
  background: var(--surface);
  padding: 0.15em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.865rem;
  line-height: 1.6;
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--accent-light);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border-radius: 0 4px 4px 0;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.post-body th,
.post-body td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.post-body thead th {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Post CTA block ──────────────────────────────────────────────────────── */

.post-cta {
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  text-align: center;
}

.post-cta h2 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.post-cta p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}
