.menu-paper-main {
  --paper-ink: #352820;
  --paper-red: #873b2c;
  --paper-green: #405a48;
  --paper-edge: #cab08c;
  --paper-rule: #a87955;
  padding-bottom: clamp(50px, 8vw, 100px);
  background:
    radial-gradient(ellipse at 50% 20%, #faf4e9, transparent 62%),
    #ece0cc;
}

.menu-book-heading {
  padding-block: clamp(22px, 3.6vw, 41px) clamp(16px, 2.4vw, 26px);
}

.menu-book-heading .eyebrow { margin-bottom: 9px; }

.menu-book-heading h1 {
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  color: var(--paper-ink);
}

.menu-book-heading h1 em { color: var(--paper-red); }

.menu-book {
  --book-line: rgba(122, 72, 46, 0.33);
  color: var(--paper-ink);
}

.book-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 11px;
}

.book-chapters,
.book-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.book-chapters a,
.book-controls button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--paper-ink);
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.book-chapters a:hover,
.book-chapters a[aria-current="true"] {
  color: var(--paper-red);
  border-color: var(--paper-edge);
  background: #faf1df;
}

.book-controls {
  justify-content: flex-end;
  gap: 4px 10px;
}

.book-controls button {
  cursor: pointer;
  border-color: #9a7359;
}

.book-controls button:hover:not([aria-disabled="true"]) {
  color: #fff8ed;
  border-color: var(--paper-red);
  background: var(--paper-red);
}

.book-controls button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.52;
}

.book-controls output {
  min-width: 114px;
  color: #5b483a;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.book-stage {
  position: relative;
  display: grid;
  isolation: isolate;
  perspective: 1900px;
  border: 1px solid var(--paper-edge);
  border-radius: 5px 8px 8px 5px;
  background: #ddc7a6;
  box-shadow: 0 17px 34px #53381d32, 0 5px 0 -2px #dcc8a9, 0 9px 0 -4px #c2aa89;
  touch-action: pan-y pinch-zoom;
}

.book-stage:focus-visible {
  outline: 2px solid var(--paper-green);
  outline-offset: 4px;
}

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

.book-page {
  --page-shadow: linear-gradient(270deg, #62452636, transparent 6%, transparent 98%, #8d684620);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  min-block-size: clamp(505px, 51vw, 620px);
  padding: clamp(28px, 5.3vw, 64px) clamp(25px, 4.8vw, 60px) 22px;
  background:
    var(--page-shadow),
    repeating-linear-gradient(112deg, #a2764611 0, transparent 1px, transparent 5px, #ffffff18 6px),
    radial-gradient(ellipse at 43% 32%, #fff9ea 22%, #f3e3c7 100%);
}

.book-page[data-side="right"] {
  --page-shadow: linear-gradient(90deg, #62452637, transparent 6%, transparent 98%, #8d684620);
}

.book-page::before {
  position: absolute;
  z-index: -1;
  inset: 12px;
  border: 1px solid var(--book-line);
  pointer-events: none;
  content: "";
}

.book-page-empty {
  min-height: 0;
  background:
    var(--page-shadow),
    repeating-linear-gradient(112deg, #a276460d 0, transparent 1px, transparent 5px, #ffffff18 6px),
    #f4e6ce;
}

.book-chapter {
  margin: 0 0 8px;
  color: var(--paper-green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.book-page-title {
  margin: 0 0 16px;
  color: var(--paper-red);
  font: normal clamp(2.15rem, 4.1vw, 3.75rem) / 0.98 var(--serif);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.book-group-note {
  margin: -4px 0 8px;
  color: #635043;
  font-size: 0.82rem;
  line-height: 1.5;
}

.book-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-items .menu-item {
  align-items: baseline;
  padding-block: 8px;
  border-bottom-color: var(--book-line);
  font-size: 0.92rem;
}

.book-items .menu-item strong {
  font-weight: 800;
}

.book-items .menu-item div span {
  color: #5b493c;
  line-height: 1.4;
}

.book-items .menu-price { color: var(--paper-red); }

.book-folio {
  margin: auto 0 0;
  padding-top: 14px;
  color: #604837;
  font: italic 1rem var(--serif);
  text-align: center;
}

.book-page-cover {
  justify-content: center;
}

.book-cover-copy {
  position: relative;
  width: min(100%, 365px);
  margin: auto;
  text-align: center;
}

.book-cover-copy::before {
  display: block;
  width: 36px;
  height: 3px;
  margin: 0 auto 15px;
  background: linear-gradient(90deg, var(--paper-green) 33%, #f7eee0 33% 66%, var(--paper-red) 66%);
  content: "";
}

.book-cover-copy > p:first-child {
  margin: 0 0 10px;
  color: var(--paper-green);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.book-cover-copy h2 {
  color: var(--paper-red);
  font-size: clamp(3.05rem, 6vw, 5.85rem);
}

.book-cover-copy h2 em { font-weight: 400; }

.book-cover-copy img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 225px;
  aspect-ratio: 16 / 10;
  margin: 20px auto 13px;
  border: 1px solid var(--paper-rule);
  border-radius: 50% 50% 3px 3px / 19% 19% 3px 3px;
  object-fit: cover;
  object-position: 62% 57%;
}

.book-cover-copy p:not(:first-child) {
  margin: 0 0 10px;
  color: #5b493c;
  font-size: 0.85rem;
}

.book-cover-copy a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  color: var(--paper-red);
  font-size: 0.82rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

.book-turn {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  inset-inline-start: 50%;
  width: 50%;
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
  animation: book-turn-forward 540ms cubic-bezier(0.42, 0.1, 0.22, 1) both;
}

.book-turn[data-direction="back"] {
  inset-inline-start: 0;
  transform-origin: right center;
  animation-name: book-turn-back;
}

.book-face {
  position: absolute;
  inset: 0;
  display: grid;
  backface-visibility: hidden;
  overflow: clip;
}

.book-face-back {
  transform: rotateY(180deg);
}

@keyframes book-turn-forward {
  from { transform: rotateY(0); }
  to { transform: rotateY(-180deg); }
}

@keyframes book-turn-back {
  from { transform: rotateY(0); }
  to { transform: rotateY(180deg); }
}

.book-footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 17px;
  color: #5b483a;
  font-size: 0.8rem;
}

.book-footnote p { margin: 0; }
.book-footnote a { color: var(--paper-red); text-underline-offset: 3px; }
.menu-print-return { margin-block: 0; }

@media (max-width: 899px) {
  .book-spread { grid-template-columns: minmax(0, 1fr); }

  .book-stage {
    overflow: clip;
    max-width: 610px;
    margin-inline: auto;
  }

  .book-page,
  .book-page[data-side="right"] {
    --page-shadow: linear-gradient(90deg, #62452620, transparent 5%, transparent 97%, #8d684625);
  }

  .book-turn { inset-inline-start: 0; width: 100%; }

  .book-toolbar,
  .book-footnote {
    max-width: 610px;
    margin-inline: auto;
  }
}

@media (max-width: 660px) {
  .book-toolbar { grid-template-columns: minmax(0, 1fr); }
  .book-chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }

  .book-chapters a {
    justify-content: center;
    padding-inline: 2px;
    font-size: 0.76rem;
  }

  .book-controls { justify-content: space-between; }
  .book-controls output { min-width: 0; }
  .book-stage { border-radius: 5px; }
  .book-page { padding-inline: 22px; }
  .book-page::before { inset: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .book-turn { animation: none; }
}

@media print {
  .interior-header,
  .footer,
  .skip-link,
  .menu-book,
  .menu-print-return,
  .menu-index { display: none !important; }

  .menu-paper-main { background: #fff; }
  .menu-layout[data-menu-list] { display: block !important; }
}
