/* ==========================================================================
   PRISM — Blog page (page-specific; shared components live in
   components.css / sections.css and are reused here, not redefined)
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Blog hero — centered, text-only, same recipe as About/Contact heroes    */
/* ---------------------------------------------------------------------- */
.blog-hero {
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: var(--space-8);
  position: relative;
  overflow: clip;
  text-align: center;
}
.blog-hero__inner { position: relative; z-index: 1; max-width: 700px; margin-inline: auto; }
.blog-hero__badge { margin-bottom: var(--space-5); }
.blog-hero__title {
  font-size: xxx-large !important;
  margin-bottom: var(--space-5);
}
.blog-hero__title em {
  font-style: normal;
  font-weight: inherit;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blog-hero__sub { font-size: var(--fs-lead); color: var(--ink-500); max-width: 56ch; margin-inline: auto; }

.blog-hero .bg-mesh__blob--1 { width: 360px; height: 360px; top: -120px; right: -80px; opacity: 0.32; }
.blog-hero .bg-mesh__blob--2 { width: 300px; height: 300px; bottom: -140px; left: -100px; opacity: 0.26; }
[data-theme="dark"] .blog-hero .bg-mesh__blob--1 { opacity: 0.22; }
[data-theme="dark"] .blog-hero .bg-mesh__blob--2 { opacity: 0.18; }
@media (max-width: 640px) {
  .blog-hero .bg-mesh__blob--1 { width: 240px; height: 240px; top: -70px; right: -60px; opacity: 0.28; }
  .blog-hero .bg-mesh__blob--2 { width: 200px; height: 200px; bottom: -90px; left: -70px; opacity: 0.22; }
}

/* ---------------------------------------------------------------------- */
/* Post grid — one fixed image ratio + min-height/line-clamp pairs on      */
/* title and excerpt, so every card lands at the same height regardless    */
/* of exact copy length (same fix applied to the portfolio case studies).  */
/* ---------------------------------------------------------------------- */
.blog__grid { grid-template-columns: repeat(3, 1fr); }
.blog-card { min-width: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--brand-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__visual img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.blog-card__visual svg { position: relative; z-index: 0; width: 30%; height: 30%; color: var(--brand-indigo); opacity: 0.85; }
[data-theme="dark"] .blog-card__visual svg { color: var(--brand-aqua); }

.blog-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex-grow: 1; }
.blog-card__category { margin-bottom: var(--space-3); }

.blog-card__title {
  margin-bottom: var(--space-3);
  min-height: calc(var(--fs-h3) * var(--lh-tight) * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__excerpt {
  color: var(--ink-500);
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
  min-height: calc(0.9375rem * var(--lh-body) * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  font-size: 0.8125rem;
  color: var(--ink-300);
  margin-bottom: var(--space-4);
  margin-top: auto;
}
.blog-card__link { align-self: flex-start; }
[data-theme="dark"] .blog-card__link,
[data-theme="dark"] .blog-card__link svg {
  color: #FFFFFF !important;
}

@media (max-width: 1024px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog__grid { grid-template-columns: 1fr; } }
