/* Blog — index grid + article detail */

.page-blog {
  --blog-teal: #3cbeb2;
  --blog-teal-deep: #2a9d8f;
  --blog-ink: #0f172a;
  --blog-muted: #868686;
  background: #fafbfc;
  color: var(--blog-ink);
}

.blog-page {
  padding-top: clamp(0.5rem, 2vw, 1rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

/* —— Page header —— */
.blog-page__hero {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 2rem);
}

.blog-page__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-teal-deep);
}

.blog-page__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #000;
}

.blog-page__lede {
  margin: 0.75rem 0 0;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.65;
  color: var(--blog-muted);
  max-width: 62ch;
}

/* —— Index grid —— */
.blog-grid-wrap {
  padding-bottom: 0.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

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

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

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f4;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blog-teal-deep);
}

.blog-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}

.blog-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--blog-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__cta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blog-teal-deep);
}

.blog-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.blog-empty__text {
  color: var(--blog-muted);
  margin-bottom: 1rem;
}

.blog-empty__link {
  color: var(--blog-teal-deep);
  font-weight: 700;
  text-decoration: none;
}

/* —— Detail / article —— */
.blog-article {
  max-width: 740px;
  margin: 0 auto;
}

.blog-article__cover {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin: 1.25rem 0 1.75rem;
  aspect-ratio: 16 / 9;
  background: #eef1f4;
}

.blog-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1f2937;
}

.blog-article__body p {
  margin: 0 0 1.1em;
}

.blog-breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blog-muted);
}

.blog-breadcrumb a {
  color: var(--blog-teal-deep);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-breadcrumb [aria-current="page"] {
  color: #333;
}

/* —— Related posts —— */
.blog-related {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 2.75rem);
  border-top: 1px solid #e8ecef;
}

.blog-related__heading {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .blog-related__grid {
    grid-template-columns: 1fr;
  }
}
