/* Grill House, "Ticket" skin v3: warm paper, ink, one stamp-red accent. Serif display, typewriter labels, hairline rules.
   No cards, no pills, no gradients, no particles. Motion: transform, opacity and clip-path only, all of it off under prefers-reduced-motion.
   Logical properties only, so RTL mirrors for free. */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Reem Kufi"; src: url("/assets/fonts/reem-kufi-arabic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
:root {
  --bg: #efe8da;
  --surface: #f7f2e7;
  --surface-2: #e4d9c3;
  --line: #cbbea3;
  --dots: #8d806b;
  --text: #1c1814;
  --muted: #5d5448;
  --accent: #b8301a;
  --accent-ink: #fbf6ea;
  --price: #1c1814;
  --ok: #2b6a3d;
  --bad: #b8301a;
  --radius: 2px;
  --bar-h: 50px;
  --pad: 18px;
  --lbl: .74rem;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --label: var(--mono);
  color-scheme: light;
}
body.l-ar { --lbl: .95rem; --display: "Reem Kufi", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; --label: "Reem Kufi", "Courier Prime", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 8px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .tabs { scroll-behavior: smooth; }
}
body { margin: 0; min-height: 100vh; color: var(--text); font: 1rem/1.5 var(--font);
  background: var(--bg) url("/assets/grain.png") 0 0 / 80px 80px; }
body.l-ar { font-family: var(--font-ar); font-size: 1.0625rem; line-height: 1.7; }
:lang(ar) { font-family: var(--font-ar); }
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -64px; z-index: 60; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 8px; }
/* Every small label is typewriter caps (Arabic: Kufi, no tracking, no caps) */
.btn, .acts a, .tabs a, .lab-h, .foot h2, .langsw, .pill, .status, .tbl, .no, .sheet-allergens h3 { font-family: var(--label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.l-ar .btn, .l-ar .acts a, .l-ar .tabs a, .l-ar .lab-h, .l-ar .foot h2, .l-ar .langsw, .l-ar .pill, .l-ar .status, .l-ar .tbl, .l-ar .no, .l-ar .sheet-allergens h3 { letter-spacing: 0; text-transform: none; }
.btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 20px; border-radius: var(--radius); background: var(--text); color: var(--bg); font-size: calc(var(--lbl) * 1.08); line-height: 1; text-decoration: none; transition: transform .15s var(--ease); }
.btn:active { transform: translateY(2px); }
.go::after { content: "\2193"; font-size: 1.35rem; letter-spacing: 0; }

/* Masthead: a running head, a big two-line name, then copy beside one tall print that bleeds off the edge */
.hero { max-width: 760px; margin: 0 auto; padding: 8px var(--pad) 26px; overflow-x: clip; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 2px solid var(--text); }
.langsw { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: auto; color: var(--text); font-size: var(--lbl); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.tbl { padding: 5px 9px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: var(--lbl); }
.wm { margin-top: 14px; font: 400 clamp(4rem, 25vw, 8rem)/.86 var(--display); letter-spacing: -.025em; }
.l-ar .wm { font-size: clamp(3.6rem, 22vw, 6.6rem); line-height: 1.2; letter-spacing: 0; }
.wm .w { display: block; overflow: hidden; padding: .08em .04em .03em; margin: -.08em -.04em -.03em; }
.wm .w:nth-child(even) { padding-inline-start: .3em; }
.wm .w > span { display: inline-block; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 16px; align-items: start; margin-top: 22px; }
.hero-copy { display: flex; flex-direction: column; align-self: stretch; gap: 20px; }
.kicker { margin: 0; font: 400 1.2rem/1.3 var(--display); }
.l-ar .kicker { font-size: 1.15rem; line-height: 1.7; }
.acts { display: grid; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.acts a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; border-top: 1px solid var(--line); color: var(--text); font-size: var(--lbl); text-decoration: none; }
.acts a::after { content: "\2197"; font-size: 1.05rem; letter-spacing: 0; }
[dir="rtl"] .acts a::after { content: "\2196"; }
.acts a:active { background: var(--surface-2); }
.acts:empty { display: none; }
.hero-photo { position: relative; margin: 0; margin-inline-end: calc(var(--pad) * -1); aspect-ratio: 3 / 4; background: var(--surface-2); }
.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.status { --rot: -6deg; position: relative; z-index: 2; align-self: flex-start; width: max-content; max-width: 11rem; margin-top: auto; padding: 7px 10px; border: 2px solid var(--muted); outline: 1px solid var(--muted); outline-offset: 2px; background: var(--bg); color: var(--muted); font-size: calc(var(--lbl) * .94); line-height: 1.35; text-decoration: none; transform: rotate(var(--rot)); transform-origin: 0 100%; }
[dir="rtl"] .status { --rot: 6deg; transform-origin: 100% 100%; }
.status.is-open { border-color: var(--accent); outline-color: var(--accent); color: var(--accent); }
.status.is-closed { border-color: var(--text); outline-color: var(--text); color: var(--text); }
.hero > .btn { margin-top: 22px; }

/* Chef's picks: a strip of unequal prints, captions underneath */
.picks { max-width: 760px; margin: 0 auto; padding: 8px 0 14px; }
.lab-h { display: flex; align-items: center; gap: 12px; margin: 0 var(--pad) 16px; font-size: var(--lbl); }
.lab-h::after { content: ""; flex: 1; height: 2px; background: var(--text); }
.picks-track { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 2px var(--pad) 8px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.picks-track::-webkit-scrollbar { display: none; }
.pick-li { flex: 0 0 min(58vw, 240px); scroll-snap-align: start; }
.pick-li:nth-child(odd) { flex-basis: min(72vw, 300px); }
.pick { display: block; color: inherit; text-decoration: none; }
.pick .ph { width: 100%; aspect-ratio: 4 / 5; }
.pick-li:nth-child(even) .ph { aspect-ratio: 1; }
.pick-body { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 8px; border-top: 2px solid var(--text); }
.pick-name { font: 400 1.2rem/1.15 var(--display); }
.l-ar .pick-name { line-height: 1.5; }
.pick .amt { flex: none; }
.pick .ph img { transition: transform .5s var(--ease); }
.pick:active .ph img { transform: scale(1.03); }

/* Sticky category index: text only, an ink rule slides under the current section, a red thread at the top shows progress */
.tabbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-block: 2px solid var(--text); }
.tabs { position: relative; display: flex; max-width: 760px; margin-inline: auto; padding-inline: calc(var(--pad) - 14px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; color: var(--muted); font-size: var(--lbl); text-decoration: none; white-space: nowrap; transition: color .2s; }
.tabs a.on { color: var(--text); }
.ink { position: absolute; left: 0; bottom: 0; width: 0; height: 4px; background: var(--text); opacity: 0; pointer-events: none; }
.ink.on { opacity: 1; }
.prog { position: absolute; inset-inline: 0; top: -2px; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .prog { transform-origin: 100% 50%; }
.searchwrap { max-width: 760px; margin: 0 auto; padding: 16px var(--pad) 0; }
#q { width: 100%; min-height: 52px; padding: 0; border: 0; border-bottom: 2px solid var(--text); border-radius: 0; background: transparent; color: var(--text); font: 400 1.05rem/1.3 var(--font); }
#q::placeholder { color: var(--muted); }
#q:focus-visible { outline: 0; border-bottom-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }

/* Menu list: ruled rows like a printed menu. Number, name, dotted leader, price; small print on the right */
main { max-width: 760px; margin: 0 auto; padding: 8px var(--pad) 28px; }
.cat { padding-top: 34px; }
.cat h2 { padding-bottom: 12px; border-bottom: 4px double var(--text); font: 400 clamp(2rem, 9.4vw, 3.3rem)/1 var(--display); letter-spacing: -.01em; overflow-wrap: break-word; }
.l-ar .cat h2 { line-height: 1.35; letter-spacing: 0; }
.items { margin: 0; padding: 0; list-style: none; }
.item + .item { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 84px; gap: 12px; align-items: start; padding: 16px 0; color: inherit; text-decoration: none; }
.row.np { grid-template-columns: 2rem minmax(0, 1fr); }
.row:active { background: var(--surface-2); }
.no { padding-top: .34rem; color: var(--accent); font-size: calc(var(--lbl) * .95); letter-spacing: .04em; }
.info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.top { display: flex; align-items: baseline; gap: 8px; }
.name { flex: 0 1 auto; min-width: 0; font: 400 1.22rem/1.2 var(--display); overflow-wrap: break-word; hyphens: auto; }
.l-ar .name { line-height: 1.5; }
.ld { flex: 1 1 .6rem; min-width: .6rem; height: 0; border-bottom: 2px dotted var(--dots); transform: translateY(-.28em); }
.price { display: flex; flex-direction: column; align-items: flex-end; flex: none; white-space: nowrap; }
.price .from { order: 2; margin-top: 3px; color: var(--muted); font-size: .68rem; line-height: 1; }
.amt { color: var(--price); font: 700 1.02rem/1 var(--mono); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.desc { color: var(--muted); font-size: .92rem; line-height: 1.45; overflow-wrap: break-word; hyphens: auto; }
.ph { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.row .ph { width: 84px; height: 84px; outline: 1px solid var(--text); outline-offset: -1px; }
.item.is-out .name, .item.is-out .desc { color: var(--muted); }
.item.is-out .amt { color: var(--muted); text-decoration: line-through; }
.item.is-out .ph img { filter: grayscale(1); opacity: .55; }
.pills { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 2px; }
.pill { display: inline-block; padding: 2px 7px 1px; border: 1.5px solid var(--text); border-radius: var(--radius); color: var(--text); font-size: calc(var(--lbl) * .86); line-height: 1.5; transform: rotate(-1.5deg); }
.pill:nth-child(even) { transform: rotate(1deg); }
.pill-new, .pill-chef_pick { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.pill-out { border-color: var(--accent); color: var(--accent); }
.empty { margin: 32px 0; text-align: center; color: var(--muted); font: 400 1.1rem/1.4 var(--display); }
@media (hover: hover) and (pointer: fine) {
  .row:hover { background: var(--surface-2); }
  .row:hover .ph img { transform: scale(1.05); }
  .ph img { transition: transform .5s var(--ease); }
}

/* Item sheet: bottom sheet on phones, centred card on wider screens. The photo morphs in from the tapped row (View Transitions). */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(28, 24, 20, .6); }
.sheet-panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92svh; overflow: hidden; border-top: 4px solid var(--text); background: var(--bg); box-shadow: 0 -12px 40px rgba(28, 24, 20, .35); }
.sheet-scroll { overflow: auto; overscroll-behavior: contain; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.sheet-ph { aspect-ratio: 4 / 3; }
.sheet-in { padding: 20px var(--pad) 0; }
.sheet-panel.nophoto .sheet-in { padding-top: 70px; }
.sheet-close { position: absolute; z-index: 5; inset-block-start: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--text); background: var(--bg); color: var(--text); font: 400 1.7rem/1 var(--mono); text-decoration: none; }
.sheet-title { margin: 0 0 12px; font: 400 clamp(2.2rem, 10vw, 2.9rem)/1.02 var(--display); letter-spacing: -.01em; }
.l-ar .sheet-title { line-height: 1.35; letter-spacing: 0; }
.sheet-in .pills { margin: 0 0 4px; }
.sheet-desc { margin: 14px 0 0; color: var(--muted); font-size: 1.02rem; }
.sheet-prices { margin: 20px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--text); }
.sheet-prices li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 1.1rem/1.3 var(--display); }
.sheet-prices bdi { display: flex; flex: 1; align-items: baseline; gap: 10px; }
.sheet-prices bdi::after { content: ""; flex: 1; height: 0; border-bottom: 2px dotted var(--dots); transform: translateY(-.25em); }
.sheet-price { margin: 20px 0 0; padding-top: 12px; border-top: 2px solid var(--text); }
.sheet-price .amt { font-size: 1.9rem; }
.sheet-allergens { margin-top: 22px; }
.sheet-allergens h3 { display: inline; font-size: var(--lbl); line-height: 1.7; }
.sheet-allergens h3::after { content: " \2014\00a0"; letter-spacing: 0; }
.sheet-allergens ul { display: inline; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.sheet-allergens li { display: inline; }
.sheet-allergens li:not(:last-child)::after { content: ", "; }
:lang(ar) .sheet-allergens li:not(:last-child)::after { content: "\060C "; }
@media (min-width: 640px) {
  .sheet { align-items: center; }
  .sheet-panel { max-height: 86vh; border: 4px solid var(--text); }
}

/* Footer: the ticket stub */
.foot { max-width: 760px; margin: 0 auto; padding: 0 var(--pad) 44px; color: var(--muted); font-size: .92rem; }
.foot::before { content: ""; display: block; margin-bottom: 8px; border-top: 2px dashed var(--text); }
.foot h2 { margin: 24px 0 10px; color: var(--text); font-size: var(--lbl); }
.foot p { margin: 0; }
.hours { display: grid; gap: 6px; max-width: 360px; margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; align-items: baseline; gap: 10px; }
.hours li span { display: flex; flex: 1; align-items: baseline; gap: 10px; color: var(--text); }
.hours li span::after { content: ""; flex: 1; border-bottom: 2px dotted var(--dots); transform: translateY(-.25em); }
.wifi { margin-top: 18px !important; padding: 10px 12px; border: 1.5px solid var(--text); color: var(--text); }
.foot .note { margin-top: 14px; font-size: .82rem; }
.bars { height: 36px; margin-top: 28px; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 5px, var(--text) 5px 6px, transparent 6px 9px, var(--text) 9px 12px, transparent 12px 14px, var(--text) 14px 15px, transparent 15px 19px, var(--text) 19px 22px, transparent 22px 24px, var(--text) 24px 25px, transparent 25px 29px); }

/* 404 */
.nf { max-width: 420px; margin: 0 auto; padding: 18vh 24px 48px; text-align: center; }
.nf h1 { color: var(--accent); font: 400 5rem/1 var(--display); }
.nf p { margin: 10px 0; color: var(--muted); }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px !important; }
.nf-links .btn { width: auto; padding: 0 22px; }

/* Motion. Everything below is decoration: remove it and the page works the same. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes word { from { transform: translateY(108%); } to { transform: none; } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(calc(var(--rot) * 2.3)) scale(1.7); } 55% { opacity: 1; transform: rotate(var(--rot)) scale(.94); } 100% { opacity: 1; transform: rotate(var(--rot)) scale(1); } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: .4; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .wm .w > span { animation: word .9s var(--ease) both; }
  .wm .w:nth-child(2) > span { animation-delay: .1s; }
  .kicker, .acts { animation: rise .8s var(--ease) .3s both; }
  .hero > .btn { animation: rise .8s var(--ease) .5s both; }
  .hero-photo { animation: print 1s var(--ease) .15s backwards; }
  .status { animation: stamp .55s var(--ease) 1.1s both; }
  .ph img.pop { animation: pop .6s var(--ease) both; }
  .ink { transition: transform .38s var(--ease), width .38s var(--ease), opacity .2s; }
  .sheet.rise .sheet-panel { animation: sheet-in .3s var(--ease); }
  @supports (animation-timeline: view()) {
    .item { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    .cat h2 { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
  @supports (animation-timeline: scroll()) {
    .prog { animation: bar linear both; animation-timeline: scroll(root); }
  }
}
::view-transition-group(item) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .75, .2, 1); }
::view-transition-image-pair(item) { isolation: auto; }
::view-transition-old(item), ::view-transition-new(item) { width: 100%; height: 100%; overflow: clip; object-fit: cover; mix-blend-mode: normal; animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }
/* end */
