/* ═══════════════════════════════════════════════════════════════════════
   MriSa Foods — Blog styles
   Reuses the homepage brand palette + fonts, but standalone (no cart/hero CSS).
   Content-first, readable measure, structured tables/FAQ for AI citation.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --sage: #4B5D2A;
  --gold: #C5A059;
  --cream: #F9F9F4;
  --dark: #2F3D2F;
  --line: #e3e3d6;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  font-size: 18px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--sage);
  line-height: 1.25;
  margin: 1.8rem 0 0.6rem;
}

/* ── Site header ── */
.blog-header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.blog-header .bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-header a.brand { display: inline-flex; align-items: center; text-decoration: none; }
.blog-header img { height: 40px; width: auto; display: block; }
.blog-header .shop-cta {
  background: var(--sage);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.blog-header .shop-cta:hover { background: var(--dark); }

/* ── Layout ── */
.wrap { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

.breadcrumb { font-size: 0.85rem; color: #6b7360; margin: 0.5rem 0 0; }
.breadcrumb a { color: var(--sage); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

article h1 { font-size: 2.1rem; margin-top: 0.8rem; }
.post-meta { color: #6b7360; font-size: 0.9rem; margin: 0.25rem 0 1.5rem; }
article p { margin: 0.75rem 0; }
article ul, article ol { margin: 0.75rem 0; padding-left: 1.4rem; }
article li { margin: 0.35rem 0; }
article a { color: var(--sage); }

/* ── Key Takeaways box (the most AI-quotable block) ── */
.takeaways {
  background: #f0f3e8;
  border: 1px solid #d6ddc2;
  border-left: 5px solid var(--sage);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0 2rem;
}
.takeaways h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { margin: 0.3rem 0; }

/* ── Tables (nutrition + comparison) ── */
.table-scroll { overflow-x: auto; margin: 1.25rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--line);
}
caption { caption-side: top; text-align: left; font-weight: 700; color: var(--sage); padding-bottom: 0.5rem; }
th, td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--sage); color: #fff; font-family: 'Lato', sans-serif; }
tbody tr:nth-child(even) { background: #faf9f2; }

/* ── FAQ ── */
.faq { margin-top: 2.5rem; }
.faq h2 { border-top: 2px solid var(--line); padding-top: 1.5rem; }
.faq h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 0.25rem; }
.faq p { margin-top: 0; }

/* ── CTA back to shop ── */
.shop-box {
  background: var(--sage);
  color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  margin: 2.5rem 0 1rem;
}
.shop-box h2 { color: #fff; margin-top: 0; }
.shop-box p { margin: 0.4rem 0 1rem; }
.shop-box a {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
}
.shop-box a:hover { background: #fff; }

/* ── Related posts ── */
.related { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.related h2 { font-size: 1.2rem; }
.related ul { list-style: none; padding: 0; }
.related a { color: var(--sage); text-decoration: none; font-weight: 700; }
.related a:hover { text-decoration: underline; }

/* ── Blog index cards ── */
.post-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  color: var(--dark);
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.post-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.post-card h2 { margin: 0 0 0.35rem; font-size: 1.3rem; }
.post-card p { margin: 0; color: #5b6152; }

/* ── Footer ── */
.blog-footer {
  background: var(--dark);
  color: #dfe3d6;
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
}
.blog-footer a { color: var(--gold); text-decoration: none; }
.blog-footer a:hover { text-decoration: underline; }
.blog-footer .links { margin-bottom: 0.75rem; }
.blog-footer .links a { margin: 0 0.6rem; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  article h1 { font-size: 1.7rem; }
  .wrap { padding: 1rem 1rem 3rem; }
}
