/* ─────────────────────────────────────────────────────────────
   BLOG ARTICLE PAGE
───────────────────────────────────────────────────────────── */
.blog-article {
  max-width: 720px;
}

.blog-article-meta {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 0.6rem;
}

.blog-article-date {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.blog-article-reading {
  color: var(--text-dim);
  font-size: 0.72rem;
  opacity: 0.7;
}

.blog-article-title {
  color: var(--text-bright);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.blog-article-body {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-article-body p {
  margin-bottom: 1.2rem;
}

.blog-article-body h2 {
  color: var(--text-bright);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  padding-top: 0.6rem;
}

.blog-article-body h2::before {
  content: '## ';
  color: var(--text-dim);
  font-weight: 400;
}

.blog-article-body strong {
  color: var(--text-bright);
  font-weight: 500;
}

.blog-article-body em {
  color: var(--text-bright);
  font-style: italic;
}

.blog-article-body a {
  color: var(--blue);
  text-decoration: none;
}

.blog-article-body a:hover {
  text-decoration: underline;
}

/* ── Code blocks inside articles ── */
.blog-code-block {
  margin: 1.4rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.blog-code-header {
  padding: 0.35rem 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}

.blog-code-lang {
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.blog-code {
  padding: 0.8rem 1rem;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

/* ── Article footer ── */
.blog-article-footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-footer-prompt {
  color: var(--green);
  font-size: 0.82rem;
}

.blog-footer-cursor {
  color: var(--green);
  animation: blink 1.1s step-end infinite;
  font-size: 0.82rem;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .blog-article-title {
    font-size: 1rem;
  }
  .blog-code {
    font-size: 0.68rem;
  }
}
