/* Blog pages (/blog). Article text styles live under .post-body so the editor preview can use them too. */
.blog-top { border-bottom: 1px solid var(--line); background: var(--white); }
.blog-top .top nav a.btn { color: var(--white); }

.blog, .post { max-width: var(--max); margin: 0 auto; padding: 48px 24px 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--purple); margin: 0 0 10px; }
.blog-head { max-width: 760px; margin-bottom: 36px; }
.blog-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; }
.blog-head .lede { font-size: 20px; color: var(--ink-soft); margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-row a, .post-tags a, .post-tag {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--purple);
  background: #EFEAFD; padding: 5px 12px; border-radius: 999px;
}
.tag-row a[aria-current="page"] { background: var(--purple); color: var(--white); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: var(--white); transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: #C9B8FF; transform: translateY(-2px); }
.post-card-img img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--paper); }
.post-card-body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; }
.post-card .post-tag { justify-self: start; font-size: 12px; padding: 3px 10px; }
.post-card h2 { font-size: 21px; line-height: 1.25; margin: 2px 0 0; letter-spacing: -.01em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--purple); }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.post-card time { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 0; color: var(--muted); font-size: 16px; }
.pager a { font-weight: 600; text-decoration: none; }

/* one post */
.post { max-width: 760px; padding-top: 36px; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--purple); }
.post-head h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; }
.post-head .lede { font-size: 21px; line-height: 1.45; color: var(--ink-soft); margin: 0 0 14px; }
.byline { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.post-cover { margin: 0 0 28px; }
.post-cover img { width: 100%; border-radius: 16px; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--paper); }
.toc { background: var(--paper); border-radius: 14px; padding: 18px 22px; margin: 0 0 30px; font-size: 16px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { text-decoration: none; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: 26px; margin: 0 0 20px; }
.related .post-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.blog > .post-cta { margin-top: 48px; }

@media (max-width: 720px) {
  .blog, .post { padding: 28px 16px 56px; }
  .blog-top .top nav a:not(.btn):not(.signin) { display: none; }
  .post-body { font-size: 18px; }
  .post-body h2 { font-size: 25px; }
  .post-grid { grid-template-columns: 1fr; }
}
