:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --surface-soft: #f6f0e6;
  --text: #1f2b23;
  --muted: #687168;
  --line: #e8e2d8;
  --accent: #db6b3d;
  --accent-dark: #b84d25;
  --green: #315c47;
  --green-soft: #dce9df;
  --shadow: 0 20px 60px rgba(36, 42, 34, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

body.dark {
  --bg: #141915;
  --surface: #1d251f;
  --surface-soft: #273029;
  --text: #f7f3e9;
  --muted: #b6beb7;
  --line: #354038;
  --accent: #ef8a5f;
  --accent-dark: #ff9b70;
  --green: #a8d5b6;
  --green-soft: #24392d;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.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;
}

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

.eyebrow.light {
  color: #f7d8c8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--accent);
  font-weight: 600;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(219, 107, 61, 0.25);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(219, 107, 61, 0.32);
}

.btn-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.9rem;
}

.btn-light {
  color: var(--green);
  background: #fff;
  box-shadow: none;
}

.btn-light:hover {
  color: #fff;
  background: var(--accent);
}

.text-link,
.recipe-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.text-link span,
.recipe-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span,
.recipe-link:hover span {
  transform: translateX(4px);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  border-color: var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50% 50% 50% 16%;
  color: #fff;
  background: var(--accent);
  transform: rotate(-7deg);
}

.brand-mark + span {
  letter-spacing: -0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.icon-btn {
  font-size: 1.2rem;
}

.menu-toggle {
  display: none;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 10%;
  left: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--green-soft);
  content: "";
  filter: blur(1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 80px;
}

.hero-copy > p {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-stats {
  display: flex;
  margin-top: 56px;
  gap: 44px;
}

.hero-stats div {
  display: grid;
}

.hero-stats strong {
  color: var(--green);
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-media {
  position: relative;
  min-height: 650px;
}

.hero-image-wrap {
  position: absolute;
  inset: 0 0 0 40px;
  overflow: hidden;
  border-radius: 180px 180px 34px 34px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-image-wrap img {
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: 38px;
  width: min(340px, 80%);
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.floating-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rating {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.floating-card h2 {
  margin-bottom: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.floating-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.ingredient-note {
  position: absolute;
  z-index: 2;
  top: 62px;
  left: 0;
  width: 142px;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: var(--green);
  box-shadow: var(--shadow);
}

.ingredient-note span {
  display: block;
  margin-bottom: 4px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
}

.ingredient-note p {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.category-strip {
  padding: 82px 0;
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
  gap: 30px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover,
.category-pill.active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
  transform: translateY(-2px);
}

.recipe-tools {
  display: flex;
  gap: 12px;
}

.inline-search {
  position: relative;
}

.inline-search input,
.recipe-tools select,
.overlay-search-box input,
.newsletter-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-search input {
  width: 230px;
  padding: 0 44px 0 16px;
  border-radius: 999px;
}

.inline-search span {
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--muted);
  transform: translateY(-50%);
}

.recipe-tools select {
  padding: 0 42px 0 16px;
  border-radius: 999px;
  cursor: pointer;
}

.inline-search input:focus,
.recipe-tools select:focus,
.overlay-search-box input:focus,
.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.recipe-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.recipe-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.recipe-card.hidden {
  display: none;
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.2 / 1;
  background: var(--surface-soft);
}

.card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.recipe-card:hover .card-media img {
  transform: scale(1.045);
}

.save-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #1f2b23;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  font-size: 1.25rem;
  cursor: pointer;
}

.save-btn.saved {
  color: #fff;
  background: var(--accent);
}

.card-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 43, 35, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 22px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 14px;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.card-body h3 {
  margin-bottom: 10px;
}

.card-body p {
  min-height: 52px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  padding: 50px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.story-section {
  background: var(--surface-soft);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 90px;
}

.story-collage {
  position: relative;
  min-height: 570px;
}

.story-main {
  position: absolute;
  inset: 0 70px 40px 0;
  height: calc(100% - 40px);
  border-radius: 32px 120px 32px 32px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.story-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 1;
  border: 10px solid var(--surface-soft);
  border-radius: 50%;
  object-fit: cover;
}

.quote-card {
  position: absolute;
  top: 42px;
  right: -10px;
  max-width: 210px;
  padding: 22px;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow);
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
}

.story-copy > p {
  color: var(--muted);
  font-size: 1.03rem;
}

.signature {
  display: flex;
  align-items: center;
  margin-top: 32px;
  gap: 14px;
}

.signature-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.signature div:last-child {
  display: grid;
}

.signature span {
  color: var(--muted);
  font-size: 0.86rem;
}

.newsletter-section {
  padding-bottom: 110px;
}

.newsletter-card {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  padding: 64px;
  gap: 70px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #315c47, #244838);
  overflow: hidden;
}

.newsletter-card h2 {
  margin-bottom: 14px;
}

.newsletter-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.newsletter-form input {
  width: 100%;
  padding: 0 18px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-message {
  grid-column: 1 / -1;
  min-height: 20px;
  font-size: 0.85rem;
}

.site-footer {
  padding: 70px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid p,
.footer-grid a,
.footer-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  gap: 20px;
}

.footer-bottom p,
.footer-bottom a {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

.search-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(20px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay.open {
  visibility: visible;
  opacity: 1;
}

.overlay-close,
.modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  font-size: 2rem;
  cursor: pointer;
}

.search-panel {
  width: min(700px, 100%);
  text-align: center;
}

.search-panel h2 {
  margin-bottom: 28px;
}

.search-panel > p {
  color: var(--muted);
}

.overlay-search-box {
  position: relative;
  display: block;
}

.overlay-search-box input {
  width: 100%;
  min-height: 68px;
  padding: 0 64px 0 24px;
  border-radius: 999px;
  font-size: 1.1rem;
}

.overlay-search-box > span {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--muted);
  transform: translateY(-50%);
}

.modal-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  background: rgba(10, 14, 11, 0.72);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.recipe-modal {
  position: relative;
  width: min(880px, 100%);
  max-height: min(90vh, 900px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.recipe-modal > img {
  height: 320px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-fit: cover;
}

.recipe-modal .modal-close {
  z-index: 2;
  top: 16px;
  right: 16px;
  border: 0;
  color: #1f2b23;
  background: rgba(255, 255, 255, 0.92);
}

.modal-content {
  padding: 36px;
}

.modal-content h2 {
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.modal-content > p {
  color: var(--muted);
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.modal-facts div {
  display: grid;
  text-align: center;
}

.modal-facts strong {
  font-size: 1.1rem;
}

.modal-facts span {
  color: var(--muted);
  font-size: 0.78rem;
}

.modal-content ul,
.modal-content ol {
  color: var(--muted);
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 78px;
    right: 20px;
    left: 20px;
    display: grid;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.2s ease;
  }

  .menu-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav-actions {
    margin-left: 0;
  }

  .hero-grid,
  .story-grid,
  .newsletter-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 60px;
  }

  .hero-media {
    min-height: 590px;
  }

  .hero-image-wrap {
    inset: 0 40px;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-grid {
    gap: 60px;
  }

  .story-copy {
    max-width: 700px;
  }

  .newsletter-card {
    gap: 36px;
  }

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .nav-wrap {
    min-height: 70px;
    gap: 10px;
  }

  .main-nav {
    top: 70px;
  }

  .brand {
    font-size: 1.28rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-actions .btn {
    display: none;
  }

  .search-open {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-stats {
    justify-content: space-between;
    margin-top: 40px;
    gap: 16px;
  }

  .hero-stats strong {
    font-size: 1.35rem;
  }

  .hero-media {
    min-height: 500px;
  }

  .hero-image-wrap {
    inset: 0 0 0 24px;
    border-radius: 110px 110px 26px 26px;
  }

  .ingredient-note {
    top: 28px;
    width: 124px;
    padding: 14px;
  }

  .floating-card {
    right: 10px;
    bottom: 18px;
    width: 82%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .recipe-tools {
    width: 100%;
    flex-direction: column;
  }

  .inline-search,
  .inline-search input,
  .recipe-tools select {
    width: 100%;
  }

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

  .story-collage {
    min-height: 480px;
  }

  .story-main {
    right: 34px;
  }

  .quote-card {
    top: 28px;
    right: 0;
    max-width: 170px;
    padding: 16px;
    font-size: 0.95rem;
  }

  .newsletter-card {
    padding: 38px 24px;
    border-radius: 26px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .recipe-modal > img {
    height: 220px;
  }

  .modal-content {
    padding: 26px 20px;
  }

  .modal-facts {
    gap: 8px;
  }

  .modal-backdrop {
    padding: 10px;
  }
}
