/* ============================================================
   PARENTING PATH — BLOG STYLESHEET
   Follows DESIGN.md Mountain Air palette + web type scale.
   Load after base.css and components.css.
   ============================================================ */

/* ===========================
   BLOG INDEX — HERO
   =========================== */

.blog-hero {
  padding: 80px 0 64px;
  text-align: center;
  background-color: var(--white);
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  line-height: var(--lh-display-xl);
  color: var(--navy);
  margin-bottom: 16px;
}

.blog-hero .lead {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--mid);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   BLOG INDEX — CATEGORY PILLS
   =========================== */

.blog-categories {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.blog-category-pill {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--navy);
  background: var(--blue-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  text-decoration: none;
  transition: background var(--transition-duration) var(--transition-easing),
              color var(--transition-duration) var(--transition-easing);
}

.blog-category-pill:hover,
.blog-category-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===========================
   BLOG INDEX — ARTICLE GRID
   =========================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-duration) var(--transition-easing),
              transform var(--transition-duration) var(--transition-easing);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-heading-sm);
  line-height: var(--lh-heading-sm);
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 600;
}

.blog-card-excerpt {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--mid);
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-meta {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.blog-card-meta .reading-time {
  color: var(--secondary);
  font-weight: 500;
}

/* ===========================
   BLOG INDEX — FEATURED POST
   =========================== */

.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}

.blog-featured-image {
  aspect-ratio: 16 / 10;
  background: var(--stone);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-category {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.blog-featured-title {
  font-family: var(--font-display);
  font-size: var(--fs-heading-xl);
  line-height: var(--lh-heading-xl);
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 600;
}

.blog-featured-excerpt {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--mid);
  margin-bottom: 24px;
}

.blog-featured-link {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-duration) var(--transition-easing);
}

.blog-featured-link:hover {
  color: var(--secondary);
}

/* ===========================
   ARTICLE PAGE — LAYOUT
   =========================== */

.article-header {
  padding: 64px 0 40px;
  text-align: center;
  background: var(--white);
}

.article-breadcrumb {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  color: var(--mid);
  margin-bottom: 24px;
}

.article-breadcrumb a {
  color: var(--navy);
  text-decoration: none;
}

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

.article-category {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 16px;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  line-height: var(--lh-display-xl);
  color: var(--navy);
  max-width: 800px;
  margin: 0 auto 20px;
  font-weight: 600;
}

.article-meta {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  color: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.article-meta .author {
  font-weight: 500;
  color: var(--charcoal);
}

/* ===========================
   ARTICLE PAGE — BODY
   =========================== */

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-heading-lg);
  line-height: var(--lh-heading-lg);
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 16px;
  font-weight: 600;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-heading-sm);
  line-height: var(--lh-heading-sm);
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 12px;
  font-weight: 600;
}

.article-body p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--charcoal);
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--charcoal);
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 3px solid var(--navy);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0;
}

.article-body strong {
  color: var(--navy);
  font-weight: 600;
}

.article-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--secondary);
}

/* Callout box inside articles */
.article-callout {
  background: var(--stone);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  margin: 32px 0;
}

.article-callout p {
  font-size: var(--fs-body-sm);
  color: var(--charcoal);
  margin-bottom: 0;
}

.article-callout strong {
  color: var(--navy);
}

/* Data/stat callout */
.article-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.article-stat .stat-number {
  font-family: var(--font-mono);
  font-size: var(--fs-heading-xl);
  font-weight: 500;
  color: var(--navy);
}

.article-stat .stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--mid);
}

/* Table inside articles */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
}

.article-body th {
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
}

.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--charcoal);
}

/* ===========================
   ARTICLE — CTA SECTION
   =========================== */

.article-cta {
  background: var(--stone);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-top: 48px;
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: var(--fs-heading-md);
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 12px;
}

.article-cta p {
  font-size: var(--fs-body-sm);
  color: var(--mid);
  margin-bottom: 24px;
}

/* ===========================
   ARTICLE — RELATED POSTS
   =========================== */

.related-posts {
  padding: 64px 0 80px;
  background: var(--white);
}

.related-posts h2 {
  font-family: var(--font-display);
  font-size: var(--fs-heading-lg);
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

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

  .blog-featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-header h1 {
    font-size: var(--fs-display-lg);
    line-height: var(--lh-display-lg);
  }
}

@media (max-width: 767px) {
  .blog-hero {
    padding: 48px 0 40px;
  }

  .blog-hero h1 {
    font-size: var(--fs-display-lg);
    line-height: var(--lh-display-lg);
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: var(--fs-heading-xl);
    line-height: var(--lh-heading-xl);
  }

  .article-body {
    padding: 0 16px 64px;
  }

  .article-cta {
    padding: 32px 24px;
  }
}

@media (max-width: 479px) {
  .blog-hero h1 {
    font-size: var(--fs-heading-xl);
  }

  .blog-categories {
    gap: 8px;
  }

  .blog-category-pill {
    font-size: 12px;
    padding: 6px 14px;
  }

  .blog-featured-title {
    font-size: var(--fs-heading-lg);
    line-height: var(--lh-heading-lg);
  }
}
