:root {
  --ink: #153f3a;
  --ink-2: #285550;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --paper-2: #efe7d8;
  --coral: #e9684a;
  --coral-dark: #b94631;
  --gold: #f0bd50;
  --gold-soft: #f9e7b6;
  --green: #74a96b;
  --green-soft: #dcebd7;
  --berry: #a85b78;
  --berry-soft: #efdbe2;
  --blue: #5e8fa3;
  --blue-soft: #d9e9ee;
  --line: #dcd2c1;
  --muted: #66726e;
  --shadow: 0 22px 50px rgba(27, 57, 50, 0.10);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--paper);
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 1px solid rgba(21, 63, 58, 0.12);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1280px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50% 50% 46% 46%;
  background: var(--coral);
  color: var(--paper);
}
.brand-mark::after {
  content: "";
  width: 4px;
  height: 14px;
  position: absolute;
  right: 2px;
  top: -7px;
  border-radius: 8px;
  background: var(--ink);
  transform: rotate(24deg);
}
.brand-mark span { transform: translateY(-1px); }
.brand-mark.small { width: 30px; height: 30px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.main-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
}
.main-nav a:hover { color: var(--coral-dark); }
.family-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.family-badge span { color: var(--coral-dark); font-size: 16px; }

.hero {
  max-width: 1280px;
  min-height: 660px;
  margin: 0 auto;
  padding: 78px 28px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 64px;
  overflow: hidden;
}
.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--coral-dark);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6.3vw, 86px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.048em;
}
.hero h1 em,
.section-heading h2 em { color: var(--coral); font-weight: 400; }
.hero-lead {
  max-width: 620px;
  margin: 30px 0 0;
  font-size: 19px;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--coral-dark); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,0.28); }
.button-secondary:hover { background: var(--paper); }
.button-light { background: var(--paper); color: var(--ink); border: 0; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 570px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.hero-stats span { color: var(--muted); font-size: 12px; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  border-radius: 48% 48% 42% 52%;
  background: var(--gold-soft);
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero-visual::before { width: 38px; height: 38px; left: 10%; top: 15%; background: var(--berry); }
.hero-visual::after { width: 15px; height: 15px; left: 3%; bottom: 27%; background: var(--green); }
.plate {
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  left: 17%;
  top: 18%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(71, 48, 23, 0.17), inset 0 0 0 14px #f4efe6;
  transform: rotate(-7deg);
}
.plate-inner {
  position: relative;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  overflow: hidden;
  background: #df8548;
}
.plate-inner::before {
  content: "";
  position: absolute;
  width: 86%;
  height: 56%;
  left: 6%;
  bottom: -8%;
  border-radius: 50%;
  background: #e5a44e;
  transform: rotate(12deg);
}
.plate-inner::after {
  content: "";
  position: absolute;
  width: 58%;
  height: 34%;
  right: -4%;
  top: 10%;
  border-radius: 50%;
  background: #87ad63;
  transform: rotate(-22deg);
}
.food { position: absolute; z-index: 2; font-size: 54px; line-height: 1; }
.food-one { color: #618e51; left: 12%; top: 14%; }
.food-two { color: #88b36e; left: 2%; top: 38%; font-size: 42px; }
.food-three { color: #d9553d; right: 14%; bottom: 17%; font-size: 46px; }
.food-four { color: #f1d66f; left: 38%; top: 37%; font-size: 38px; }
.food-five { color: #9f5b40; left: 28%; bottom: 8%; font-size: 32px; }
.spoon {
  position: absolute;
  width: 52px;
  height: 160px;
  right: 1%;
  bottom: 10%;
  border-radius: 50% 50% 8px 8px;
  background: var(--blue);
  transform: rotate(27deg);
  box-shadow: inset 0 -85px 0 -18px var(--ink);
}
.spoon::before {
  content: "";
  position: absolute;
  inset: 9px 8px auto;
  height: 55px;
  border-radius: 50%;
  background: var(--blue-soft);
}
.hero-note {
  position: absolute;
  left: -2%;
  bottom: 4%;
  padding: 14px 20px 14px 52px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 13px;
  transform: rotate(-3deg);
}
.hero-note span { position: absolute; left: 18px; top: 17px; color: var(--coral); font-size: 23px; }
.hero-note strong { font-weight: 500; }
.sun-dot { position: absolute; right: 8%; top: -3%; width: 72px; height: 72px; border-radius: 50%; background: var(--coral); }
.leaf { position: absolute; width: 68px; height: 30px; border-radius: 100% 0 100% 0; background: var(--green); }
.leaf-one { right: 1%; top: 14%; transform: rotate(35deg); }
.leaf-two { left: 1%; top: 47%; width: 45px; background: var(--blue); transform: rotate(-22deg); }

.notice {
  max-width: 1224px;
  margin: 0 auto 20px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  color: #543928;
  border: 1px solid #e7c786;
  border-radius: var(--radius-md);
  background: #fbefd2;
}
.notice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d4a34a;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 24px;
}
.notice h2 { margin: 0 0 3px; font-size: 15px; font-weight: 500; }
.notice p { margin: 0; font-size: 13px; }
.notice a { white-space: nowrap; font-size: 13px; text-underline-offset: 4px; }

.histamine-banner {
  max-width: 1224px;
  margin: 18px auto 20px;
  padding: 30px;
  display: grid;
  grid-template-columns: 56px minmax(280px, .85fr) minmax(360px, 1.15fr);
  align-items: start;
  gap: 24px;
  border: 1px solid #b8d1d9;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
}
.histamine-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue);
  font-family: var(--serif);
  font-size: 23px;
}
.histamine-copy .eyebrow { margin-bottom: 10px; color: #3b6f80; }
.histamine-copy h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.04; letter-spacing: -.025em; }
.histamine-copy h2 em { color: var(--coral-dark); font-weight: 400; }
.histamine-copy > p:last-child { margin: 0; color: var(--ink-2); font-size: 12px; }
.histamine-rules { border-top: 1px solid rgba(21,63,58,.18); }
.histamine-rules div { padding: 10px 0; display: grid; grid-template-columns: 28px 1fr; gap: 10px; border-bottom: 1px solid rgba(21,63,58,.18); }
.histamine-rules strong { color: #3b6f80; font-family: var(--serif); font-size: 12px; font-weight: 400; }
.histamine-rules span { color: var(--ink-2); font-size: 11px; }
.histamine-caveat { grid-column: 2 / -1; margin: 0; padding-top: 14px; color: var(--ink-2); border-top: 1px solid rgba(21,63,58,.18); font-size: 11px; }

.section { max-width: 1280px; margin: 0 auto; padding: 100px 28px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.6fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 48px;
}
.section-heading h2 { font-size: clamp(44px, 5.2vw, 70px); }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 15px; }

.recipe-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.meal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 9px 14px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.filter-btn:hover { background: var(--paper); }
.filter-btn.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.instant-filter { color: var(--coral-dark); border-color: #e2aa78; background: #fbefd2; }
.instant-filter.is-active { color: var(--paper); background: var(--coral-dark); border-color: var(--coral-dark); }
.histamine-filter { color: #356879; border-color: #a9c8d2; background: var(--blue-soft); }
.histamine-filter.is-active { color: var(--paper); background: #356879; border-color: #356879; }
.search-box {
  min-width: 310px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.search-box svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #89908d; }
.results-row {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.results-row p { margin: 0; color: var(--ink); font-size: 13px; }
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.recipe-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.recipe-card::before {
  content: "";
  width: 110px;
  height: 110px;
  position: absolute;
  right: -32px;
  top: -35px;
  border-radius: 50%;
  opacity: .72;
}
.recipe-card[data-color="sun"]::before { background: var(--gold-soft); }
.recipe-card[data-color="pear"]::before { background: var(--green-soft); }
.recipe-card[data-color="tomato"]::before { background: #f6d4ca; }
.recipe-card[data-color="berry"]::before { background: var(--berry-soft); }
.recipe-card[data-color="night"]::before { background: var(--blue-soft); }
.recipe-card:hover,
.recipe-card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(21,63,58,.28); }
.recipe-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; position: relative; }
.recipe-meal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.recipe-number { color: rgba(21,63,58,.25); font-family: var(--serif); font-size: 34px; line-height: 1; }
.recipe-card h3 { margin: 30px 0 14px; max-width: 90%; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.06; letter-spacing: -.025em; }
.recipe-summary { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.recipe-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill { padding: 6px 9px; border-radius: 999px; background: var(--cream); color: var(--ink-2); font-size: 11px; }
.meta-pill.histamine-pill.is-lower { background: var(--green-soft); color: #315f39; }
.meta-pill.histamine-pill.is-watch { background: var(--gold-soft); color: #76551b; }
.recipe-open {
  width: 100%;
  margin-top: 18px;
  padding: 11px 0 0;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.recipe-open span:last-child { color: var(--coral-dark); }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-md); }
.empty-state span { font-size: 36px; }
.empty-state h3 { margin: 10px 0 4px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.empty-state p { margin: 0; color: var(--muted); }

.planner-section { color: var(--paper); background: var(--ink); }
.planner-inner { padding-top: 100px; padding-bottom: 95px; }
.planner-heading { margin-bottom: 42px; }
.planner-heading h2 em { color: var(--gold); }
.planner-heading > p { color: rgba(255,253,248,.7); }
.eyebrow.light { color: var(--gold); }
.planner-histamine-note {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: -18px 0 30px;
  padding: 15px 18px;
  border: 1px solid rgba(188,217,181,.35);
  border-radius: 16px;
  background: rgba(188,217,181,.09);
}
.planner-histamine-note strong { display: flex; align-items: center; gap: 9px; white-space: nowrap; color: #d9efcf; font-size: 13px; font-weight: 600; }
.planner-histamine-note strong span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: #bcd9b5; font-family: var(--serif); }
.planner-histamine-note p { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.55; }
.batch-map {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 115px;
  gap: 12px;
  margin-bottom: 44px;
}
.batch-label,
.batch-block,
.batch-sunday {
  min-height: 82px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
}
.batch-label { display: grid; place-items: center; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.3; text-transform: uppercase; letter-spacing: .07em; }
.batch-block { padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; }
.batch-block strong { grid-column: 1 / -1; color: var(--gold); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.batch-block span { font-size: 12px; }
.batch-block i { height: 1px; background: rgba(255,255,255,.25); }
.batch-b strong { color: #bcd9b5; }
.batch-sunday { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 12px; }
.batch-sunday strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); }
.batch-sunday span { color: rgba(255,255,255,.66); font-size: 10px; line-height: 1.2; }
.day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.day-tab {
  min-height: 62px;
  padding: 10px;
  color: rgba(255,255,255,.56);
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.day-tab span { display: block; margin-top: 2px; font-size: 10px; opacity: .76; }
.day-tab:hover { color: var(--paper); }
.day-tab.is-active { color: var(--paper); border-bottom-color: var(--gold); }
.day-plan { padding: 34px 0 10px; }
.day-plan-header { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; }
.day-plan-header h3 { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 400; }
.day-plan-header span { color: var(--gold); font-size: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.plan-meal { min-width: 0; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; }
.plan-meal-label { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.65); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.plan-option {
  width: 100%;
  min-height: 67px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  text-align: left;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.25;
}
.plan-option:first-of-type { border-top: 0; }
.plan-option:hover { color: var(--gold); }
.option-letter { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.11); color: var(--gold); font-family: var(--serif); }
.plan-option-text { min-width: 0; }
.plan-option-text small { display: block; margin-top: 3px; color: rgba(255,255,255,.48); font-size: 9px; }
.planner-footer { margin-top: 26px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.planner-footer p { margin: 0; max-width: 750px; color: rgba(255,255,255,.62); font-size: 12px; }
.planner-footer p strong { color: var(--paper); font-weight: 500; }

.safety-section { padding-bottom: 80px; }
.safety-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.safety-card { min-height: 380px; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-md); }
.safety-card.accent-green { background: var(--green-soft); }
.safety-card.accent-coral { background: #f5d9cf; }
.safety-card.accent-gold { background: var(--gold-soft); }
.safety-card.accent-blue { background: var(--blue-soft); }
.safety-number { color: rgba(21,63,58,.45); font-family: var(--serif); font-size: 14px; }
.safety-card h3 { margin: 70px 0 14px; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.05; }
.safety-card p { margin: 0; color: var(--ink-2); font-size: 13px; }
.micro-tip { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(21,63,58,.18); font-size: 11px; }
.portion-panel {
  margin-top: 18px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
  border-radius: var(--radius-lg);
  color: var(--paper);
  background: var(--coral);
}
.portion-panel .eyebrow { color: #ffe9c6; }
.portion-panel h3 { margin: 0 0 14px; max-width: 580px; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 400; line-height: 1.05; }
.portion-panel > div:first-child > p:last-child { margin: 0; max-width: 650px; color: rgba(255,255,255,.8); font-size: 13px; }
.portion-visual { min-height: 180px; position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; }
.mini-bowl, .medium-bowl { position: relative; border-radius: 0 0 50% 50%; background: var(--paper); box-shadow: inset 0 -8px 0 #eadfce; }
.mini-bowl { width: 78px; height: 42px; }
.medium-bowl { width: 120px; height: 66px; }
.mini-bowl::before, .medium-bowl::before { content: ""; position: absolute; height: 14px; top: -7px; border-radius: 50%; background: var(--gold); border: 4px solid var(--paper); }
.mini-bowl::before { left: 0; width: 70px; }
.medium-bowl::before { left: 0; width: 112px; }
.portion-arrow { color: #ffe9c6; }
.portion-visual p { position: absolute; right: 0; bottom: -2px; margin: 0; text-align: right; font-size: 10px; color: rgba(255,255,255,.72); }
.portion-visual strong { color: var(--paper); font-weight: 500; }
.sources { margin-top: 74px; padding-top: 54px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; border-top: 1px solid var(--line); }
.sources h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.sources > div:first-child > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.source-list { border-top: 1px solid var(--line); }
.source-link { padding: 13px 0; display: grid; grid-template-columns: minmax(170px,.65fr) 1fr auto; gap: 20px; align-items: center; text-decoration: none; border-bottom: 1px solid var(--line); }
.source-link strong { font-size: 12px; font-weight: 500; }
.source-link span { color: var(--muted); font-size: 11px; }
.source-link i { font-style: normal; color: var(--coral-dark); }
.source-link:hover strong { color: var(--coral-dark); }

.site-footer {
  min-height: 160px;
  padding: 42px max(28px, calc((100vw - 1224px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 60px;
  color: rgba(255,255,255,.68);
  background: #102f2c;
  font-size: 11px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.footer-brand span { color: rgba(255,255,255,.5); font-size: 9px; }
.site-footer p { max-width: 580px; margin: 0; }
.site-footer > a { color: var(--paper); text-underline-offset: 4px; }

.recipe-dialog {
  width: min(820px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  border: 0;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0,0,0,.32);
}
.recipe-dialog::backdrop { background: rgba(10,35,31,.72); backdrop-filter: blur(5px); }
.dialog-close {
  width: 40px;
  height: 40px;
  position: sticky;
  top: 14px;
  float: right;
  z-index: 2;
  margin: 14px 14px -54px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.dialog-hero { padding: 44px 54px 34px; background: var(--green-soft); }
.dialog-hero[data-color="sun"] { background: var(--gold-soft); }
.dialog-hero[data-color="pear"] { background: var(--green-soft); }
.dialog-hero[data-color="tomato"] { background: #f5d9cf; }
.dialog-hero[data-color="berry"] { background: var(--berry-soft); }
.dialog-hero[data-color="night"] { background: var(--blue-soft); }
.dialog-kicker { margin: 0 0 16px; color: var(--coral-dark); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.dialog-hero h2 { max-width: 650px; margin: 0; font-family: var(--serif); font-size: clamp(36px, 6vw, 56px); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.dialog-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-meta span { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.58); font-size: 11px; }
.dialog-body { padding: 36px 54px 48px; }
.dialog-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.dialog-section h3 { margin: 0 0 16px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.ingredient-list { margin: 0; padding: 0; list-style: none; }
.ingredient-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps-list li { position: relative; min-height: 44px; padding: 0 0 18px 42px; counter-increment: steps; font-size: 13px; }
.steps-list li::before { content: counter(steps); width: 27px; height: 27px; position: absolute; left: 0; top: -3px; display: grid; place-items: center; color: var(--paper); border-radius: 50%; background: var(--ink); font-family: var(--serif); }
.dialog-mods { margin-top: 32px; padding: 22px; border-radius: 16px; background: var(--cream); }
.dialog-mods h3 { margin: 0 0 12px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.dialog-mods ul { margin: 0; padding-left: 18px; }
.dialog-mods li { margin-top: 7px; font-size: 12px; }
.dialog-note { margin: 14px 0 0; padding: 14px 18px; border-left: 3px solid var(--coral); background: #fbefd2; color: #5d4333; font-size: 11px; }
.dialog-histamine { margin-top: 14px; padding: 20px; display: grid; grid-template-columns: 38px 1fr; gap: 14px; border-radius: 16px; }
.dialog-histamine.is-lower { background: var(--green-soft); }
.dialog-histamine.is-watch { background: var(--gold-soft); }
.dialog-histamine-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--ink); font-family: var(--serif); }
.dialog-histamine h3 { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.dialog-histamine p { margin: 0; color: var(--ink-2); font-size: 11px; }
.dialog-histamine ul { margin: 10px 0 0; padding-left: 18px; }
.dialog-histamine li { margin-top: 6px; color: var(--ink-2); font-size: 11px; }
.dialog-histamine .histamine-storage { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(21,63,58,.18); }
.dialog-histamine .histamine-disclaimer { margin-top: 7px; color: var(--muted); font-size: 10px; }
.dialog-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.dialog-tags span { padding: 5px 8px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: 10px; }
.age-context { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .family-badge { margin-left: auto; }
  .hero { grid-template-columns: 1.05fr .8fr; gap: 30px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plan-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .safety-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .safety-card { min-height: 320px; }
  .batch-map { grid-template-columns: 100px 1fr 1fr; }
  .batch-sunday { grid-column: 1 / -1; min-height: 52px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .header-inner { min-height: 66px; padding: 0 16px; }
  .brand { font-size: 21px; }
  .family-badge { padding: 7px 10px; font-size: 11px; }
  .hero { min-height: auto; padding: 54px 18px 70px; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(48px, 14vw, 68px); }
  .hero-lead { margin-top: 22px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-stats { margin-top: 34px; gap: 8px; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats span { font-size: 10px; }
  .hero-visual { max-width: 420px; }
  .notice { margin: 0 16px; padding: 18px; grid-template-columns: auto 1fr; }
  .notice a { grid-column: 2; }
  .histamine-banner { margin: 16px; padding: 22px; grid-template-columns: 42px 1fr; gap: 16px; }
  .histamine-mark { width: 40px; height: 40px; }
  .histamine-copy h2 { font-size: 27px; }
  .histamine-rules { grid-column: 1 / -1; }
  .histamine-caveat { grid-column: 1 / -1; }
  .section { padding: 78px 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .section-heading h2 { font-size: clamp(42px, 12vw, 60px); }
  .recipe-toolbar { align-items: stretch; flex-direction: column; }
  .meal-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .filter-btn { flex: 0 0 auto; }
  .search-box { min-width: 0; width: 100%; }
  .results-row span { display: none; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card { min-height: 280px; }
  .batch-map { grid-template-columns: 1fr; }
  .planner-histamine-note { align-items: flex-start; flex-direction: column; gap: 10px; }
  .batch-label { display: none; }
  .batch-sunday { grid-column: auto; }
  .day-tabs { overflow-x: auto; grid-template-columns: repeat(7, 90px); }
  .plan-grid { grid-template-columns: 1fr; }
  .day-plan-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .plan-meal { padding: 13px 16px; }
  .plan-option { min-height: 54px; }
  .planner-footer { align-items: stretch; flex-direction: column; }
  .planner-footer .button { width: 100%; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-card { min-height: 310px; }
  .portion-panel { padding: 28px 22px; grid-template-columns: 1fr; gap: 24px; }
  .portion-visual { min-height: 130px; }
  .sources { margin-top: 54px; padding-top: 42px; grid-template-columns: 1fr; gap: 30px; }
  .source-link { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .source-link span { grid-column: 1 / -1; }
  .site-footer { padding: 38px 18px; grid-template-columns: 1fr; gap: 24px; }
  .dialog-hero { padding: 38px 24px 28px; }
  .dialog-body { padding: 28px 24px 36px; }
  .dialog-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 410px) {
  .brand > span:last-child { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:last-child { display: none; }
  .hero-note { left: 3%; }
  .food { font-size: 40px; }
  .recipe-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  body { color: #000; background: #fff; }
  .site-header, .hero, .notice, .histamine-banner, #receptek, #biztonsag, .site-footer, .batch-map, .day-tabs, .planner-footer, .dialog-close { display: none !important; }
  .planner-section { color: #000; background: #fff; }
  .planner-inner { max-width: none; padding: 0; }
  .planner-heading { display: block; margin-bottom: 20px; }
  .planner-heading h2 { font-size: 34px; }
  .planner-heading > p { color: #333; }
  .day-plan { padding: 0; }
  .plan-grid { grid-template-columns: repeat(5, 1fr); }
  .plan-meal { border-color: #aaa; break-inside: avoid; }
  .plan-meal-label, .plan-option, .plan-option-text small { color: #000; }
  .plan-option { border-color: #ccc; }
  .option-letter { color: #000; background: #eee; }
}
