/* Shang High — site styles */

:root {
  --aubergine: #180921;
  --aubergine-2: #24102f;
  --purple: #7b16b5;
  --purple-deep: #5a0f87;
  --violet: #a72bee;
  --cream: #fff6e8;
  --cream-2: #f6e9d6;
  --yellow: #ffd35a;
  --pink: #ff5fd2;
  --ink: #24102f;
  --ink-soft: #5b4766;

  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 68px;
  --radius: 18px;
  --tile: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--aubergine);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

address {
  font-style: normal;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.section--cream :focus-visible {
  outline-color: var(--purple);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  border-radius: 10px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- type ---------- */

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(3.5rem, 10.5vw, 8.25rem);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.eyebrow--purple {
  color: var(--purple);
}

.neon {
  color: #fbeaff;
  text-shadow:
    0 0 0.06em #fff,
    0 0 0.18em var(--pink),
    0 0 0.45em var(--violet),
    0 0 0.9em rgba(167, 43, 238, 0.7);
}

.price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Outfit has no taka sign, so it falls back to a Bengali system font. */
.taka {
  font-family: 'Noto Sans Bengali', 'Nirmala UI', 'Kohinoor Bangla', 'Bangla Sangam MN', sans-serif;
  font-size: 1.12em;
  line-height: 1;
  margin-right: 0.06em;
}

.price__from {
  font-weight: 400;
  font-size: 0.85em;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 0.2s;
}

.textlink:hover {
  text-decoration-color: currentColor;
}

/* Restaurant or express counter, readable at a glance. */
.kind {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.kind--restaurant {
  background: var(--yellow);
  color: var(--ink);
}

.kind--express {
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* ---------- buttons ---------- */

.btn {
  --btn-shadow: rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 var(--btn-shadow);
  transition:
    transform 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    background-color 0.16s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--btn-shadow);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 var(--btn-shadow);
}

.btn--lg {
  min-height: 56px;
  padding-inline: 1.6rem;
  font-size: 1.08rem;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  --btn-shadow: var(--violet);
}

.btn--line {
  border-color: rgba(255, 246, 232, 0.55);
  color: var(--cream);
  --btn-shadow: var(--violet);
}

.btn--line:hover {
  border-color: var(--cream);
}

.btn--purple {
  background: var(--purple);
  color: #fff;
  --btn-shadow: var(--yellow);
}

.btn--ghost {
  border-color: rgba(36, 16, 47, 0.3);
  color: var(--ink);
  background: transparent;
  --btn-shadow: var(--purple);
}

/* ---------- promo banner (hidden unless configured) ---------- */

.promo {
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  padding: 0.6rem var(--gutter);
  font-size: 0.95rem;
}

.promo__meta {
  opacity: 0.8;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(24, 9, 33, 0.94);
  border-bottom: 1px solid rgba(167, 43, 238, 0.35);
}

@supports (backdrop-filter: blur(8px)) {
  .header {
    background: rgba(24, 9, 33, 0.82);
    backdrop-filter: blur(12px);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
}

.brandmark img {
  width: 48px;
  height: 48px;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a,
.mobile-nav a {
  font-weight: 500;
  text-decoration: none;
}

.nav a {
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav a:hover,
.nav a[aria-current='page'] {
  border-color: var(--yellow);
}

.header__order {
  display: none;
  min-height: 44px;
}

.header__toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: none;
  border: 1px solid rgba(255, 246, 232, 0.3);
  border-radius: 12px;
  cursor: pointer;
}

.header__toggle .icon {
  width: 22px;
  height: 22px;
}

.header__toggle-close,
.header__toggle[aria-expanded='true'] .header__toggle-open {
  display: none;
}

.header__toggle[aria-expanded='true'] .header__toggle-close {
  display: block;
}

.mobile-nav {
  display: grid;
  padding: 0.5rem var(--gutter) 1.5rem;
  border-top: 1px solid rgba(255, 246, 232, 0.12);
  background: var(--aubergine);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.9rem 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1;
  border-bottom: 1px solid rgba(255, 246, 232, 0.12);
}

.mobile-nav a[aria-current='page'] {
  color: var(--yellow);
}

.mobile-nav__where {
  padding-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .header__order {
    display: inline-flex;
  }

  .header__toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- mobile action bar ---------- */

.actionbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem max(0.75rem, env(safe-area-inset-left)) calc(0.6rem + env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-right));
  background: rgba(24, 9, 33, 0.96);
  border-top: 1px solid rgba(167, 43, 238, 0.45);
  transition:
    transform 0.25s var(--ease),
    visibility 0.25s;
}

/* On the homepage the bar stays out of the way while the hero's own buttons are on screen. */
.actionbar--waiting {
  transform: translateY(105%);
  visibility: hidden;
}

.actionbar .btn:hover {
  transform: none;
  box-shadow: none;
}

/* Reserve room so the bar never sits on top of the footer. */
body {
  padding-bottom: calc(48px + 1.2rem + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  .actionbar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ---------- backdrop pattern ---------- */
/* The thin tile grid behind every purple and dark surface. */

:root {
  --pattern:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  --pattern-size: var(--tile) var(--tile);
}

.hero,
.pagehead,
.section--purple,
.board {
  position: relative;
  isolation: isolate;
}

.hero::before,
.pagehead::before,
.section--purple::before,
.board::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pattern);
  background-size: var(--pattern-size);
  pointer-events: none;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  overflow: hidden;
  background: radial-gradient(80% 90% at 50% 45%, #8b27da, #6f15b8 78%);
  text-align: center;
}

.hero::before {
  opacity: 0.6;
}

/* Phones: one bowl above the headline. Wide screens: a bowl held in from each side. */
.hero__bowl--a img {
  width: min(96%, 430px);
  margin: -7% auto max(-11%, -2.8rem);
}

.hero__bowl--b {
  display: none;
}

.hero__copy {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
}

.hero__text {
  max-width: 30ch;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 300;
  text-wrap: balance;
  color: rgba(255, 246, 232, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.hero__where {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.6rem;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 246, 232, 0.85);
}

.hero__where span,
.eyebrow span,
.mobile-nav__where span {
  color: var(--pink);
}

@media (min-width: 900px) {
  .hero {
    align-items: center;
    min-height: min(calc(100svh - var(--header-h)), 800px);
  }

  .hero__bowl--a img,
  .hero__bowl--b {
    position: absolute;
    display: block;
    width: clamp(380px, 41vw, 680px);
    max-width: none;
    margin: 0;
  }

  .hero__bowl--a img {
    left: -9.5vw;
    top: 3%;
  }

  .hero__bowl--b {
    right: -9.5vw;
    bottom: 1%;
    width: clamp(400px, 43.5vw, 720px);
  }

  .hero__copy {
    padding-block: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 5.6vw, 6rem);
    white-space: nowrap;
  }
}

/* Each line of the headline is its own block, so the break never moves. */
.hero h1 span {
  display: block;
  white-space: nowrap;
}

/* Small phones: the headline holds two lines and the bowl gives up a little height,
   so both hero buttons sit on the first screen. */
@media (max-width: 559px) {
  .hero__bowl--a img {
    width: min(96%, 430px, 43svh);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14.4vw, 3.5rem);
  }

  .hero__copy {
    gap: 0.8rem;
    padding-bottom: 2rem;
  }
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section--cream {
  background: var(--cream);
  color: var(--ink);
}

.section--purple {
  background: var(--purple);
}

.section__head {
  display: grid;
  gap: 0.8rem;
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section__head p {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.section__head--row {
  max-width: none;
}

.section__more {
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 760px) {
  .section__head--row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------- featured dishes: a bento-style mosaic ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.bento__tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  background: var(--purple-deep);
}

.bento__tile a {
  display: block;
  height: 100%;
  color: var(--cream);
  text-decoration: none;
}

.bento__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.bento__tile a:hover img {
  transform: scale(1.05);
}

.bento__tile a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 9, 33, 0.92), rgba(24, 9, 33, 0.35) 38%, rgba(24, 9, 33, 0) 62%);
}

.bento__tile .tag {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  z-index: 1;
}

.bento__text {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem;
}

.bento__text strong {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
}

.bento__desc {
  max-width: 34ch;
  font-size: 0.98rem;
  color: rgba(255, 246, 232, 0.9);
}

.bento__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.6rem;
  color: rgba(255, 246, 232, 0.88);
}

.bento__meta .price {
  font-size: 1.1rem;
  color: var(--yellow);
}

.bento__tile:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.bento__tile:first-child strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

/* The drink is a tall photo, so it gets the tall slot. */
.bento__tile:last-child {
  grid-column: 2;
  grid-row: 2 / span 2;
  aspect-ratio: auto;
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }

  .bento__tile:first-child {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    aspect-ratio: 1 / 1;
  }

  .bento__tile:last-child {
    grid-column: 5;
    grid-row: 1 / span 2;
  }

  .bento__text {
    padding: 1rem 1.1rem;
  }

  .bento__tile:first-child .bento__text {
    padding: 1.5rem;
  }
}

.bento small {
  font-size: 0.85rem;
}

/* ---------- pairing ---------- */

.pairing {
  overflow: hidden;
}

.pairing__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.pairing__media {
  position: relative;
  width: min(78%, 420px);
  margin-inline: auto 12%;
}

.pairing__main {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.pairing__second {
  position: absolute;
  right: -22%;
  bottom: -9%;
  width: 62%;
  border-radius: 18px;
  border: 6px solid var(--cream);
  transform: rotate(4deg);
}

.pairing__doodle {
  position: absolute;
  left: -18%;
  top: 6%;
  width: 26%;
  color: var(--yellow);
  transform: rotate(-14deg);
}

.pairing__copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.pairing__copy > p:not(.eyebrow) {
  max-width: 46ch;
  font-size: 1.12rem;
  color: rgba(255, 246, 232, 0.92);
}

.pairing__list {
  width: 100%;
  max-width: 30rem;
  border-top: 1px solid rgba(255, 246, 232, 0.3);
}

.pairing__list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 246, 232, 0.3);
  font-weight: 500;
  text-decoration: none;
  transition: padding 0.25s var(--ease);
}

.pairing__list a:hover {
  padding-left: 0.5rem;
}

.pairing__list .price {
  color: var(--yellow);
}

.pairing__copy > p.pairing__note {
  font-size: 0.95rem;
  color: rgba(255, 246, 232, 0.75);
}

@media (min-width: 900px) {
  .pairing__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .pairing__media {
    margin-inline: 8% auto;
  }
}

/* ---------- story ---------- */

.story__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.story__copy {
  display: grid;
  gap: 1.1rem;
}

.story__copy h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(2.3rem, 5vw, 3.75rem);
}

.story__copy p:not(.eyebrow) {
  max-width: 52ch;
  color: var(--ink-soft);
}

.story__media {
  position: relative;
  padding-bottom: 14%;
}

.story__main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.story__second {
  position: absolute;
  left: -4%;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 6px solid var(--cream);
  transform: rotate(-3deg);
}

@media (min-width: 900px) {
  .story__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* ---------- outlets (home): the restaurant at night behind the list of places ---------- */

.outlets {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--aubergine);
}

.outlets__bg {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.outlets::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(24, 9, 33, 0) 45vw, rgba(24, 9, 33, 0.8) 92vw, var(--aubergine) 128vw);
}

/* On phones the photo is a banner across the top that fades into the list. */
.outlets__grid {
  display: grid;
  gap: 1.8rem;
  padding-block: 84vw clamp(2.5rem, 6vw, 4rem);
}

.outlets__copy {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

.outlets__copy h2 {
  max-width: 5.2em;
  font-size: clamp(3rem, 5vw, 4.9rem);
}

.outlets__copy p:not(.eyebrow) {
  max-width: 32ch;
  font-size: 1.15rem;
  color: rgba(255, 246, 232, 0.88);
}

.outlets__list {
  border-top: 1px solid rgba(255, 246, 232, 0.3);
}

.outlets__list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 246, 232, 0.3);
  text-decoration: none;
  transition: padding 0.25s var(--ease);
}

.outlets__list a:hover {
  padding-left: 0.5rem;
}

.outlets__list strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.outlets__list small,
.outlets__list .status {
  grid-column: 1;
}

.outlets__list small {
  font-size: 0.92rem;
  color: rgba(255, 246, 232, 0.78);
}

.outlets__list .icon {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--yellow);
  transition: transform 0.25s var(--ease);
}

.outlets__list a:hover .icon {
  transform: translateX(4px);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.6em;
  font-size: 0.95rem;
  font-weight: 500;
}

.status::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.status:empty::before {
  display: none;
}

.status[data-open='true'] {
  color: #8ff0b0;
}

.status[data-open='true']::before {
  opacity: 1;
}

.section--cream .status[data-open='true'] {
  color: #116b38;
}

@media (min-width: 900px) {
  .outlets {
    min-height: min(calc(100svh - var(--header-h)), 760px);
  }

  .outlets__bg {
    inset: 0;
    height: 100%;
    object-position: 50% 12%;
  }

  .outlets::after {
    background:
      linear-gradient(to top, rgba(24, 9, 33, 0.97) 6%, rgba(24, 9, 33, 0.7) 42%, rgba(24, 9, 33, 0) 74%),
      linear-gradient(to right, rgba(24, 9, 33, 0.5), rgba(24, 9, 33, 0) 50%);
  }

  .outlets__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    align-items: end;
    gap: 3rem;
    padding-block: 8rem 3.5rem;
  }

  .outlets__list a {
    padding-block: 0.7rem;
  }
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1rem);
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--purple-deep);
  aspect-ratio: 1 / 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Phone: tall photo beside two squares, a wide one, then two squares. */
.gallery__item:nth-child(1) {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__item:nth-child(4) {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery__item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
  }

  .gallery__item:nth-child(4) {
    grid-area: 2 / 2 / 3 / 4;
    aspect-ratio: auto;
  }

  .gallery__item:nth-child(5) {
    grid-area: 1 / 4;
  }

  .gallery__item:nth-child(6) {
    grid-area: 2 / 4;
  }
}

/* ---------- footer ---------- */

.footer {
  background: var(--aubergine);
  border-top: 1px solid rgba(167, 43, 238, 0.35);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.98rem;
}

.footer__grid {
  display: grid;
  gap: 2.2rem;
}

.footer__brand p {
  margin-top: 0.8rem;
  max-width: 18ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1;
}

.footer h2 {
  margin-bottom: 0.9rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--yellow);
}

.footer ul {
  display: grid;
  gap: 0.55rem;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer__places li {
  display: grid;
}

/* Outlet name and label wrap as one line of text rather than as two separate blocks. */
.footer__places li > a:first-child {
  display: block;
}

.footer__places strong {
  font-weight: 600;
}

.footer__tel {
  font-size: 0.92rem;
  opacity: 0.75;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 246, 232, 0.14);
  font-size: 0.88rem;
  color: rgba(255, 246, 232, 0.65);
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1.5fr 1fr;
  }
}

/* ---------- inner page head ---------- */

.pagehead {
  background:
    radial-gradient(50% 90% at 90% 0%, rgba(167, 43, 238, 0.55), transparent 70%), var(--purple-deep);
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
}

.pagehead__grid {
  display: grid;
  gap: 1.8rem;
}

.pagehead h1 {
  margin-top: 0.6rem;
  font-size: clamp(3.4rem, 9vw, 7rem);
}

.pagehead__text {
  margin-top: 1rem;
  max-width: 38ch;
  font-size: 1.15rem;
  font-weight: 300;
}

.pagehead--center {
  text-align: center;
  padding-block: clamp(5rem, 14vw, 9rem);
}

.pagehead--center .pagehead__text {
  margin-inline: auto;
}

.pagehead--center .hero__actions {
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .pagehead__grid {
    grid-template-columns: 1fr minmax(0, 26rem);
    align-items: end;
  }
}

/* ---------- menu ---------- */

.search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1rem;
  min-height: 56px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 14px;
  border: 2px solid transparent;
}

.search:focus-within {
  border-color: var(--yellow);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  background: none;
  outline: none;
  font-size: 1.05rem;
}

.search input::placeholder {
  color: #6f5c79;
}

.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--cream);
  border-bottom: 1px solid rgba(36, 16, 47, 0.14);
}

.filters__inner {
  width: min(100%, var(--wrap) + var(--gutter) * 2);
}

.filters__chips {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filters__chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 2px solid rgba(36, 16, 47, 0.22);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.chip:hover {
  border-color: var(--purple);
}

.chip[aria-pressed='true'] {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.filters :focus-visible {
  outline-color: var(--purple);
}

.menu {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.menu__count {
  min-height: 1.6em;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.menu__section {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  scroll-margin-top: 4.5rem;
}

.menu__section[hidden] {
  display: none;
}

.menu__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--ink);
}

.menu__section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--purple);
}

.menu__section-head p {
  color: var(--ink-soft);
}

.menu__items {
  display: grid;
  column-gap: clamp(2rem, 5vw, 4rem);
}

.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.2rem 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(36, 16, 47, 0.16);
  scroll-margin-top: 5rem;
}

.item[hidden] {
  display: none;
}

.item__thumb {
  grid-row: span 2;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--purple-deep);
}

.item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.item:hover .item__thumb img {
  transform: scale(1.07);
}

.item__body {
  grid-column: 2;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.item:not(:has(.item__thumb)) .item__body {
  grid-column: 1 / span 2;
}

.item h3 {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
}

.item__desc {
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  background: rgba(123, 22, 181, 0.1);
  color: var(--purple-deep);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tag--hot {
  background: var(--yellow);
  color: var(--ink);
}

.item__price {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  text-align: right;
}

.item__price .price {
  font-size: 1.15rem;
  color: var(--purple);
}

.item__portion {
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.item:target {
  background: linear-gradient(90deg, rgba(255, 211, 90, 0.45), rgba(255, 211, 90, 0));
  box-shadow: -0.75rem 0 0 rgba(255, 211, 90, 0.45);
}

.menu__empty {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  text-align: center;
}

.menu__empty[hidden] {
  display: none;
}

.menu__empty-doodle {
  width: 96px;
  color: var(--purple);
}

.menu__empty h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.menu__empty p {
  max-width: 36ch;
  color: var(--ink-soft);
}

.menu__notes {
  display: grid;
  gap: 0.8rem;
  max-width: 60ch;
  margin-top: clamp(2rem, 5vw, 3rem);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.menu__notes p:last-child {
  margin-top: 0.6rem;
}

@media (min-width: 900px) {
  .menu__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item__thumb {
    width: 104px;
    height: 104px;
  }
}

/* ---------- locations page ---------- */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 2px solid rgba(255, 246, 232, 0.45);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}

/* The links jump down the page, so the arrow points down. */
.jump .icon {
  width: 1rem;
  height: 1rem;
  transform: rotate(90deg);
  opacity: 0.8;
}

.jump a:hover {
  background: var(--cream);
  color: var(--ink);
}

.places {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.place {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #fffaf1;
  box-shadow: 6px 6px 0 var(--purple);
  scroll-margin-top: 0.5rem;
}

.place__source {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.place h2 {
  margin-top: 0.5rem;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
}

.place__label {
  margin-block: 0.3rem 0.7rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--purple);
}

.place__info {
  display: grid;
  gap: 1.3rem;
}

.place__info h3 {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hours {
  display: grid;
  gap: 0.15rem;
}

/* A time range never breaks in the middle; in a narrow column it drops under its day instead. */
.hours div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.8rem;
}

.hours dt {
  min-width: 5rem;
  font-weight: 600;
}

.hours dd {
  white-space: nowrap;
}

.place__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.place__map {
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--ink);
  aspect-ratio: 16 / 10;
  background: var(--cream-2);
}

.place__map[hidden] {
  display: none;
}

.place__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 760px) {
  .place__info {
    grid-template-columns: 1.4fr 1.2fr 1fr;
  }

  .place__map {
    aspect-ratio: 21 / 9;
  }
}

@media (min-width: 1000px) {
  .place {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    column-gap: 3rem;
  }

  .place__actions,
  .place__map {
    grid-column: 1 / -1;
  }

  .place h2 {
    font-size: clamp(2.8rem, 4.6vw, 4.2rem);
  }
}

/* ---------- order dialog ---------- */

/* The page behind an open dialog stays put. */
html {
  scrollbar-gutter: stable;
}

html:has(dialog[open]) {
  overflow: hidden;
}

.order {
  width: min(100% - 1.5rem, 34rem);
  max-height: min(100dvh - 1.5rem, 46rem);
  padding: clamp(1.4rem, 5vw, 2.2rem);
  border: 2px solid var(--violet);
  border-radius: 24px;
  background: var(--aubergine-2);
  color: var(--cream);
  box-shadow: 0 0 80px -10px rgba(167, 43, 238, 0.8);
}

.order::backdrop {
  background: rgba(12, 4, 18, 0.78);
}

.order h2 {
  padding-right: 3rem;
  font-size: clamp(2.2rem, 7vw, 3rem);
}

.order__lead {
  margin-top: 0.6rem;
  color: rgba(255, 246, 232, 0.82);
}

.order__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 246, 232, 0.35);
  border-radius: 12px;
  background: none;
  cursor: pointer;
}

.order__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-block: 1.4rem 1.2rem;
}

.order__option {
  position: relative;
  cursor: pointer;
}

.order__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.order__option span {
  display: grid;
  align-content: start;
  gap: 0.1rem;
  height: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(255, 246, 232, 0.25);
  border-radius: 14px;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.order__option strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  line-height: 1;
}

.order__option small {
  font-size: 0.85rem;
  color: rgba(255, 246, 232, 0.75);
}

.order__option:hover span {
  border-color: rgba(255, 246, 232, 0.6);
}

.order__option input:checked + span {
  border-color: var(--yellow);
  background: rgba(255, 211, 90, 0.12);
}

.order__option input:focus-visible + span {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.order__hint {
  color: rgba(255, 246, 232, 0.7);
}

.order__panel {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.order__panel[hidden] {
  display: none;
}

.order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---------- menu, "board" layout ---------- */

.board {
  background: var(--aubergine);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* No tile grid behind the dishes: its lines read as stray rules next to names and prices. */
.board::before {
  display: none;
}

.board__tools {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.board__tools .search {
  width: 100%;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 1rem 0.4rem 0.8rem;
  border: 2px solid rgba(255, 246, 232, 0.45);
  border-radius: 12px;
  background: transparent;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.toggle::before {
  content: '';
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.toggle[aria-pressed='true'] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.toggle[aria-pressed='true']::before {
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--yellow);
}

/* Section links: a sticky strip on phones, a sidebar on wide screens. */
.board__nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  margin-inline: calc(-1 * var(--gutter));
  background: rgba(24, 9, 33, 0.96);
  border-bottom: 1px solid rgba(167, 43, 238, 0.4);
}

.board__nav-links {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.board__nav-links::-webkit-scrollbar {
  display: none;
}

.board__nav a[data-spy-link] {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 2px solid rgba(255, 246, 232, 0.25);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.board__nav a[data-spy-link][hidden] {
  display: none;
}

.board__nav small {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.6;
}

.board__nav a[aria-current='true'] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.board__nav-order {
  display: none;
}

.board__content {
  min-width: 0;
  padding-top: 1.2rem;
}

.board .menu__count {
  color: rgba(255, 246, 232, 0.7);
}

.board__section {
  padding-block: clamp(1.6rem, 4vw, 2.75rem);
  scroll-margin-top: 4.2rem;
}

.board__section[hidden],
.mcards[hidden],
.mrows[hidden],
.mcard[hidden],
.mrow[hidden] {
  display: none;
}

.board__head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
}

.board__head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--yellow);
}

.board__head p {
  color: rgba(255, 246, 232, 0.72);
}

/* A whole card or row opens its details. */
.stretch {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.stretch::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stretch:focus-visible {
  outline: none;
}

.mcard:has(.stretch:focus-visible),
.mrow:has(.stretch:focus-visible) {
  outline: 3px solid var(--yellow);
  outline-offset: 5px;
  border-radius: 14px;
}

.mcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem clamp(0.8rem, 2.5vw, 1.5rem);
}

.mcard {
  position: relative;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  scroll-margin-top: 5rem;
}

.mcard__media {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.45rem;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: var(--purple-deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.25s;
}

.mcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.mcard:hover .mcard__media {
  box-shadow:
    0 0 0 2px var(--violet),
    0 14px 40px -12px rgba(167, 43, 238, 0.9);
}

.mcard:hover .mcard__media img {
  transform: scale(1.06);
}

.mcard__media .tag {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
}

.mcard h3,
.mrow h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
}

.mcard__text {
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.mcard__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.93rem;
  line-height: 1.4;
  color: rgba(255, 246, 232, 0.8);
}

.mcard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.7rem;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: rgba(255, 246, 232, 0.8);
}

.mcard__foot .price,
.mrow__price .price {
  font-size: 1.12rem;
  color: var(--yellow);
}

.tag--dark {
  background: rgba(167, 43, 238, 0.3);
  color: #f0d9ff;
}

/* A lone photo, or the odd one left at the end of a phone row, runs full width
   with its text beside it instead of leaving an empty slot. */
.mcards[data-count='1'] > .mcard--last {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.mcards[data-count='1'] > .mcard--last .mcard__media {
  margin-bottom: 0;
}

.mcards[data-count='1'] > .mcard--last .mcard__desc {
  -webkit-line-clamp: 4;
}

@media (max-width: 619px) {
  .mcards[data-odd] > .mcard--last {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: 1rem;
  }

  .mcards[data-odd] > .mcard--last .mcard__media {
    margin-bottom: 0;
  }

  .mcards[data-odd] > .mcard--last .mcard__desc {
    -webkit-line-clamp: 4;
  }
}

/* Dishes without a photo, as menu-board lines. The dotted leader is the only rule:
   rows are separated by space, so no line is ever left hanging under the last one. */
.mcards + .mrows {
  margin-top: 2.2rem;
}

.mrows {
  display: grid;
  gap: 1.5rem clamp(2rem, 5vw, 3.5rem);
}

.mrow {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  align-content: start;
  gap: 0.25rem 0.7rem;
  scroll-margin-top: 5rem;
}

.mrow h3 {
  max-width: 22ch;
}

.mrow__dots {
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(255, 246, 232, 0.35);
  transform: translateY(-0.3em);
}

.mrow__ask {
  font-size: 0.9rem;
  color: rgba(255, 246, 232, 0.7);
}

.mrow__desc,
.mrow .item__tags {
  grid-column: 1 / -1;
}

.mrow__desc {
  font-size: 0.93rem;
  line-height: 1.4;
  color: rgba(255, 246, 232, 0.8);
}

.mrow__portion {
  margin-right: 0.15rem;
  font-weight: 600;
  color: rgba(255, 246, 232, 0.9);
  white-space: nowrap;
}

.mrow__portion::after {
  content: ' ·';
  font-weight: 400;
}

.mrow:hover h3 {
  color: var(--yellow);
}

.mcard:target .mcard__media {
  box-shadow:
    0 0 0 3px var(--yellow),
    0 14px 40px -12px rgba(255, 211, 90, 0.7);
}

.mrow:target {
  background: linear-gradient(90deg, rgba(255, 211, 90, 0.2), rgba(255, 211, 90, 0));
  box-shadow: -0.75rem 0 0 rgba(255, 211, 90, 0.2);
}

.board .menu__empty h2 {
  color: var(--cream);
}

.board .menu__empty p,
.board .menu__notes {
  color: rgba(255, 246, 232, 0.7);
}

.board .menu__empty-doodle {
  color: var(--yellow);
}

@media (min-width: 620px) {
  .mcards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mcards[data-count='1'] > .mcard--last {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .mcards[data-count='1'] > .mcard--last h3 {
    font-size: 1.35rem;
  }

  .mcards[data-count='1'] > .mcard--last .mcard__desc {
    max-width: 44ch;
    font-size: 1rem;
  }

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

@media (min-width: 1000px) {
  .board__layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }

  .board__nav {
    top: calc(var(--header-h) + 2rem);
    display: grid;
    gap: 1.5rem;
    margin: 2.5rem 0 0;
    background: none;
    border: 0;
  }

  .board__nav-links {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: visible;
    border-left: 2px solid rgba(255, 246, 232, 0.14);
  }

  .board__nav a[data-spy-link] {
    justify-content: space-between;
    margin-left: -2px;
    padding: 0.55rem 0 0.55rem 1.1rem;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.55rem;
    text-transform: uppercase;
    line-height: 1;
    white-space: normal;
    color: rgba(255, 246, 232, 0.6);
  }

  .board__nav a[data-spy-link]:hover {
    color: var(--cream);
  }

  .board__nav a[aria-current='true'] {
    background: none;
    border-left-color: var(--yellow);
    color: var(--yellow);
  }

  .board__nav small {
    font-family: var(--body);
    font-size: 0.85rem;
  }

  .board__nav-order {
    display: inline-flex;
  }

  .board__content {
    padding-top: 2rem;
  }

  .board__section,
  .mcard,
  .mrow {
    scroll-margin-top: 0.5rem;
  }
}

/* ---------- dish detail sheet ---------- */

.sheet {
  width: 100%;
  max-width: none;
  max-height: 90dvh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-top: 2px solid var(--violet);
  border-radius: 26px 26px 0 0;
  background: var(--aubergine-2);
  color: var(--cream);
  box-shadow: 0 0 80px -10px rgba(167, 43, 238, 0.8);
  overflow: auto;
}

.sheet::backdrop {
  background: rgba(12, 4, 18, 0.78);
}

.sheet > form {
  display: contents;
}

.sheet__close {
  z-index: 2;
  background: rgba(24, 9, 33, 0.85);
}

.sheet__media:empty {
  display: none;
}

.sheet__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sheet__body {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding: clamp(1.4rem, 5vw, 2.4rem);
  padding-bottom: calc(clamp(1.4rem, 5vw, 2.4rem) + env(safe-area-inset-bottom));
}

.sheet__media:empty + .sheet__body {
  padding-top: 4.2rem;
}

.sheet h2 {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
}

.sheet .item__tags:empty {
  display: none;
}

.sheet__desc {
  font-size: 1.1rem;
  color: rgba(255, 246, 232, 0.9);
}

.sheet__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.2rem;
  width: 100%;
  padding-block: 1rem;
  border-block: 1px solid rgba(255, 246, 232, 0.18);
}

.sheet__facts div[hidden] {
  display: none;
}

.sheet__facts dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 246, 232, 0.6);
}

.sheet__facts dd {
  font-size: 1.25rem;
  font-weight: 600;
}

.sheet__facts [data-sheet-price] {
  color: var(--yellow);
}

.sheet__note {
  font-size: 0.9rem;
  color: rgba(255, 246, 232, 0.65);
}

@media (min-width: 760px) {
  .sheet {
    width: min(100% - 3rem, 56rem);
    margin: auto;
    border: 2px solid var(--violet);
    border-radius: 26px;
  }

  .sheet[open]:has(.sheet__media img) {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sheet__media img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 26rem;
  }

  .sheet:not(:has(.sheet__media img)) {
    width: min(100% - 3rem, 34rem);
  }

  .sheet__body {
    align-content: center;
  }
}

/* ---------- motion ---------- */

/* Content below the first screen eases in as it arrives. Nothing is hidden unless the
   script that reveals it is already running, so a failed script never leaves a blank section. */
.reveal {
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.reveal--wait {
  opacity: 0;
  transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal--wait {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .bento__tile a:hover img,
  .gallery__item:hover img,
  .mcard:hover .mcard__media img {
    transform: none;
  }
}
