:root {
  --cream: #fffaf3;
  --cream-strong: #f8efdf;
  --green: #1f4d3d;
  --green-soft: #315f52;
  --coral: #e47a59;
  --yellow: #f2c96b;
  --text: #20352d;
  --muted: #60746d;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(31, 77, 61, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(32, 53, 45, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  color: var(--green);
  font-family: "Pacifico", cursive;
  font-size: 2rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow.dark {
  color: var(--green-soft);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--green);
}

.recipes-section {
  padding: 82px 0 60px;
}

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

.search {
  width: min(280px, 100%);
  padding: 15px 18px;
  border: 1px solid rgba(31, 77, 61, 0.15);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  outline: none;
}

.search:focus {
  border-color: rgba(31, 77, 61, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 77, 61, 0.08);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.filter {
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cream-strong);
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter:hover,
.filter.active {
  background: var(--green);
  color: var(--white);
}

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

.recipe-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(32, 53, 45, 0.08);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(31, 77, 61, 0.15);
}

.recipe-image {
  min-height: 190px;
  display: grid;
  place-items: center;
  font-size: 5.2rem;
  background: linear-gradient(135deg, #f7d57a 0%, #eba26c 100%);
}

.recipe-card:nth-child(3n + 2) .recipe-image {
  background: linear-gradient(135deg, #9adcc2 0%, #f4d76a 100%);
}

.recipe-card:nth-child(3n + 3) .recipe-image {
  background: linear-gradient(135deg, #f2bcad 0%, #d9c0f3 100%);
}

.recipe-info {
  padding: 18px 18px 22px;
}

.recipe-info h3 {
  color: var(--green);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.recipe-info p {
  color: var(--muted);
  font-size: 0.96rem;
}

.recipe-tag {
  display: inline-block;
  margin-top: 16px;
  background: var(--cream-strong);
  color: var(--green);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.no-results {
  padding: 36px 0 0;
  color: var(--muted);
  text-align: center;
}

.about-section {
  background: var(--green);
  color: var(--white);
  padding: 72px 0;
}

.about-content {
  max-width: 700px;
}

.about-section .eyebrow {
  color: var(--yellow);
}

.about-section p:last-child {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  background: #0e2d26;
  color: rgba(255, 255, 255, 0.75);
  padding: 22px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 29, 23, 0.7);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 28px 26px;
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
}

.modal-card h2 {
  color: var(--green);
  margin-bottom: 12px;
}

.modal-description {
  color: var(--muted);
  margin-bottom: 28px;
}

.recipe-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.recipe-details h3 {
  color: var(--green);
  margin-bottom: 10px;
}

.recipe-details ul,
.recipe-details ol {
  padding-left: 20px;
}

.recipe-details li {
  margin-bottom: 8px;
  color: var(--text);
}

.garnish {
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

@media (max-width: 860px) {
  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .search {
    width: 100%;
  }
}

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

  .navbar {
    min-height: 68px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }

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

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

  .modal-card {
    padding: 34px 20px 22px;
  }

  .footer-content {
    flex-direction: column;
  }
}
/* Existing styles stay as-is; add these at the end */
.content-page {
  max-width: 900px;
  padding: 4rem 1.5rem 5rem;
  margin: 0 auto;
}

.content-page h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.content-section {
  margin-bottom: 2.5rem;
}

.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1f2a37;
}

.content-section h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  color: #1f2a37;
}

.content-section p,
.content-section li {
  color: #374151;
  line-height: 1.7;
}

.content-section ul,
.content-section ol {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.last-updated {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.site-footer a {
  color: #f8fafc;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(92vw, 760px);
  background: rgba(17, 24, 39, 0.96);
  color: #f9fafb;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1000;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.96rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.cookie-btn.primary {
  background: #e67e22;
  color: white;
}

.cookie-btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }
}
