/* ═══ Blog ═══════════════════════════════════════════════════════════════
   Long-form product updates on the marketing site. Reuses site.css tokens and
   shared components (.wrap, .btn, .kicker). Linked ONLY by blog.html and the
   posts under /blog. No site.js dependency — these pages never use the .reveal
   scroll-in classes, so content is always visible even with JS off. */

/* ── index ───────────────────────────────────────────────────────────── */
.blog-hero { padding-block: clamp(64px, 10vw, 120px) clamp(26px, 4vw, 42px); }
.blog-hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.04; letter-spacing: -.02em; margin: 14px 0 0; }
.blog-hero .lede { max-width: 640px; }

.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: clamp(20px, 3vw, 30px); padding-bottom: clamp(72px, 11vw, 130px);
}
.blog-card {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px); border-color: var(--line-2);
  box-shadow: 0 22px 50px -30px rgba(0,0,0,.8), 0 0 60px -44px var(--accent-glow);
}
.blog-card-cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.blog-meta {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.blog-tag { color: var(--accent-2); }
.blog-card-title { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; font-weight: 650; color: var(--text); margin: 2px 0 0; }
.blog-card-excerpt { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.blog-card-more {
  margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-2); display: inline-flex; align-items: center; gap: 7px;
}
.blog-card-more .i { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.blog-card:hover .blog-card-more .i { transform: translateX(3px); }

/* on-brand gradient covers — used when no photo cover is supplied yet */
.cover-grad {
  background:
    radial-gradient(120% 120% at 12% 18%, rgba(129,140,248,.55), transparent 55%),
    radial-gradient(130% 120% at 88% 80%, rgba(99,102,241,.50), transparent 60%),
    linear-gradient(135deg, #1a1c44, #0c0d1f 72%);
}
.cover-grad-2 {
  background:
    radial-gradient(120% 120% at 82% 14%, rgba(199,179,255,.45), transparent 55%),
    radial-gradient(120% 120% at 10% 86%, rgba(99,102,241,.55), transparent 60%),
    linear-gradient(135deg, #141633, #0a0b16 74%);
}
.cover-label {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

/* ── post page ───────────────────────────────────────────────────────── */
.blog-back {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: .04em; color: var(--text-dim); text-decoration: none; margin-bottom: 24px;
}
.blog-back .i { width: 15px; height: 15px; }
.blog-back:hover { color: var(--text); }

.post { padding-block: clamp(36px, 6vw, 68px) clamp(60px, 9vw, 110px); }
.post-cover {
  aspect-ratio: 21 / 9; border-radius: var(--radius-l); overflow: hidden; position: relative;
  border: 1px solid var(--line); margin-bottom: clamp(26px, 4vw, 44px);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-head { max-width: 760px; }
.post-head h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.08; letter-spacing: -.02em; color: var(--text); margin: 14px 0 0; }
.post-meta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.post-head .post-meta { margin-top: 16px; }

/* long-form body — tuned for reading */
.post-body { max-width: 720px; margin-top: clamp(28px, 4vw, 44px); font-size: 17px; line-height: 1.75; color: var(--text-dim); }
.post-body > p:first-of-type { font-size: 19px; color: var(--text); }
.post-body h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; letter-spacing: -.01em; color: var(--text); margin: 2.2em 0 .55em; }
.post-body h3 { font-size: 18px; color: var(--text); margin: 1.8em 0 .4em; }
.post-body p { margin: 0 0 1.1em; }
.post-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(129,140,248,.4); }
.post-body a:hover { text-decoration-color: var(--accent-2); }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.post-body li { margin: .4em 0; }
.post-body li::marker { color: var(--accent-2); }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--text); font-size: 18px; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-body code { font-family: var(--font-mono); font-size: .9em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.post-body figure { margin: 1.8em 0; }
.post-body figure img { width: 100%; border-radius: var(--radius-s); border: 1px solid var(--line); display: block; }
.post-body figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 8px; text-align: center; }

/* end-of-post CTA */
.post-cta {
  max-width: 720px; margin: clamp(40px, 6vw, 64px) 0 0; padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line-2); border-radius: var(--radius-l);
  background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(99,102,241,.02));
}
.post-cta h3 { font-size: 22px; letter-spacing: -.01em; color: var(--text); margin: 0 0 6px; }
.post-cta p { color: var(--text-dim); margin: 0 0 18px; }
.post-cta .row { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 16px; }
}
