/* Blog: index (/blog, src/pages/blog.njk) and post pages (layouts/post.njk).
   Article body typography is .prose in site.css section 8. Metrics follow the Framer original. */

/* ---- Index --------------------------------------------------------------- */
.blog-index { width: min(1128px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-top: 64px; }
.blog-index .page-title { font: 500 56px/1.2 var(--font-heading); color: var(--grey-950); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
html:not(.js) .blog-filters { display: none; }
.blog-filter {
  height: 36px; padding: 0 16px; border-radius: var(--radius); background: var(--grey-100); color: var(--grey-500);
  font: 500 14px/1.2 var(--font-body); transition: background-color .2s, color .2s;
}
.blog-filter[aria-pressed="true"] { background: var(--grey-700); color: var(--grey-50); }
.blog-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 19px 20px; align-items: start; }
.blog-card a { display: block; }
.blog-card-media {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: var(--grey-100); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-badge {
  position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 20px;
  background: var(--grey-800); color: var(--grey-200); font: 400 13px/1.2 var(--font-body);
}
.blog-card-title { margin-top: 16px; font: 500 16px/1.2 var(--font-heading); color: var(--grey-900); }
.blog-card-date { display: block; margin-top: 6px; font: 500 14px/1.2 var(--font-body); color: var(--grey-400); }
.blog-index .list-more { margin-top: 58px; }

/* ---- Post ---------------------------------------------------------------- */
.post { width: min(902px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-top: 64px; }
.post-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.post-chip { padding: 4px 16px; border-radius: 100px; background: rgba(0, 0, 0, .03); color: #888; font: 500 16px/1.2 var(--font-body); }
.post-title { margin-top: 15px; font: 500 56px/1.2 var(--font-heading); color: var(--grey-950); }
.post-date { display: block; margin-top: 15px; font: 500 16px/1.2 var(--font-body); color: #999; }
.post-image { width: 100%; margin-top: 60px; border-radius: 24px; }
.post-body { margin-top: 60px; }
.post-nav { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 59px; padding-bottom: 1px; }
.post-nav a { font: 500 16px/1.2 var(--font-body); color: var(--grey-700); text-decoration: underline; transition: color .2s; }
.post-nav-older { text-align: right; margin-left: auto; }

/* ---- Tablet -------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .blog-index { width: min(762px, 100% - 2 * var(--gutter)); }
  .blog-index .page-title { font-size: 44px; }
  .blog-card-badge { font-size: 12px; }
  .blog-card-title { font-size: 15px; }
  .post { width: calc(100% - 100px); }
  .post-chip, .post-date, .post-nav a { font-size: 15px; }
  .post-title { font-size: 44px; }
}

/* ---- Phone --------------------------------------------------------------- */
@media (max-width: 809.98px) {
  .blog-index { width: calc(100% - 40px); }
  .blog-index .page-title { font-size: 32px; }
  .blog-filters { justify-content: center; margin-top: 24px; padding-inline: 10px; }
  .blog-filter { font-size: 13px; }
  .blog-grid { grid-template-columns: 1fr; grid-auto-rows: auto; row-gap: 20px; }
  .blog-card-date { font-size: 13px; }
  .post { width: calc(100% - 40px); }
  .post-title { font-size: 32px; }
  .post-nav a { max-width: calc(50% - 12px); }
}
