.menu-page {
  --menu-brown: #814318;
  --parchment: #fbeddc;
  background-color: var(--parchment);
  background-image: linear-gradient(rgb(251 237 220 / 83%), rgb(251 237 220 / 83%)), var(--paper);
}

.menu-hero {
  --hero-trim: 96px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.menu-hero-copy {
  width: 100%;
  padding-top: calc(42px + var(--hero-trim));
}

@media (width >= 1024px) {
  .menu-hero {
    align-items: start;
    padding-top: 170px;
  }

  .menu-hero-copy {
    padding-top: 0;
  }
}

.menu-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to top, var(--parchment), transparent 24%),
    radial-gradient(ellipse at center, rgb(255 245 231 / 75%), transparent 75%),
    url("assets/images/general/botanical-paper.webp") center top / max(100%, 1900px) max(100%, 555px) no-repeat;
  content: "";
}

.hero-books,
.hero-latte {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: clamp(90px, 12vw, 186px);
  filter: drop-shadow(0 6px 3px rgb(104 63 28 / 15%));
}

.hero-books {
  left: max(3%, calc((100% - 1450px) / 2));
  transform: rotate(-4deg);
}

.hero-books > img:first-child {
  width: 82%;
}

.hero-books .book-flowers {
  position: absolute;
  right: 0;
  bottom: -5%;
  width: 36%;
}

.hero-latte {
  right: max(3%, calc((100% - 1450px) / 2));
}

.hero-latte svg {
  display: block;
  width: 89%;
}

.hero-latte img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
}

.menu-section-heading h2 {
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
  color: var(--caramel);
}

.menu-hero-copy .leaf-divider {
  position: relative;
  margin-top: 0;
}

.leaf-divider::before,
.leaf-divider::after {
  width: clamp(60px, 9vw, 140px);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  content: "";
}

.leaf-divider::after {
  transform: rotate(180deg);
}

.menu-section-heading .leaf-divider::before,
.menu-section-heading .leaf-divider::after {
  width: clamp(96px, 22vw, 320px);
}

.leaf-divider > svg {
  width: 39px;
  height: 28px;
}

.menu-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  max-width: 840px;
  padding-block: 26px 0;
}

@media (width >= 1024px) {
  .menu-categories {
    max-width: 756px;
  }
}

.category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--button-border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--cream);
  font: 600 18px/1.2 var(--serif);
}

.category.selected {
  border-color: var(--button-border-dark);
  box-shadow: 0 2px 5px rgb(62 42 30 / 16%);
  color: var(--cream);
  background: var(--walnut);
}

.view-basket {
  color: var(--cream);
  background: var(--dark-button-background);
}

.category svg {
  flex: none;
  width: 1.9em;
  height: 1.6em;
}

.category-break {
  display: none;
}

.category.selected:hover {
  color: white;
  background: var(--espresso);
}

.souffle-section {
  position: relative;
  margin-top: var(--section-gap);
}

.souffle-section::before {
  position: absolute;
  top: -1.5rem;
  left: 0;
  width: clamp(65px, 12vw, 185px);
  height: clamp(95px, 15vw, 220px);
  background: url("assets/images/general/hero-leaves-left.webp") left top / contain no-repeat;
  pointer-events: none;
  content: "";
}

.menu-section-heading {
  margin-bottom: clamp(32px, 4vw, 60px);
  text-align: center;
}

.menu-section-heading h2 {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: .1em .38em;
}

.menu-section-heading h2 svg {
  position: absolute;
  z-index: -1;
  inset: 0 -8%;
  width: 116%;
  height: 100%;
  color: #ecc18d;
  opacity: .74;
}

#souffle-title {
  font-style: normal;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.7vw, 54px) clamp(16px, 2vw, 30px);
}

.menu-card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  justify-items: center;
  align-items: center;
  row-gap: 10px;
  padding: clamp(14px, 1.5vw, 23px) clamp(16px, 2vw, 30px) 25px;
  border: 1px solid rgb(255 251 243 / 90%);
  border-radius: clamp(20px, 2.5vw, 34px);
  background: radial-gradient(ellipse at 50% 28%, #fff8ea, transparent 65%), rgb(255 244 228 / 69%);
  box-shadow: 0 6px 16px rgb(115 72 42 / 9%), inset 0 0 18px rgb(204 157 105 / 8%);
  text-align: center;
}

.dish-photo {
  width: 100%;
  margin-bottom: 10px;
  aspect-ratio: 1.55;
  object-fit: contain;
}

.menu-card h3 {
  max-width: 15ch;
  font-size: 26px;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.dish-description {
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}

.dish-price {
  margin-top: 4px;
  color: var(--menu-brown);
  font: 650 26px/1.1 var(--serif);
}

.quantity-control {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.quantity-limit {
  font-size: 14px;
}

.quantity {
  display: inline-grid;
  grid-template-columns: 48px 28px 48px;
  align-items: center;
  border: 1px solid #d7b797;
  border-radius: 40px;
  background: linear-gradient(#fffaf2, #f6e2ca);
  font-variant-numeric: lining-nums tabular-nums;
}

.quantity button {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: inherit;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.quantity output {
  display: grid;
  place-items: center;
  min-height: 46px;
  font-size: 19px;
  line-height: 1;
  text-align: center;
}

.quantity button:hover:enabled {
  background: var(--latte);
}

.quantity button:disabled {
  color: #816c59;
}

.menu-visit {
  margin-top: clamp(70px, 8vw, 130px);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
}

.menu-visit .visit-inner {
  max-width: min(47%, 640px);
}

.menu-visit p {
  max-width: 32ch;
  text-wrap: balance;
}

.back-to-menu {
  color: var(--ink);
  background: var(--oat);
}

.back-to-menu:hover {
  background: var(--latte);
}

.view-basket {
  border-color: var(--button-border-dark);
}

@media (1024px <= width <= 1199px) {
  .menu-page .primary-nav {
    --desktop-nav-gap: 34px;
  }
}

@media (width < 1024px) {
  .quantity button {
    font-size: 19px;
  }

  .dish-price {
    font-size: 24px;
  }

  .category {
    font-size: 16px;
  }

  .menu-card h3 {
    font-size: 24px;
  }

  .dish-description {
    font-size: 14px;
  }

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

@media (768px <= width < 1024px) {
  .menu-hero {
    align-items: start;
    padding-top: 130px;
  }

  .menu-hero-copy {
    padding-top: 0;
  }
}

@media (width < 768px) {
  .menu-hero {
    align-items: start;
    padding-top: 90px;
  }

  .quantity button {
    font-size: 18px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
    margin-inline: auto;
  }

  .menu-section-heading .leaf-divider::before,
  .menu-section-heading .leaf-divider::after {
    flex: 1;
    width: auto;
  }

  .menu-section-heading h2 {
    width: 100%;
  }

  .menu-section-heading h2 svg {
    inset-inline: 0;
    width: 100%;
    overflow: hidden;
  }

  .hero-books,
  .hero-latte {
    display: none;
  }

  .menu-hero-copy {
    padding-block: 0 24px;
  }

  .menu-hero-text {
    max-width: 590px;
  }

  .menu-hero-copy .leaf-divider::before,
  .menu-hero-copy .leaf-divider::after {
    width: clamp(28px, 10vw, 70px);
  }

  .menu-categories {
    gap: 6px;
    padding-top: 12px;
  }

  .category {
    flex-direction: column;
    gap: 4px;
    padding: 6px 3px;
    font-size: 14px;
    text-align: center;
  }

  .category-break {
    display: initial;
  }

  .category svg {
    display: none;
  }

  .menu-visit .visit-inner {
    max-width: 75%;
  }

}

@media (max-width: 600px) {
  .menu-card {
    padding: 18px 24px 24px;
  }

  .souffle-section::before {
    width: 42px;
  }

  .menu-visit {
    padding: 58px 0 78px;
  }

  .menu-visit .visit-inner {
    max-width: 90%;
  }

  .menu-visit .actions {
    gap: 8px;
  }

  .menu-visit .button {
    padding-inline: 1.1em;
  }
}

