:root {
  --bg: #fffaf2;
  --panel: rgba(255, 255, 255, 0.84);
  --text: #30140f;
  --muted: #6d5b52;
  --brand: #4b2318;
  --accent: #f97316;
  --gold: #f5b841;
  --green: #2f5f4f;
  --line: rgba(75, 35, 24, 0.12);
  --shadow: 0 22px 70px rgba(75, 35, 24, 0.14);
  color-scheme: light;
}

.dark {
  --bg: #130b08;
  --panel: rgba(255, 255, 255, 0.07);
  --text: #fff7ed;
  --muted: #d6c6ba;
  --brand: #f5b841;
  --accent: #fb923c;
  --gold: #f5b841;
  --green: #78b39b;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 184, 65, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 2%, rgba(47, 95, 79, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open .nav-links {
  display: grid;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.nav,
.container,
.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  font-family: Georgia, serif;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1;
}

.brand small,
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.nav-links a,
.pill-button,
.outline-button,
.primary-button {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-links a {
  padding: 10px 15px;
  color: var(--muted);
}

.nav-links a.active,
.primary-button {
  background: var(--brand);
  color: var(--bg);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.mobile-only {
  display: none;
}

.hero,
.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.hero {
  min-height: calc(100vh - 78px);
  padding: 48px 0;
}

.hero h1,
.page-title,
.section-title,
.card h3,
.recipe-title {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.98;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.outline-button,
.pill-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 20px;
  cursor: pointer;
}

.outline-button {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.primary-button:hover,
.outline-button:hover,
.pill-button:hover,
.card:hover,
.video-card:hover {
  transform: translateY(-3px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.stat,
.surface,
.card,
.video-card,
.category-tile {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat {
  border-radius: 18px;
  padding: 18px;
}

.stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 30px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-media,
.detail-media,
.about-media {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-media {
  aspect-ratio: 4 / 5;
}

.detail-media {
  aspect-ratio: 4 / 3;
}

.about-media {
  aspect-ratio: 4 / 5;
}

.hero-media img,
.detail-media img,
.about-media img,
.card-image img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.92);
  color: #30140f;
  padding: 22px;
  backdrop-filter: blur(12px);
}

.stars {
  color: var(--accent);
  letter-spacing: 0.15em;
}

.section {
  padding: 58px 0;
}

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

.section-title,
.page-title {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.section-head p,
.page-intro {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.75;
}

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

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.video-card {
  overflow: hidden;
  border-radius: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-image,
.video-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.video-thumb {
  aspect-ratio: 16 / 9;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.24);
  color: #30140f;
}

.play span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  font-weight: 900;
}

.card-body {
  padding: 21px;
}

.card h3,
.recipe-title {
  font-size: 25px;
  line-height: 1.15;
}

.card p {
  color: var(--muted);
  line-height: 1.65;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.category-tile {
  border-radius: 18px;
  padding: 24px 18px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 900;
}

.newsletter {
  border-radius: 32px;
  background: var(--brand);
  color: var(--bg);
  padding: 42px;
}

.newsletter form,
.filters {
  display: flex;
  gap: 12px;
}

.newsletter input,
.field,
.filters input,
.filters select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  padding: 0 16px;
}

.newsletter input {
  background: #fffaf2;
  color: #30140f;
}

.filters {
  align-items: center;
  margin: 28px 0;
  border-radius: 26px;
  padding: 16px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.pill-button {
  min-height: 42px;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--text);
}

.pill-button.active {
  background: var(--brand);
  color: var(--bg);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.recipe-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 32px;
  align-items: start;
}

.recipe-panel {
  border-radius: 26px;
  padding: 26px;
}

.ingredient-list,
.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.ingredient-list li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.ingredient-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #30140f;
  font-family: Georgia, serif;
  font-weight: 900;
}

.nutrition {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.nutrition div {
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  padding: 16px;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 24px;
  background: #000;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

textarea {
  min-height: 150px;
  padding: 16px;
  resize: vertical;
}

.footer {
  margin-top: 80px;
  background: #4b2318;
  color: #fffaf2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
  padding: 46px 0;
}

.footer h2,
.footer h3 {
  font-family: Georgia, serif;
}

.footer p,
.footer a {
  display: block;
  color: rgba(255, 250, 242, 0.74);
  line-height: 1.75;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf2;
  font-weight: 900;
}

.copyright {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  text-align: center;
  font-size: 12px;
}

.fade-in {
  animation: fadeIn 420ms ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero,
  .split,
  .recipe-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .filters,
  .newsletter form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 680px) {
  .mobile-only {
    display: grid;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .stats,
  .grid,
  .grid.four,
  .category-grid,
  .nutrition,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .newsletter {
    padding: 28px;
  }
}

@media print {
  .site-header,
  .footer,
  .video-frame,
  .button-row {
    display: none !important;
  }
}
