*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
}

.menu {
  background: var(--color-grey-tint);
  padding: clamp(48px, 15vw, 96px) 16px;
  margin-top: -1px;
  text-align: left;
  position: relative;
  display: grid;
}

.menu__heading {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-family: var(--headline-expanded);
  font-size: clamp(26px, 4.6vw, 40px);
  letter-spacing: 0.08em;
  color: #111;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(3px);
  will-change: transform, opacity, filter;
}

.menu__heading::after {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  background: #111;
  margin: 10px auto 0;
  border-radius: 3px;
  opacity: 0.9;
}

.menu-card + .menu__heading {
  margin-top: clamp(28px, 6vw, 36px);
}

.menu > .menu__heading,
.menu > .menu-grid,
.menu > .menu-card {
  justify-self: center;
  width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.menu-card {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 36px) clamp(16px, 5vw, 28px);
  border-radius: 18px;
  background: radial-gradient(
      1200px 400px at 50% 0%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.08)),
    url("images/menu/menu-background-orange.png");
  background-size: cover;
  background-position: center;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
  will-change: transform, opacity, filter;
}

.menu-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 clamp(14px, 4vw, 20px);
  justify-items: stretch;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.menu-tab {
  appearance: none;
  border: 1px solid rgba(17, 17, 17, 0.2);
  background: rgba(255, 255, 255, 0.14);
  padding: 12px 14px;
  border-radius: 9999px;
  font-family: var(--headline-expanded, "BioRhyme Expanded", serif);
  font-weight: 800;
  font-size: clamp(12px, 3.2vw, 18px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  opacity: 1;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  max-width: 100%;
}

.menu-tab::after {
  content: none;
}

.menu-tab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.menu-tab:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14) inset;
}

.menu-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.6);
}

.menu-tab.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.menu-panes {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  contain: layout;
  height: auto;
  min-height: 1px;
  transition: height 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: height;
  padding-bottom: 0;
}

.menu-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
  padding-bottom: 0;
}

.menu-pane.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.menu-pane[hidden] {
  display: none;
}

.menu-group {
  margin-top: clamp(18px, 4vw, 28px);
}

.menu-pane .menu-group + .menu-group {
  margin-top: clamp(22px, 5.2vw, 36px);
}

.menu-group__title {
  margin: 0 0 clamp(8px, 1.8vw, 12px);
  font-family: var(--headline-expanded);
  font-weight: 800;
  font-size: clamp(16px, 3.8vw, 22px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
  will-change: transform, opacity, filter;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: clamp(16px, 3.4vw, 20px);
  letter-spacing: 0.02em;
  padding-bottom: 10px;
}

.menu-list li {
  display: flex;
  align-items: baseline;
  padding: clamp(10px, 2vw, 14px) 0;
  will-change: opacity, transform;
  --item-y: 8px;
  opacity: 0;
  transform: translateZ(0);
  gap: 0.4rem;
  min-width: 0;
}

.menu-list li > * {
  transform: translate3d(0, var(--item-y, 0px), 0);
  will-change: transform;
  backface-visibility: hidden;
}

.menu-list li .name:first-child {
  white-space: normal;
}

.menu-list .name {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.menu-list .name::after {
  content: "";
  flex: 1 1 auto;
  min-width: 8px;
  height: 2px;
  margin: 0 0.5ch;
  background: repeating-linear-gradient(
    to right,
    rgba(17, 17, 17, 0.45) 0 2px,
    transparent 2px 6px
  );
  align-self: self-end;
  pointer-events: none;
}

.menu-list .price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: 0.6rem;
}

@keyframes menu-heading-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes menu-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes menu-item-in {
  from {
    opacity: 0;
    --item-y: 10px;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    --item-y: 0px;
    filter: blur(0);
  }
}

@keyframes swipeInLeft {
  from {
    opacity: 0;
    transform: translateX(16%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes swipeOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-16%);
  }
}

@keyframes swipeInRight {
  from {
    opacity: 0;
    transform: translateX(-16%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes swipeOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(16%);
  }
}

.menu.is-in .menu__heading {
  animation: menu-heading-in 560ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.menu.is-in .menu-card {
  animation: menu-card-in 560ms cubic-bezier(0.22, 0.61, 0.36, 1) 90ms forwards;
}

.menu-pane.is-entering-left {
  animation: swipeInLeft 420ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.menu-pane.is-exiting-left {
  animation: swipeOutLeft 420ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.menu-pane.is-entering-right {
  animation: swipeInRight 420ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.menu-pane.is-exiting-right {
  animation: swipeOutRight 420ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@property --item-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.menu,
.menu-card,
.menu-panes,
.menu-pane {
  overflow-x: clip;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 24px) clamp(18px, 3vw, 36px);
  max-width: 720px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1200px;
  }
  .menu > .menu-grid {
    width: min(1200px, 100%);
  }
  .menu-card {
    width: 100%;
    max-width: unset;
    margin: 0;
    padding: clamp(16px, 4vw, 24px) clamp(12px, 4vw, 20px);
  }
  .menu-list {
    font-size: clamp(13px, 3vw, 18px);
  }
}

@supports (padding: max(0px)) {
  .menu {
    --g: 16px;
    padding-left: max(var(--g), env(safe-area-inset-left));
    padding-right: max(var(--g), env(safe-area-inset-right));
  }
}
