/* JazzKissa guest pages: the menu (menu.html), the team preview
   (preview.html) and the "not found" page (404.html).

   The look: the back of a record sleeve. Sections are numbered like tracks
   (A1, A2, B1…), prices sit at the end of dotted leaders, and everything is
   held together by hairlines instead of boxes.

   How it adapts:
     under 600px    phones: one column, full width
     600px and up   large phones on their side, small tablets: wider column, larger text
     900px and up   tablets on their side, laptops, desktops: items in two columns,
                    sheets become cards in the middle of the screen
     1440px and up  large desktops: a little more room
     print          black on white, two columns (see the end of this file)

   Sizes are in rem, so the text follows the reader's own text-size setting.
   Left/right are written as "inline-start/end", so the Arabic version mirrors
   itself. Colours and fonts match the TV screen (css/screen.css). */

/* ---------- Design tokens ---------- */

:root {
  /* Colour */
  --ground: #3A0C0E;              /* dark red background */
  --ground-deep: #2A090A;         /* now-playing bar */
  --ground-band: #320A0C;         /* section buttons strip */
  --cream: #F1E6D6;               /* main text */
  --muted: #CDB59C;               /* secondary text (8.6:1 on the ground) */
  --faint: #B39A84;               /* small print (6.3:1 on the ground) */
  --gold: #E2B36B;                /* labels and numerals */
  --label: #E9DFCF;
  --rule: rgba(241, 230, 214, 0.14);
  --rule-strong: rgba(241, 230, 214, 0.3);
  --leader: rgba(241, 230, 214, 0.34);

  /* Type families */
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --arabic: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Noto Sans Arabic', sans-serif;
  --arabic-display: 'Noto Naskh Arabic', 'Geeza Pro', serif;

  /* What each role uses (swapped for Arabic below) */
  --font-display: var(--serif);
  --font-body: var(--sans);
  --font-label: var(--mono);
  --track-label: 0.2em;           /* letter-spacing of small capitals labels */
  --case-label: uppercase;
  --lh-display: 1.08;

  /* Type sizes */
  --fs-wordmark: 2.125rem;
  --fs-display: 1.875rem;         /* section titles, coffee of the month */
  --fs-numeral: 2.5rem;           /* A1, A2… */
  --fs-item: 1.0625rem;
  --fs-body: 0.9375rem;
  --fs-small: 0.8125rem;
  --fs-label: 0.6875rem;

  /* Space: a 4px scale */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.25rem;
  --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem; --s12: 3rem; --s16: 4rem;

  /* Motion: one curve, three speeds */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 560ms;

  /* Layout */
  --gutter: 1.25rem;
  --maxw: 30rem;                  /* width of the content column */
  --bar-h: 0px;                   /* now-playing bar height (set by the page) */
  --chips-h: 4.125rem;            /* section buttons strip height (set by the page) */
  --col-gap: 3.5rem;
  --photo-w: 4.5rem;              /* menu item photo, 4:5 */

  /* Side padding that centres the column and clears a phone's notch */
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100% - var(--maxw)) / 2));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px), calc((100% - var(--maxw)) / 2));
}

html[lang="ar"] {
  --font-display: var(--arabic-display);
  --font-body: var(--arabic);
  --font-label: var(--arabic);
  --track-label: 0;
  --case-label: none;
  --lh-display: 1.4;
  --fs-label: 0.8125rem;
  --fs-small: 0.875rem;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-size: 100%;
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}

/* iPhone and iPad: follow the Text Size setting */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}

html.sheet-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--s3);
  top: var(--s3);
  z-index: 100;
  padding: var(--s2) var(--s4);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ground);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus { transform: none; }

.grain,
.np-bar,
.chips-bar,
.sheet {
  background-image: url(../assets/grain.png);
  background-repeat: repeat;
  background-size: 200px 200px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Full-width blocks whose content lines up with the centred column */
.np-bar,
.notice,
.lead,
.chips-bar,
.menu-section,
.menu-empty,
.small-print,
.hub,
.lost {
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s3);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--gold);
}

/* The Arabic twin of an English label (hidden when the page is in Arabic) */
.arabic {
  font-family: var(--arabic);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

html[lang="ar"] .arabic { display: none; }

/* Animated level bars next to "Now playing" */
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq span {
  display: block;
  width: 3px;
  height: 9px;
  border-radius: 1px;
  background: var(--gold);
  animation: eq 1.1s ease-in-out infinite;
}

.eq span:nth-child(2) { animation-delay: -0.35s; }
.eq span:nth-child(3) { animation-delay: -0.7s; }

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--s2) var(--s6);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-body);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.pill-solid {
  background: var(--cream);
  color: var(--ground);
}

.pill-outline {
  border-color: rgba(241, 230, 214, 0.4);
  background: transparent;
  color: var(--cream);
}

.text-button {
  padding: var(--s2) 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: var(--fs-small);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.lang-switch {
  flex: none;
  min-width: 4rem;
  min-height: 2.75rem;
  padding: 0 var(--s4);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}

.lang-switch:lang(ar) { font-family: var(--arabic); font-size: 0.9375rem; }

.notice {
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.16);
  font-size: var(--fs-small);
  color: var(--muted);
}

.notice::before {
  content: '';
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  margin-inline-end: var(--s2);
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 0.12em;
}

/* ---------- Sleeve and record (song sheet) ---------- */

.sleeve-art {
  position: relative;
  width: 100%;
  max-width: 21.875rem;
  aspect-ratio: 350 / 240;
}

/* Soft glow behind the sleeve, tinted from the cover by the page */
.glow {
  position: absolute;
  inset: -22% -14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, currentColor, transparent);
  color: #7A3A1E;
  opacity: 0.5;
  filter: blur(18px);
  transition: color 1.4s var(--ease);
  pointer-events: none;
}

/* The record is drawn by js/record.js: the disc turns, the light stays put. */
.record {
  position: absolute;
  right: 0;
  top: 0.83%;
  width: 67.43%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.record-disc,
.record-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.record-disc { border-radius: 50%; }

.record-disc svg {
  display: block;
  width: 100%;
  height: 100%;
}

.record-light { pointer-events: none; }

.record.spin .record-disc {
  animation: spin 1.8s linear infinite;   /* 33⅓ rpm */
  will-change: transform;
}

.sleeve {
  position: absolute;
  left: 0;
  top: 9.17%;
  z-index: 1;
  width: 56%;
  height: 81.67%;
  background: #1A1414;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    8px 0 14px -4px rgba(0, 0, 0, 0.6);   /* shade on the record beside it */
}

.sleeve img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Now-playing bar ---------- */

.np-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: 4rem;
  margin: 0;
  padding-top: var(--s2);
  padding-bottom: var(--s2);
  border: 0;
  border-bottom: 1px solid var(--rule);
  background-color: var(--ground-deep);
  color: var(--cream);
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease);
}

.np-bar:focus-visible { outline-offset: -4px; }

.np-thumb {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 3px;
  object-fit: cover;
  background: #1A1414;
}

.np-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.np-label {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--gold);
}

.np-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.np-artist {
  font-weight: 400;
  color: var(--muted);
}

/* Track names read left to right, even on the Arabic page */
.np-line { direction: ltr; }
html[dir="rtl"] .np-line { text-align: right; }

.np-artist:not(:empty)::before { content: ' · '; }

.np-chevron {
  flex: none;
  color: var(--muted);
}

/* ---------- Name and coffee of the month ---------- */

.lead { padding-top: var(--s6); }

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--s3);
  font-size: inherit;
  font-weight: 400;
}

.wordmark {
  font-family: var(--serif);
  font-size: var(--fs-wordmark);
  line-height: 1;
  letter-spacing: -0.005em;
}

.outlet {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  margin-top: var(--s2);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--faint);
}

.cotm {
  margin-top: var(--s6);
  padding: var(--s5);
  border: 1px solid rgba(226, 179, 107, 0.38);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
}

.cotm-name {
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  overflow-wrap: break-word;
}

.cotm-notes {
  margin-top: var(--s2);
  font-size: var(--fs-body);
  line-height: 1.45;
}

.cotm-lines {
  margin-top: var(--s3);
  font-family: var(--font-label);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-line;
}

html[lang="ar"] .cotm-lines { font-size: var(--fs-small); }

.cotm-notes:empty,
.cotm-lines:empty { display: none; }

/* Linked to its beans: the card opens the drinks they come in */
.cotm.is-linked {
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

@media (hover: hover) {
  .cotm.is-linked:hover { border-color: var(--gold); background: rgba(226, 179, 107, 0.06); }
}

.cotm-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
  min-height: 2.75rem;
  margin-top: var(--s4);
  padding: var(--s2) 0 0;
  border: 0;
  border-top: 1px solid rgba(226, 179, 107, 0.3);
  background: none;
  color: var(--gold);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  text-align: start;
  cursor: pointer;
}

.cotm-open svg { flex: none; }
html[dir="rtl"] .cotm-open svg { transform: scaleX(-1); }

/* The panel: the beans, then "Try it as" and the drinks */
.cotm-bean-notes {
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
}

.cotm-bean-notes:empty { display: none; }

.cotm-drinks {
  margin-top: var(--s2);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.cotm-drink {
  display: flex;
  align-items: baseline;
  width: 100%;
  min-height: 3.25rem;
  padding: var(--s3) 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--cream);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.cotm-drink .leader { margin-inline: var(--s3); }

.cotm-drink-name {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: var(--fs-item);
  font-weight: 500;
}

.cotm-drink-section {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--faint);
}

.cotm-drink-price {
  flex: none;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .cotm-drink:hover .cotm-drink-name > bdi { color: var(--gold); }
}

.cotm-hidden {
  margin-top: var(--s3);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------- Section buttons (navigation only) ---------- */

.chips-bar {
  position: sticky;
  top: var(--bar-h);
  z-index: 20;
  margin-top: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  background-color: var(--ground-band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.chips {
  min-width: 0;
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
  /* fade the buttons out at the edge when there are more to scroll to */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
  padding-inline-end: var(--s4);
}

/* Dietary filters on: one slim gold line under the section buttons, wherever
   the guest has scrolled to, saying what's on and what's hidden. */
.chips-bar .filter-status {
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--gold);
}

.chips-bar .filter-status > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

.chips-bar .filter-status .text-button {
  flex: none;
  min-height: 2rem;
  color: var(--cream);
}

/* ---------- Quick dietary filters, in place under the section buttons ----------
   Smaller, square-cornered toggles with a label in front, so they read as
   settings rather than more sections. */
.quick-filters {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--pad-r) var(--s3) var(--pad-l);
  border-bottom: 1px solid var(--rule);
}

.quick-label {
  flex: none;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--faint);
}

.quick-row {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent);
  padding-inline-end: var(--s4);
}

html[dir="rtl"] .quick-row {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 1.25rem), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 1.25rem), transparent);
}

.quick-row::-webkit-scrollbar { display: none; }

.quick {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0 var(--s3);
  border: 1px dashed rgba(241, 230, 214, 0.35);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

/* On: a solid gold edge and a tick */
.quick[aria-pressed="true"] {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(226, 179, 107, 0.12);
  color: var(--gold);
}

.quick[aria-pressed="true"]::before {
  content: '';
  width: 0.6rem;
  height: 0.35rem;
  margin-top: -0.15rem;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.quick-more { border-style: solid; color: var(--cream); }
.quick-more.is-on { border-color: var(--gold); color: var(--gold); }

html[dir="rtl"] .chips {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 1.5rem), transparent);
}

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

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 2.75rem;
  padding: 0 var(--s4);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.chip.is-active {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ground);
}

/* ---------- UAE dirham sign ----------
   The new dirham sign (Unicode U+20C3) isn't in phones' fonts yet, so it's
   drawn from assets/dirham.svg (also inlined here) in the text colour.
   Swap in the Central Bank's official artwork when it's to hand. */
.dirham {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  vertical-align: -0.06em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M30%2014h22c24%200%2038%2015%2038%2036S76%2086%2052%2086H30zm12%2011v50h10c16%200%2026-10%2026-25S68%2025%2052%2025z%22/%3E%3Cpath%20d%3D%22M8%2037h86v7H8zm0%2019h86v7H8z%22/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M30%2014h22c24%200%2038%2015%2038%2036S76%2086%2052%2086H30zm12%2011v50h10c16%200%2026-10%2026-25S68%2025%2052%2025z%22/%3E%3Cpath%20d%3D%22M8%2037h86v7H8zm0%2019h86v7H8z%22/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.dirham-amount { white-space: nowrap; }

@supports not ((mask: none) or (-webkit-mask: none)) {
  .dirham { width: auto; height: auto; background: none; }
  .dirham::before { content: 'AED'; }
}

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

.menu-section {
  padding-top: var(--s12);
  scroll-margin-top: calc(var(--bar-h) + var(--chips-h));
}

.menu-section:first-child { padding-top: var(--s6); }

/* Each section opens on a band of its own, edge to edge, like the quiet gap
   between tracks on a record: track number, title, item count, intro. */
.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s4);
  align-items: center;
  margin-inline: calc(-1 * var(--pad-l)) calc(-1 * var(--pad-r));
  padding: var(--s5) var(--pad-r) var(--s5) var(--pad-l);
  background-color: var(--ground-deep);
  background-image: linear-gradient(90deg, rgba(226, 179, 107, 0.07), transparent 45%);
  border-top: 1px solid rgba(226, 179, 107, 0.35);
  border-bottom: 1px solid var(--rule);
}

html[dir="rtl"] .section-head { background-image: linear-gradient(270deg, rgba(226, 179, 107, 0.07), transparent 45%); }

/* Track number, as on a record sleeve */
.section-no {
  font-family: var(--serif);
  font-size: var(--fs-numeral);
  line-height: 0.92;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  min-width: 0;
}

.section-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: var(--lh-display);
}

.section-count {
  flex: none;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--faint);
}

.section-intro {
  grid-column: 1 / -1;
  margin-top: var(--s3);
  max-width: 60ch;
  font-size: var(--fs-body);
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

/* The first thing under the band gets a little room */
.section-head + .section-note,
.section-head + .grid-head,
.section-head + .items { margin-top: var(--s4); }

html[lang="ar"] .section-intro { font-style: normal; }

.items { margin-top: var(--s2); }

/* Hot | Iced columns, as on a café board */
:root { --cell-w: 4rem; }

.grid-head {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--s4);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--gold);
}

.grid-cols { display: flex; justify-content: flex-end; }
.grid-cols + .grid-cols { display: none; }   /* phones: one column of drinks, one set of labels */

.grid-head span,
.cell {
  width: var(--cell-w);
  text-align: end;
}

.grid-head + .items { margin-top: 0; }

/* Wide screens: drinks in two columns, a set of labels above each */
@media (min-width: 900px) {
  .grid-head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
  .grid-cols + .grid-cols { display: flex; }
}

@media print {
  .grid-head { display: flex; }
  .grid-cols + .grid-cols { display: none; }
}

/* The menu's edition, like a pressing: Vol. 1 · Winter 2026 */
.edition {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-top: var(--s6);
  padding: 0 var(--pad-r) 0 var(--pad-l);
}
.edition-vol {
  flex: none;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-style: italic;
  line-height: 1;
  color: var(--gold);
}
.edition-season {
  flex: none;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--cream);
}
.edition-rule {
  flex: 1 1 auto;
  align-self: center;
  height: 1px;
  background: rgba(226, 179, 107, 0.35);
}
html[lang="ar"] .edition-vol { font-style: normal; }
.edition + #menu-sections > .menu-section:first-child { margin-top: var(--s3); }

/* Espresso priced by beans: a column per bean on the grinder */
.has-bean-grid { --cell-w: 4.75rem; }
.bean-head .grid-cols { align-items: flex-end; }
.bean-head span { line-height: 1.25; overflow-wrap: anywhere; }
.bean-head .grid-note {
  width: auto;
  margin-inline-end: auto;
  text-align: start;
  color: var(--muted);
}
.bean-cells .cell-price { white-space: nowrap; }

/* The beans on the grinder, as equal cards */
.grinder { margin-top: var(--s4); }
.grinder + .section-note { margin-top: var(--s4); }
.grinder-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--s3) var(--col-gap);
  margin-top: var(--s3);
}
.grinder-card {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: var(--s3);
  align-items: start;
  padding: var(--s3) 0;
  border-top: 1px solid var(--rule, rgba(241, 230, 214, 0.12));
}
.grinder-card .crate-label { width: 2.25rem; }
.grinder-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.grinder-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.1;
}
.grinder-notes {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.3;
}
html[lang="ar"] .grinder-notes { font-style: normal; }

/* The section's milk choice, said once */
.section-note {
  margin-top: var(--s3);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--gold);
}

html[lang="ar"] .section-note { font-size: var(--fs-small); letter-spacing: 0; }

.menu-section.has-grid .items .item:first-child { padding-top: var(--s2); }

/* ---------- Signature cards: printed paper cards on the table ----------
   Ivory card stock with a fine grain. The photo sits inside a paper border on
   a backdrop in the drink's own colour, one flavour word set large across its
   lower edge, then the name, origin, ingredients and flavour words on the
   paper. One card per row on phones, two or three side by side when wider. */
:root {
  --paper: #EFE8DA;
  --paper-deep: #E4D9C5;
  --ink: #231816;                 /* 14:1 on the paper */
  --ink-soft: #5B4B44;            /* 7.3:1 on the paper */
  --ink-rule: rgba(35, 24, 22, 0.18);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.items.cards {
  display: grid;
  gap: var(--s6);
  margin-top: var(--s6);
}

@media (min-width: 40rem) {
  .items.cards { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
}

.item.card {
  display: flex;
  flex-direction: column;
  padding: 0.625rem 0.625rem 0;
  border: 0;
  color: var(--ink);
  background: var(--paper-grain), radial-gradient(120% 80% at 50% 0%, #F5EFE3, var(--paper-deep));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 1.125rem 2.5rem rgba(0, 0, 0, 0.45),
    0 0.2rem 0.5rem rgba(0, 0, 0, 0.35);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

/* Laid by hand: every other card sits a fraction of a degree off straight */
.item.card:nth-child(3n + 2) { transform: rotate(0.35deg); }
.item.card:nth-child(3n) { transform: rotate(-0.3deg); }

@media (hover: hover) {
  .item.card:hover {
    transform: translateY(-3px) rotate(0deg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1.5rem 3rem rgba(0, 0, 0, 0.5), 0 0.25rem 0.6rem rgba(0, 0, 0, 0.35);
  }
}

.card-art {
  position: relative;
  aspect-ratio: 4 / 4.4;
  background: #2A1A18;
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* No photo yet: a studio backdrop in the drink's own colour, with a glass on it */
.card-art.is-blank {
  background:
    radial-gradient(60% 45% at 50% 62%, hsla(var(--h), 40%, 80%, 0.55), transparent 70%),
    linear-gradient(180deg, hsl(var(--h), 38%, 30%), hsl(var(--h), 30%, 58%) 70%, hsl(var(--h), 25%, 72%));
}

.card-glass {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 38%;
  transform: translateX(-50%);
}

.glass-bowl { fill: rgba(255, 250, 240, 0.28); stroke: rgba(255, 250, 240, 0.7); stroke-width: 1.2; }
.glass-drink { fill: hsla(var(--h), 45%, 45%, 0.75); }
.glass-stem { fill: none; stroke: rgba(255, 250, 240, 0.7); stroke-width: 1.6; }

/* Track number and name in the photo's top corners */
.card-corners {
  position: absolute;
  inset: 0.75rem 0.875rem auto;
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: var(--case-label);
  color: rgba(255, 248, 236, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* One flavour word, set large in italic across the photo's lower edge onto the paper */
.card-word {
  position: absolute;
  inset-inline-start: 7%;
  bottom: -0.36em;
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-style: italic;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 0.4em rgba(239, 232, 218, 0.45);
  white-space: nowrap;
  pointer-events: none;
}

html[lang="ar"] .card-word { font-style: normal; font-size: 3.25rem; bottom: -0.3em; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: 2.75rem 0.5rem var(--s4);
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.card-tag { align-self: flex-start; margin-inline-start: 0; color: var(--ink-soft); border-color: var(--ink-soft); }

.card-origin {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--ink-soft);
}

.card-ingredients {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
}

/* fizzy, cocoa, tart. */
.card-flavours {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink-soft);
}

html[lang="ar"] .card-flavours { font-style: normal; }

.card-meta {
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Track number and price on the last line, under a rule */
.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--ink-rule);
}

.card-track {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  color: var(--ink-soft);
}

.card-price {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  white-space: nowrap;
}

.card-amount {
  font-size: var(--fs-item);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.card-cal {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.item.card :focus-visible { outline-color: var(--ink); }
.item.card.is-sold-out .card-art { opacity: 0.55; }

/* ---------- The Crate: the Slow Bar's frozen single-dose beans ----------
   Each bean is a record pulled from a crate: a small record label in its own
   colour, then its name, origin and dates, and the price. */
.crate-head {
  margin-top: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--rule);
}

.crate-title {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--gold);
}

.crate-line {
  margin-top: var(--s2);
  max-width: 56ch;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}

/* Taste and Process: square-cornered tabs, so they read as a way to sort the
   crate rather than more sections */
.crate-tabs {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s3);
}

.crate-tabs-label {
  flex: none;
  width: 4.5rem;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--faint);
}

.crate-tabs-row {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
}

.crate-tabs-row::-webkit-scrollbar { display: none; }

.crate-tab {
  flex: none;
  min-height: 2.25rem;
  padding: 0 var(--s3);
  border: 1px solid rgba(241, 230, 214, 0.3);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.crate-tab[aria-pressed="true"] {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ground);
  font-weight: 500;
}

.crate-none {
  margin-top: var(--s4);
  font-size: var(--fs-body);
  color: var(--muted);
}

.items.crate { margin-top: 0; }

.crate-card {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  column-gap: var(--s4);
  align-items: start;
  padding: var(--s5) 0;
}

/* A record label in the bean's colour */
.crate-label {
  position: relative;
  width: 3.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #160d0c 0 8%, transparent 9%),
    radial-gradient(circle, hsl(var(--h), 42%, 58%) 0 62%, hsl(var(--h), 35%, 42%) 63% 64%, transparent 65%),
    repeating-radial-gradient(circle, #141010 0 1px, #221b1a 1.5px 2.5px);
  box-shadow: 0 0 0 1px rgba(241, 230, 214, 0.08), 0 6px 14px rgba(0, 0, 0, 0.35);
}


.crate-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.crate-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--s3);
  row-gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

/* Coffee of the month, beside the name */
.crate-name .crate-tag { margin-inline-start: 0; vertical-align: 0; }

.crate-origin {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--gold);
}

.crate-producer {
  font-size: var(--fs-small);
  color: var(--muted);
}

.crate-part { white-space: nowrap; }

.crate-flavours {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--cream);
}

html[lang="ar"] .crate-flavours { font-style: normal; }


/* Hot | Iced prices, lined up with the section's labels */
.crate-cells { padding-top: 0.45rem; }

/* Phones: a smaller label leaves room for the details beside the two prices */
@media (max-width: 899px) {
  .crate-card { grid-template-columns: 2.25rem minmax(0, 1fr) auto; column-gap: var(--s3); }
  .crate-label { width: 2.25rem; }
}


/* ---------- The back of a signature card (the details panel) ---------- */
.sheet.sheet-paper {
  color: var(--ink);
  background: var(--paper-grain), radial-gradient(120% 70% at 50% 0%, #F5EFE3, var(--paper-deep));
}

.sheet-paper .sheet-handle { background: rgba(35, 24, 22, 0.25); }
.sheet-paper .sheet-close { color: var(--ink); border-color: rgba(35, 24, 22, 0.3); }
.sheet-paper .eyebrow,
.sheet-paper .fact dt { color: var(--ink-soft); }
.sheet-paper .fact dd,
.sheet-paper .detail-desc { color: var(--ink); }
.sheet-paper .detail-story,
.sheet-paper .sheet-foot,
.sheet-paper .price-cal,
.sheet-paper .price-size { color: var(--ink-soft); }
.sheet-paper .detail-prices,
.sheet-paper .detail-price-row,
.sheet-paper .sheet-block { border-color: var(--ink-rule); }
.sheet-paper .leader { border-color: rgba(35, 24, 22, 0.3); }
.sheet-paper .toggle { color: var(--ink); border-color: rgba(35, 24, 22, 0.35); }
.sheet-paper .toggle[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sheet-paper .bean-card { color: var(--ink); border-color: rgba(35, 24, 22, 0.3); }
.sheet-paper .bean-line,
.sheet-paper .bean-notes { color: var(--ink-soft); }
.sheet-paper .bean-extra { color: var(--ink); }
.sheet-paper .bean-card[aria-checked="true"] { border-color: var(--ink); background: rgba(35, 24, 22, 0.06); box-shadow: inset 3px 0 0 var(--ink); }
.sheet-paper .tag { color: var(--ink-soft); border-color: var(--ink-soft); }
.sheet-paper :focus-visible { outline-color: var(--ink); }

.sheet-paper .detail-text { text-align: center; }
.sheet-paper .detail-text .facts,
.sheet-paper .detail-text .detail-prices,
.sheet-paper .detail-text .pick,
.sheet-paper .detail-text .sheet-block { text-align: start; }

/* SIDE A ———————— SIDE B */
.paper-rule {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--s2);
  border-bottom: 1px solid rgba(35, 24, 22, 0.5);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
}

.paper-track {
  margin-top: var(--s6);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--ink-soft);
}

.paper-numeral {
  margin-top: var(--s4);
  font-family: var(--serif);
  font-size: 5.5rem;
  line-height: 1;
}

.sheet-paper .detail-name { margin-top: var(--s4); font-size: 2.25rem; }

.sheet-paper .detail-story {
  max-width: 34ch;
  margin-inline: auto;
}

/* The drink's name, signed at the foot of the card */
.paper-sign {
  margin-top: var(--s8);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-style: italic;
  line-height: 1;
  text-align: center;
}

html[lang="ar"] .paper-sign { font-style: normal; }

.sheet-paper .sheet-foot { text-align: center; }

/* "Ask for": what to say at the bar, like a note written on an order pad.
   Plain text between two dotted rules, with nothing to tap. */
.ask-for {
  margin-top: var(--s6);
  padding: var(--s4) 0;
  border-top: 1px dashed rgba(226, 179, 107, 0.5);
  border-bottom: 1px dashed rgba(226, 179, 107, 0.5);
  text-align: start;
}

.ask-line {
  margin-top: var(--s2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ask-price {
  margin-top: var(--s2);
  font-size: var(--fs-small);
  color: var(--muted);
}

.ask-price > span:first-child {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--cream);
}

.sheet-paper .ask-for { border-color: rgba(35, 24, 22, 0.35); }
.sheet-paper .ask-line,
.sheet-paper .ask-price > span:first-child { color: var(--ink); }
.sheet-paper .ask-price { color: var(--ink-soft); }

/* ---------- Menu items ---------- */

.item {
  position: relative;
  min-width: 0;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.item.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--photo-w);
  column-gap: var(--s4);
  align-items: start;
}

.item-body { min-width: 0; }

/* Name ......... price */
.item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: var(--s1);
}

.item-head:not(.has-sizes) { align-items: last baseline; }
.item-head.has-cells { align-items: first baseline; }

.item-name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: var(--fs-item);
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: break-word;
}

/* The name is the button that opens the item's details */
.item-open {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
}

.leader {
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  margin-inline: var(--s3);
  border-bottom: 1px dotted var(--leader);
}

/* Price and calories: the same size, side by side (Dubai Municipality guide). */
.item-prices {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin-inline-start: auto;
  font-size: var(--fs-body);
  line-height: 1.45;
  text-align: end;
}

.item-prices.has-sizes {
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  column-gap: var(--s3);
}

.price-size {
  color: var(--muted);
  text-align: start;
}

/* The price and the calories each stay whole, with a dot between them; at very
   large text sizes the calories may drop under the price. */
.price-value > span {
  display: inline-block;
  white-space: nowrap;
}

.price-num + .price-cal::before,
.price-value > .price-size::after {
  content: '·';
  margin-inline: 0.4em;
}
.price-cal { color: var(--muted); }

.item-cells {
  display: flex;
  flex: 0 0 auto;
  margin-inline-start: auto;
  font-size: var(--fs-body);
  line-height: 1.3;
}

.cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}

.cell-none { color: var(--faint); }

.cell-cal {
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Cup size beside the name on the board */
.item-size {
  margin-inline-start: var(--s2);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: nowrap;
}

.item-choice { margin-top: var(--s1); }
.item-meta + .item-choice { margin-top: var(--s1); }

.item-desc {
  margin-top: var(--s1);
  max-width: 46ch;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
}

.item-meta {
  margin-top: var(--s2);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--faint);
}

html[lang="ar"] .item-meta { font-size: var(--fs-small); letter-spacing: 0; }

.item-ask { color: var(--gold); }

.tag {
  display: inline-block;
  margin-inline-start: var(--s2);
  padding: 0.1rem 0.45rem;
  border: 1px solid rgba(226, 179, 107, 0.6);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: var(--case-label);
  vertical-align: 0.15em;
  color: var(--gold);
  white-space: nowrap;
}

html[lang="ar"] .tag { font-size: 0.75rem; letter-spacing: 0; }

/* Sold out: quieter, but still easy to read */
.item.is-sold-out .item-open,
.item.is-sold-out .item-prices,
.item.is-sold-out .item-cells { color: var(--muted); }
.item.is-sold-out .item-photo img { opacity: 0.55; }

/* Photo: one crop and one warm grade, so every picture looks part of a set */
.item-photo {
  width: var(--photo-w);
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  background: #241010;
  box-shadow: 0 0 0 1px rgba(241, 230, 214, 0.1);
}

.item-photo img,
.detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04) sepia(0.14) brightness(0.97);
}

.menu-empty {
  padding-top: var(--s8);
  font-size: var(--fs-body);
  color: var(--muted);
}

/* ---------- Small print ---------- */

.small-print {
  margin-top: var(--s10);
  padding-top: var(--s6);
  padding-bottom: calc(var(--s10) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--faint);
}

.small-print p { max-width: 70ch; }

.tagline {
  margin-top: var(--s2);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
}

/* ---------- Sheets: slide up on phones, cards on wider screens ---------- */

.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 30rem;
  height: fit-content;
  max-height: calc(100% - 1.5rem);
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  background-color: var(--ground);
  color: var(--cream);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.sheet[open] {
  display: flex;
  flex-direction: column;
}

.sheet::backdrop { background: rgba(10, 2, 3, 0.66); }

.sheet-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s3) var(--gutter) calc(var(--s8) + env(safe-area-inset-bottom, 0px));
}

.sheet-handle {
  width: 2.5rem;
  height: 4px;
  margin: 0 auto;
  border-radius: 2px;
  background: rgba(241, 230, 214, 0.3);
}

.sheet-top {
  margin-top: var(--s3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.sheet-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(241, 230, 214, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: var(--lh-display);
  overflow-wrap: break-word;
}

.sheet-top .sheet-title { font-size: 1.75rem; }

/* Song sheet */
.sheet-body .sleeve-art { margin-top: var(--s5); }
.sheet-details { margin-top: var(--s6); }

.sheet-details .sheet-title { font-family: var(--serif); line-height: 1.05; }

.sheet-artist {
  margin-top: var(--s2);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
}

.sheet-album {
  margin-top: var(--s1);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.sheet-album:empty { display: none; }

.sheet-block {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}

.sheet-liner-text {
  margin-top: var(--s2);
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--muted);
}

.sheet-links {
  margin-top: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.sheet-foot {
  margin-top: var(--s5);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--faint);
}

/* Recently played: a track listing */
.tracklist { margin-top: var(--s2); }

.track-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: var(--s3);
  align-items: baseline;
  width: 100%;
  min-height: 2.75rem;
  padding: var(--s2) 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  text-align: start;
  cursor: pointer;
}

.tracklist li:last-child .track-row { border-bottom: 0; }

.track-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.track-name {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.35;
}

.track-by { color: var(--muted); }
.track-by::before { content: ' · '; }

.track-row[aria-current="true"] .track-time { color: var(--gold); }

/* Item details */
.detail-photo {
  margin-top: var(--s4);
  aspect-ratio: 4 / 5;
  max-height: 46vh;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #241010;
}

.detail-name { margin-top: var(--s4); }

.detail-desc {
  margin-top: var(--s2);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.detail-story {
  margin-top: var(--s3);
  max-width: 52ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--muted);
}

.detail-prices {
  margin-top: var(--s5);
  border-top: 1px solid var(--rule);
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-body);
}

.detail-price-row .leader { margin-inline: var(--s3); }

.facts { margin-top: var(--s4); }

.fact {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  column-gap: var(--s3);
  align-items: baseline;
  padding: var(--s2) 0;
}

.fact dt {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: var(--case-label);
  color: var(--gold);
}

.fact dd {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--cream);
}

/* What a drink comes with, in its details: beans, its own options, milk.
   Listed like liner notes, between thin rules: information, not buttons. */
.pick { margin-top: var(--s5); }

.bean-cards,
.option-rows {
  margin-top: var(--s2);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

/* A bean: name and the drink's price with it, then where it's from and the notes */
.bean-card {
  display: grid;
  gap: 0.2rem;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--cream);
}

.bean-tag { justify-self: start; margin: 0.1rem 0 0.15rem; }

/* An option or a milk: name (with any allergen under it) ...... price */
.option-row {
  display: flex;
  align-items: baseline;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
}

.option-row .leader { margin-inline: var(--s3); }

.option-name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: var(--fs-body);
}

.option-note {
  font-size: var(--fs-small);
  color: var(--muted);
}

.option-price {
  flex: none;
  font-size: var(--fs-body);
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

.option-price:empty + * { display: none; }

.ask-hint {
  margin-top: var(--s2);
  font-size: var(--fs-small);
  color: var(--muted);
}

.sheet-paper .bean-cards,
.sheet-paper .option-rows,
.sheet-paper .bean-card,
.sheet-paper .option-row { border-color: var(--ink-rule); }
.sheet-paper .option-price { color: var(--ink); }
.sheet-paper .option-note,
.sheet-paper .ask-hint { color: var(--ink-soft); }

.bean-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
}

.bean-name {
  font-size: var(--fs-body);
  font-weight: 500;
}

.bean-extra {
  font-size: var(--fs-small);
  color: var(--gold);
  white-space: nowrap;
}

.bean-line {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--muted);
}

html[lang="ar"] .bean-line { font-size: var(--fs-small); letter-spacing: 0; }

.bean-notes {
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

html[lang="ar"] .bean-notes { font-style: normal; }

/* Dietary sheet */
.filter-group { margin-top: var(--s5); }

.toggles {
  margin-top: var(--s3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.toggle {
  min-height: 2.75rem;
  padding: 0 var(--s4);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.toggle[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ground);
  font-weight: 500;
}

.filter-note {
  margin-top: var(--s5);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
}

.filter-actions {
  margin-top: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.filter-actions .pill { flex: 1; }

/* ---------- Team preview and "not found" ---------- */

.hub {
  padding-top: var(--s8);
  padding-bottom: var(--s10);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
}

.hub-link {
  display: block;
  padding: var(--s5);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--cream);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease);
}

.hub-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.1;
}

.hub-desc {
  display: block;
  margin-top: var(--s2);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.hub-note {
  grid-column: 1 / -1;
  margin-top: var(--s3);
  max-width: 70ch;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--faint);
}

.lost {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--s16);
  padding-bottom: var(--s16);
}

.lost-title {
  margin-top: var(--s4);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
  max-width: 14ch;
}

.lost-ar {
  margin-top: var(--s4);
  font-family: var(--arabic-display);
  font-size: 1.375rem;
  color: var(--muted);
}

.lost-body {
  margin-top: var(--s4);
  font-size: var(--fs-body);
  color: var(--muted);
}

.lost-links {
  margin-top: var(--s8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

/* ---------- Mouse and trackpad ---------- */

@media (hover: hover) {
  .np-bar:hover { background-color: #30090B; }
  .chip:not(.is-active):hover,
  .filter-button:hover,
  .toggle:not([aria-pressed="true"]):hover,
  .lang-switch:hover,
  .sheet-close:hover { border-color: rgba(241, 230, 214, 0.6); }
  .pill-outline:hover { border-color: rgba(241, 230, 214, 0.7); }
  .pill-solid:hover { background: #FFF6EA; }
  .hub-link:hover { border-color: rgba(226, 179, 107, 0.6); }
  .item:hover .item-open { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
  .track-row:hover .track-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
}

/* ---------- 600px and up ---------- */

@media (min-width: 600px) {
  :root {
    --gutter: 2rem;
    --maxw: 45rem;
    --fs-wordmark: 2.75rem;
    --fs-display: 2.125rem;
    --fs-numeral: 3rem;
    --fs-item: 1.125rem;
    --photo-w: 5.25rem;
  }

  .lead { padding-top: var(--s8); }
  .cotm { padding: var(--s6) var(--s8); }
  .chips-bar { margin-top: var(--s8); }
  .menu-section { padding-top: var(--s10); }
  .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Sheets as centred cards ---------- */

@media (min-width: 640px) {
  .sheet {
    margin: auto;
    width: calc(100% - 3rem);
    max-width: 50rem;
    max-height: calc(100% - 3rem);
    border-radius: 0.75rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  }

  .sheet-narrow { max-width: 34rem; }

  .sheet-scroll { padding: var(--s5) var(--s8) var(--s8); }
  .sheet-handle { display: none; }
  .sheet-top { margin-top: 0; }

  /* Artwork (or photo) beside the details */
  .sheet-body,
  .detail-body.has-photo {
    margin-top: var(--s5);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: var(--s8);
    align-items: start;
  }

  .sheet-body .sleeve-art { margin-top: 0; max-width: none; }
  .sheet-details { margin-top: 0; }

  .detail-body.has-photo .detail-photo { margin-top: 0; max-height: none; }
  .detail-body.has-photo .detail-name { margin-top: 0; }
}

/* Short screens (phones on their side): tighter song sheet */
@media (min-width: 640px) and (max-height: 520px) {
  .sheet { max-height: calc(100% - 1.5rem); }
  .sheet-scroll { padding: var(--s3) var(--s6) var(--s5); }
  .sheet-title { font-size: 1.875rem; }
  .sheet-links { flex-direction: row; }
  .sheet-links .pill { flex: 1; }
}

/* ---------- 900px and up ---------- */

@media (min-width: 900px) {
  :root {
    --gutter: 2.5rem;
    --maxw: 65rem;
    --fs-wordmark: 3.75rem;
    --fs-display: 2.5rem;
    --fs-numeral: 3.5rem;
    --fs-item: 1.1875rem;
    --photo-w: 5.75rem;
  }

  .np-bar { min-height: 4.5rem; }
  .np-thumb { width: 3rem; height: 3rem; }

  /* Name on one side, coffee of the month on the other */
  .lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--col-gap);
    align-items: center;
    padding-top: var(--s12);
  }

  .cotm { margin-top: 0; }
  .chips-bar { margin-top: var(--s12); }
  .menu-section { padding-top: var(--s12); }

  /* Items in two columns */
  .items {
    margin-top: var(--s3);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .item { padding: var(--s5) 0; }
  .small-print { margin-top: var(--s16); padding-top: var(--s8); }
  .hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 1440px and up ---------- */

@media (min-width: 1440px) {
  :root {
    --maxw: 72rem;
    --col-gap: 4.5rem;
    --fs-wordmark: 4.25rem;
    --fs-display: 2.75rem;
    --fs-body: 1rem;
  }
}

/* ---------- Motion ---------- */

@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-pop { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .sheet[open] { animation: sheet-up 0.3s var(--ease); }
  .sheet[open]::backdrop { animation: fade-in 0.3s ease; }

  /* The page arrives in order, like a needle finding the groove */
  .reveal {
    animation: rise var(--t-slow) var(--ease) both;
    animation-delay: calc(var(--i, 0) * 45ms);
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 640px) {
  .sheet[open] { animation: sheet-pop 0.24s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  .eq span,
  .record.spin .record-disc { animation: none; }
  .sheet, .glow { transition: none; }
}

/* More contrast, when the reader asks for it */
@media (prefers-contrast: more) {
  :root {
    --muted: #E6D5BF;
    --faint: #D8C4AB;
    --rule: rgba(241, 230, 214, 0.35);
    --rule-strong: rgba(241, 230, 214, 0.6);
    --leader: rgba(241, 230, 214, 0.6);
  }
}

/* ---------- Print: the menu on paper ---------- */

@page {
  size: A4;
  margin: 14mm 15mm 16mm;
}

@media print {
  :root {
    --cream: #1A1414;
    --muted: #4A4040;
    --faint: #5E5350;
    --gold: #7A1F22;
    --rule: rgba(0, 0, 0, 0.22);
    --leader: rgba(0, 0, 0, 0.45);
    --pad-l: 0px;
    --pad-r: 0px;
    --fs-wordmark: 30pt;
    --fs-display: 17pt;
    --fs-numeral: 22pt;
    --fs-item: 10.5pt;
    --fs-body: 9pt;
    --fs-small: 8pt;
    --fs-label: 6.5pt;
  }

  html[lang="ar"] { --fs-label: 8pt; --fs-small: 8.5pt; }

  html, body { background: #fff; }
  body { min-height: 0; }

  .grain, .skip-link, .np-bar, .notice, .chips-bar, .filter-status, .quick-filters, .section-count,
  .crate-tabs, .crate-none, .crate-label, .cotm-open,
  .lang-switch, .item-photo, .sheet, .offline-note, .tag { display: none !important; }

  .page { display: block; min-height: 0; }

  .lead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10mm;
    align-items: end;
    padding-top: 0;
    padding-bottom: 5mm;
    border-bottom: 0.5pt solid #1A1414;
  }

  .cotm {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  .cotm-name { margin-top: 1mm; }
  .cotm-notes, .cotm-lines { margin-top: 0.5mm; }
  .cotm-lines { font-size: 7pt; }

  #menu-sections {
    columns: 2;
    column-gap: 10mm;
    margin-top: 5mm;
  }

  .edition { padding: 0; margin-top: 3mm; }
  .edition-vol { font-size: 18pt; color: #7A1E22; }
  .edition-season { font-size: 7pt; color: #1A1414; }
  .edition-rule { background: #1A1414; height: 0.5pt; }

  /* The espresso beans on the grinder, compact and never split across columns */
  .grinder { margin-top: 2mm; }
  .grinder-cards { grid-template-columns: 1fr; gap: 1mm; margin-top: 1mm; }
  .grinder-card { display: block; padding: 1mm 0; break-inside: avoid; border-top: 0.5pt solid #ccc; }
  .grinder-name { font-size: 10pt; }
  .grinder-notes { font-size: 8pt; }

  .menu-section {
    padding-top: 0;
    margin-bottom: 6mm;
  }

  .section-head {
    margin: 0;
    padding: 0 0 1mm;
    border: 0;
    border-bottom: 0.5pt solid #1A1414;
    background: none;
    break-after: avoid;
  }

  .section-intro { margin-top: 1.5mm; break-after: avoid; }

  .items { display: block; margin-top: 1mm; }

  .item,
  .item.has-photo {
    display: block;
    padding: 2.2mm 0;
    break-inside: avoid;
    cursor: auto;
  }

  .item.is-sold-out .item-open,
  .item.is-sold-out .item-prices { color: inherit; }

  .item-desc { margin-top: 0.4mm; max-width: none; }
  .item-meta { margin-top: 0.6mm; font-size: 6.5pt; }
  .item-ask { display: none; }
  .reveal { animation: none !important; }

  .small-print {
    margin-top: 3mm;
    padding-top: 3mm;
    padding-bottom: 0;
    gap: 1mm;
    break-inside: avoid;
  }

  .small-print p { max-width: none; }
}
