/* ════════════════════════════════════════════════════════════════
   blog.css — editorial / article layout for /blog
   ────────────────────────────────────────────────────────────────
   A reading-optimized single column on the brand tokens (styles.css).
   The product pages use the wide line-divided grid (seo.css); the blog
   is the opposite: a narrow prose measure for guides + comparisons.

   Reuses from seo.css: .breadcrumb, .compare (tables), .faq (FAQ).
   So a blog post links styles.css + seo.css + blog.css.

   TYPOGRAPHY RULES (same as the rest of the site): IBM Plex Mono only
   for CTA buttons + numbers; Instrument Sans everywhere else, sentence
   case (never all-caps); no em dashes in copy.
   ════════════════════════════════════════════════════════════════ */

/* ── Reading column ─────────────────────────────────────────────── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
/* Breadcrumb sits flush inside the article column. */
.article .breadcrumb,
.blog-index .breadcrumb { max-width: none; margin: 0; padding: 24px 0 0; }

/* ── Header ─────────────────────────────────────────────────────── */
.article-head { padding-top: 40px; }
.article-cat {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--serif-display);
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink-heading);
  margin: 0 0 22px;
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-family: var(--body-font);
  font-size: 14px;
  letter-spacing: -0.1px;
  color: var(--ink-faint);
  margin-bottom: 40px;
}
.article-byline strong { color: var(--ink-heading); font-weight: 500; }
.article-byline span + span::before { content: "·"; margin-right: 12px; color: var(--ink-faint); }

/* ── Direct-answer summary box (AI-citability) ──────────────────── */
.article-summary {
  background: rgba(215, 213, 175, 0.18);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 26px 24px;
  margin: 0 0 44px;
}
.article-summary-label {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--ink-heading);
  margin: 0 0 8px;
}
.article-summary p {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.14px;
  color: var(--ink-soft);
  margin: 0;
}
.article-summary p + p { margin-top: 10px; }
.article-summary a { color: var(--ink-heading); text-decoration: underline; text-underline-offset: 2px; }

/* ── Prose body ─────────────────────────────────────────────────── */
.article-body { font-family: var(--body-font); }
.article-body > p {
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -0.1px;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.article-body h2 {
  font-family: var(--body-font);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--ink-heading);
  margin: 50px 0 16px;
}
.article-body h3 {
  font-family: var(--body-font);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.16px;
  color: var(--ink-heading);
  margin: 32px 0 10px;
}
.article-body ul,
.article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li {
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.1px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
/* Inline prose links are dark + underlined, but NOT the primary CTA button. */
.article-body a:not(.hero-cta) { color: var(--ink-heading); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { color: var(--ink-heading); font-weight: 600; }
.article-body blockquote {
  margin: 0 0 24px;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--accent-tan);
  color: var(--ink-soft);
  font-style: italic;
}
/* Tables (.compare) + FAQ (.faq) come from seo.css; give them article
   spacing when embedded in a post. */
.article-body .compare,
.article-body .faq { margin: 28px 0 32px; }

/* Comparison tables inside a post: the base .compare in seo.css assumes a
   2-column (Paper vs other) layout with a 46%-wide row label. Reset that so
   multi-column tables lay out evenly, and add neutral yes/no cell colors. */
.article-body .compare tbody th { width: auto; color: var(--ink-heading); font-weight: 500; }
.article-body .compare .cell-yes { color: #2c7a4b; font-weight: 600; }
.article-body .compare .cell-no { color: var(--ink-faint); }
/* Fit the reading column on desktop; scroll instead of clipping on phones. */
.article-body .compare { overflow-x: auto; }

/* Figures / screenshots */
.article-figure { margin: 8px 0 30px; }
.article-figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.article-figure figcaption {
  font-family: var(--body-font);
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 10px;
}

/* ── In-article CTA ─────────────────────────────────────────────── */
.article-cta {
  border: 1px solid var(--hairline);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px 28px;
  text-align: center;
  margin: 44px 0;
}
.article-cta-title {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink-heading);
  margin: 0 0 18px;
}
/* Inline CTA that just uses the site's primary button, no card chrome. */
.article-cta-simple { text-align: center; margin: 48px 0 8px; }

/* ── Author bio (end of post) ───────────────────────────────────── */
.article-author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-top: 1px solid var(--hairline);
  margin-top: 52px;
  padding-top: 28px;
}
.article-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: rgba(215, 213, 175, 0.5);
}
.article-author-name {
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.14px;
  color: var(--ink-heading);
  margin: 0 0 4px;
}
.article-author-bio {
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Blog index ─────────────────────────────────────────────────── */
.blog-index { max-width: 760px; margin: 0 auto; padding: 0 24px 96px; }
.blog-index-head { padding: 52px 0 8px; }
.blog-index-title {
  font-family: var(--serif-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink-heading);
  margin: 0 0 14px;
}
.blog-index-sub {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.18px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 560px;
}
.post-list { border-top: 1px solid var(--hairline); }
.post-item {
  display: block;
  border-bottom: 1px solid var(--hairline);
  padding: 30px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.14s ease;
}
.post-item:hover { background: rgba(0, 0, 0, 0.015); }
.post-item-cat {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.post-item-title {
  font-family: var(--body-font);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.25;
  color: var(--ink-heading);
  margin: 0 0 8px;
}
.post-item-excerpt {
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 600px;
}
.post-item-meta {
  font-family: var(--body-font);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .article { padding-bottom: 64px; }
  .article-body > p, .article-body li { font-size: 16px; }
}
