/* ==========================================================================
   BLOG POST PAGE — base
   ========================================================================== */

.post-page {
  background: var(--color-bg);
}

.post-page .navbar__link {
  color: var(--color-text);
}

.post-page .navbar__cta {
  color: var(--color-text);
  border-color: rgba(31, 27, 22, 0.45);
}

.post-page .navbar__burger span {
  background: var(--color-text);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.post-hero {
  padding: clamp(9rem, 14vw, 14rem) 0 0;
}

.post-hero__inner {
  max-width: 75rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.post-hero__category {
  display: inline-block;
  color: var(--color-text-muted);
  text-decoration: none;
}

.post-hero__category:hover {
  color: var(--color-text);
}

.post-hero__title {
  margin-bottom: 2.5rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}

.post-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 0.75rem 0 1.25rem;
    color: var(--color-text-muted);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.4;
  }

.post-hero__intro {
  color: var(--color-text-muted);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.6;
}

.post-hero__image {
  display: block;
  width: 100%;
  max-height: 46rem;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   ARTICLE BODY
   ========================================================================== */

.post-content {
  padding: 0rem 0 clamp(6rem, 10vw, 9rem);
}

.post-content__inner {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--color-text);
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  line-height: 1.75;
}

.post-content__inner > * + * {
  margin-top: var(--space-6);
}

.post-content__inner h2 {
  margin-top: 2rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.post-content__inner h2 + p {
    margin-top: 1rem;
  }

.post-content__inner p {
  color: var(--color-text-muted);
}

.post-content__inner blockquote {
  margin: var(--space-8) 0;
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: normal;
  line-height: 1.4;
}

.post-content__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   RELATED ARTICLES
   ========================================================================== */

.post-related {
  padding: clamp(5rem, 8vw, 7rem) 0 clamp(6rem, 10vw, 9rem);
  background: var(--color-bg-light);
}

.post-related__heading {
  max-width: 40rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.post-related__heading h2 {
  margin-top: var(--space-4);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.post-related__grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3rem) var(--space-6);
}

.post-related__card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-related__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.5rem;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  transition: transform var(--transition);
}

.post-related__card:hover .post-related__image {
  transform: scale(1.02);
}

.post-related__title {
  margin-bottom: var(--space-3, 0.75rem);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.2;
}

.post-related__excerpt {
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 1.05vw, 1rem);
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 767px) {
  .post-page .navbar__mobile {
    background: var(--color-bg);
  }

  .post-page .navbar__mobile-link {
    color: var(--color-text);
  }

  .post-hero {
    padding-top: 7.5rem;
  }
}

@media screen and (min-width: 768px) {
  .post-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
