/* Blog pages. Layers on top of product-landing.css. */

body.blog-landing {
  --product-a: #63b3ff;
  --product-b: #75e0a7;
  --product-c: #f5c56c;
}

/* Blog index hero: centered, no product icon or screenshot rail. */
.blog-landing .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

.blog-landing .hero-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.blog-landing .hero::after { display: none; }

/* Section eyebrow (reused on index + post). */
.blog-eyebrow {
  color: var(--product-a);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Post list on the index page. */
.post-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.post-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

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

.post-card h2 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.post-card .post-excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.post-card .post-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
  color: var(--quiet);
  font-size: 0.78rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Individual blog post article. */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header time {
  color: var(--quiet);
  font-size: 0.88rem;
}

.article-header h1 {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.article-meta {
  display: flex;
  gap: 0.75rem;
  color: var(--quiet);
  font-size: 0.82rem;
}

/* Prose body. */
.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.article-body h2 {
  margin: 2.5rem 0 0.8rem;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.3;
}

.article-body h3 {
  margin: 2rem 0 0.6rem;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.35;
}

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

.article-body a {
  color: var(--product-a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--text);
}

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

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--product-a);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

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

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

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

.article-body code {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article-body pre {
  overflow-x: auto;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #060810;
  font: 0.88rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article-body pre code {
  padding: 0;
  background: none;
  font: inherit;
}

.article-body img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Back-to-blog link. */
.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.article-footer a {
  color: var(--product-a);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.article-footer a:hover {
  color: var(--text);
}

/* Fade-in observer (same pattern as other pages). */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Responsive. */
@media (max-width: 720px) {
  .post-card {
    padding: 1rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-header h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
}
