/* ============================================================
   Mium blog — shared stylesheet for every page under /blog.
   Mirrors the design tokens of public/home.html (same cream
   surface, Fraunces serif, Quicksand sans) so the blog reads as
   one brand with the marketing site. Linked (not inlined) on
   purpose: there are many article pages and they all share this
   one cached file, so a copy edit here updates the whole blog.

   COPY DISCIPLINE (same as home.html): canonical terms only —
   "AI Chef", "Mium Plus", "Unlimited imports from anywhere",
   "5 free imports a week". Never "Pro", never invent pricing.
   No Cookbook Club / marketplace copy until MARKETPLACE_ENABLED.
   Any visible FAQ must stay verbatim-identical to the article's
   FAQPage JSON-LD.
   ============================================================ */

:root {
  --surface: #fdf9f3;
  --surface-low: #f7f3ed;
  --surface-container: #ede9e3;
  --surface-high: #e2ded8;
  --white: #ffffff;
  --ink: #1c1c18;
  --ink-soft: #403b38;
  --ink-faint: #756a65;
  --primary: #9a4028;
  --primary-soft: #d9755b;
  --green: #466550;
  --green-soft: #82a890;
  --gold: #d4af37;
  --line: #e0d0c8;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 2px 6px rgba(28, 28, 24, 0.05), 0 18px 44px rgba(28, 28, 24, 0.08);
  --shadow-pill: 0 8px 24px rgba(154, 64, 40, 0.28);
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav (matches home.html) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 249, 243, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224, 208, 200, 0.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 38px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--white);
  background: var(--ink); padding: 10px 22px; border-radius: 999px;
}
.nav-cta:hover { background: var(--primary); }

/* ---------- shared buttons (matches home.html) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 17px;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-pill); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(154, 64, 40, 0.34); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--surface-low); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}

/* ---------- article ---------- */
.article { padding: 40px 0 72px; }
.crumbs { font-size: 13px; color: var(--ink-faint); margin-bottom: 28px; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs span { margin: 0 7px; opacity: 0.6; }

.prose { max-width: 720px; margin: 0 auto; }
.prose h1 {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(31px, 5vw, 47px); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.article-meta { font-size: 14px; color: var(--ink-faint); margin-bottom: 30px; }
.article-meta strong { color: var(--ink-soft); font-weight: 600; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 34px; }
.prose h2 {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(24px, 3.4vw, 31px); font-weight: 600; line-height: 1.18;
  letter-spacing: -0.015em; margin: 48px 0 16px;
}
.prose h3 {
  font-family: var(--font-serif); font-size: 22px; font-weight: 600;
  margin: 34px 0 12px; letter-spacing: -0.01em;
}
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin: 0 0 22px 22px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration: none; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose blockquote {
  margin: 26px 0; padding: 6px 22px; border-left: 3px solid var(--primary-soft);
  color: var(--ink-soft); font-style: italic;
}

/* honest-comparison callout — used to surface the "be fair" notes that
   keep the copy credible (answer engines reward accuracy over hype). */
.callout {
  background: var(--surface-low); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 20px 22px; margin: 26px 0;
  font-size: 15.5px; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

.verdict {
  background: linear-gradient(180deg, #fff, var(--surface-low));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 28px; margin: 34px 0;
}
.verdict h3 { margin: 0 0 10px; }
.verdict p:last-child { margin-bottom: 0; }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; margin: 26px 0; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--line); }
table.cmp {
  width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; background: var(--white);
}
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--surface-container); font-weight: 700; font-size: 14px; }
table.cmp tbody th { font-weight: 700; color: var(--ink); }
table.cmp tr.is-mium td, table.cmp tr.is-mium th { background: rgba(154, 64, 40, 0.06); }
table.cmp td.yes { color: var(--green); font-weight: 600; }
table.cmp td.no { color: var(--ink-faint); }
.tbl-note { font-size: 13px; color: var(--ink-faint); margin: -12px 0 26px; }

/* ---------- FAQ (matches home.html accordion) ---------- */
.faq-list { margin: 18px 0 8px; }
.faq-list details {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq-list summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600;
  font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { width: 20px; height: 20px; flex: none; color: var(--primary); transition: transform 0.2s ease; }
.faq-list details[open] summary .plus { transform: rotate(45deg); }
.faq-list details > p { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- CTA band (matches home.html) ---------- */
.cta-band {
  background: var(--ink); color: var(--surface); border-radius: var(--radius-lg);
  padding: 48px 32px; text-align: center; margin: 56px 0 8px;
}
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(25px, 3.4vw, 33px); font-weight: 600; margin-bottom: 10px; }
.cta-band h2 em { font-style: italic; color: var(--primary-soft); }
.cta-band p { color: rgba(253, 249, 243, 0.82); margin-bottom: 24px; }

/* ---------- related ---------- */
.related { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.related ul { list-style: none; margin: 0; display: grid; gap: 12px; }
.related a { color: var(--ink); text-decoration: none; font-weight: 600; }
.related a:hover { color: var(--primary); }
.related .r-sub { display: block; font-weight: 400; font-size: 14px; color: var(--ink-faint); margin-top: 2px; }

/* ---------- blog index ---------- */
.blog-hero { padding: 56px 0 8px; text-align: center; }
.blog-hero h1 { font-family: var(--font-serif); font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.blog-hero p { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 40px 0 24px; }
.post-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 26px 28px; text-decoration: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.post-card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.post-card h2 { font-family: var(--font-serif); font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.post-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.post-card .more { font-size: 14px; font-weight: 700; color: var(--primary); }

/* ---------- footer (matches home.html) ---------- */
footer { padding: 56px 0 48px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { height: 32px; }
.foot-tagline { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--primary); }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.foot nav a { color: var(--ink-soft); text-decoration: none; }
.foot nav a:hover { color: var(--primary); }
.foot .copy { font-size: 13px; color: var(--ink-faint); }

@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lede { font-size: 18px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
