:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --cream: #fffaf3;
  --warm: #fff7ed;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #5f5f5f;
  --line: #fed7aa;
  --navy: #0f172a;
  --shadow: 0 18px 55px rgba(124, 45, 18, .12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 243, .92);
  border-bottom: 1px solid rgba(251, 146, 60, .18);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--orange);
  background: #ffedd5;
  border-radius: 999px;
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(249, 115, 22, .18);
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
  letter-spacing: .04em;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: -2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: #334155;
  font-size: .95rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
}

.main-nav a:hover,
.main-nav .active {
  color: var(--orange-dark);
}

.main-nav .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 2px;
  background: var(--orange);
  border-radius: 999px;
}

.send-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: white;
  font-weight: 800;
  padding: 14px 20px;
  box-shadow: 0 14px 30px rgba(249, 115, 22, .24);
  transition: transform .18s ease, background .18s ease;
}

.send-button:hover,
.primary-button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 115, 22, .38);
  border-radius: 12px;
  color: #9a3412;
  font-weight: 800;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .72);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(249, 115, 22, .28);
  border-radius: 10px;
  background: white;
  padding: 8px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, .95), transparent 35%),
    radial-gradient(circle at 72% 28%, rgba(249, 115, 22, .16), transparent 38%),
    var(--warm);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 54px;
  align-items: center;
  min-height: 680px;
  padding-block: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.newsletter h2,
.about-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #292524;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.9rem);
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: #57534e;
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.hero-features div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(251, 146, 60, .2);
  border-radius: 18px;
}

.hero-features span {
  grid-row: span 2;
  font-size: 27px;
}

.hero-features strong {
  font-size: .95rem;
}

.hero-features small {
  color: var(--muted);
}

.hero-card {
  position: relative;
  margin: 0;
  padding: 16px;
  background: white;
  border: 1px solid rgba(251, 146, 60, .22);
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 30px;
}

.hero-card figcaption {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 42px;
  padding: 20px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
  backdrop-filter: blur(10px);
}

.hero-card small,
.hero-card strong {
  display: block;
}

.hero-card small {
  color: var(--orange-dark);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-card strong {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.section {
  padding-block: 72px;
}

.section-warm {
  background: var(--cream);
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section h2,
.newsletter h2,
.about-card h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.text-link {
  color: var(--orange-dark);
  font-weight: 900;
}

.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

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

.search-box input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(251, 146, 60, .2);
  border-radius: 14px;
  outline: none;
  background: white;
  padding: 0 56px 0 20px;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(124, 45, 18, .06);
}

.search-box input:focus {
  border-color: rgba(249, 115, 22, .55);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, .12);
}

.search-box span:not(.sr-only) {
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 22px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.category-filter > span {
  color: #44403c;
  font-size: .9rem;
  font-weight: 800;
}

.filter-button {
  border: 1px solid rgba(251, 146, 60, .22);
  background: white;
  color: #44403c;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
  transition: .18s ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
  box-shadow: 0 10px 20px rgba(249, 115, 22, .18);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.recipe-card {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(251, 146, 60, .22);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(124, 45, 18, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(124, 45, 18, .14);
}

.recipe-card button {
  width: 100%;
  height: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.recipe-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffedd5;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

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

.recipe-number,
.recipe-tag {
  position: absolute;
  top: 12px;
  z-index: 1;
}

.recipe-number {
  left: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--orange);
  color: white;
  font-weight: 900;
}

.recipe-tag {
  right: 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .9);
  color: var(--orange-dark);
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 900;
}

.recipe-body {
  padding: 18px;
}

.recipe-body h3 {
  margin: 0;
  min-height: 52px;
  color: #292524;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.25;
}

.recipe-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 0;
  color: #666;
  overflow: hidden;
  font-size: .92rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recipe-meta {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  color: #666;
  font-size: .86rem;
}

.no-results {
  margin: 28px 0 0;
  padding: 24px;
  text-align: center;
  background: white;
  border: 1px dashed rgba(249, 115, 22, .4);
  border-radius: var(--radius);
  color: #57534e;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.category-grid a {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 24px 14px;
  background: white;
  border: 1px solid rgba(251, 146, 60, .18);
  border-radius: 26px;
  color: #292524;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(124, 45, 18, .06);
  transition: .18s ease;
}

.category-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(124, 45, 18, .12);
}

.category-grid span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #ffedd5;
  font-size: 34px;
}

.tips-section {
  background: white;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.tips-grid article {
  padding: 30px;
  background: var(--cream);
  border: 1px solid rgba(251, 146, 60, .18);
  border-radius: 28px;
}

.tips-grid span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--orange);
  color: white;
  font-weight: 900;
}

.tips-grid h3 {
  margin: 22px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.tips-grid p,
.about-card p,
.newsletter p,
.footer p {
  color: #57534e;
  line-height: 1.75;
}

.about-card {
  display: grid;
  grid-template-columns: .92fr 1.25fr;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(251, 146, 60, .2);
  border-radius: 34px;
  box-shadow: 0 8px 28px rgba(124, 45, 18, .08);
}

.about-card > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  background: #ffedd5;
}

.about-card > div {
  padding: clamp(28px, 5vw, 58px);
}

.about-card .secondary-button {
  margin-top: 14px;
}

.newsletter {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 50%, rgba(249, 115, 22, .22), transparent 40%),
    #ffedd5;
  padding-block: 66px;
}


.newsletter::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48%, 680px);
  background: linear-gradient(90deg, #ffedd5 0%, rgba(255, 237, 213, .45) 30%, rgba(255, 237, 213, 0) 62%), url("../images/newsletter.jpg") center right / cover no-repeat;
  opacity: .95;
  pointer-events: none;
}

.newsletter .container {
  position: relative;
  z-index: 1;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: 34px;
  align-items: center;
}

.newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(251, 146, 60, .22);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.newsletter input {
  min-height: 58px;
  border: 1px solid rgba(251, 146, 60, .2);
  border-radius: 16px;
  padding: 0 18px;
  outline: none;
}

.newsletter button {
  border: 0;
  border-radius: 16px;
  background: var(--orange);
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 24px;
}

.newsletter small {
  grid-column: 1 / -1;
  color: #57534e;
  padding: 0 8px 4px;
}

.footer {
  background: var(--navy);
  color: white;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .7fr .7fr .95fr;
  gap: 42px;
}

.footer .brand small,
.footer p,
.footer a,
.footer span {
  color: #cbd5e1;
}

.footer h3 {
  margin: 0 0 14px;
  color: #e2e8f0;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin: 7px 0;
}

.footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  color: #94a3b8;
  font-size: .9rem;
}

.recipe-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .45);
}

.recipe-dialog::backdrop {
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
  cursor: pointer;
  font-size: 26px;
  font-weight: 800;
}

.dialog-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}

.dialog-layout > img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  background: #ffedd5;
}

.dialog-copy {
  padding: 38px;
}

.dialog-copy h2 {
  margin: 14px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.dialog-category {
  display: inline-flex;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  padding: 8px 14px;
  font-size: .84rem;
  font-weight: 900;
}

.dialog-summary {
  color: #57534e;
  line-height: 1.75;
}

.dialog-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 22px 0;
}

.dialog-stats div {
  border-radius: 16px;
  background: white;
  padding: 14px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(124, 45, 18, .06);
}

.dialog-stats strong {
  display: block;
  color: #292524;
}

.recipe-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.recipe-detail-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.recipe-detail-grid ul,
.recipe-detail-grid ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.recipe-detail-grid li {
  background: white;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(124, 45, 18, .05);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

@media (max-width: 1060px) {
  .hero-grid,
  .about-card,
  .newsletter-grid,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: unset;
  }

  .hero-card img {
    height: 440px;
  }

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

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

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

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

  .dialog-layout > img {
    min-height: 320px;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .send-button {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .main-nav {
    display: none;
    order: 5;
    width: 100%;
    margin-left: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(251, 146, 60, .18);
  }

  .main-nav.open {
    display: grid;
    gap: 8px;
  }

  .main-nav .active::after {
    display: none;
  }

  .hero {
    padding-top: 10px;
  }

  .hero-features,
  .tips-grid,
  .recipe-detail-grid,
  .dialog-stats {
    grid-template-columns: 1fr;
  }

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

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

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

  .newsletter button {
    min-height: 56px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
