.menu-is-open { overflow: hidden; }

.site-menu {
  width: min(66rem, calc(100% - 2.5rem));
  max-width: none;
  max-height: calc(100dvh - 3rem);
  margin: auto;
  padding: .65rem;
  border: 1px solid #9c7651;
  border-radius: 3px;
  color: #3c3027;
  background: #faf5e9;
  box-shadow: 0 1.5rem 5rem #0009, inset 0 0 2rem #a57e3120;
  font: 1rem/1.5 Georgia, "Times New Roman", serif;
  overscroll-behavior: contain;
  scrollbar-color: #a99172 #f3ecde;
}

.site-menu::backdrop { background: #10130fd6; backdrop-filter: blur(5px); }
.site-menu[open] { animation: menu-unfold .32s ease-out; transform-origin: 75% 90%; }

.menu-paper {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #b3a085;
  outline: 1px solid #b3a085;
  outline-offset: -5px;
  background:
    linear-gradient(90deg, transparent 49.5%, #bdad8d12 50%, transparent 50.5%),
    radial-gradient(ellipse at 50% 0, #fffdf7, #faf5e9 65%);
}

.menu-heading { max-width: 42rem; margin: 0 auto 2rem; text-align: center; }
.menu-caption { margin: 0 0 .5rem; font-size: 1rem; font-style: italic; letter-spacing: .12em; color: #806044; }
.menu-heading h1 { margin: 0 0 .65rem; color: #573d2b; font-size: clamp(1.8rem, 4.2vw, 2.85rem); line-height: 1.15; font-weight: normal; }
.menu-heading > p:last-of-type { margin: 0; font-style: italic; }

.menu-close {
  display: flex;
  align-items: center;
  gap: .4rem;
  position: absolute;
  top: .85rem;
  right: 1rem;
  min-height: 2.75rem;
  padding: .2rem .4rem;
  border: 0;
  background: transparent;
  color: #73513c;
  font: .85rem Georgia, serif;
  cursor: pointer;
}
.menu-close span { font: 1.7rem/1 Georgia, serif; }

.menu-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.menu-entry { padding: 1.1rem 0 1.25rem; border-top: 1px solid #bba68b; }
.menu-entry h2 { margin: 0 0 .5rem; font-size: clamp(1.2rem, 2.3vw, 1.45rem); line-height: 1.23; font-weight: normal; }
.menu-entry h2 a { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; color: #67472e; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: #a88a6766; }
.menu-entry h2 span { flex: 0 0 auto; font-size: .9em; }
.menu-entry p { margin: 0; }
.menu-subpages { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .65rem; }
.menu-subpages a { display: inline-flex; align-items: center; min-height: 2rem; color: #725338; font-size: .88rem; text-underline-offset: .22em; }
.site-menu a:hover { color: #a15f2d; }
.site-menu :focus-visible { outline: 2px solid #946a43; outline-offset: 4px; }

.menu-business { display: grid; justify-items: center; gap: .5rem; margin-top: 1rem; padding-top: 1.1rem; border-top: 1px solid #bba68b; text-align: center; }
.menu-business p { margin: 0; font-style: italic; }
.menu-business a { display: grid; justify-items: center; gap: .3rem; color: #725338; text-decoration: none; }
.menu-business img { display: block; width: min(13rem, 100%); height: 3.5rem; object-fit: contain; filter: grayscale(1) brightness(.36) sepia(.65); }
.menu-business span { font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.menu-dismiss { min-height: 2.75rem; margin-top: .4rem; padding: .4rem .75rem; color: #725338; background: transparent; border: 1px solid #bba68b; font: .88rem Georgia, serif; cursor: pointer; }


@keyframes menu-unfold {
  from { opacity: 0; transform: perspective(70rem) rotateX(6deg) scale(.94); }
  to { opacity: 1; transform: perspective(70rem) rotateX(0) scale(1); }
}

@media (max-width: 42rem) {
  .site-menu { width: calc(100% - 1.1rem); max-height: calc(100dvh - 1.1rem); padding: .4rem; }
  .menu-paper { padding: 3.6rem 1.25rem 1.5rem; }
  .menu-pages { grid-template-columns: minmax(0, 1fr); }
  .menu-heading { margin-bottom: 1.5rem; }
  .menu-heading h1 { font-size: 1.85rem; }
  .menu-entry h2 a { min-height: 2.75rem; }
  .menu-subpages a { min-height: 2.75rem; }
  .menu-close { top: .6rem; right: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu[open] { animation: none; transform-origin: center; }
}

