/* /menu/ only. The cards, the band and the title are in assets/menu-cards.css,
   the moving strip under the photo in assets/ticker.css. */

/* Laid out again 29 Oct 2026 at America's notes. The sunset pints run
   across the top, under the header, as the Live Music photo does; then the
   moving strip of the menu's own names and prices, in the Live Music
   ribbon's look ("Food Menu", then each dish and its price); then the menu.
   The whole pizza photo is the backdrop behind the cards, standing still
   while the menu scrolls over it, and the title and the cards sit in one
   column in the middle (on a laptop the title sits on the photo, as Live
   Music's does). The pizza and the Cali Mojo slushie no longer stand beside
   the cards ("take the calimojo out from there"). */

/* ---------- The hero: the sunset pints, the full width ----------
   The whole photo, at its own shape, on phones and tablets. From 1024px
   wide it is cut to 16:9, as the Live Music photo is there, keeping the
   brewery's sign and the two pints. */
.page-menu .fm-hero {
  position: relative;
  aspect-ratio: 1200 / 896;
  overflow: hidden;
  background: #000;
}
.page-menu .fm-hero__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}
@media (min-width: 1024px) {
  .page-menu .fm-hero { aspect-ratio: 16 / 10; }
  .page-menu .fm-hero__photo { object-position: 50% 10%; }
}

/* ---------- The title on the photo, on laptops ----------
   From 1024px wide the photo fills the first screen, so the page's h1, "MENU", sits on it,
   as the Live Music page's lettering sits on its photo: on the red wall right of the
   brewery's sign, above the string of lights and clear of the pints, in white over the
   logo's two stripes in yellow, with a soft dark glow so it reads on the photo. It keeps the
   Food Menu title's shape (the big capitals, the stripes under them) and is sized to the
   photo, so it keeps its spot on the wall at every laptop width: 5% of the width (72px on a
   1440px screen), its middle 10.4% of the width below the photo's top, its right end 6.25%
   of the width in from the edge (62px at least, so it never meets the toolbar, which is
   fixed at the right edge half way down the window, far below it). The h1 stays where it
   is in the page, after the photo and before the cards; the band's stage (fm-stage, the
   band's full width) is the box it is placed in, and the stage starts at the bottom of the
   moving strip, so it rises by the strip's height (--ticker-h, always the same) and the
   photo's (62.5% of the width, the photo is 16:10 here). Larger text makes it a step
   bigger. Phones and tablets keep it on the band, over the cards, in the same white. */
.page-menu .fm-title {
  color: #fff;
  text-shadow: 0 0 .05em rgba(0, 0, 0, .85), 0 .03em .25em rgba(0, 0, 0, .6);
}
.page-menu .fm-title::after {
  background: linear-gradient(var(--c-yellow) 0 34%, transparent 34% 66%, var(--c-yellow) 66% 100%);
  filter: drop-shadow(0 0 .06em rgba(0, 0, 0, .7));
}
@media screen and (min-width: 1024px) {
  .page-menu .fm-stage { container: fm-band / inline-size; }
  .page-menu .fm-title {
    --fm-title-fs: 5cqw;
    position: absolute;
    z-index: 1;
    top: calc(10.4cqw - 62.5cqw - var(--ticker-h));
    right: max(6.25cqw, 62px);
    margin: 0;
    transform: translateY(-50%);
  }
  html.a11y-fontsize .page-menu .fm-title { --fm-title-fs: 5.6cqw; }
  /* high contrast mode paints every box black: the title reads as white words on a black
     label on the photo, with a little room round them */
  html.a11y-contrast .page-menu .fm-title { padding: .08em .2em; }
}

/* ---------- The pizza behind the menu ----------
   The whole photo covers the window and stands still while the band, and the cards on it,
   scroll past (America's preview, 29 Oct 2026: the photo at its full size, a light dark
   veil, 18%, so the white title reads). background-attachment: fixed would do it, but
   iPhones and iPads ignore it (Safari scrolls such a photo with the page), so the photo is
   a fixed layer instead, the size of the window, inside a box laid over the band that
   clips it (clip-path): the photo shows only through the band and never over the strip
   above or the footer below. The band's stage, with the title and the cards, sits over it.
   The stage, not the band, is the box the laptop title is measured from: that measuring
   (a container) would also make the band the fixed layer's frame, and the photo would
   scroll with it. The layer is 100lvh tall (the window with the browser's bars tucked
   away), so it does not resize, and the photo does not jump, as those bars come and go
   on a phone, and it reaches 100px past the window's top and bottom. Safari on an iPhone
   (iOS 26, checked in the simulator) draws no fixed or sticky layer under its floating
   address bar, whatever its size, so the band there is the photo's dark brown, never
   white. High contrast mode and paper have no photo. */
.page-menu .fm { padding-top: 0; padding-bottom: 0; }
.page-menu .band--yellow.fm { --band-bg: #1a1008; }
body.page-menu > main { background: #1a1008; }
.page-menu .fm-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  clip-path: inset(0);
  pointer-events: none;
}
.page-menu .fm-backdrop::before {
  content: "";
  position: fixed;
  top: -100px;
  left: 0;
  width: 100%;
  height: calc(100vh + 200px);
  height: calc(100lvh + 200px);
  background: linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .18)), url(/assets/img/menu/pizza-whole.jpg?v=d61ccd4d) 52% 50% / cover no-repeat #1a1008;
}
.page-menu .fm-stage {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 80px;
}
/* the toolbar's lane, as assets/menu-cards.css keeps it for .fm > .container
   (on phones the cards take the full width, 16px each side, as there) */
.page-menu .fm-stage > .container {
  padding-right: max(var(--gutter), calc(53px - (100% - min(100%, var(--container))) / 2));
}
@media (max-width: 767px) {
  .page-menu .fm-stage { padding-top: 40px; padding-bottom: 52px; }
  .page-menu .fm-stage > .container { padding-left: 16px; padding-right: 16px; }
}
html.a11y-contrast .page-menu .fm-backdrop { display: none; }
html.a11y-contrast body.page-menu > main { background: #000 !important; }

/* ---------- The menu: one column in the middle ----------
   The title and the three cards, one under the next, the cards' own gap between them. On
   phones and tablets the column is the band's width. On a laptop it is 800px at most,
   in the middle, so a card reads at a comfortable width (its rows in two columns where
   the card is wide enough, assets/menu-cards.css) and the pizza shows either side. */
.page-menu .fm-menu { display: block; }

/* Drinks has three short rows: they keep to one column at every width, so
   they never split two and one */
.page-menu .fm-card--drinks .fm-card__body { columns: auto; column-gap: normal; }

@media (min-width: 1024px) {
  .page-menu .fm-menu { max-width: 800px; margin: 0 auto; }
}

/* ---------- The toolbar on phones and tablets ----------
   Half way down the window it would open on the hero photo's right edge
   (on the right hand pint on a phone). Here it opens just under the photo
   and the moving strip instead, its ring 12px below them, beside the
   title: the header, the photo (74.667% of the width, its own shape), the
   strip (--ticker-h), 12px and half the toolbar (45px). A window too short
   for that keeps it whole, 8px above the bottom. It stays fixed there as
   the page scrolls on a tablet; on a phone it scrolls away with the page
   (site.css), so it never sits on a price. On a
   laptop it stays half way down, on the photo's right edge, as on Live
   Music. */
@media (max-width: 1023px) {
  body.page-menu .a11y-toolbar { top: min(calc(var(--header-h) + 74.667vw + var(--ticker-h) + 12px + 45px), calc(100% - 52px)); }
}
@media (max-width: 767px) {
  body.page-menu .a11y-toolbar { top: min(calc(var(--header-h) + 74.667vw + var(--ticker-h) + 12px + 45px), calc(100svh - 52px)); }
}

/* ---------- Print: black words on white paper ----------
   The cards print as assets/menu-cards.css draws them; here the page goes
   white too (the footer among it), the hero and the pizza go (no use on
   paper), and so do the toolbar and the menu buttons. The cards stack in
   one column with the cards' print gap. */
@media print {
  body.page-menu > main { background: #fff; }
  .page-menu .fm-hero,
  .page-menu .fm-backdrop { display: none; }
  .page-menu .fm-stage { padding-top: 24px; padding-bottom: 24px; }
  .page-menu .fm-stage > .container { padding-left: 16px; padding-right: 16px; }
  .page-menu .fm-title { color: #000; text-shadow: none; }
  .page-menu .fm-title::after { background: linear-gradient(#000 0 34%, transparent 34% 66%, #000 66% 100%); filter: none; }
  .page-menu .fm-menu { max-width: none; }
  .page-menu .fm-cards { gap: 18px; }
  body.page-menu .a11y-toolbar,
  body.page-menu .site-nav,
  body.page-menu .menu-toggle { display: none; }
  body.page-menu .site-footer { background: #fff; }
  body.page-menu .site-footer,
  body.page-menu .site-footer a { color: #000; }
}
