:root {
  --cream: #f4e9c4;
  --cream-light: #fff8dc;
  --green: #708e41;
  --green-dark: #26351c;
  --ink: #11150e;
  --tomato: #d84a12;
  --wine: #6d2a1e;
  --yellow: #e8b42f;
  --white: #ffffff;
  --header-height: 82px;
  color-scheme: light;
  font-family: "Source Serif 4", Georgia, serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

body.has-dialog {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
  font-family: "Inter", Arial, sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--cream-light);
  color: var(--ink);
  transform: translateY(-170%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4.5vw, 72px);
  color: var(--cream);
  border-bottom: 1px solid rgba(244, 233, 196, 0.3);
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(38, 53, 28, 0.94);
  border-color: rgba(244, 233, 196, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  white-space: nowrap;
}

.book-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--cream);
  border-radius: 7px;
  background: var(--cream);
  color: var(--green-dark);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.book-link:hover,
.book-link:focus-visible {
  background: var(--white);
  transform: translateY(-1px);
}

.hero {
  background: var(--green-dark);
}

.hero-banner {
  position: relative;
  min-height: clamp(620px, 78svh, 790px);
  overflow: hidden;
  background: var(--green-dark);
  color: var(--cream);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  margin: 0;
  overflow: hidden;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.045);
  animation: hero-depth 15s ease-in-out infinite alternate;
  filter: saturate(1.03) contrast(1.02);
  will-change: transform;
}

@keyframes hero-depth {
  from { transform: scale(1.045); }
  to { transform: scale(1.015); }
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(21, 30, 14, 0.28) 0%, rgba(21, 30, 14, 0.08) 36%, rgba(21, 30, 14, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 28, 13, 0.3), transparent 40%, rgba(20, 28, 13, 0.16));
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 80px);
  bottom: clamp(88px, 12vh, 126px);
  width: min(1050px, calc(100% - 40px));
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.36);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 20px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.5;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(3.7rem, 9.5vw, 8.9rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.84;
}

.hero-number {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-title-line {
  display: inline-block;
  margin-top: 0.09em;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 0.76em;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero-intro {
  margin: clamp(24px, 3vh, 36px) 0 0;
  max-width: 720px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
}

.intro-section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(90px, 10vw, 155px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(58px, 9vw, 140px);
  align-items: end;
}

.intro-copy h2 {
  margin: 0;
  max-width: 760px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(3rem, 6vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--green);
}

.intro-copy h2 strong {
  font-weight: 700;
}

.intro-body {
  max-width: 580px;
  padding-bottom: 6px;
}

.intro-body > p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.04rem, 2.6vw, 2.36rem);
  line-height: 1.4;
}

.intro-body .availability-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 21, 14, 0.24);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.category-nav {
  position: sticky;
  z-index: 50;
  top: var(--header-height);
  border-top: 1px solid rgba(17, 21, 14, 0.2);
  border-bottom: 1px solid rgba(17, 21, 14, 0.2);
  background: rgba(244, 233, 196, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.category-scroller {
  width: min(1440px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  display: flex;
  scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex: 1 0 auto;
  min-height: 68px;
  padding: 0 clamp(20px, 3vw, 48px);
  border: 0;
  border-right: 1px solid rgba(17, 21, 14, 0.18);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color 180ms ease, color 180ms ease;
}

.category-button:first-child {
  border-left: 1px solid rgba(17, 21, 14, 0.18);
}

.category-button:hover,
.category-button:focus-visible,
.category-button.is-active {
  background: var(--green);
  color: var(--cream-light);
}

.recipes-section {
  min-height: 780px;
  padding: clamp(88px, 9vw, 145px) max(24px, calc((100vw - 1320px) / 2));
  background: var(--wine);
  color: var(--cream);
}

.recipes-heading {
  margin-bottom: clamp(48px, 6vw, 86px);
}

.recipes-heading h2 {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(3.6rem, 7.5vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

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

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.7vw, 40px);
}

.recipe-card {
  min-width: 0;
}

.recipe-card-button {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 12px;
  background: var(--cream-light);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 55px rgba(36, 10, 5, 0.16);
  transition: transform 230ms ease, box-shadow 230ms ease;
}

.recipe-card-button:hover,
.recipe-card-button:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 24px 70px rgba(36, 10, 5, 0.28);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.recipe-card-button:hover .card-media img,
.recipe-card-button:focus-visible .card-media img {
  transform: scale(1.035);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 22% 24%, rgba(244, 233, 196, 0.16) 0 2px, transparent 3px),
    linear-gradient(135deg, #708e41, #526d2d);
  background-size: 32px 32px, auto;
  color: var(--cream-light);
  text-align: center;
}

.image-placeholder span {
  max-width: 230px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.card-content {
  flex: 1;
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
}

.card-category {
  margin: 0 0 15px;
  color: var(--green);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-content h3 {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(1.8rem, 2.7vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.card-description {
  margin: 18px 0 0;
  color: rgba(17, 21, 14, 0.75);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.6;
}

.card-meta {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(17, 21, 14, 0.16);
  color: rgba(17, 21, 14, 0.72);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.method-note {
  padding: clamp(80px, 10vw, 150px) max(24px, calc((100vw - 980px) / 2));
  background: var(--green);
  color: var(--cream-light);
  text-align: center;
}

.method-note h2 {
  margin: 0 auto 28px;
  max-width: 900px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.method-note > p {
  margin: 0 auto;
  max-width: 900px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.7vw, 2.35rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.site-footer {
  min-height: 136px;
  padding: 34px clamp(22px, 4.5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--green-dark);
  color: var(--cream-light);
}

.site-footer p {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.recipe-dialog {
  width: min(1220px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 14px;
  background: var(--cream-light);
  color: var(--ink);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
}

.recipe-dialog::backdrop {
  background: rgba(19, 25, 15, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: sticky;
  z-index: 4;
  top: 18px;
  left: calc(100% - 100px);
  width: 82px;
  min-height: 38px;
  margin: 18px 18px -56px auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 21, 14, 0.18);
  border-radius: 6px;
  background: rgba(255, 248, 220, 0.94);
  color: var(--ink);
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dialog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  min-height: 560px;
}

.dialog-image {
  min-height: 560px;
  background: var(--green);
}

.dialog-image img,
.dialog-image .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-heading {
  padding: 90px clamp(36px, 5vw, 72px) 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}

.dialog-heading .eyebrow {
  color: var(--green);
}

.dialog-heading h2 {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.dialog-description {
  margin: 28px 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
}

.dialog-meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dialog-meta span {
  padding: 9px 12px;
  border: 1px solid rgba(17, 21, 14, 0.2);
  border-radius: 5px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.print-button {
  width: fit-content;
  min-height: 46px;
  margin-top: 28px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-dark);
  border-radius: 7px;
  background: var(--green-dark);
  color: var(--cream-light);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.print-button:hover,
.print-button:focus-visible {
  background: var(--green);
  transform: translateY(-1px);
}

.nutrition-strip {
  padding: 0 clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--green-dark);
  color: var(--cream-light);
}

.nutrition-item {
  min-width: 0;
  padding: 30px 20px;
  border-right: 1px solid rgba(244, 233, 196, 0.16);
}

.nutrition-item:first-child {
  border-left: 1px solid rgba(244, 233, 196, 0.16);
}

.nutrition-item span {
  display: block;
  color: rgba(244, 233, 196, 0.66);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nutrition-item strong {
  display: block;
  margin-top: 8px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-weight: 400;
}

.recipe-details {
  padding: clamp(62px, 8vw, 110px) clamp(28px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 9vw, 120px);
}

.detail-block h3 {
  margin: 0 0 30px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--green);
}

.ingredient-list,
.steps-list {
  margin: 0;
  padding: 0;
  font-family: "Source Serif 4", Georgia, serif;
  list-style: none;
}

.ingredient-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 21, 14, 0.14);
  line-height: 1.55;
}

.steps-list {
  counter-reset: recipe-step;
}

.steps-list li {
  position: relative;
  min-height: 52px;
  padding: 0 0 27px 64px;
  counter-increment: recipe-step;
  line-height: 1.68;
}

.steps-list li::before {
  content: counter(recipe-step, decimal-leading-zero);
  position: absolute;
  top: -3px;
  left: 0;
  color: var(--tomato);
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.75rem;
}

.recipe-notes {
  margin: 0 clamp(28px, 7vw, 100px) clamp(62px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(17, 21, 14, 0.18);
  border-bottom: 1px solid rgba(17, 21, 14, 0.18);
}

.recipe-note {
  padding: 34px clamp(0px, 3vw, 42px) 34px 0;
}

.recipe-note + .recipe-note {
  padding-right: 0;
  padding-left: clamp(24px, 3vw, 42px);
  border-left: 1px solid rgba(17, 21, 14, 0.18);
}

.recipe-note h4 {
  margin: 0 0 12px;
  color: var(--green);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recipe-note p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.65;
}

.dialog-legal {
  margin: 0;
  padding: 26px clamp(28px, 7vw, 100px) 42px;
  color: rgba(17, 21, 14, 0.58);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.75rem;
  line-height: 1.6;
}

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .intro-section {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .intro-body {
    max-width: 720px;
  }

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

  .dialog-hero {
    grid-template-columns: 1fr;
  }

  .dialog-image {
    min-height: min(62vw, 620px);
  }

  .nutrition-strip {
    grid-template-columns: repeat(3, 1fr);
    padding-block: 12px;
  }

  .nutrition-item:nth-child(4) {
    border-left: 1px solid rgba(244, 233, 196, 0.16);
  }

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

@media (max-width: 700px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    padding-inline: 17px;
  }

  .brand {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .book-link {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 0.62rem;
  }

  .hero-banner {
    min-height: 650px;
  }

  .hero-copy {
    left: 18px;
    bottom: 112px;
    width: calc(100% - 36px);
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
    line-height: 0.82;
  }

  .hero-title-line {
    font-size: 0.72em;
  }

  .hero-intro {
    max-width: 300px;
  }

  .intro-section {
    width: calc(100% - 36px);
  }

  .category-button {
    min-height: 58px;
    padding-inline: 20px;
    font-size: 0.66rem;
  }

  .recipes-section {
    padding-inline: 18px;
  }

  .recipes-heading h2 {
    font-size: clamp(3.3rem, 16vw, 5.4rem);
  }

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

  .card-content h3 {
    font-size: 2.3rem;
  }

  .method-note {
    padding-inline: 22px;
  }

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

  .recipe-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .dialog-close {
    top: 14px;
    margin-top: 14px;
    margin-right: 14px;
  }

  .dialog-image {
    min-height: 350px;
  }

  .dialog-heading {
    padding: 70px 22px 48px;
  }

  .dialog-heading h2 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .nutrition-strip {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 18px;
  }

  .nutrition-item,
  .nutrition-item:first-child,
  .nutrition-item:nth-child(4) {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 233, 196, 0.16);
  }

  .nutrition-item:nth-child(odd) {
    border-right: 1px solid rgba(244, 233, 196, 0.16);
  }

  .recipe-details {
    padding-inline: 22px;
  }

  .recipe-notes {
    margin-inline: 22px;
    grid-template-columns: 1fr;
  }

  .recipe-note,
  .recipe-note + .recipe-note {
    padding: 28px 0;
    border-left: 0;
  }

  .recipe-note + .recipe-note {
    border-top: 1px solid rgba(17, 21, 14, 0.18);
  }

  .dialog-legal {
    padding-inline: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
