/* Pita Bell — the menu page and the dish pages. Uses the tokens, buttons, header and tray from
   style.css. Codes sit in die-cut stickers the way they're printed on their own menu boards. */

.pg { background: var(--cream); }
.pg main { padding-top: clamp(84px, 9vw, 116px); }
/* The header on these pages sits on a band of cream, so it never floats over a photo. */
.bar--page { background: var(--cream); box-shadow: 0 1px 0 rgba(30, 20, 16, .08); }
.bar--page .bar__nav > a[aria-current="page"] { color: var(--red); }

/* The colour each section wears, from their menu data */
[data-tone="red"] { --tone: var(--red); --on-tone: var(--milk); }
[data-tone="teal"] { --tone: var(--teal); --on-tone: var(--milk); }
[data-tone="teal-dark"] { --tone: var(--teal-dark); --on-tone: var(--milk); }
[data-tone="copper"] { --tone: var(--copper); --on-tone: var(--milk); }
[data-tone="yellow"] { --tone: var(--yellow); --on-tone: var(--ink); }
[data-tone="ink"] { --tone: var(--ink); --on-tone: var(--milk); }

/* A code like P5 on a scalloped die-cut sticker */
.code {
  position: relative; display: inline-grid; place-items: center;
  min-width: 3.1em; height: 3.1em; padding: 0 .5em;
  font-family: var(--slab); font-size: 15px; line-height: 1; color: var(--on-tone, var(--milk));
  background: var(--tone, var(--red)); border: 4px solid var(--paper); border-radius: 999px;
  box-shadow: 0 6px 12px rgba(40, 20, 5, .25);
  rotate: var(--r, -8deg);
}
.spicy {
  display: inline-flex; align-items: center; gap: 4px; padding: .3em .6em .25em;
  font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--milk); background: var(--red); border: 3px solid var(--paper); border-radius: 8px;
  box-shadow: 0 4px 8px rgba(40, 20, 5, .2); rotate: 4deg;
}
.spicy svg { width: 12px; height: 14px; }
/* How many people a family platter feeds: a teal tag with two little people. */
.serves {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; width: max-content;
  padding: .32em .7em .28em; border-radius: 999px;
  font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--milk); background: var(--teal, #137A80);
}
.serves svg { width: 18px; height: 13px; flex: none; }
.card__txt .serves { grid-column: 1 / -1; margin: 2px 0 2px; }
.row__serves { grid-column: 2 / -1; margin: -2px 0 2px; font-size: 12.5px; }
/* The dish's other choices and their prices, under the main price. */
.choices { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.choices b { font-family: var(--slab); font-weight: 400; color: var(--red); }
.card__txt .choices { grid-column: 1 / -1; }
.row__choices { grid-column: 2 / -1; margin: -4px 0 2px; }
.serves--big { margin: 4px 0 10px; font-size: 17px; padding: .4em .9em .34em; rotate: -2deg; }
.serves--big svg { width: 22px; height: 16px; }

/* ================================================================== the menu page */
.mh { position: relative; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(20px, 3vw, 40px); text-align: center; overflow: hidden; }
.mh__word {
  margin: .08em 0 0; font-family: var(--slab); font-weight: 400; line-height: .9; color: var(--red);
  font-size: clamp(84px, 14.5vw, 240px); white-space: nowrap;
}
.mh__word .ch { transform: translateY(var(--y, 0)) rotate(var(--r, 0)); }
.mh__word .sp { width: .22em; }
/* The grill: prints laid across the bottom of the word */
.mh__grill { display: flex; justify-content: center; gap: clamp(8px, 1.4vw, 18px); margin-top: clamp(-26px, -1.6vw, -10px); }
.mh__grill img {
  width: clamp(110px, 16vw, 240px); aspect-ratio: 4 / 3; object-fit: cover;
  border: clamp(5px, .6vw, 8px) solid var(--paper); border-radius: 4px;
  box-shadow: 0 14px 26px rgba(40, 20, 5, .3);
}
.mh__grill img:nth-child(odd) { rotate: -4deg; translate: 0 6px; }
.mh__grill img:nth-child(even) { rotate: 3deg; }
.mh__note {
  margin: 18px 0 0;
  font-family: 'Caveat Brush', cursive; font-size: clamp(20px, 1.9vw, 28px); color: var(--ink); rotate: -2deg;
}
.mh__note svg { display: none; }

/* The sections bar sticks under the header and scrolls sideways on a phone */
.cats { position: sticky; top: var(--bar-h, 84px); z-index: 30; background: var(--cream); border-bottom: 2px solid rgba(30, 20, 16, .1); }
.cats__row { display: flex; gap: 10px; padding: 12px var(--pad); overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.cats__row::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; padding: 9px 16px 7px; border-radius: 999px; border: 3px solid var(--tone); color: var(--ink);
  font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s;
}
.cats a:hover, .cats a[aria-current="true"] { background: var(--tone); color: var(--on-tone); }

.menu-body { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad) 80px; }
.cat { scroll-margin-top: calc(var(--bar-h, 84px) + 70px); padding-top: clamp(40px, 5vw, 72px); }
.cat__head { position: relative; display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 4px solid var(--tone); }
.cat__head h2 { margin: 0; font-family: var(--slab); font-weight: 400; font-size: clamp(42px, 5.4vw, 76px); line-height: .95; color: var(--tone); }
.cat__head .cat__sub { font-family: var(--cond); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5em; }
.cat__note { margin: 0 0 .35em auto; font-family: 'Caveat Brush', cursive; font-size: clamp(20px, 1.8vw, 26px); color: var(--ink); rotate: -2deg; }
/* Their own cut-out food peeking over the section's edge */
/* The section's corner picture. Its height is capped to the space above the heading line, so a tall
   one (the pide, the kunafa and tea) never reaches up into the section before it. */
.cat__cut { position: absolute; right: 0; bottom: 8px; width: clamp(90px, 11vw, 160px); height: clamp(76px, 8.6vw, 124px); object-fit: contain; object-position: right bottom; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(40, 20, 5, .3)); }
.cat__head:has(.cat__cut) { padding-right: clamp(100px, 12vw, 170px); }
/* Family: the two-metre platter lies along the corner, the 6-skewer one sits on top of it. */
.cat__head:has(.cat__cut--1) { padding-right: clamp(170px, 30vw, 440px); }
.cat__head .cat__cut--0:not(:only-of-type) { width: clamp(170px, 30vw, 430px); right: -10px; bottom: -14px; rotate: -3deg; }
.cat__cut--1 { width: clamp(110px, 17vw, 250px); right: clamp(50px, 10vw, 150px); bottom: clamp(22px, 3.4vw, 52px); rotate: 7deg; }

/* Dishes with photos: cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(18px, 2vw, 28px); }
.card { position: relative; }
.card__ph { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #d9cbb4; box-shadow: 0 12px 24px rgba(40, 20, 5, .16); }
.card__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__ph img { transform: scale(1.06); }
/* A cut-out plate sits whole on a warm paper ground, with a shadow under it, never cropped. */
.card--cut .card__ph { background: radial-gradient(ellipse at 50% 45%, #FFF8EE, #EADBC2); }
.card--cut .card__ph img { object-fit: contain; padding: 8%; filter: drop-shadow(0 10px 12px rgba(40, 20, 5, .28)); }
.card .code { position: absolute; left: -8px; top: -10px; z-index: 2; }
.card .spicy { position: absolute; right: 10px; top: 10px; z-index: 2; }
.card__txt { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 4px 0; }
.card__txt h3 { margin: 0; font-family: var(--slab); font-weight: 400; font-size: 23px; line-height: 1.05; }
.card__price { font-family: var(--slab); font-size: 21px; color: var(--red); white-space: nowrap; }
.card__txt p { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.35; }
/* Stickers sit on the photo's bottom right corner: the photo is 4:3, so 75% of the card's width down. */
.card { container-type: inline-size; }
.card__link { display: block; color: inherit; text-decoration: none; }

/* Sold out today (set in the admin): a stamped sticker, the photo goes quiet */
.out {
  display: inline-block; padding: .35em .7em .3em; rotate: -4deg;
  font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--milk); background: var(--ink); border: 3px solid var(--paper); border-radius: 8px;
  box-shadow: 0 6px 12px rgba(40, 20, 5, .25);
}
.card .out { position: absolute; right: 10px; top: calc(75cqw - 50px); z-index: 3; }
.card--out .card__ph img { filter: grayscale(.85) contrast(.9); opacity: .75; }
.card--out .card__price { color: var(--ink-soft); }
.row--out .row__name, .row--out .row__price { color: var(--ink-soft); }
.buy__out { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; color: var(--ink-soft); font-size: 17px; }

/* Dishes without a photo: rows like their printed menu, with dotted leaders */
.rows { list-style: none; margin: 18px 0 0; padding: 0; columns: 2 380px; column-gap: clamp(28px, 4vw, 64px); }
.cards + .rows { margin-top: 34px; }
.row { break-inside: avoid; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(30, 20, 16, .1); }
.row .code { font-size: 12px; height: 2.8em; min-width: 2.8em; --r: -6deg; align-self: center; }
.row__name { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: inherit; text-decoration: none; font-weight: 600; font-size: 17px; }
.row__name::after { content: ''; flex: 1; border-bottom: 2px dotted rgba(30, 20, 16, .3); translate: 0 -4px; }
.row__price { font-family: var(--slab); color: var(--red); font-size: 18px; white-space: nowrap; }
.row__desc { grid-column: 2 / -1; margin: -4px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.row:not(:has(.code)) .row__desc { grid-column: 1 / -1; }
.row:not(:has(.code)) { grid-template-columns: 1fr auto; }

/* ================================================================== a dish page */
.dish { max-width: 1320px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.dish__back { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 22px; font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.dish__back:hover { color: var(--red); }
.dish__main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }

/* The gallery: one big photo you can swipe, thumbnails under it */
.gal { position: relative; min-width: 0; }
.gal__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 18px; box-shadow: 0 20px 40px rgba(40, 20, 5, .22); background: #d9cbb4;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; }
.gal--cut .gal__track { background: radial-gradient(ellipse at 50% 45%, #FFF8EE, #EADBC2); }
.gal--cut .gal__track img { object-fit: contain; padding: 12%; filter: drop-shadow(0 18px 18px rgba(40, 20, 5, .3)); }
.gal__count {
  position: absolute; left: 14px; top: 14px; padding: 6px 10px 4px; border-radius: 8px;
  font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .1em;
  background: var(--milk); color: var(--ink); border: 3px solid var(--paper); box-shadow: 0 4px 10px rgba(40, 20, 5, .2); rotate: -3deg;
}
.gal__nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--paper); background: var(--milk); color: var(--ink); cursor: pointer; box-shadow: 0 6px 14px rgba(40, 20, 5, .25); font-size: 22px; }
.gal__nav--prev { left: 14px; }
.gal__nav--next { right: 14px; }
.gal__nav[disabled] { opacity: 0; pointer-events: none; }
.gal__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.gal__thumbs button { flex: none; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .7; transition: opacity .2s, border-color .2s, translate .2s; }
.gal__thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; translate: 0 -3px; }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* No photo yet: a tile like their printed menu. The section's colour with a faint lattice,
   their code on a paper sticker, and the dish's name in the slab. */
.gal--none {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 22px);
  padding: 28px; border-radius: 18px; text-align: center; color: var(--on-tone);
  background:
    repeating-linear-gradient(45deg, transparent 0 34px, rgba(255, 255, 255, .07) 34px 36px),
    repeating-linear-gradient(-45deg, transparent 0 34px, rgba(255, 255, 255, .07) 34px 36px),
    var(--tone);
  box-shadow: 0 20px 40px rgba(40, 20, 5, .22);
}
.gal__kick { font-family: var(--cond); font-weight: 700; font-size: clamp(13px, 1.2vw, 16px); letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.gal__code {
  display: grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .3em; border-radius: 999px;
  background: var(--paper); color: var(--tone); box-shadow: 0 10px 22px rgba(40, 20, 5, .3);
  font-family: var(--slab); font-weight: 400; font-size: clamp(54px, 8vw, 110px); line-height: 1; rotate: -7deg;
}
.gal__name { max-width: 14ch; font-family: var(--slab); font-size: clamp(30px, 4.4vw, 60px); line-height: .98; }
/* Without a code sticker, the name is the whole tile. */
.gal--none:not(:has(.gal__code)) .gal__name { font-size: clamp(54px, 8vw, 110px); rotate: -4deg; }

.info { position: sticky; top: calc(var(--bar-h, 84px) + 20px); }
.info__kick { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .16em; text-transform: uppercase; color: var(--tone); }
.info h1 { margin: 0; font-family: var(--slab); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: .95; color: var(--red); }
.info__price { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; }
.burst { position: relative; display: grid; place-items: center; width: 118px; aspect-ratio: 1; font-family: var(--slab); font-size: 28px; color: var(--red); rotate: -8deg; filter: drop-shadow(0 8px 12px rgba(40, 20, 5, .25)); }
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.burst span { position: relative; }
.burst--ask { font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-align: center; line-height: 1; }
.info__desc { margin: 10px 0 0; font-size: 19px; line-height: 1.45; }
.info__side { margin: 12px 0 0; font-family: 'Caveat Brush', cursive; font-size: 24px; color: var(--ink); rotate: -1.5deg; }

/* The dish's prices, read like the printed menu: what it is, a dotted line, the price.
   Nothing to pick here; ordering happens on their ordering site. */
.prices { margin: 24px 0 0; padding: 0; list-style: none; max-width: 460px; }
.prices li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 600; font-size: 17px; }
.prices li::after { content: ''; order: 2; flex: 1; border-bottom: 2px dotted currentColor; opacity: .35; }
.prices .code { order: 0; font-size: 12px; min-width: 2.6em; height: 2.6em; border-width: 3px; box-shadow: none; rotate: 0deg; }
.prices__what { order: 1; }
.prices b { order: 3; font-family: var(--slab); font-weight: 400; font-size: 19px; color: var(--red); }

.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.buy .btn--red { flex: 1; min-width: 220px; }
.buy__hint { flex-basis: 100%; margin: 0; color: var(--ink-soft); font-size: 16px; }
.buy__code { font-family: var(--slab); font-weight: 400; color: var(--red); }

.facts { margin-top: 30px; border-top: 2px solid rgba(30, 20, 16, .12); }
.facts details { border-bottom: 2px solid rgba(30, 20, 16, .12); }
.facts summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; list-style: none; font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.facts summary::-webkit-details-marker { display: none; }
.facts summary::after { content: '+'; font-family: var(--slab); font-size: 24px; color: var(--red); transition: rotate .25s; }
.facts details[open] summary::after { rotate: 45deg; }
.facts p, .facts ul { margin: 0 0 16px; line-height: 1.5; color: var(--ink-soft); }
.facts ul { padding-left: 1.1em; }

/* Goes well with */
.more { margin-top: clamp(56px, 7vw, 100px); padding-bottom: 80px; }
.more h2 { margin: 0 0 22px; font-family: var(--slab); font-weight: 400; font-size: clamp(36px, 4.2vw, 60px); color: var(--ink); }
.more h2 em { font-style: normal; color: var(--red); }

/* The footer on these pages */
.pgfoot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 40px; padding: 48px var(--pad) 40px; background: var(--teal-dark); color: var(--milk); }
.pgfoot__word { grid-column: 1 / -1; margin: 0; font-family: var(--slab); font-size: min(12.4vw, 200px); line-height: .9; color: var(--cream); white-space: nowrap; overflow: hidden; }
.pgfoot__info p { margin: 4px 0; font-size: 17px; }
.pgfoot__info a { color: var(--yellow); }

/* A big photo, opened from the gallery */
.zoom { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(20, 12, 8, .88); cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }

@media (max-width: 860px) {
  .dish__main { grid-template-columns: 100%; }
  .info { position: static; }
  /* The gallery runs edge to edge on a phone, and you swipe it */
  .gal { margin: 0 calc(var(--pad) * -1); }
  .gal__track { border-radius: 0; box-shadow: none; }
  .gal__nav { display: none; }
  .gal__thumbs { padding-left: var(--pad); padding-right: var(--pad); }
  .gal--none { border-radius: 0; }
}
@media (max-width: 760px) {
  .mh__word { font-size: 25vw; line-height: .86; white-space: normal; }
  .mh__word .sp { display: block; width: 0; height: 0; }
  .mh__grill img:nth-child(n+4) { display: none; }
  .cats__row { justify-content: flex-start; }
  .cat__head { gap: 6px 14px; }
  .cat__note { margin-left: 0; flex-basis: 100%; }
  .rows { columns: 1; }
  .cards { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .card__txt { grid-template-columns: 1fr; padding-top: 10px; }
  .card__txt h3 { font-size: 18px; }
  .card__price { font-size: 17px; }
  .card__txt p { display: none; }
  .card .code { font-size: 12px; }
  .buy .btn--red { min-width: 0; }
  /* On a phone the order button rides along at the bottom */
  .buy { position: sticky; bottom: 0; z-index: 20; margin: 24px calc(var(--pad) * -1) 0; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: var(--cream); box-shadow: 0 -10px 20px rgba(40, 20, 5, .1); }
  .buy__hint { font-size: 14.5px; }
  .pgfoot { grid-template-columns: 1fr; }
}
