:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-alt: #f0ece3;
  --text: #1c222b;
  --muted: #5e6673;
  --accent: #1f8f72;
  --accent-dark: #126a53;
  --accent-soft: #d7efe7;
  --outline: #d9dfd5;
  --shadow: 0 14px 34px rgba(22, 30, 43, 0.09);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
}

.skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 100; padding: 1rem; background: white; color: var(--accent-dark); }
.skip-link:focus { top: 1rem; }
.breadcrumbs { padding-top: 1.5rem; color: var(--muted); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; padding-right: .5rem; }
.breadcrumbs a, .prose a, .content-meta a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .2em; }
.reading-width { max-width: 800px; }
.reading-hero { padding: 3rem 0 2rem; background: radial-gradient(ellipse at 80% 15%, #d7efe780, transparent 60%); }
.reading-hero h1 { max-width: 23ch; }
.lead { font-size: 1.15rem; color: var(--muted); }
.content-meta { font-size: .85rem; color: var(--muted); margin-top: 1.5rem; }
.reading-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; padding-top: 2rem; }
.reading-layout > aside { position: sticky; top: 6rem; }
.contents h2 { font-size: 1.1rem; }
.contents ol { padding-left: 1.2rem; margin-bottom: 0; }
.contents li + li { margin-top: .7rem; }
.contents a { font-size: .9rem; color: var(--accent-dark); }
.prose { min-width: 0; font-size: 1.05rem; line-height: 1.85; padding-bottom: 2rem; overflow-wrap: break-word; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: 2.5rem; scroll-margin-top: 7rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose p + p { margin-top: 1rem; }
.prose li + li { margin-top: .7rem; }
.prose section { padding: .5rem 0; }
.answer-box { border-left: 4px solid var(--accent-dark); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--accent-soft); padding: 1.25rem 1.5rem; margin: 1rem 0 2rem; }
.answer-box p { margin: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--outline); border-radius: var(--radius-sm); margin: 1.5rem 0; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.table-scroll caption { text-align: left; font-weight: 700; padding: 1rem; background: var(--surface-alt); }
.table-scroll th, .table-scroll td { padding: .85rem; border-bottom: 1px solid var(--outline); vertical-align: top; min-width: 130px; }
.table-scroll thead { background: white; }
.table-scroll tbody tr:nth-child(even) { background: #fff9; }
.shopping-list { display: grid; gap: .7rem; padding: 1.25rem; border: 1px solid var(--outline); border-radius: var(--radius-sm); background: white; }
.shopping-list label { display: flex; gap: .75rem; align-items: baseline; font-weight: 400; cursor: pointer; }
.shopping-list input { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; accent-color: var(--accent-dark); }
.source-notes { border-top: 1px solid var(--outline); margin-top: 2rem; font-size: .9rem; }
.content-card { display: flex; flex-direction: column; align-items: start; }
.content-card h2, .content-card h3 { font-size: 1.4rem; margin: .6rem 0 .9rem; }
.content-card h2 a, .content-card h3 a { color: var(--text); }
.content-card h2 a:hover, .content-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.content-card .text-link { color: var(--accent-dark); font-weight: 700; padding-top: 1.2rem; margin-top: auto; }
.category-links, .recipe-facts { display: flex; flex-wrap: wrap; gap: 1rem; }
.category-links a, .recipe-facts > span, .recipe-facts > a { border: 1px solid var(--outline); border-radius: 30px; padding: .6rem 1rem; background: white; font-size: .9rem; }
.category-links a { color: var(--accent-dark); }
.recipe-facts { max-width: 800px; margin-bottom: 2rem; }
.prose .recipe-panel { padding: 1.5rem 2rem; background: white; border: 1px solid var(--outline); border-radius: var(--radius); scroll-margin-top: 6rem; }
.recipe-panel > h2 { margin-top: 0; }
.recipe-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.recipe-controls[hidden], [data-print][hidden] { display: none; }
.recipe-controls input { width: 90px; }
.portion-status { flex-basis: 100%; font-size: .9rem; }
.portion-note { color: var(--muted); font-size: .9rem; }
.ingredient-list { padding-left: 1.2rem; }
.recipe-lead-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.recipe-lead-grid h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.recipe-lead-grid .btn { margin-top: .5rem; }
.recipe-figure { margin: 0; width: 100%; min-width: 0; }
.recipe-figure img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface-alt); }
.recipe-figure figcaption { font-size: .75rem; color: var(--muted); padding: .65rem 0; line-height: 1.5; }
.recipe-thumbnail { margin-bottom: .9rem; }
.recipe-thumbnail img { border-radius: var(--radius-sm); }
.recipe-thumbnail figcaption { font-size: .7rem; }
.ad-slot[data-ad-pending] { display: none; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 4px; }
@media (max-width: 820px) {
  .reading-layout { grid-template-columns: 1fr; gap: 1rem; }
  .recipe-lead-grid { grid-template-columns: 1fr; }
  .recipe-lead-grid .recipe-figure { max-width: 560px; margin-inline: auto; }
  .reading-layout > aside { position: static; }
  .reading-hero { padding-top: 2rem; }
  .prose .recipe-panel { padding: 1.1rem; }
}
@media print {
  body { background: white !important; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .breadcrumbs, .reading-layout > aside, .analytics-consent,
  .analytics-settings, [data-print], .recipe-controls, .category-links, .ad-slot, .recipe-figure { display: none !important; }
  .container, .reading-width { width: 100%; max-width: none; padding: 0; }
  .reading-layout { display: block; }
  .recipe-lead-grid { display: block; }
  .reading-hero { background: none; padding: 0; }
  .reading-hero h1 { max-width: none; font-size: 24pt; }
  .prose { font-size: 11pt; line-height: 1.5; }
  .prose h2 { break-after: avoid; margin-top: 1.5rem; font-size: 17pt; }
  .card, .recipe-panel, .answer-box { box-shadow: none; }
  .table-scroll { overflow: visible; }
  a { color: inherit !important; }
}

.analytics-consent {
  position: fixed;
  z-index: 50;
  inset: auto 1rem 1rem auto;
  width: min(480px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.4rem;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { font-size: 1.4rem; }
.analytics-consent p { color: var(--muted); font-size: 0.95rem; }
.analytics-consent a { text-decoration: underline; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.analytics-consent-actions .btn { flex: 1 1 170px; font: inherit; }
.analytics-settings {
  display: block;
  margin-top: 0.75rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.analytics-consent :focus-visible,
.analytics-settings:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, #fef6da 0%, transparent 35%),
    radial-gradient(circle at 90% 10%, #d8f4eb 0%, transparent 40%), var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2.2rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(246, 245, 241, 0.82);
  border-bottom: 1px solid rgba(28, 34, 43, 0.06);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, var(--accent), #69ba96);
  color: #fff;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a {
  font-weight: 650;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(28, 34, 43, 0.08);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 10px;
  width: 42px;
  height: 42px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  padding: 0.82rem 1.15rem;
  font-weight: 750;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  box-shadow: 0 10px 24px rgba(31, 143, 114, 0.3);
}

.btn-secondary {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--outline);
}

.hero {
  padding: 5.2rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
}

h3 {
  font-size: 1.22rem;
}

.hero p {
  max-width: 56ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, #f6fcfa);
  border: 1px solid rgba(31, 143, 114, 0.18);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto 1.2rem -1.2rem;
  height: 52%;
  z-index: -1;
  filter: blur(20px);
  background: rgba(31, 143, 114, 0.22);
}

.kpi-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.kpi {
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  background: #fff;
  border: 1px solid var(--outline);
}

.kpi strong {
  display: block;
  font-size: 1.25rem;
}

section {
  padding: 3.8rem 0;
}

.section-head {
  max-width: 72ch;
  margin-bottom: 1.8rem;
}

.section-head p {
  color: var(--muted);
}

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

.card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tagline {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.ad-slot {
  border: 1px dashed #9bcbbd;
  background: linear-gradient(180deg, #f2fcf8, #ffffff);
  border-radius: var(--radius);
  padding: 1rem;
}

.adsense-placeholder {
  width: 100%;
  min-height: 140px;
  border-radius: 12px;
  border: 1px solid #cde6dc;
  background: repeating-linear-gradient(
    135deg,
    #f6fffb 0,
    #f6fffb 14px,
    #edf9f4 14px,
    #edf9f4 28px
  );
}

.ad-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e7f8f1;
  color: #0f6e56;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.affiliate-list {
  padding: 0;
  list-style: none;
  margin: 0.75rem 0 0;
}

.affiliate-list li + li {
  margin-top: 0.55rem;
}

.affiliate-list a {
  color: var(--accent-dark);
  text-decoration: underline;
  font-weight: 650;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.recipe-meta span {
  display: inline-block;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.recipe-card h4 {
  margin: 0.8rem 0 0.4rem;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.recipe-card ul,
.recipe-card ol {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
}

.recipe-card li + li {
  margin-top: 0.28rem;
}

.notice {
  border-left: 4px solid var(--accent);
  background: #edf9f4;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: #1b4f41;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1rem;
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

blockquote {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  background: #fff;
  padding: 1rem 1.1rem;
}

blockquote p {
  margin: 0 0 0.8rem;
}

blockquote cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.list {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.list li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--outline);
}

.topic-links a {
  color: var(--accent-dark);
  text-decoration: underline;
  font-weight: 700;
}

.faq details {
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem 1rem;
}

.faq details + details {
  margin-top: 0.75rem;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  color: var(--muted);
}

.cta-band {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(130deg, #143126, #1f8f72);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cta-band p {
  margin: 0;
  color: #d6f6ec;
}

.cta-band .btn-secondary {
  background: #fff;
  border: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.42rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 0.74rem 0.82rem;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(28, 34, 43, 0.12);
  background: #f2f0e9;
}

.footer-grid {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1rem;
}

.footer-grid p,
.footer-grid li {
  color: var(--muted);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(28, 34, 43, 0.1);
  padding: 0.8rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
}

#bmiResult { display: block; font-weight: 700; color: var(--accent-dark); }
section[id], article[id] { scroll-margin-top: 6rem; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-split {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.45rem);
    background: #fff;
    border: 1px solid var(--outline);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    text-align: center;
  }

  .grid-3,
  .steps,
  .quote-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
  }
}
