/* ==========================================================================
   Lakeway Market & Deli
   One stylesheet for all three pages: Home, Menu, and Butcher Counter.
   The look is a printed restaurant menu in a wine cellar: warm cellar
   browns, a cognac accent, and brass details on a parchment page.
   Headings are Cormorant Garamond, menu entries are EB Garamond, and
   everything else (nav, buttons, intro lines) is Source Sans 3.

   How it's built:
   - The big dark surfaces (the home photo, the market panel) are rounded
     panels that sit a little in from the screen edge, on the parchment page.
   - Dishes, menu categories, butcher groups, and reviews are cards: a
     slightly lighter paper color, a hairline border, and a soft warm shadow.
   - Mobile-first; layouts step up at 42rem (672px), 60rem (960px),
     64rem (1024px), and 75rem (1200px).

   Motion is slow and quiet: things fade in as they scroll into view and
   out as they pass under the header, pages crossfade, the menu's underline
   slides between tabs, cards lift a little under the pointer, and the hero
   text rises in while its photos zoom very slowly. The "Motion" section
   near the end holds most of it, and visitors who prefer less motion get
   none of it.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --parchment: #f7f1e8;             /* page and header background */
  --paper: #fdfaf4;                 /* cards: a shade lighter than the page */
  --linen: #efe5d6;                 /* the typeset tiles that stand in for a photo */
  --stone: #e6dacb;                 /* backdrop while a photo loads */
  --cognac: #8b5a2b;                /* the accent: buttons, links, current page, menu headings (5:1 on parchment) */
  --cognac-dark: #6b4220;           /* button hover */
  --walnut: #4b3020;                /* the market panel */
  --cellar: #2b1d15;                /* footer, photo backdrops */
  --brass: #c19a5b;                 /* rules and accents on parchment (too light for text there); headings and buttons on dark */
  --brass-deep: #a47a36;            /* review stars on paper (3:1) */
  --ink: #2b211b;                   /* text */
  --muted: #6a5a4c;                 /* secondary text (5.8:1 on parchment) */
  --line: #e2d6c4;                  /* hairlines only, never text */
  --line-strong: #cfbea5;           /* a card's border under the pointer */
  --line-on-dark: rgb(247 241 232 / 18%);
  --soft-on-dark: rgb(247 241 232 / 86%); /* paragraphs on walnut and cellar */

  /* A faint paper grain laid over the parchment, so the page reads like
     the card stock of a printed menu rather than a flat color. It's drawn
     by the browser from these few lines (no image file), as fine specks a
     little darker and a little lighter than the parchment. Used on the
     page, the header, the phone menu panel, and the Menu page's tab row,
     so the grain runs unbroken behind all of them. It barely changes the
     page's overall color, and gray text stays above 5:1 contrast on it.
     For a stronger grain, raise the .25 / -.35 and .15 / .18 pairs
     together, a little at a time. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch' result='n'/%3E%3CfeColorMatrix in='n' values='0 0 0 0 .29 0 0 0 0 .19 0 0 0 0 .11 .25 0 0 0 -.15' result='d'/%3E%3CfeColorMatrix in='n' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -.35 0 0 0 .18' result='l'/%3E%3CfeMerge%3E%3CfeMergeNode in='l'/%3E%3CfeMergeNode in='d'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  /* A chalky edge for the lettering on the butcher chalkboard: a mask of
     fine noise that leaves each stroke a little uneven, like chalk on
     slate. Lower the 1.55 (a little) for dustier chalk. */
  --chalk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.6 1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");

  --display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --chalk-hand: "Kalam", "Segoe Print", "Bradley Hand", cursive; /* the butcher chalkboard only */

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 80rem;                     /* the one content width */
  --inset: clamp(0.5rem, 1.4vw, 1.25rem); /* how far the big rounded panels sit in from the screen edge */
  --section: clamp(4rem, 9vw, 7.5rem);    /* space above and below a section */
  --header-h: 68px;                 /* sticky header; script.js keeps this exact */
  --tabbar-h: 0px;                  /* the menu's sticky tab row; script.js sets it on the Menu page */

  --r-sm: 10px;                     /* photos inside cards */
  --r-md: 16px;                     /* cards */
  --r-lg: clamp(18px, 2.4vw, 28px); /* the big panels */
  --r-pill: 999px;                  /* buttons */

  /* Shadows are tinted cellar brown, never gray */
  --shadow-sm: 0 1px 2px rgb(43 29 21 / 5%), 0 4px 12px -6px rgb(43 29 21 / 10%);
  --shadow-md: 0 2px 4px rgb(43 29 21 / 5%), 0 18px 32px -16px rgb(43 29 21 / 26%);
  --shadow-lg: 0 4px 10px rgb(43 29 21 / 8%), 0 32px 56px -24px rgb(43 29 21 / 38%);

  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--tabbar-h)); /* anchor links land below the sticky header */
}

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

/* A column, so the footer sits at the bottom even on a short page */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--parchment) var(--grain);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans); /* 17px */
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: transparent; /* no blinking text cursor when text is clicked; the site has no inputs */
}

/* overflow-x: clip trims anything that pokes past the screen's side edges
   (like the Menu page's full-width tab row background) without making main
   a scroll box, so the sticky tab row and the scroll fades keep working */
main {
  flex: 1 0 auto;
  overflow-x: clip;
}

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

p,
h1,
h2,
h3,
figure,
blockquote {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 2rem + 3.6vw, 4.5rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.375rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.5rem, 1.4rem + 0.5vw, 1.75rem);
}

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

address {
  font-style: normal;
}

button {
  font: inherit;
}

a,
button {
  touch-action: manipulation;
}

a {
  color: var(--cognac);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 0.25s ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--cognac);
  outline-offset: 4px;
}

#main:focus {
  outline: none;
}

::selection {
  background: var(--walnut);
  color: var(--parchment);
}

/* ---------- Helpers ---------- */

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

.section-space {
  padding-block: var(--section);
}

/* The line under a section heading */
.lead {
  color: var(--muted);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--parchment);
  color: var(--cognac);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Anything in [BRACKETS]: a quiet tag that marks info still to come */
.ph {
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: var(--stone);
  color: var(--muted);
  font-size: 0.8125em;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* A row that scrolls sideways fades out at its right edge while there's
   more of it to see (script.js adds .has-more) */
.has-more {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}

/* ---------- Buttons and links ---------- */

/* Buttons are small plates of real metal, like the nameplate on a cellar
   door. Each is a photograph of a hand-finished plate, stretched to fit:
   its own bevelled rim, brushed grain, warm patina, and lamp-lit sheen.
   The words are engraved into it, in EB Garamond small capitals, each
   letter with a thin lip of light along its lower edge. The plate sits proud of the
   page on a soft shadow, and its corners are filed by hand, so no two are
   quite alike. Two metals:
   - .btn, .btn--brass  brushed brass (images/brass-plate.jpg): every
                        "Order online" button and the main button anywhere
   - .btn--outline      dark oil-rubbed bronze worn to brass at the rim, with
                        brass-filled letters (images/bronze-plate.jpg): the
                        second button on the home page photo (See the menu)
   Both plates were made with Higgsfield AI; see IMAGES.md.
   Light glides across the metal under the pointer, and on phones as the
   page scrolls past, the way a real plate catches a lamp as you walk by.
   "Order online" also carries a fine engraved arrow that steps forward
   under the pointer. A plate lifts a little under the pointer and presses
   in when tapped. The lift uses `translate`, which the scroll animations
   never touch. */
.btn {
  --plate: url("images/brass-plate.jpg");
  --plate-color: #b08540; /* shows while the photo loads, or if it can't */
  --ink: #2b1a0b;
  --ink-lip: rgb(255 238 200 / 62%); /* light on the lower edge of each cut */
  --ink-shade: rgb(80 45 10 / 28%); /* shade on its upper edge */
  --lift:
    0 1px 1px rgb(30 16 6 / 30%),
    0 4px 8px -3px rgb(30 16 6 / 32%),
    0 12px 20px -12px rgb(30 16 6 / 50%);
  --lift-up:
    0 2px 3px rgb(30 16 6 / 26%),
    0 8px 14px -4px rgb(30 16 6 / 32%),
    0 18px 28px -14px rgb(30 16 6 / 55%);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  max-width: 100%;
  padding: 0.65rem 1.35rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px 4px 3px 5px / 4px 3px 5px 3px;
  background: var(--plate-color) var(--plate) center / 100% 100% no-repeat border-box;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 var(--ink-lip), 0 -1px 0 var(--ink-shade);
  cursor: pointer;
  box-shadow: var(--lift);
  transition:
    filter 0.3s ease,
    translate 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

/* The light that glides across the metal: a soft band, blended into the
   plate so it brightens the brass instead of painting over it */
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(100deg,
    transparent 30%,
    rgb(255 246 222 / 0%) 36%,
    rgb(255 246 222 / 85%) 50%,
    rgb(255 246 222 / 0%) 64%,
    transparent 70%);
  mix-blend-mode: soft-light;
  translate: -110% 0;
  pointer-events: none;
}

/* "Order online": a fine engraved arrow after the words, with a little less
   padding so the button stays the size it was. (Not on the small header
   button, which has the least room.) */
.btn[data-order-link] {
  padding-inline: 0.75rem;
}

.btn[data-order-link]::after {
  content: "";
  flex: none;
  width: 1.05em;
  height: 0.7em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h15M11.5 1.5 16 6l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h15M11.5 1.5 16 6l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 var(--ink-lip));
  transition: translate 0.4s var(--ease);
}

/* Tapped: the plate presses down against the page */
.btn:active {
  translate: 0 1px;
  filter: brightness(0.95);
  box-shadow: 0 0 1px rgb(30 16 6 / 45%), 0 1px 2px rgb(30 16 6 / 30%);
  transition-duration: 0.1s;
}

/* Keyboard focus: a clear ring outside the plate (brass on the dark
   photo and footer, where cognac wouldn't show) */
.btn:focus-visible {
  outline: 3px solid var(--cognac);
  outline-offset: 3px;
}

.hero .btn:focus-visible,
.site-footer .btn:focus-visible {
  outline-color: var(--brass);
}

.btn--small,
.btn--small[data-order-link] {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
}

.btn--small[data-order-link]::after {
  display: none;
}

.btn--large {
  min-height: 54px;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
}

/* Brass on the dark photo and the dark footer: the same plate on a deeper
   shadow */
.btn--brass {
  --lift:
    0 1px 1px rgb(0 0 0 / 45%),
    0 4px 10px -3px rgb(0 0 0 / 45%),
    0 14px 24px -12px rgb(0 0 0 / 70%);
  --lift-up:
    0 2px 3px rgb(0 0 0 / 40%),
    0 10px 16px -5px rgb(0 0 0 / 45%),
    0 20px 30px -14px rgb(0 0 0 / 75%);
}

/* The second button on the photo: dark bronze, its letters filled with
   brass, sitting slightly proud of the plate */
.btn--outline {
  --plate: url("images/bronze-plate.jpg");
  --plate-color: #2e2017;
  --ink: #e6c88e;
  --ink-lip: rgb(0 0 0 / 60%);
  --ink-shade: rgb(255 236 200 / 10%);
  --lift:
    0 1px 1px rgb(0 0 0 / 50%),
    0 4px 10px -3px rgb(0 0 0 / 45%),
    0 14px 24px -12px rgb(0 0 0 / 70%);
  --lift-up:
    0 2px 3px rgb(0 0 0 / 45%),
    0 10px 16px -5px rgb(0 0 0 / 45%),
    0 20px 30px -14px rgb(0 0 0 / 75%);
}

@media (hover: hover) {
  .btn:hover {
    translate: 0 -2px;
    filter: brightness(1.05);
    box-shadow: var(--lift-up);
  }

  .btn:hover::before {
    translate: 110% 0;
    transition: translate 1.1s var(--ease);
  }

  .btn[data-order-link]:hover::after {
    translate: 0.25em 0;
  }
}

/* Phones and tablets (no pointer to hover with): the light slides across
   each plate as the page scrolls it past, like walking by a lamp */
@keyframes plate-glint {
  from { translate: -110% 0; }
  to { translate: 110% 0; }
}

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .btn::before {
      animation: plate-glint linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}

/* A text link with a hairline under it; a solid line draws across on hover */
.link-strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.link-strong::before,
.link-strong::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  height: 1px;
  background: currentColor;
}

.link-strong::before {
  opacity: 0.35;
}

.link-strong::after {
  height: 2px;
  bottom: 8px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.link-strong:hover::after,
.link-strong:focus-visible::after {
  transform: scaleX(1);
}

.phone-inline {
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Header ---------- */

/* Stays at the top of the screen while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--parchment) var(--grain);
  border-bottom: 1px solid transparent;
  /* The first shadow is a strip of parchment above the header. On screens
     set to 125% or 150% the browser can leave a hairline gap at the very
     top, and dark panels scrolling underneath would show through it. */
  box-shadow: 0 -4px 0 var(--parchment), 0 12px 26px -16px rgb(43 29 21 / 0%);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  view-transition-name: site-header; /* stays put while the page below it crossfades */
}

/* Once the page has scrolled (script.js adds .is-scrolled) */
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 -4px 0 var(--parchment), 0 12px 26px -16px rgb(43 29 21 / 38%);
}

/* Phones and tablets: the logo, the order button, and the menu button.
   Desktops: the logo, the links, the phone number, and the order button. */
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "brand action toggle";
  align-items: center;
  column-gap: 0.5rem;
  min-height: 64px;
}

/* The store's logo: the grape mark beside the name, on a clear background
   (images/logo-header.png) */
.wordmark {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px; /* a full-size tap target even where the logo is small */
  border-radius: 4px;
}

.wordmark img {
  width: auto;
  height: clamp(26px, 8.4vw, 36px);
}

.site-header__phone {
  grid-area: phone;
  display: none;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__phone:hover {
  color: var(--cognac);
}

/* The order button is always in the header. Until the Modisoft link is set
   it calls the store, like every other "Order online" button. */
.site-header__order {
  grid-area: action;
  gap: 0.28em; /* the space between "Order" and "online" */
}

/* On the narrowest phones the button just says "Order" */
.site-header__order span {
  display: none;
}

@media (min-width: 26rem) {
  .site-header__order span {
    display: inline;
  }
}

/* The round button that opens the links on phones and tablets: two bars
   that cross into an X (script.js shows it and sets aria-expanded) */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 9px;
}

.nav-toggle__bars span {
  position: absolute;
  right: 0;
  left: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: top 0.4s var(--ease), transform 0.4s var(--ease);
}

.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { top: calc(100% - 1.5px); }

.nav-open .nav-toggle {
  border-color: var(--cognac);
  background: var(--paper);
}

.nav-open .nav-toggle__bars span:first-child {
  top: calc(50% - 0.75px);
  transform: rotate(45deg);
}

.nav-open .nav-toggle__bars span:last-child {
  top: calc(50% - 0.75px);
  transform: rotate(-45deg);
}

.site-nav {
  grid-area: nav;
  min-width: 0;
}

.site-nav__list {
  position: relative;
  display: flex;
  gap: 1.5rem;
}

.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

/* A cognac rule under the link: it draws across from the left on hover and
   stays under the page you're on */
.site-nav__list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--cognac);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--cognac);
}

.site-nav__list a[aria-current="page"] {
  font-weight: 600;
}

/* The phone number, address, and hours: only inside the phone menu */
.site-nav__info {
  display: none;
}

/* Without JavaScript there's no menu button, so the links sit in a row
   under the logo. On the narrowest phones the row scrolls sideways. */
.no-js .site-header__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand action"
    "nav   nav";
  padding-top: 0.5rem;
}

.no-js .site-nav__list {
  overflow-x: auto;
  scrollbar-width: none;
}

/* Phones and tablets, with JavaScript: the links live in a panel that rolls
   down from under the header when the menu button is pressed. The page
   behind it dims, and pressing there closes it. */
@media (max-width: 59.99rem) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    padding: 0.25rem var(--gutter) 1.75rem;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    background: var(--parchment) var(--grain);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease), visibility 0s linear 0.5s;
  }

  .js .nav-open .site-nav {
    visibility: visible;
    clip-path: inset(0 0 -4rem 0); /* room for the shadow */
    transition: clip-path 0.5s var(--ease), visibility 0s;
  }

  .js .site-nav__list {
    display: block;
  }

  .js .site-nav__list a {
    display: flex;
    min-height: 3.75rem;
    border-bottom: 1px solid var(--line);
    font: 600 1.75rem/1.2 var(--display);
    white-space: normal;
  }

  .js .site-nav__list a::after {
    content: none;
  }

  .js .site-nav__list a:focus-visible {
    outline-offset: -3px;
  }

  .js .site-nav__info {
    display: grid;
    justify-items: start;
    padding-top: 1rem;
    color: var(--muted);
  }

  .js .site-nav__info a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
  }

  .js .site-nav__info a:first-child {
    color: var(--cognac);
    font-size: 1.25rem;
    font-weight: 600;
  }

  .js .site-nav__info p {
    margin-top: 0.4rem;
  }

  /* The links follow the panel down, one after another */
  .js .site-nav__list li,
  .js .site-nav__info {
    opacity: 0;
    translate: 0 -8px;
    transition: opacity 0.3s ease, translate 0.45s var(--ease);
  }

  .js .nav-open .site-nav__list li,
  .js .nav-open .site-nav__info {
    opacity: 1;
    translate: 0 0;
    transition-delay: calc(var(--nav-i, 0) * 55ms + 120ms);
  }

  .site-nav__list li:nth-child(2) { --nav-i: 1; }
  .site-nav__list li:nth-child(3) { --nav-i: 2; }
  .site-nav__list li:nth-child(4) { --nav-i: 3; }
  .site-nav__info { --nav-i: 4; }

  /* The dimmed page behind the open panel */
  .js .site-header::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: -1;
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    background: rgb(30 20 14 / 42%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .js .site-header.nav-open::after {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 42rem) {
  .site-header__inner {
    min-height: 72px;
    column-gap: 0.75rem;
  }

  .wordmark img {
    height: 42px;
  }
}

@media (min-width: 60rem) {
  .site-header__inner,
  .no-js .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "brand nav phone action";
    column-gap: clamp(1rem, 2.2vw, 2rem);
    min-height: 78px;
    padding-top: 0;
  }

  .wordmark img {
    height: clamp(40px, 3.6vw, 50px);
  }

  .site-nav__list {
    justify-content: center;
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
  }

  .site-header__phone {
    display: inline-flex;
  }
}

/* ---------- Photo panels and slots ---------- */

.photo-panel {
  position: relative;
  overflow: hidden;
  background: var(--cellar);
  color: var(--parchment);
}

.photo-panel :focus-visible,
.market :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--parchment);
}

/* A photo stays hidden until it has loaded, then fades in. If its file is
   missing, it never shows a broken-image icon: script.js marks the slot
   .is-missing and a labeled block (the filename and what goes there) shows
   in its place. The label stays out of sight while a photo is still
   loading, and is removed once it has. */
.slot {
  position: relative;
  overflow: hidden;
  background: var(--cellar);
}

.slot img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js .slot img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.js .slot.is-loaded img {
  opacity: 1;
}

.slot__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  color: rgb(247 241 232 / 75%);
  font-size: 0.875rem;
  line-height: 1.35;
}

.slot__file {
  font-weight: 600;
}

.js .slot__ph {
  visibility: hidden;
}

.js .slot.is-missing .slot__ph {
  visibility: visible;
}

/* ---------- Home: hero slideshow ---------- */

/* A rounded photo panel just under the header. The store shows clearly in
   the top of the frame; the headline, buttons, and store details sit along
   the bottom on a warm cellar-brown veil. */
.hero {
  --veil: 28rem; /* how far up from the bottom the dark veil holds, to cover the text */
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(33rem, calc(100vh - var(--header-h) - 2 * var(--inset)), 47rem);
  min-height: clamp(33rem, calc(100svh - var(--header-h) - 2 * var(--inset)), 47rem);
  margin: var(--inset) var(--inset) 0;
  border-radius: var(--r-lg);
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--cellar);
}

/* The slides stack. script.js fades the next one in on top while the last
   one stays solid underneath (.is-leaving), so the picture never dims
   halfway through. */
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 50%;
  opacity: 0;
}

.hero__slide.is-active,
.hero__slide.is-leaving {
  opacity: 1;
}

.hero__slide.is-active {
  z-index: 1;
  transition: opacity 1.2s ease;
}

/* A panning slide ("pan:" in the slideshow's list): a wide photo, taller
   than the frame, that glides from its left end to its right end while the
   slide shows (the "hero-pan" animation, under Motion). On phones the food
   sits in the middle of the frame; on wider screens, where the headline
   sits over the lower part of the photo, it sits higher, and the photo's
   lower edge fades into the brown. --pan-h is the photo's height and
   --pan-top its top edge, both as a share of the frame's height. */
.hero__slide--pan {
  overflow: hidden;
  container-type: size;
}

.hero__slide--pan > img {
  --pan-h: 150%;
  --pan-top: -17%;
  position: absolute;
  top: var(--pan-top);
  left: 0;
  width: auto;
  min-width: 115%;
  max-width: none;
  height: var(--pan-h);
  object-fit: cover;
  object-position: 50% 44%;
}

@media (min-width: 42rem) {
  .hero__slide--pan > img {
    --pan-h: 105%;
    --pan-top: -18%;
    -webkit-mask-image: linear-gradient(#000 78%, transparent);
    mask-image: linear-gradient(#000 78%, transparent);
  }
}

/* A video slide: the video, with its photo (the video's first frame) laid
   on top. Once script.js sees a frame of the video on screen
   (.is-playing), the photo fades away. Until then, or if the video never
   plays, the photo shows, so the slide is never blank. The video itself is
   never hidden: iPhones won't start a video that's invisible. */
.hero__slide--video > img,
.hero__slide--video > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__slide--video > img {
  z-index: 1;
  transition: opacity 0.35s ease;
}

.hero__slide--video.is-playing > img {
  opacity: 0;
}

/* Tablets: the frame is tall, so the storefront photo is shown a third
   larger and pinned to the bottom. That lifts the building and its sign
   clear of the headline, which then sits on the parking lot. (Phones get
   their own layout, below.) */
@media (min-width: 42rem) and (max-width: 74.99rem) {
  .hero__slide[src$="hero.jpg"] {
    inset: auto 0 0;
    height: 132%;
    object-position: 43% 50%;
  }
}

/* The veil: darkest along the bottom, holding at about two-thirds through
   the height of the text, then clearing so the top of the photo shows
   almost untinted. The text also carries a soft shadow of the same brown,
   so it reads over any photo. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgb(30 20 14 / 93%) 0,
    rgb(30 20 14 / 82%) calc(var(--veil) * 0.45),
    rgb(30 20 14 / 68%) var(--veil),
    rgb(30 20 14 / 14%) calc(var(--veil) + 9rem),
    rgb(30 20 14 / 5%) 100%
  );
}

/* Lines up with the page's content, though the panel itself sits in from
   the screen edge */
.hero__text {
  width: min(100% - 2 * (var(--gutter) - var(--inset)), var(--max));
  margin-inline: auto;
  padding-block: 6rem clamp(0.75rem, 2vw, 1.25rem);
  text-shadow: 0 1px 28px rgb(30 20 14 / 55%);
}

.hero__title {
  font-size: clamp(2.25rem, 10.4vw, 3.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.012em;
}

.hero__title span {
  display: block;
}

.hero__sub {
  max-width: 31rem;
  margin-top: 1.1rem;
  color: rgb(247 241 232 / 94%);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-shadow: none;
}

/* Phones: the two buttons share the row equally */
.hero__actions .btn {
  flex: 1 1 8.5rem;
  padding-inline: 1rem;
  white-space: nowrap;
}

/* Hours, phone, address: one quiet row along the bottom of the photo */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-on-dark);
  color: rgb(247 241 232 / 92%);
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.hero__facts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.hero__facts a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* The narrowest phones: slightly smaller buttons, so the two still fit side
   by side and the photo keeps more room above the text */
@media (max-width: 21.9rem) {
  .hero__actions .btn {
    flex-basis: 7rem;
    min-height: 50px;
    padding-inline: 0.6rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
  }
}

/* Phones: the photo (or video) runs across the top, whole and uncovered,
   at 3:2, and the headline, buttons, and store details sit below it on
   the same cellar brown, the photo fading softly into it. Laying the text
   over the photo, as on wider screens, would crop a wide photo to a
   narrow strip behind the words. (After the rules above, so it wins.) */
@media (max-width: 41.99rem) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .hero__slides {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 3 / 2;
  }

  .hero__slides::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 28%;
    background: linear-gradient(to top, var(--cellar), rgb(43 29 21 / 0%));
    pointer-events: none;
  }

  .hero::after {
    display: none;
  }

  .hero__text {
    width: auto;
    margin: 0;
    padding: 0.25rem calc(var(--gutter) - var(--inset)) 0.5rem;
    text-shadow: none;
  }
}

@media (min-width: 42rem) {
  .hero__title {
    font-size: clamp(3.5rem, 8.4vw, 5rem);
  }

  .hero__actions .btn {
    flex: none;
    padding-inline: 2.2rem;
  }

  .hero__actions .btn[data-order-link] {
    padding-inline: 1.05rem;
  }
}

/* Desktops: the headline bottom-left, the intro line and buttons
   bottom-right, the store details in a row beneath both */
@media (min-width: 75rem) {
  .hero {
    --veil: 20rem;
  }

  .hero__lead {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(19rem, 25rem);
    justify-content: space-between;
    align-items: end;
    column-gap: 3.5rem;
  }

  .hero__title {
    font-size: clamp(4rem, 5.3vw, 5rem);
  }

  .hero__side {
    padding-bottom: 0.35rem;
  }

  .hero__sub {
    margin-top: 0;
  }

  .hero__facts {
    gap: 0 3rem;
  }
}

/* ---------- Home: the deli menu, one card per category ---------- */

.deli-preview__grid {
  display: grid;
  gap: 1.75rem;
}

/* The intro: a short brass rule, the heading, its line, and the two ways
   in: order now, or read the whole menu */
.deli-preview__intro h2 {
  font-size: clamp(2.5rem, 1.8rem + 2.8vw, 3.75rem);
}

.deli-preview__intro h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: var(--brass);
}

.deli-preview__intro .lead {
  max-width: 24rem;
  margin-top: 1rem;
}

.deli-preview__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 1.75rem;
}

/* Phones: the categories stack as a list, all five in view at once (see
   "Phones: the category list", below the card styles). Wider screens: a
   grid of cards (see "Tablets and up"). */
.dish-cards {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

/* A category card: its photo edge to edge across the top (or, until there's
   a photo, a typeset list of its dishes), then the category's name, a line
   on what's in it (`blurb` in menu.js), and a "See the dishes" cue pinned to
   the bottom, so the cues line up across a row. The whole card links to
   that category on the Menu page. */
.dish-card {
  display: flex;
  flex: 0 0 min(80%, 19rem);
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition:
    translate 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.3s ease;
}

/* A little wider than tall: the trays stay in frame, with less empty table */
.dish-card__media {
  position: relative;
  order: -1;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--stone);
}

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

/* No photo yet: the category's dishes, set like a small printed menu card
   inside a brass hairline. Adding `image:` to the category in menu.js
   swaps this for the photo. */
.dish-card__media--list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.5rem;
  background: var(--linen);
  text-align: center;
}

.dish-card__media--list::before {
  content: "";
  position: absolute;
  inset: 0.625rem;
  border: 1px solid var(--brass);
  border-radius: 5px;
  pointer-events: none;
  transition: inset 0.5s var(--ease);
}

.dish-card__media--list li {
  padding-block: 0.22em;
  font: 500 clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem)/1.25 var(--serif);
}

.dish-card__more {
  margin-top: 0.5em;
  color: var(--muted);
  font: italic 600 1.0625rem/1.3 var(--serif);
}

.dish-card__title {
  padding: 1.15rem 1.35rem 0;
  font-size: clamp(1.5rem, 1.35rem + 0.5vw, 1.75rem);
  font-weight: 500;
  transition: color 0.3s ease;
}

.dish-card__blurb {
  padding: 0.45rem 1.35rem 0;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.5;
}

.dish-card__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding: 1rem 1.35rem 1.25rem;
  color: var(--cognac);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dish-card__cue svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate 0.45s var(--ease);
}

@media (hover: hover) {
  .dish-card:hover {
    translate: 0 -5px;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }

  /* The photo eases in a little closer */
  .dish-card:hover img {
    transform: scale(1.05);
  }

  .dish-card:hover .dish-card__media--list::before {
    inset: 0.45rem;
  }

  .dish-card:hover .dish-card__title {
    color: var(--cognac);
  }

  /* The arrow nudges forward */
  .dish-card:hover .dish-card__cue svg {
    translate: 4px 0;
  }
}

/* Phones: the category list. Each category is one tappable row: its photo
   square on the left, its name and what's in it beside, and the arrow at
   the end, so a customer sees all five without swiping. */
@media (max-width: 41.99rem) {
  .dish-card {
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 1rem;
    padding: 0.625rem;
  }

  .dish-card__media {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: start;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-sm);
  }

  .dish-card__title {
    grid-column: 2;
    padding: 0.2rem 0 0;
    font-size: 1.375rem;
  }

  .dish-card__blurb {
    grid-column: 2;
    padding: 0.2rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .dish-card__cue {
    grid-column: 2;
    align-self: end;
    padding: 0.5rem 0 0.1rem;
    font-size: 0.875rem;
  }

  /* A category with no photo yet shows its dish names in the square; on a
     phone that's too small to read, so the square shows just its frame */
  .dish-card__media--list {
    padding: 0;
  }

  .dish-card__media--list ul,
  .dish-card__media--list .dish-card__more {
    display: none;
  }
}

/* ---------- Home: the market, a walnut panel with photos ---------- */

/* A wall of dark walnut boards (images/wood-walnut.jpg, a texture made
   with Higgsfield AI). The picture is five boards tall and repeats down
   the panel exactly at a board joint, so the repeat never shows. It's
   drawn at least 1900px wide, so the boards keep a real-life size on
   every screen. Over it: a light brown wash, and deeper shade toward the
   edges, so the wood reads as lamp-lit and the text stays readable.

   Isolated so the warm glows behind the photos sit on the wood, under
   everything else. overflow: clip trims a glow at the panel's edge
   without turning the panel into a scroll box, which would stop the
   scroll fades inside it. */
.market {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-inline: var(--inset);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-radius: var(--r-lg);
  background: var(--walnut) url("images/wood-walnut.jpg") center top / 1900px auto repeat-y;
  background:
    radial-gradient(130% 95% at 50% 45%, transparent 35%, rgb(24 15 10 / 50%)),
    linear-gradient(rgb(43 29 21 / 32%), rgb(43 29 21 / 32%)),
    url("images/wood-walnut.jpg") center top / max(100%, 1900px) auto repeat-y,
    var(--walnut);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 30%);
  color: var(--parchment);
}

.market__inner {
  display: grid;
  gap: clamp(3rem, 6.5vw, 5rem);
  width: min(100% - 2 * (var(--gutter) - var(--inset)), var(--max));
  margin-inline: auto;
}

/* One photo beside one short piece of text; every other row flips sides */
.market-row {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* A warm glow behind each photo (and the butcher board), like amber
   lamplight on a cellar wall. The photo hides its middle, so it's
   strongest just past the photo's edge. It spreads above and below on
   phones, and a little to the sides on wider screens, stopping short of
   the text beside it. */
.market-row__media {
  position: relative;
  isolation: isolate;
}

.market-row__media::before {
  content: "";
  position: absolute;
  inset: -14% 0;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(222 168 92 / 34%) 50%, rgb(222 168 92 / 15%) 74%, transparent);
  pointer-events: none;
}

.market-row__text p {
  max-width: 30rem;
  margin-top: 1.1rem;
  color: var(--soft-on-dark);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.market-row__text h3 {
  font-size: clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem);
  font-weight: 500;
}

/* A short brass rule above each heading */
.market-row__text :is(h2, h3)::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: var(--brass);
}

/* Links on the wood: cream with a brass underline. Brass lettering would
   drop under 4.5:1 contrast over the lighter streaks of the grain; cream
   stays above 6.5:1 everywhere on it. */
.market-row__text .link-strong {
  margin-top: 0.9rem;
  color: var(--parchment);
}

.market-row__text .link-strong::before,
.market-row__text .link-strong::after {
  background: var(--brass);
}

.market-row__text .link-strong::before {
  opacity: 0.8;
}

/* The phone number inside the butcher line */
.market-row__text p a {
  color: var(--parchment);
  text-decoration-color: var(--brass);
}

.market-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

.market-photo img {
  position: absolute;
  inset: 0;
}

/* The photo fades in once it has loaded and, under the pointer, eases
   slowly closer. The .js line outranks the fade-in rule (.js .slot img),
   which would otherwise drop the zoom's timing and make it snap. */
.market-photo img,
.js .market-photo img {
  transition: opacity 0.6s ease, transform 1.2s var(--ease);
}

/* The tap wall photo is tall; this frames the row of tap handles */
.market-photo img[src$="taproom.jpg"] {
  object-position: 50% 57%;
}

@media (hover: hover) {
  .market-photo:hover img {
    transform: scale(1.035);
  }
}

/* The first row pairs two photos: the wine wall, with a grocery aisle
   overlapping its lower corner */
.market-pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-bottom: 9%;
}

.market-pair .market-photo:first-child {
  grid-column: 1 / 11;
  grid-row: 1;
  aspect-ratio: 3 / 2;
}

/* The aisle photo sits on top of the wine photo's corner. A soft shadow
   cast up and to the left, onto the wine photo, keeps the two apart; no
   border, so nothing sits between the photo and the grained walnut. */
.market-pair .market-photo:last-child {
  grid-column: 8 / 13;
  grid-row: 1;
  align-self: end;
  aspect-ratio: 4 / 5;
  translate: 0 20%;
  box-shadow:
    -14px -12px 30px -8px rgb(20 12 8 / 55%),
    var(--shadow-lg);
}

/* This week's cuts are chalked on a framed slate board, like the one over
   a real butcher counter: on the home page's market panel (.butcher-board)
   and on the Butcher Counter page (.butcher-groups). script.js builds both
   from specials.js, so they always match. The slate (images/chalkboard.jpg)
   and the frame (images/chalkboard-frame.jpg) were made with Higgsfield AI.
   The lettering is real text in a hand-lettered face (Kalam), with a chalky
   edge from the --chalk mask.

   The frame is a photo of a real molded oak chalkboard frame, shot straight
   on, with mitered corners. border-image cuts it into its four corners and
   four sides (the 111 112 120 112 are the frame's thickness at the top,
   right, bottom, and left of that photo, in its pixels) and wraps it around
   the board at any size: the corners stay whole and the sides stretch
   along their length. --frame is how thick it shows on the page; the
   bottom rail is a touch wider, as it is in the photo. */
.butcher-board,
.butcher-groups {
  --frame: clamp(1.5rem, 3.4vw, 2.25rem);
  position: relative;
  border: var(--frame) solid #6e4a26;
  border-image: url("images/chalkboard-frame.jpg") 111 112 120 112 / 1 1.01 1.08 1.01 stretch;
  background: url("images/chalkboard.jpg") center / cover padding-box #2b2d2c;
  box-shadow:
    inset 0 3px 10px rgb(0 0 0 / 55%),
    inset 0 0 26px rgb(0 0 0 / 30%),
    0 26px 44px -20px rgb(10 6 4 / 75%),
    0 6px 14px -6px rgb(10 6 4 / 50%);
}

/* The home page's board: the groups flow in columns, three where they fit */
.butcher-board {
  padding: clamp(1.5rem, 3.6vw, 2.5rem) clamp(1.35rem, 3.4vw, 2.4rem) clamp(0.5rem, 1.5vw, 1.25rem);
  columns: 3 6.5rem;
  column-gap: clamp(1.25rem, 3vw, 1.75rem);
}

/* Chalk: soft white for the cuts, a warm yellow for the headings, each
   with a faint bloom and the uneven --chalk edge */
.butcher-board__heading,
.butcher-board__group,
.butcher-groups .menu-group {
  -webkit-mask-image: var(--chalk);
  mask-image: var(--chalk);
  text-shadow: 0 0 1px rgb(255 255 255 / 30%);
}

.butcher-board__heading {
  column-span: all;
  grid-column: 1 / -1;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  color: #f3e3b3;
  font: 400 clamp(1.75rem, 1.4rem + 1.3vw, 2.35rem)/1.1 var(--chalk-hand);
  text-align: center;
}

.butcher-board__group {
  break-inside: avoid;
  padding-bottom: 1.25rem;
}

.butcher-board__title {
  margin-bottom: 0.3rem;
  color: #f3e3b3;
  font: 400 1.6rem/1.15 var(--chalk-hand);
}

.butcher-board__group li {
  padding-block: 0.1em;
  color: rgb(248 245 238 / 92%);
  font: 400 1.2rem/1.35 var(--chalk-hand);
}

/* ---------- Home: reviews ---------- */

/* The heading (with the same short brass rule as the other sections) and,
   beside it on wider screens, the link to the Google listing */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.reviews__head h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: var(--brass);
}

.quotes {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* A review card: its stars, the quote, then who wrote it. A large, faint
   brass quotation mark sits in the top corner. */
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition:
    translate 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.3s ease;
}

@media (hover: hover) {
  .quote:hover {
    translate: 0 -4px;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }
}

.stars {
  display: flex;
  gap: 0.2rem;
  color: var(--brass-deep);
}

.stars svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  right: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--brass);
  font: 600 6.5rem/1 var(--display);
  opacity: 0.32;
  pointer-events: none;
}

.quote blockquote {
  flex: 1;
  margin-top: 1.25rem;
  font: italic 400 clamp(1.25rem, 1.15rem + 0.35vw, 1.4rem)/1.5 var(--serif);
}

/* Who wrote it: their first initial in a round tile, their first name, and
   "Reviewed on" with Google's "G" (screen readers hear "Reviewed on Google") */
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.quote__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--linen);
  color: var(--cognac);
  font: 600 1.4rem/1 var(--display);
}

.quote__who {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.quote__name {
  color: var(--ink);
  font: 600 1.3rem/1.1 var(--display);
}

.quote__source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Google's "G", in Google's own colors */
.quote__google {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
}

/* ---------- Inner pages: title row ---------- */

.page-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem);
}

.page-intro > div {
  min-width: 0;
  max-width: 55rem;
}

.page-intro p {
  max-width: 43rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

.page-intro .btn {
  flex-shrink: 0;
}

.page-content {
  padding-bottom: var(--section);
}

/* Butcher Counter: a wide photo between the title and the list of cuts.
   A wide strip on computers, a little taller for its width on phones. The
   photo is decorative (the cuts are listed below it), and if its file is
   missing the banner is left out rather than showing an empty block. */
.page-banner {
  height: clamp(11rem, 30vw, 26rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.page-banner img {
  object-position: 50% 52%;
}

.page-banner.is-missing {
  display: none;
}

.no-script-note {
  margin-top: 2rem;
}

/* ---------- Menu page (built by script.js from menu.js) ---------- */

/* The categories as a row of text tabs over a hairline, like the section
   names on a printed menu. The row stays under the header while the dishes
   scroll, so another category is always one tap away. On phones it scrolls
   sideways and fades at the edge; on desktops each tab gets an equal share
   of the width. The grained parchment behind it (::before) runs the full
   width of the screen. */
.tabbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  border-bottom: 1px solid var(--line);
  clip-path: inset(-4px -100vmax 0); /* full width, and a few pixels up so no gap opens under the header */
}

/* Exactly the width of the screen (the tab row is centered in it), so the
   page never scrolls sideways. 100vw counts the scrollbar too, and main's
   overflow-x: clip trims that last sliver. */
.tabbar::before {
  content: "";
  position: absolute;
  inset: -4px calc((100% - 100vw) / 2) 0;
  z-index: -1;
  background: var(--parchment) var(--grain);
}

.no-js .tabbar {
  display: none;
}

.menu__tabs {
  position: relative;
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

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

.menu__tab {
  flex: none;
  min-height: 52px;
  margin: 0;
  padding: 0.6rem 0.25rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink);
  font: 400 1.0625rem/1.3 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease;
}

.menu__tab:focus-visible {
  outline-offset: -3px;
}

.menu__tab:hover {
  color: var(--cognac);
}

.menu__tab[aria-selected="true"] {
  border-bottom-color: var(--cognac);
  color: var(--cognac);
  font-weight: 600;
}

/* With JavaScript, one underline (script.js adds it) slides from tab to
   tab instead of each tab drawing its own */
.has-indicator .menu__tab[aria-selected="true"] {
  border-bottom-color: transparent;
}

.menu__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cognac);
  pointer-events: none;
}

.menu__indicator.is-ready {
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}

.menu-panel {
  min-width: 0;
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
}

/* The category's photo, square like the photos themselves so the whole
   dish stays in frame: above the dishes on phones, beside them on wider
   screens (see "Tablets and up") */
.menu-panel__banner {
  aspect-ratio: 1 / 1;
  margin-bottom: 1.75rem;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--stone);
  box-shadow: var(--shadow-md);
}

.menu-panel__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The category's name and its note ("Every plate comes with rice.") */
.menu-panel__title {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
}

.menu-panel__note {
  max-width: 36rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font: italic 400 1.1875rem/1.5 var(--serif);
}

/* Headings inside a category, like Wraps and Plates, with their note
   ("Every wrap comes with fries.") set beside them */
.menu-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.25rem;
  min-width: 0;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.menu-group__title {
  color: var(--cognac);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.125rem);
  font-weight: 600;
}

.menu-group__note {
  margin-top: 0;
  color: var(--muted);
  font: italic 400 1.0625rem/1.4 var(--serif);
}

.menu-group > .menu-items {
  flex-basis: 100%;
}

/* The dishes, set like a printed menu: rows divided by hairlines, in two
   columns on wider screens (see "Tablets and up") */
.menu-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(1.75rem, 3.5vw, 3rem);
  margin-top: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.menu-panel__body > .menu-items {
  margin-top: 1.25rem;
}

/* A dish: its name (and price, when prices are on) over its description.
   Dishes aren't links, so nothing moves under the pointer. Giving a dish an
   `image:` in menu.js puts a photo above its name. */
.menu-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-block: 1rem 1.1rem;
  border-top: 1px solid var(--line);
}

.menu-item__photo {
  aspect-ratio: 4 / 3;
  margin-bottom: 0.85rem;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--stone);
}

.menu-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.menu-item__line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

/* Dish names and descriptions in the menu's book face. Names are bold so
   they stay clearly above the semi-bold descriptions. */
.menu-item__name {
  min-width: 0;
  font: 700 1.25rem/1.3 var(--serif);
  overflow-wrap: anywhere;
}

/* The price only shows if SHOW_PRICES is turned on in menu.js. It sits at
   the right, joined to the dish's name by a dotted brass leader, like a
   printed menu. */
.menu-item__leader {
  position: relative;
  top: -0.25em;
  flex: 1 1 auto;
  min-width: 1.25rem;
  border-bottom: 2px dotted var(--brass);
}

.menu-item__price {
  flex: none;
  color: var(--cognac);
  font: 600 1.1875rem/1.3 var(--serif);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

/* Semi-bold italic: the regular italic read too thin */
.menu-item__desc {
  margin-top: 0.3rem;
  color: var(--muted);
  font: italic 600 1.0625rem/1.45 var(--serif);
  overflow-wrap: anywhere;
}

/* ---------- Butcher Counter page (built by script.js from specials.js) ---------- */

#butcher-intro a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Beef, Pork, and Chicken chalked on the framed board (styled with the home
   page's board, above), under "This week's cuts". One column on phones,
   three across on wider screens (see "Tablets and up"). */
.butcher-groups {
  display: grid;
  gap: 0.5rem clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4.5vw, 3.5rem) clamp(1rem, 2.5vw, 2rem);
}

.butcher-groups .menu-group {
  display: block;
  margin-top: 0;
  padding-bottom: 1rem;
}

.butcher-groups .menu-group__title {
  margin-bottom: 0.35rem;
  color: #f3e3b3;
  font: 400 clamp(1.75rem, 1.5rem + 0.9vw, 2.1rem)/1.15 var(--chalk-hand);
}

.butcher-groups .menu-items {
  display: block;
  margin-top: 0;
  border: 0;
}

/* Each cut is a line of chalk */
.butcher-groups .menu-item {
  display: block;
  padding-block: 0.15em;
  border: 0;
}

.butcher-groups .menu-item__name {
  color: rgb(248 245 238 / 92%);
  font: 400 clamp(1.25rem, 1.15rem + 0.35vw, 1.4rem)/1.4 var(--chalk-hand);
}

/* With prices on, a dotted chalk line runs from the cut to its price */
.butcher-groups .menu-item__leader {
  min-width: 20px;
  border-bottom-color: rgb(248 245 238 / 45%);
}

.butcher-groups .menu-item__price {
  color: #f3e3b3;
  font: 400 1.3rem/1.4 var(--chalk-hand);
}

/* ---------- Footer (the "Visit" info, on every page) ---------- */

/* The store's wine wall, blurred and nearly hidden under a cellar-brown
   veil, so the bottom of every page feels like the cellar. The photo is
   images/footer-wine.jpg (a soft, cropped copy of wine.jpg; see IMAGES.md).
   The veil keeps the text readable even over the photo's brightest spot:
   paragraphs stay above 7:1 contrast and the brass headings above 3.5:1
   (they're large text, which needs 3:1). Lighten the veil (the 84% / 92%)
   and that margin shrinks. If the photo is missing, the footer is plain
   cellar brown. */
.site-footer {
  background:
    linear-gradient(rgb(43 29 21 / 84%), rgb(43 29 21 / 92%)),
    var(--cellar) url("images/footer-wine.jpg") center / cover no-repeat;
  color: var(--parchment);
}

/* A little air between the last section and the footer on the home page,
   where the section above is plain parchment */
main > .reviews {
  padding-bottom: calc(var(--section) * 0.9);
}

.site-footer a {
  color: inherit;
}

.footer__grid {
  display: grid;
  gap: 1.75rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.footer__grid > section {
  min-width: 0;
}

.footer__grid > section + section {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-on-dark);
}

/* Visit, Hours, Order: in brass */
.footer__grid h2 {
  margin-bottom: 0.9rem;
  color: var(--brass);
  font-size: 1.875rem;
  font-weight: 600;
}

.footer__grid address,
.footer__grid p {
  color: var(--soft-on-dark);
}

.footer__grid p {
  margin-top: 0.4rem;
}

.footer__link,
.footer__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer__link {
  margin-top: 0.35rem;
  text-underline-offset: 0.35em;
}

.footer__phone {
  font: 600 1.75rem/1.2 var(--display);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__phone:hover {
  color: var(--brass);
}

.footer__order {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__order .btn {
  margin-top: 0.9rem;
  color: var(--ink); /* engraved, not the footer's light link color */
}

/* "Open now" / "Closed now" (script.js, part 9): a small dot before it,
   warm brass while the store is open, dim while it's closed */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.open-status::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgb(247 241 232 / 45%);
}

.open-status.is-open::before {
  background: #e3bd6f;
  box-shadow: 0 0 0 3px rgb(227 189 111 / 28%);
}

.footer__grid .footer__status {
  margin-top: 0.75rem;
  color: var(--parchment);
  font-weight: 600;
}

.footer__hours {
  color: var(--parchment);
  font: 600 1.75rem/1.3 var(--display);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
  color: var(--soft-on-dark);
}

.footer__name {
  color: var(--parchment);
  font: 600 1.5rem/1.3 var(--display);
}

.footer__bottom p + p {
  margin-top: 0;
}

/* ---------- Tablets and up ---------- */

@media (min-width: 42rem) {
  /* The intro and the five category cards fill a grid, two across */
  .deli-preview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.4vw, 2rem);
  }

  .deli-preview__intro {
    align-self: center;
    padding-right: 1rem;
  }

  .dish-cards {
    display: contents;
  }

  .market-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5.5rem);
  }

  .market-row--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .market-row--flip .market-row__media {
    order: 2;
  }

  .market-row__media::before {
    inset: -26% -10%;
  }

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

  /* A category with a photo: the dishes on the left, the photo square on
     the right, staying in view while the list scrolls past */
  .menu-panel:has(.menu-panel__banner) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 34%);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .menu-panel:has(.menu-panel__banner) .menu-panel__banner {
    position: sticky;
    top: calc(var(--header-h) + var(--tabbar-h) + 1.5rem);
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0.25rem 0 0;
  }

  .menu-panel:has(.menu-panel__banner) .menu-panel__head {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-panel:has(.menu-panel__banner) .menu-panel__body {
    grid-column: 1;
    grid-row: 2;
  }

  /* Beside a photo there's room for one column of dishes until desktops */
  .menu-panel:has(.menu-panel__banner) .menu-items {
    grid-template-columns: minmax(0, 1fr);
  }

  .butcher-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: clamp(1.75rem, 4vw, 3rem);
  }

  .footer__grid > section + section {
    padding-top: 0;
    padding-left: clamp(1.75rem, 4vw, 3rem);
    border-top: 0;
    border-left: 1px solid var(--line-on-dark);
  }
}

@media (min-width: 60rem) {
  /* Three across: the intro and two cards, then three more cards */
  .deli-preview__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* ---------- Desktops ---------- */

@media (min-width: 64rem) {
  .page-intro {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .menu-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-panel:has(.menu-panel__banner) .menu-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Every tab gets an equal share of the row, with its underline running
     the full width of its share */
  .menu__tabs {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 0;
    overflow: visible;
  }

  .menu__tab {
    padding-inline: 0.5rem;
  }
}

/* ---------- Motion ----------
   Everything here runs only for visitors who haven't asked their phone or
   computer for less motion. Without JavaScript, everything simply shows. */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes hero-pan {
  from { transform: none; }
  to { transform: translateX(calc(-100% + 100cqw)); }
}

@keyframes settle-in {
  from { transform: scale(1.06); }
  to { transform: none; }
}

/* Opacity only: animating blur on many small letters leaves some of them
   stuck faint or blurred in Safari on iPhone */
@keyframes ink-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes star-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

/* A written-in review keeps each word whole when it wraps */
.ink-word {
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  /* Page to page: the content crossfades while the header stays put
     (Chrome, Edge, and Safari; other browsers just load the page) */
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.45s;
    animation-timing-function: ease;
  }

  /* Home: the hero text rises in when the page opens: the headline line
     by line, then the intro line, the buttons, and the store details */
  .hero__title span,
  .hero__sub,
  .hero__actions,
  .hero__facts {
    animation: rise-in 0.95s var(--ease) both;
  }

  .hero__title span:first-child { animation-delay: 0.15s; }
  .hero__title span:last-child { animation-delay: 0.3s; }
  .hero__sub { animation-delay: 0.52s; }
  .hero__actions { animation-delay: 0.68s; }
  .hero__facts { animation-delay: 0.86s; }

  /* The Butcher Counter photo settles gently into place as it fades in */
  .page-banner.is-loaded img {
    animation: settle-in 2.4s var(--ease) both;
  }

  /* Each slideshow photo drifts slightly closer while it's showing. The
     8.4 seconds covers its hold plus both fades, and the same animation
     carries on through .is-leaving, so it never jumps. */
  .hero__slide.is-active,
  .hero__slide.is-leaving {
    animation: slow-zoom 8.4s linear both;
  }

  /* A video slide has its own slow camera move, so it doesn't drift too */
  .hero__slide--video.is-active,
  .hero__slide--video.is-leaving,
  .hero__slide--pan.is-active,
  .hero__slide--pan.is-leaving {
    animation: none;
  }

  /* A panning slide: its wide photo glides from its left end to its right
     end over 10 seconds, easing in and out (script.js holds the slide that
     long: PAN). 100cqw is the frame's width. */
  .hero__slide--pan.is-active > img,
  .hero__slide--pan.is-leaving > img {
    animation: hero-pan 10s cubic-bezier(0.45, 0, 0.55, 1) both;
  }

  /* Menu and Butcher Counter: as the page opens, and when a menu category
     is chosen, everything on screen rises in one after another
     (script.js adds .cascade and numbers them with --cascade-i) */
  .cascade {
    animation: rise-in 0.6s var(--ease) both;
    animation-delay: calc(var(--cascade-i, 0) * 55ms + 0.08s);
  }

  /* Home reviews, written in: script.js splits each quote into .ink
     letters (each with its own delay), marks it .is-split, and adds
     .is-writing once it scrolls into view. The five stars come up one by
     one, the letters ink in over about two seconds, and the name follows
     as the last ones land. */
  .quote.is-split .stars svg,
  .quote.is-split .ink,
  .quote.is-split figcaption {
    opacity: 0;
  }

  .quote.is-writing .stars svg {
    animation: star-in 0.45s var(--ease) both;
    animation-delay: calc(var(--write-start, 0s) + var(--star-i, 0) * 70ms);
  }

  .stars svg:nth-child(2) { --star-i: 1; }
  .stars svg:nth-child(3) { --star-i: 2; }
  .stars svg:nth-child(4) { --star-i: 3; }
  .stars svg:nth-child(5) { --star-i: 4; }

  .quote.is-writing .ink {
    animation: ink-in 0.45s ease-out both; /* each letter's delay is set by script.js */
  }

  .quote.is-writing figcaption {
    animation: rise-in 0.5s var(--ease) both;
    animation-delay: calc(var(--write-start, 0s) + 2.1s);
  }

  /* Side-by-side things ripple in one after another: script.js numbers
     most of them with --reveal-i; dish cards are numbered here, by column */
  .menu-item:nth-child(even) { --reveal-i: 1; }

  @media (min-width: 64rem) {
    .menu-panel:not(:has(.menu-panel__banner)) .menu-item:nth-child(3n + 1) { --reveal-i: 0; }
    .menu-panel:not(:has(.menu-panel__banner)) .menu-item:nth-child(3n + 2) { --reveal-i: 1; }
    .menu-panel:not(:has(.menu-panel__banner)) .menu-item:nth-child(3n) { --reveal-i: 2; }
  }

  /* Scrolling (script.js marks these with .reveal). Where the browser can
     tie animation to scrolling, each one rises in as it enters from the
     bottom and fades out as it slides under the header, in step with the
     scroll, both ways. --reveal-i delays side-by-side items a little. */
  @supports (animation-timeline: view()) {
    .reveal {
      --reveal-top: calc(var(--header-h) + var(--tabbar-h));
      animation: rise-in linear both, fade-out linear forwards;
      animation-timeline: view(block var(--reveal-top) 0px), view(block var(--reveal-top) 0px);
      animation-range: entry calc(var(--reveal-i, 0) * 12%) entry 100%, exit-crossing 0% exit-crossing 100%;
    }

    /* In the cascade: rises in on the clock, still fades out under the header */
    .reveal.cascade {
      animation: rise-in 0.6s var(--ease) both, fade-out linear forwards;
      animation-delay: calc(var(--cascade-i, 0) * 55ms + 0.08s), 0s;
      animation-timeline: auto, view(block var(--reveal-top) 0px);
      animation-range: normal, exit-crossing 0% exit-crossing 100%;
    }

    /* Phones: the category list rises in as one piece, and the rows inside
       it stay put */
    @media (max-width: 41.99rem) {
      .dish-cards .dish-card.reveal {
        animation: none;
      }
    }
  }

  /* Other browsers: each one fades in once, the first time it scrolls
     into view (script.js adds .reveal-once and then .is-in). The last
     three transitions keep the hover lift smooth on cards. */
  .reveal-once .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.8s ease calc(var(--reveal-i, 0) * 120ms),
      transform 0.8s var(--ease) calc(var(--reveal-i, 0) * 120ms),
      translate 0.45s var(--ease),
      box-shadow 0.45s var(--ease),
      border-color 0.3s ease;
  }

  .reveal-once .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* On paper, every review shows in full, written in or not */
@media print {
  .quote .ink,
  .quote .stars svg,
  .quote figcaption {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* Visitors who prefer less motion: nothing moves, fades, or slides */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover,
  .dish-card:hover,
  .quote:hover {
    translate: none;
  }
}
