/* ==========================================================================
   MealMaxx — blog index and post pages
   Builds on brand.css + legal.css (which already handles long-form typography).
   ========================================================================== */

/* ------------------------------------------------------------- index */
.lead-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lead-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.lead-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 10px 0 12px; text-wrap: balance;
}
.lead-card p { color: var(--muted); font-size: 1.03rem; max-width: 68ch; }
.lead-more {
  display: inline-block; margin-top: 18px;
  font-weight: 600; color: var(--green-dark); font-size: .96rem;
}

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-soft); padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.post-card h3 { font-size: 1.14rem; margin: 9px 0 9px; text-wrap: balance; }
.post-card p { color: var(--muted); font-size: .93rem; }

.rel-date {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint);
}

/* -------------------------------------------------------------- post */
.post-head h1 { max-width: 22ch; }
.tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--green-tint); color: var(--green-dark);
  border: 1px solid rgba(14,154,78,.16);
  padding: 4px 10px; border-radius: var(--r-chip);
}

/* the first paragraph carries the answer — give it presence */
.post-body > p:first-of-type {
  font-size: 1.12rem; color: var(--ink); line-height: 1.62;
}

.post-body blockquote {
  margin: 0 0 20px; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--green);
}
.post-body blockquote p { color: var(--ink); font-size: 1.03rem; margin: 0; }

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em; background: var(--paper-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px;
}

.post-body hr.rule { margin: 30px 0; }

.post-disclaimer {
  margin-top: 30px; padding: 16px 20px;
  background: var(--paper-2); border: 1px solid var(--border);
  border-radius: var(--r-soft);
  font-size: .9rem; color: var(--muted);
}

/* ---------------------------------------------------------- post CTA */
.post-cta {
  margin-top: 40px; padding: clamp(26px, 4vw, 36px);
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-card);
}
.post-cta h2 {
  color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin: 0 0 10px; padding: 0; border: 0;
}
.post-cta p { color: rgba(255,255,255,.68); font-size: .99rem; max-width: 58ch; margin-bottom: 20px; }
.post-cta .btn-primary { box-shadow: none; }

/* ------------------------------------------------------------ related */
.related { margin-top: clamp(44px, 6vw, 70px); }
.related h2 {
  font-size: 1.24rem; margin: 0 0 18px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rel-card {
  display: flex; flex-direction: column; gap: 7px;
  text-decoration: none;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-soft); padding: 18px 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.rel-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.rel-title {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: -.018em; line-height: 1.32; color: var(--ink);
}
