/* Short, optional motion shared by the two restaurant sites. */
@media (prefers-reduced-motion: no-preference) {
  .motion-revealed {
    animation: restaurant-rise 760ms cubic-bezier(.16, 1, .3, 1) backwards;
  }

  .motion-revealed:focus-within { animation: none; }

  .dish.motion-revealed:nth-child(2) { animation-delay: 80ms; }
  .dish.motion-revealed:nth-child(3) { animation-delay: 160ms; }

  /* The curtain only covers the photo. The hero copy and links stay above it. */
  .hero-photo.motion-opening {
    overflow: clip;
  }

  .hero-photo.motion-opening::before,
  .hero-photo.motion-opening::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 50%;
    background: var(--color-background);
    pointer-events: none;
    animation: restaurant-curtain-left 650ms cubic-bezier(.65, 0, .2, 1) both;
  }

  .hero-photo.motion-opening::after {
    inset: 0 0 0 auto;
    animation-name: restaurant-curtain-right;
  }

  @keyframes restaurant-rise {
    from { opacity: .15; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes restaurant-curtain-left {
    to { transform: translateX(-101%); visibility: hidden; }
  }

  @keyframes restaurant-curtain-right {
    to { transform: translateX(101%); visibility: hidden; }
  }
}

/* The home pages read as a menu book while remaining in normal scroll order. */
.menu-book {
  padding: clamp(1rem, 3vw, 3rem) clamp(0.75rem, 4vw, 4rem);
  background: var(--color-surface, #f0e9da);
}

.menu-book .menu-page {
  margin-block-end: clamp(1rem, 3vw, 3rem);
  border: 1px solid var(--color-border);
  border-inline-start: 3px solid var(--color-accent);
  background: linear-gradient(90deg, rgb(102 74 34 / 9%), transparent 1.5rem), var(--color-background);
  box-shadow: 0 5px 14px rgb(52 39 20 / 9%);
  transform-origin: left center;
}

.menu-book .menu-page:last-child {
  margin-block-end: 0;
}

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

.menu-book .menu-page .drinks-feature {
  margin-top: 0;
}

.menu-book .drinks-copy h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-block: 18px;
}

@media (max-width: 760px) {
  .menu-book .menu-book-dishes {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .menu-page.motion-revealed:not(:focus-within) {
    animation: menu-page-turn 850ms cubic-bezier(.2, .7, .2, 1) backwards;
  }

  @keyframes menu-page-turn {
    from {
      opacity: .5;
      transform: perspective(1500px) rotateY(32deg) translateY(20px);
    }
    to {
      opacity: 1;
      transform: perspective(1500px) rotateY(0) translateY(0);
    }
  }
}
