/* ==========================================================
   Eat Healthy Daily — design system
   ========================================================== */
:root {
  --ehd-ink: #14201a;
  --ehd-ink-2: #2a3a31;
  --ehd-mute: #5d6d63;
  --ehd-paper: #f6f3ec;
  --ehd-card: #ffffff;
  --ehd-line: #e3ded2;
  --ehd-lime: #c6f36b;
  --ehd-leaf: #2f8f5b;
  --ehd-tomato: #ef5b3c;
  --ehd-radius: 22px;
  --ehd-shadow: 0 18px 40px -22px rgba(20, 32, 26, .35);
  --ehd-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ehd-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ehd-sans);
  color: var(--ehd-ink);
  background: var(--ehd-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ehd-serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ehd-tomato); outline-offset: 3px; border-radius: 6px; }

.ehd-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.ehd-section { padding: 72px 0; }
.ehd-kicker {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--ehd-lime); color: var(--ehd-ink);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.ehd-lead { font-size: 1.15rem; color: var(--ehd-mute); max-width: 60ch; }
.ehd-section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.ehd-section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }

/* ---------- buttons ---------- */
.ehd-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700; transition: transform .2s, background .2s, color .2s;
}
.ehd-btn:hover { transform: translateY(-2px); }
.ehd-btn--lime { background: var(--ehd-lime); color: var(--ehd-ink); }
.ehd-btn--dark { background: var(--ehd-ink); color: #fff; }
.ehd-btn--ghost { border-color: currentColor; background: transparent; }

/* ---------- top bar ---------- */
.ehd-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ehd-line);
}
.ehd-topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.ehd-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ehd-serif); font-size: 1.3rem; }
.ehd-brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--ehd-ink); color: var(--ehd-lime); font-weight: 700;
}
.ehd-brand b { color: var(--ehd-leaf); }
.ehd-brand--light { color: #fff; }
.ehd-brand--light .ehd-brand__mark { background: var(--ehd-lime); color: var(--ehd-ink); }
.ehd-brand--light b { color: var(--ehd-lime); }
.ehd-nav { display: flex; gap: 6px; }
.ehd-nav__link { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ehd-ink-2); transition: background .2s; }
.ehd-nav__link:hover { background: var(--ehd-line); }
.ehd-nav__link.is-active { background: var(--ehd-ink); color: #fff; }
.ehd-burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.ehd-burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ehd-ink); transition: transform .25s; }
.ehd-burger span:first-child { top: 16px; }
.ehd-burger span:last-child { top: 26px; }
.ehd-burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.ehd-burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- home hero ---------- */
.ehd-hero { padding: 64px 0 40px; }
.ehd-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ehd-hero__title { font-size: clamp(2.6rem, 6.5vw, 4.8rem); margin: 18px 0 20px; }
.ehd-hero__title em { font-style: normal; background: linear-gradient(transparent 62%, var(--ehd-lime) 62%); }
.ehd-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ehd-hero__stats { display: flex; gap: 36px; margin-top: 40px; }
.ehd-stat strong { display: block; font-family: var(--ehd-serif); font-size: 2rem; }
.ehd-stat span { color: var(--ehd-mute); font-size: .9rem; }
.ehd-hero__plate {
  position: relative; aspect-ratio: 1; border-radius: 50% 50% 50% 14%;
  background: radial-gradient(circle at 30% 25%, #e8ffb0, var(--ehd-lime) 45%, #8fd14a);
  display: grid; place-items: center; font-size: clamp(7rem, 18vw, 12rem);
  box-shadow: var(--ehd-shadow);
}
.ehd-float {
  position: absolute; padding: 10px 16px; border-radius: 14px; background: #fff;
  box-shadow: var(--ehd-shadow); font-size: .85rem; font-weight: 700; font-family: var(--ehd-sans);
}
.ehd-float--a { top: 8%; left: -6%; }
.ehd-float--b { bottom: 10%; right: -4%; }

/* ---------- category chips ---------- */
.ehd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ehd-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
  background: var(--ehd-card); border: 1px solid var(--ehd-line); font: inherit; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.ehd-chip:hover, .ehd-chip.is-on { background: var(--ehd-ink); color: #fff; border-color: var(--ehd-ink); }

/* ---------- recipe cards ---------- */
.ehd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.ehd-card {
  display: flex; flex-direction: column; background: var(--ehd-card); border-radius: var(--ehd-radius);
  overflow: hidden; border: 1px solid var(--ehd-line); transition: transform .25s, box-shadow .25s;
}
.ehd-card:hover { transform: translateY(-6px); box-shadow: var(--ehd-shadow); }
.ehd-card[hidden] { display: none; }
.ehd-card__art {
  display: grid; place-items: center; height: 170px; font-size: 4.2rem;
  background: linear-gradient(140deg, var(--tile), color-mix(in srgb, var(--tile) 45%, #fff));
}
.ehd-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ehd-card__title { font-size: 1.3rem; margin: 10px 0 8px; }
.ehd-card__desc { color: var(--ehd-mute); font-size: .95rem; flex: 1; }
.ehd-card__meta { display: flex; gap: 16px; font-size: .85rem; font-weight: 600; color: var(--ehd-ink-2); }
.ehd-tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ehd-leaf); }

/* ---------- bento ---------- */
.ehd-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ehd-tile { padding: 32px; border-radius: var(--ehd-radius); background: var(--ehd-card); border: 1px solid var(--ehd-line); }
.ehd-tile--dark { background: var(--ehd-ink); color: #fff; grid-column: span 2; }
.ehd-tile--lime { background: var(--ehd-lime); }
.ehd-tile__icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.ehd-tile h3 { font-size: 1.4rem; }
.ehd-tile p { margin: 0; color: inherit; opacity: .8; }

/* ---------- page heads and prose ---------- */
.ehd-pagehead { padding: 64px 0 32px; border-bottom: 1px solid var(--ehd-line); background: linear-gradient(180deg, #efeadc, var(--ehd-paper)); }
.ehd-pagehead__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 16px 0 10px; }
.ehd-prose { max-width: 780px; }
.ehd-prose h2 { font-size: 1.6rem; margin-top: 2em; }
.ehd-prose p, .ehd-prose li { color: var(--ehd-ink-2); }
.ehd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ---------- forms ---------- */
.ehd-form { display: grid; gap: 16px; padding: 32px; background: var(--ehd-card); border-radius: var(--ehd-radius); border: 1px solid var(--ehd-line); }
.ehd-field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.ehd-field input, .ehd-field textarea, .ehd-field select {
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--ehd-line); background: var(--ehd-paper); font: inherit; color: inherit;
}
.ehd-field textarea { min-height: 140px; resize: vertical; }

/* ---------- recipe detail ---------- */
.ehd-recipe__hero { display: grid; place-items: center; height: 260px; border-radius: var(--ehd-radius); font-size: 7rem; background: linear-gradient(140deg, var(--tile), color-mix(in srgb, var(--tile) 40%, #fff)); }
.ehd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.ehd-fact { padding: 16px; border-radius: 16px; background: var(--ehd-card); border: 1px solid var(--ehd-line); text-align: center; }
.ehd-fact strong { display: block; font-family: var(--ehd-serif); font-size: 1.3rem; }
.ehd-fact span { font-size: .8rem; color: var(--ehd-mute); }
.ehd-recipe__cols { display: grid; grid-template-columns: 340px 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.ehd-panel { padding: 28px; border-radius: var(--ehd-radius); background: var(--ehd-card); border: 1px solid var(--ehd-line); }
.ehd-checklist { list-style: none; margin: 0; padding: 0; }
.ehd-checklist li { padding: 10px 0; border-bottom: 1px dashed var(--ehd-line); }
.ehd-checklist label { display: flex; gap: 10px; cursor: pointer; }
.ehd-checklist input:checked + span { text-decoration: line-through; opacity: .5; }
.ehd-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.ehd-steps li { counter-increment: step; position: relative; padding: 0 0 24px 56px; }
.ehd-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ehd-ink); color: var(--ehd-lime); font-weight: 700;
}
.ehd-note { margin-top: 32px; padding: 18px 22px; border-radius: 16px; background: #fff4e0; font-size: .9rem; }

/* ---------- secret guest page ---------- */
.ehd-guest { background: #0f1713; color: #f4efe3; min-height: 100vh; }
.ehd-guest__hero { padding: 90px 0 60px; text-align: center; background: radial-gradient(ellipse at top, #24402f, transparent 70%); }
.ehd-guest__title { font-size: clamp(2.4rem, 7vw, 5rem); margin: 20px 0; }
.ehd-guest__title em { color: var(--ehd-lime); font-style: italic; }
.ehd-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ehd-menu__item { padding: 28px; border-radius: var(--ehd-radius); border: 1px solid #2c3d33; background: #16221b; }
.ehd-menu__item small { color: var(--ehd-lime); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.ehd-menu__item p { color: #b8c4ba; margin: 0; }
.ehd-guest .ehd-form { background: #16221b; border-color: #2c3d33; }
.ehd-guest .ehd-field input, .ehd-guest .ehd-field select, .ehd-guest .ehd-field textarea { background: #0f1713; border-color: #2c3d33; }
.ehd-guest .ehd-lead { color: #b8c4ba; margin-inline: auto; }

/* ---------- footer ---------- */
.ehd-footer { background: var(--ehd-ink); color: #cbd6cd; padding: 64px 0 0; margin-top: 40px; }
.ehd-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.ehd-footer h4 { color: #fff; font-family: var(--ehd-sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.ehd-footer a:not(.ehd-brand) { display: block; padding: 4px 0; opacity: .85; }
.ehd-footer a:not(.ehd-brand):hover { color: var(--ehd-lime); opacity: 1; }
.ehd-footer__about { margin-top: 14px; max-width: 32ch; font-size: .95rem; }
.ehd-footer__legal { margin-top: 48px; padding: 22px 0; border-top: 1px solid #2c3d33; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ehd-hero__grid, .ehd-split, .ehd-recipe__cols { grid-template-columns: 1fr; }
  .ehd-hero__plate { max-width: 380px; margin-inline: auto; }
  .ehd-bento { grid-template-columns: 1fr; }
  .ehd-tile--dark { grid-column: auto; }
  .ehd-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ehd-burger { display: block; }
  .ehd-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; padding: 14px 20px 22px;
    background: var(--ehd-paper); border-bottom: 1px solid var(--ehd-line); display: none;
  }
  .ehd-nav.is-open { display: flex; }
  .ehd-hero__stats { gap: 22px; }
  .ehd-section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .ehd-topbar, .ehd-footer, .ehd-burger { display: none; } }
