/* =============================================================
   blog/index.html + blog/post-template.html — page-specific styles
   Shared design system lives in css/site.css.
   ============================================================= */

/* ── Hero ── */
.blog-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 64px;
}
.blog-hero h1 { color: var(--text); margin-bottom: 24px; }
.blog-hero__sub {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 16px;
}

/* ── Post listing ── */
.blog-posts { padding: 32px 0 96px; }

.post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.post-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 10, 36, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.08);
}
.post-card__link {
  display: block;
  color: inherit;
}
.post-card__title {
  color: var(--text);
  margin: 12px 0 12px;
}
.post-card__excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 640px;
}
.post-card__cta {
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.post-card--soon {
  opacity: 0.55;
  pointer-events: none;
}
.post-card--soon .post-card__title { color: var(--text-muted); }

/* ── Post meta (date · category · read time) ── */
.post-meta {
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  letter-spacing: 0.04em;
}
.post-meta__category { color: var(--accent); }
.post-meta__sep { color: var(--text-dim); opacity: 0.5; }

/* ── Article body ── */
.post-article {
  padding: calc(var(--nav-h) + 48px) 0 80px;
}
.post-back {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.post-back:hover { color: var(--accent); }

.post-header {
  max-width: 680px;
  margin: 0 auto 48px;
}
.post-header .post-meta { margin-bottom: 24px; }
.post-title {
  color: var(--text);
  margin-bottom: 24px;
}
.post-lede {
  color: var(--text-muted);
  line-height: 1.65;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}
.article-body p { margin: 0 0 1.5em; }
.article-body h2 {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2.4em 0 0.75em;
  line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 2em 0 0.6em;
  line-height: 1.3;
}
.article-body ul {
  margin: 0 0 1.5em;
  padding-left: 1.25em;
  list-style: disc;
}
.article-body ul li {
  margin-bottom: 0.5em;
}
.article-body ul li::marker { color: var(--accent); }

.article-body blockquote {
  margin: 2em 0;
  padding: 20px 28px;
  border-left: 2px solid var(--accent);
  background: rgba(0, 229, 255, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Code block — fenced sample */
.article-body pre {
  margin: 1.75em 0;
  padding: 20px 24px;
  background: #0a0414;
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
}
.article-body pre code {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  background: none;
  padding: 0;
  white-space: pre;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--text);
  border-radius: 4px;
}
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  transition: border-color 0.2s, color 0.2s;
}
.article-body a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ── End-of-post CTA card ── */
.post-cta {
  max-width: 680px;
  margin: 64px auto 0;
}
.post-cta__inner {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(217, 70, 239, 0.04)),
    rgba(19, 10, 36, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.post-cta__inner h3 {
  color: var(--text);
  margin: 12px 0 12px;
}
.post-cta__inner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.post-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Post footer ── */
.post-footer {
  max-width: 680px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-footer__link {
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.post-footer__link:hover { color: var(--accent); }

/* ── Blog CTA section ── */
.blog-cta {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
  position: relative;
}
.blog-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.blog-cta__inner h2 {
  color: var(--text);
  margin-bottom: 16px;
}
.blog-cta__inner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.blog-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .blog-hero { padding: calc(var(--nav-h) + 56px) 0 48px; }
  .post-card { padding: 24px; }
  .post-cta__inner { padding: 28px 24px; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.625rem; }
  .article-body h3 { font-size: 1.25rem; }
  .article-body blockquote { padding: 16px 20px; font-size: 1.125rem; }
}

/* === ARTICLE NUMBERED LIST + CTA ROW === */
.article-body ol.article-numbered {
  list-style: none;
  counter-reset: article-num;
  padding: 0;
  margin: 0 0 1.75em;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}
.article-body ol.article-numbered li {
  counter-increment: article-num;
  padding-left: 2.6em;
  position: relative;
  line-height: 1.65;
}
.article-body ol.article-numbered li::before {
  content: counter(article-num, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}
.article-body ol.article-numbered li strong {
  color: var(--text);
  font-weight: 400;
}
.article-cta-row {
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid rgba(217, 70, 239, 0.15);
  display: flex;
  justify-content: flex-start;
}
