/* ==========================================================================
   JAMZ Smash Burgers

   Palette is the printed menu's, brought to screen: the brand red sampled
   from the CMYK logo, a warm paper cream, and a warm near-black. Cream rather
   than pure white throughout — it keeps the red from screaming and reads as
   "diner" instead of "clinical".
   ========================================================================== */

:root {
  --red:        #A81919;   /* brand red, sampled from logo_jamz_cmyk.ai */
  --red-deep:   #7A1111;
  --red-bright: #C6201F;   /* interactive only — never large fills */
  --ink:        #16100F;   /* warm near-black */
  --ink-soft:   #2A211F;
  --cream:      #F6EDE0;   /* the paper colour */
  --cream-dim:  #E7D9C6;
  --white:      #FFFFFF;
  --muted:      #6E5F58;
  --muted-dark: rgba(246, 237, 224, 0.72);
  --gold:       #F0C24B;   /* badges only */

  --display: 'Anton', 'Haettenschweiler', 'Arial Narrow Bold', Impact, sans-serif;
  --body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--ink); color: var(--cream);
  padding: 0.75rem 1.25rem; border-radius: 0 0 10px 10px; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Scalloped section edges

   A row of half-circles in the colour of the section it belongs to, sitting
   over the next one. Pure CSS, so it recolours with a variable instead of
   needing an SVG per combination.
   ========================================================================== */
.edge { height: 26px; position: relative; z-index: 2; pointer-events: none; }

/* --edge is the colour of the bumps, --edge-bg the flat colour behind them.
   Both are required: without --edge-bg the scallops are drawn onto the page
   background, which is the same cream, and vanish. */
.edge--down {
  background-color: var(--edge-bg);
  background-image: radial-gradient(circle at 13px 0, var(--edge) 13px, transparent 13.5px);
  background-size: 26px 26px;
  background-repeat: repeat-x;
}
.edge--up {
  background-color: var(--edge-bg);
  background-image: radial-gradient(circle at 13px 26px, var(--edge) 13px, transparent 13.5px);
  background-size: 26px 26px;
  background-repeat: repeat-x;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--body); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--red   { background: var(--red); color: var(--cream); }
.btn--red:hover { background: var(--red-bright); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--onDark { background: transparent; color: var(--cream); border-color: rgba(246,237,224,.55); }
.btn--onDark:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ==========================================================================
   Header — floats over the hero, then sticks as a solid bar
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 1.1rem 0;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              padding 0.3s var(--ease);
}
.header[data-solid="true"] {
  background: var(--cream);
  box-shadow: 0 2px 24px rgba(22, 16, 15, 0.14);
  padding: 0.7rem 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__mark {
  width: clamp(104px, 11vw, 138px);
  aspect-ratio: 183.647 / 86.361;
  /* the j's descender makes the box taller than the word's visual mass,
     so nudge it down to sit optically centred in the band */
  transform: translateY(9%);
  fill: var(--cream);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
  transition: fill 0.3s var(--ease), filter 0.3s var(--ease);
}
.header[data-solid="true"] .brand__mark { fill: var(--red); filter: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav__link {
  font-family: var(--body); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--cream); position: relative; padding: 0.3rem 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  transition: color 0.3s var(--ease);
}
.header[data-solid="true"] .nav__link { color: var(--ink); text-shadow: none; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red-bright);
  transition: right 0.28s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { right: 0; }
.header[data-solid="true"] .nav__link::after { background: var(--red); }

.nav__toggle {
  display: none; align-items: center; gap: 0.55rem;
  background: var(--red); color: var(--cream); border: 0;
  padding: 0.6rem 1rem 0.6rem 0.85rem; border-radius: 999px;
  font-family: var(--body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.nav__toggle svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: 120;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--ink); padding: 5rem var(--pad) 3rem;
    transform: translateY(-100%); visibility: hidden;
    transition: transform 0.42s var(--ease), visibility 0.42s;
  }
  .nav[data-open="true"] { transform: translateY(0); visibility: visible; }
  .nav__link { color: var(--cream) !important; font-size: 1.5rem; text-shadow: none; }
  .nav__close {
    position: absolute; top: 1.25rem; right: var(--pad);
    background: none; border: 0; color: var(--cream); cursor: pointer;
    font-family: var(--body); font-size: 0.8125rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
  }
}
@media (min-width: 961px) { .nav__close { display: none; } }

/* ==========================================================================
   Hero — full bleed, type anchored low
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem 0 3.5rem;
  background: var(--ink);
  overflow: hidden;
}
/* .hero__bg is a <picture>, which is not a replaced element — object-fit has
   no effect on it, so the sizing has to live on the inner <img>. */
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
}
.hero__bg img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  /* Source is 4:5 portrait: on a landscape desktop only about half its height
     is visible, so bias down onto the burgers instead of the neon above them. */
  object-position: 50% 60%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,10,9,.68) 0%, rgba(16,10,9,.22) 32%,
                            rgba(16,10,9,.58) 68%, rgba(16,10,9,.90) 100%);
}
.hero__title {
  /* sized so the longest line never wraps — the two lines are the design */
  font-size: clamp(2.1rem, 9.2vw, 8.5rem);
  line-height: 0.9;
  color: var(--cream);
  text-align: center;
  margin-bottom: 0.35em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title .sr-only { white-space: normal; }
.hero__rule {
  display: block; width: min(560px, 70%); height: 3px; margin: 0.22em auto;
  background: var(--red-bright); border-radius: 2px;
}
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-dark);
}
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }

/* the scalloped "fresh beef" stamp */
.stamp {
  position: absolute; z-index: 3;
  top: clamp(6rem, 14vh, 9rem); right: var(--pad);
  width: clamp(88px, 11vw, 132px); aspect-ratio: 1;
  display: grid; place-items: center; text-align: center;
  background: var(--gold); color: var(--ink);
  font-family: var(--body); font-size: 0.625rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.25;
  padding: 0.6rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px rgba(22,16,15,.18), 0 12px 30px rgba(22,16,15,.3);
  border: 2px dashed rgba(22, 16, 15, 0.45);
  animation: bob 5.5s ease-in-out infinite;
}
.stamp b { display: block; font-size: 1.05rem; font-family: var(--display); letter-spacing: 0.02em; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(-3deg); } }

@media (max-width: 700px) {
  .hero__bg img { object-position: 50% 46%; }
  .hero { min-height: 92svh; padding-top: 6.5rem; }
  .stamp { width: 82px; font-size: 0.5rem; top: auto; bottom: 1rem; right: 1rem; }
  .hero__meta {
    justify-content: flex-start; text-align: left; font-size: 0.6875rem;
    flex-direction: column; align-items: flex-start; gap: 0.2rem;
    padding-right: 96px;   /* clears the stamp pinned bottom-right */
  }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; background: var(--red); color: var(--cream); padding: 0.85rem 0; }
.marquee__track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; }
.marquee__group span {
  font-family: var(--display); font-size: clamp(1rem, 2vw, 1.45rem);
  letter-spacing: 0.06em; white-space: nowrap;
}
.marquee__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cream); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   Section furniture
   ========================================================================== */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--cream { background: var(--cream); }
.section--red   { background: var(--red); color: var(--cream); }
.section--ink   { background: var(--ink); color: var(--cream); }

.eyebrow {
  font-family: var(--body); font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.9rem;
}
.section--red .eyebrow, .section--ink .eyebrow { color: var(--gold); }

.section-title { font-size: clamp(2.1rem, 5.4vw, 4.25rem); text-wrap: balance; }
.section-title em { font-style: normal; color: var(--red); }
.section--red .section-title em, .section--ink .section-title em { color: var(--gold); }

.section-head { text-align: center; max-width: 46rem; margin-inline: auto; }
.section-head p {
  margin-top: 1.1rem; color: var(--muted); font-size: 1.0625rem;
  max-width: 52ch; margin-inline: auto;
}
.section--red .section-head p, .section--ink .section-head p { color: var(--muted-dark); }

.hours-chip {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.6rem;
  padding: 0.55rem 1.25rem; border: 2px dashed var(--cream-dim); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ==========================================================================
   Circular photo rail
   ========================================================================== */
.rail { margin-top: clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.rail__track { display: flex; width: max-content; gap: 1.5rem; animation: slide 46s linear infinite; }
.rail__item {
  width: clamp(180px, 22vw, 290px); aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; border: 6px solid var(--white);
  /* A light lift only. A deep offset pooled shadow under eight circles in a
     row turned the cream background muddy. */
  box-shadow: 0 4px 14px rgba(22, 16, 15, 0.07);
}
.rail:hover .rail__track { animation-play-state: paused; }

/* ==========================================================================
   Signature — photo + tabbed price list
   ========================================================================== */
.signature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.signature__media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.signature__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.signature__media img[data-active="true"] { opacity: 1; }

.signature__panel { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.signature__panel h3 {
  font-size: 1.15rem; letter-spacing: 0.14em; color: var(--red);
  padding-bottom: 1rem; border-bottom: 2px solid var(--cream-dim); margin-bottom: 0.5rem;
}
.sig-item {
  display: flex; align-items: baseline; gap: 1rem; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1rem 0; border-bottom: 1px solid var(--cream-dim);
  font-family: var(--display); font-size: clamp(1rem, 1.7vw, 1.3rem);
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink);
  transition: color 0.22s var(--ease);
}
.sig-item:hover { color: var(--red); }
.sig-item[aria-selected="true"] { color: var(--red); }
.sig-item__dots { flex: 1; border-bottom: 2px dotted var(--cream-dim); transform: translateY(-4px); }
.sig-item__price { font-variant-numeric: tabular-nums; }
.signature__cta { margin-top: 1.75rem; }

@media (max-width: 860px) {
  .signature { grid-template-columns: 1fr; }
  .signature__media { min-height: 280px; }
}

/* ==========================================================================
   Dish cards
   ========================================================================== */
.dishes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.dish {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(22, 16, 15, 0.08);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.dish:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(22, 16, 15, 0.16); }
.dish__media { position: relative; aspect-ratio: 4 / 3; }
.dish__media img { width: 100%; height: 100%; object-fit: cover; }
.dish__tag {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  background: var(--gold); color: var(--ink);
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 999px;
}
.dish__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; gap: 0.55rem; }
.dish__title { font-size: 1.4rem; }
.dish__text { color: var(--muted); font-size: 0.9375rem; }
.dish__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 0.9rem; }
.dish__price { font-family: var(--display); font-size: 1.5rem; color: var(--red); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Tilted gallery rail
   ========================================================================== */
.gallery { overflow: hidden; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.gallery__track { display: flex; width: max-content; gap: 1.25rem; animation: slide 52s linear infinite; }
.gallery__item {
  width: clamp(210px, 24vw, 330px); aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 14px; border: 8px solid var(--white);
  box-shadow: 0 14px 34px rgba(22, 16, 15, 0.18);
}
.gallery__item:nth-child(odd)  { transform: rotate(-2.2deg); }
.gallery__item:nth-child(even) { transform: rotate(1.8deg) translateY(14px); }
.gallery:hover .gallery__track { animation-play-state: paused; }

/* ==========================================================================
   Visit
   ========================================================================== */
.visit { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.visit__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.visit__list { margin: 1.8rem 0 2rem; display: grid; gap: 1.1rem; }
.visit__row { display: flex; gap: 0.9rem; align-items: flex-start; }
.visit__row svg { width: 20px; height: 20px; fill: var(--gold); flex: none; margin-top: 4px; }
.visit__row h4 { font-size: 0.8125rem; letter-spacing: 0.16em; margin-bottom: 0.15rem; }
.visit__row p { color: var(--muted-dark); }
.visit__row a { color: inherit; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--cream); padding: clamp(3.5rem, 7vw, 5.5rem) 0 0; }
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer h4 {
  font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 1.1rem;
}
.footer li + li { margin-top: 0.55rem; }
.footer a { text-decoration: none; color: var(--muted-dark); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--cream); }
.footer p { color: var(--muted-dark); }
.footer .placeholder { color: var(--gold); }

.footer__wordmark {
  width: 100%; fill: var(--ink-soft); display: block;
  aspect-ratio: 183.647 / 86.361;
}
/* CodeLab credit — the mark is fixed JAMZ red, the wordmark inherits the
   footer's text colour so it lifts to cream on hover. */
.credit { display: inline-flex; align-items: center; gap: 0.55rem; }
.credit__link {
  display: inline-flex; align-items: center;
  color: var(--muted-dark);
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}
.credit__link:hover { color: var(--cream); transform: translateY(-1px); }
.credit__logo {
  width: 78px; height: auto; aspect-ratio: 1052.39 / 199.01;
  display: block;
}

.footer__bar {
  border-top: 1px solid rgba(246, 237, 224, 0.14);
  padding: 1.25rem 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; font-size: 0.8125rem; color: var(--muted-dark);
}

@media (max-width: 720px) {
  /* On a phone, drop the legal line and centre the credit. The same company
     details are on the Terms page. */
  .footer__bar { justify-content: center; text-align: center; }
  .footer__bar .legal { display: none; }
}

/* ==========================================================================
   Page hero (menu / terms)
   ========================================================================== */
.page-hero {
  background: var(--red); color: var(--cream);
  padding: clamp(9rem, 20vh, 13rem) 0 clamp(2.75rem, 6vw, 5rem);
  text-align: center;
}
@media (max-width: 720px) {
  .page-hero { padding: 7.5rem 0 2.25rem; }
  .page-hero p { font-size: 0.95rem; }
}
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
.page-hero p { margin: 1.1rem auto 0; max-width: 52ch; color: var(--muted-dark); }

/* ==========================================================================
   Menu jump nav — sticks under the header so any section is one tap away.
   Horizontally swipeable rather than wrapped, so it stays one row deep.
   ========================================================================== */
.jumpnav {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dim);
}
.jumpnav__inner {
  display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none;
  padding: 0.7rem 0; -webkit-overflow-scrolling: touch;
}
.jumpnav__inner::-webkit-scrollbar { display: none; }
.jumpnav a {
  flex: none; text-decoration: none;
  font-family: var(--body); font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  padding: 0.5rem 0.95rem; border: 2px solid var(--cream-dim); border-radius: 999px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.jumpnav a:hover { background: var(--red); border-color: var(--red); color: var(--cream); }

/* anchors must clear both the fixed header and the sticky jump nav */
.cat[id], [id="allergens"] { scroll-margin-top: 96px; }

@media (max-width: 720px) {
  .jumpnav__inner { padding: 0.55rem 0; }
  .jumpnav a { font-size: 0.6875rem; padding: 0.45rem 0.8rem; }
  .cat[id], [id="allergens"] { scroll-margin-top: 88px; }
}

/* ==========================================================================
   Menu page
   ========================================================================== */
.cat { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.cat h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); color: var(--red); }
.cat__rule { flex: 1; height: 3px; background: var(--red); opacity: 0.25; }

.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.75rem; align-items: center;
}
@media (max-width: 720px) {
  /* sticky + swipeable so you can re-filter without scrolling back up */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--pad) * -1) 1.25rem; padding: 0.15rem var(--pad) 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters__label { display: none; }
  .chip { flex: none; }
}
.filters__label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-right: 0.35rem; }
.chip {
  background: transparent; border: 2px solid var(--cream-dim); color: var(--ink);
  padding: 0.45rem 1.05rem; border-radius: 999px; cursor: pointer;
  font-family: var(--body); font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--cream); }

.mrow {
  display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1.5rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--cream-dim);
}
.mrow[hidden] { display: none; }
/* flex rather than vertical-align: the badge centres against the line box by
   layout instead of by baseline arithmetic, which was leaving it sitting low */
.mrow__name {
  font-family: var(--display); font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  text-transform: uppercase;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.mrow__desc { grid-column: 1; color: var(--muted); font-size: 0.9375rem; max-width: 62ch; }
.mrow__prices { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: clamp(0.8rem, 2vw, 1.75rem); align-items: flex-start; }
.price-cell { text-align: center; min-width: 62px; }
.price-cell span { display: block; font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.price-cell b { font-family: var(--display); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 400; font-variant-numeric: tabular-nums; }
.price-cell--combo b { color: var(--red); }

.tag {
  display: inline-block; margin-left: 0;
  /* the last hair of lift: uppercase cap-height sits slightly above the
     line box centre, so pure box-centring still reads a touch low */
  margin-bottom: 0.12em;
  font-family: var(--body); font-size: 0.5625rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.22rem 0.5rem; border-radius: 999px;
  background: var(--red); color: var(--cream);
}
.tag--veg { background: #1B7A3E; }
.tag--gold { background: var(--gold); color: var(--ink); }

.details { margin-top: 0.55rem; grid-column: 1 / -1; }
.details summary {
  cursor: pointer; font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
}
.details__panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem; padding: 1rem 0 0.25rem;
}
.details__panel h5 { font-family: var(--body); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.details__panel li { font-size: 0.875rem; color: var(--muted); }
.section--ink .ing-line { color: var(--muted-dark); }
.allergens { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.allergen {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.6875rem; font-weight: 700; padding: 0.25rem 0.65rem;
  border-radius: 999px; background: var(--red); color: var(--cream);
}
.allergen__icon { width: 13px; height: 13px; fill: currentColor; flex: none; }

/* ingredients read as a sentence — stacked they ate far too much height
   once a row was expanded */
.ing-line { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.allergen--may { background: transparent; color: var(--muted); border: 1px solid var(--cream-dim); }

@media (max-width: 720px) {
  /* Side-by-side put the description in a ~110px column and the prices in
     217px of a 390px screen. Stacked, the row is half the height and every
     line is readable. */
  .mrow { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.1rem 0; }
  .mrow__name { font-size: 1.2rem; }
  .mrow__desc { max-width: none; font-size: 0.9rem; line-height: 1.45; }
  .mrow__prices {
    grid-column: 1; grid-row: auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    margin-top: 0.55rem; border: 1px solid var(--cream-dim); border-radius: 10px;
    overflow: hidden; background: rgba(255,255,255,.5);
  }
  .price-cell { min-width: 0; padding: 0.5rem 0.25rem; border-right: 1px solid var(--cream-dim); }
  .price-cell:last-child { border-right: 0; }
  .price-cell--combo { background: var(--red); }
  .price-cell--combo span { color: rgba(246,237,224,.8); }
  .price-cell--combo b { color: var(--cream); }
  .details { margin-top: 0.7rem; }
}

.simple { }
.simple li { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--cream-dim); }
.simple .name { font-family: var(--display); font-size: 1.0625rem; text-transform: uppercase; }
.simple .dots { flex: 1; border-bottom: 2px dotted var(--cream-dim); transform: translateY(-4px); }
.simple .price { font-family: var(--display); font-size: 1.125rem; color: var(--red); font-variant-numeric: tabular-nums; }
.simple .sub { display: block; font-family: var(--body); font-size: 0.8125rem; color: var(--muted); text-transform: none; margin-top: 0.15rem; }

/* On the dark section the brand red measures 2.5:1 against the near-black,
   which fails AA for text. Prices and rules switch to the gold (11.2:1). */
.section--ink .simple .price,
.section--ink .details summary,
.section--ink .cat h2 { color: var(--gold); }
.section--ink .simple li { border-bottom-color: rgba(246, 237, 224, 0.16); }
.section--ink .simple .dots { border-bottom-color: rgba(246, 237, 224, 0.28); }
.section--ink .simple .name { color: var(--cream); }
.section--ink .simple .sub,
.section--ink .details__panel li,
.section--ink .details__panel h5 { color: var(--muted-dark); }
.section--ink .allergen--may { color: var(--muted-dark); border-color: rgba(246,237,224,.3); }

.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.75rem, 4vw, 3rem); }

.keygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem 1.5rem; }
.keygrid div { font-size: 0.875rem; color: var(--muted); padding: 0.35rem 0; border-bottom: 1px solid var(--cream-dim); }

/* terms */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }

/* Default <dl> puts each value on its own indented line. Inline it so each
   entry reads "Label: value" on a single line. */
.prose dl { margin: 0 0 1.5rem; }
.prose dt { display: inline; font-weight: 700; color: var(--ink); }
.prose dt::after { content: ": "; }
.prose dd { display: inline; margin: 0; color: var(--muted); }
.prose dd::after { content: ""; display: block; margin-bottom: 0.45rem; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* Gated on .js (set by an inline script in <head>) so that if the script
   never runs, every section is simply visible instead of invisible forever. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }
