/* Blog layout, inherits design tokens (--ink, --paper, --accent, --font-sans)
   from new-landing-v2.css. Focused on long-form article typography + post list. */

.blog-body {
  background: var(--paper, #fff);
  color: var(--ink, #1a1a1a);
  font-family: var(--font-sans, 'Helvetica Neue', Helvetica, Arial, sans-serif);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: column layout so the main content grows to fill the
     viewport and the footer sits on the bottom even with few/short posts. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.blog-header {
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-header .top { padding-top: 22px; }

/* ── Shared content column ───────────────────────────────────────────── */
.post-wrap,
.blog-index {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  width: 100%;
  box-sizing: border-box;
  /* Grow to push the footer down on short pages. */
  flex: 1 0 auto;
}

/* ── Index / changelog ───────────────────────────────────────────────── */
.blog-index h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 8px;
}
.blog-intro {
  color: var(--ink-soft, #555);
  font-size: 18px;
  margin: 0 0 36px;
  max-width: 60ch;
}
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card { margin: 0 0 16px; }
.post-card > a {
  display: block;
  padding: 22px 24px;
  border: 1px solid #ececf2;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.post-card > a:hover {
  border-color: var(--accent-soft, #9d8aff);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(109, 79, 255, 0.10);
}
.post-card time {
  display: block;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft, #777);
  margin-bottom: 6px;
}
.post-card h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.post-card p {
  margin: 0 0 14px;
  color: var(--ink-soft, #555);
  font-size: 16px;
  line-height: 1.5;
}

/* ── Topic / tool chip ───────────────────────────────────────────────── */
.chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-cool, #faf4ff);
  color: var(--accent-deep, #5a3de6);
  text-decoration: none;
}
a.chip:hover { background: #efe8ff; }

/* ── Article ─────────────────────────────────────────────────────────── */
.post-eyebrow { margin: 0 0 18px; }
.post-eyebrow a {
  font-size: 14px;
  color: var(--accent, #6d4fff);
  text-decoration: none;
}
.post-eyebrow a:hover { text-decoration: underline; }

.post > h1 {
  font-size: clamp(30px, 5.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}
.post-meta {
  color: var(--ink-soft, #777);
  font-size: 14px;
  margin: 0 0 32px;
}
.post-meta time { letter-spacing: .03em; }

.post-body {
  font-size: 18px;
  line-height: 1.7;
  color: #2a2a2e;
}
.post-body h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.post-body h3 {
  font-size: 20px;
  margin: 30px 0 10px;
}
.post-body p { margin: 0 0 20px; }
.post-body a { color: var(--accent-deep, #5a3de6); }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; }
.post-body li { margin: 0 0 8px; }
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 28px 0;
}
.post-body blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent-soft, #9d8aff);
  color: var(--ink-soft, #555);
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f5f3fb;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ── CTA card to the related tool ────────────────────────────────────── */
.post-cta {
  margin: 44px 0;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--paper-warm, #fff0f6), var(--paper-cool, #faf4ff));
  text-align: center;
}
.post-cta p {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
/* Keep the dark bar full-bleed but hold its content in the same 1440px
   container as the header, so the brand and copyright line up with the
   header logo/nav instead of hugging the screen edges. */
.blog-body .footer {
  display: block;
  padding: 0;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
