/* The tasting menu page (tasting.html), on top of styles.css: its tokens,
   buttons, kicker, paper ground and footer are the home page's.

   Four courses, four glasses. Each course has its own glass, and the glass is
   poured as the reader arrives (tasting.js, with Motion). Courses alternate
   paper and midnight like the home page's sections, never two of one ground
   together.

   Everything here rests in its final state: full glasses, visible text. Only
   under html.mo (set in the page's head when motion is wanted) does anything
   start hidden or empty, and tasting.js brings it in. */

/* ---------- header ---------- */
.tbar { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color .4s, box-shadow .4s; }
.tbar.solid { background: rgba(8, 20, 28, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule-n); }
.tbar-in { max-width: 1400px; margin: 0 auto; padding: 14px var(--gut-r) 14px var(--gut); display: flex; align-items: center; gap: 28px; }
.tbar-brand { display: block; line-height: 0; margin-right: auto; }
.tbar-brand .bar-logo { height: 44px; }
.tbar-link { position: relative; padding: 14px 0; text-decoration: none; font: 500 12.5px/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--ivory); }
.tbar-link:hover, .tbar-link:focus-visible { color: var(--cu); }
.tbar-book { min-height: 44px; padding: 0 22px; }

/* ---------- the course rail: four numerals, filled as each course is read ---------- */
/* Wide screens: a column at the right edge. Phones: four segments under the header. */
.rail { position: fixed; z-index: 49; right: max(22px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; display: grid; gap: 18px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.rail.on { opacity: 1; pointer-events: auto; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 44px; min-width: 44px; text-decoration: none; color: rgba(244, 234, 220, .5); }
.rail a::after { content: ''; width: 2px; height: 34px; background: linear-gradient(to bottom, var(--cu) calc(var(--p) * 100%), rgba(226, 162, 122, .22) 0); }
.rail-n { font: italic 400 15px/1 var(--f-disp); }
/* the course's name shows beside its numeral on hover or while it is read, without taking space */
.rail-name { position: absolute; right: calc(100% + 4px); white-space: nowrap; font: 600 10.5px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; opacity: 0; translate: 8px 0; transition: opacity .3s, translate .3s var(--ease); }
.rail a:hover .rail-name, .rail a:focus-visible .rail-name, .rail a.is-on .rail-name { opacity: 1; translate: 0 0; }
.rail a.is-on { color: var(--cu); }
/* On paper the rail sits over an ivory ground, so it inks itself (tasting.js sets .on-paper) */
.rail.on-paper a { color: rgba(19, 36, 44, .5); }
.rail.on-paper a.is-on { color: var(--cu-deep); }
.rail.on-paper a::after { background: linear-gradient(to bottom, var(--cu-deep) calc(var(--p) * 100%), rgba(142, 74, 42, .2) 0); }
.rail.on-paper .rail-name { color: var(--ink); }

/* ---------- hero ---------- */
.t-hero { position: relative; display: grid; place-items: center; min-height: 100svh; overflow: clip; padding: 120px var(--gut-r) 120px var(--gut); text-align: center;
  background: radial-gradient(90% 70% at 50% 40%, #16304A 0%, var(--night) 62%, var(--night-2) 100%); }
.t-hero-sun { position: absolute; left: 50%; top: 46%; width: min(118vw, 900px); translate: -50% -50%; opacity: .14; pointer-events: none; }
.t-hero-in { position: relative; max-width: 860px; }
.t-hero .kicker { justify-content: center; }
.t-hero .kicker::after { content: ''; width: 36px; height: 1px; background: currentColor; }
.t-hero-title { margin: 0 0 26px; font: 400 clamp(2.9rem, 9vw, 6.4rem)/1 var(--f-disp); letter-spacing: -.015em; color: var(--ivory); }
.t-hero-title em { display: block; font-style: italic; padding-bottom: .08em; }
.t-hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em; margin: 0 -.08em -.14em; }
.t-hero-title .w > span { display: inline-block; }
/* copper type: each word carries the gradient itself, since each one moves on its own */
.t-hero-title em .w > span { background: var(--cu-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-hero-line { max-width: 30ch; margin: 0 auto 30px; font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--ivory-2); text-wrap: balance; }
.t-hero-price { margin: 0; font: 600 12px/1.6 var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-2); }
.t-hero-price span { font: 400 1.9em/1 var(--f-disp); letter-spacing: 0; color: var(--cu); vertical-align: -.12em; margin-inline: .2em; }
.t-hero-price i { font-style: normal; margin-inline: .6em; color: var(--cu); }
.t-cue { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: grid; place-items: center; width: 44px; height: 72px; }
.t-cue-line { width: 1px; height: 56px; background: linear-gradient(to bottom, transparent, var(--cu)); transform-origin: top; }

/* ---------- a course: its engraved plate, and the menu beside it ---------- */
/* --ground is the colour under the engraving: the plates' knockouts (a crouton
   over the soup, the brownie over the custard) are painted in it. */
.course { --ground: var(--night); position: relative; overflow: clip; padding-block: clamp(90px, 12vw, 160px); }
.course.paper { --ground: var(--paper); }
.course-in { max-width: 1180px; margin: 0 auto; padding-inline: var(--gut) var(--gut-r); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
/* wide screens: keep clear of the course rail at the right edge */
@media (min-width: 861px) { .course-in { padding-right: calc(var(--gut-r) + 90px); } }
/* the plates take turns: left, right, left, right */
.course:nth-child(even of .course) .plate { order: 2; }
.course-text { position: relative; }
.course-n { margin-bottom: 16px; }
.course-name { position: relative; margin: 0 0 clamp(26px, 4vw, 38px); font: 400 clamp(2.6rem, 5.4vw, 4.3rem)/1 var(--f-disp); letter-spacing: -.015em; white-space: nowrap; color: var(--fg); }
.course-name::after { content: ''; display: block; width: 64px; height: 1px; margin-top: 24px; background: var(--accent); transform-origin: left; }
.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.dishes h3 { margin: 0 0 4px; font: 500 clamp(1.3rem, 2.4vw, 1.55rem)/1.2 var(--f-disp); color: var(--fg); }
/* reading text at near full ink: the see-through --fg-2 was too faint to read a menu by */
.dishes p { margin: 0; max-width: 42ch; font-size: 1.0625rem; line-height: 1.6; color: color-mix(in srgb, var(--fg) 88%, transparent); }
.course-with { margin: 24px 0 0; font: italic 400 1.05rem/1.5 var(--f-disp); color: var(--fg-2); }

/* ---------- the engraving (tools/engrave.mjs) ---------- */
.plate { margin: 0; color: var(--accent); }
.eng { display: block; width: 100%; height: auto; overflow: visible; stroke: currentColor; }
.eng .h { stroke-width: .75; }
.eng .ink { fill: currentColor; stroke: none; }
.eng .ko { fill: var(--ground); stroke: none; }
.eng .ko-line { stroke: var(--ground); stroke-width: 9; }
/* Each stroke draws from --s over --l of the plate's progress --p, which
   tasting.js sets from the scroll; without it --p is 1 and all is drawn. The
   opacity hides the dot a round cap leaves on a stroke not yet begun. */
.eng path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p, 1) - var(--s, 0)) / var(--l, 1), 1)); opacity: clamp(0, (var(--p, 1) - var(--s, 0)) / var(--l, 1) * 12, 1); }
.eng .ink, .eng .ko { opacity: clamp(0, (var(--p, 1) - var(--s, 0)) / var(--l, 1), 1); }

/* ---------- the pairing: the course's glass, poured, and its wine ---------- */
.pairing { margin-top: clamp(30px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--rule); }
.pairing-label { margin: 0 0 14px; font: 600 10.5px/1 var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.glass { margin: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: end; color: var(--fg); }
.glass svg { width: 56px; height: auto; overflow: visible; }
.glass-line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.glass-shine { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .28; }
.glass-wine { fill: var(--wine); transform-box: fill-box; }
.glass-pour { fill: var(--wine); transform-box: fill-box; transform-origin: 50% 0; opacity: 0; }
.glass-bubbles circle { fill: rgba(255, 252, 240, .85); }
.glass figcaption { padding-bottom: 8px; font: 500 11px/1.6 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.glass-kind { display: block; margin-bottom: 6px; font: italic 400 1.35rem/1 var(--f-disp); letter-spacing: 0; text-transform: none; color: var(--fg); }
.glass-ml { white-space: nowrap; color: var(--accent); }

/* ---------- the flight ---------- */
/* --k (0 to 1) is how far each small glass is poured; registered so it can be animated */
@property --k { syntax: '<number>'; inherits: true; initial-value: 1; }
.flight { padding-block: clamp(90px, 13vw, 160px); text-align: center; }
.flight-in { max-width: 860px; margin: 0 auto; padding-inline: var(--gut) var(--gut-r); }
.flight .kicker { justify-content: center; }
.flight .kicker::after { content: ''; width: 36px; height: 1px; background: currentColor; }
.flight-title { margin: 0 0 clamp(40px, 6vw, 64px); font: 400 clamp(2rem, 5vw, 3.2rem)/1.1 var(--f-disp); text-wrap: balance; }
.flight-title em { color: var(--accent); }
.flight-row { list-style: none; margin: 0 0 clamp(44px, 6vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; font: 600 11px/1.2 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); }
.flight-row li { display: grid; justify-items: center; gap: 14px; }
/* a small drawn glass: a bowl with the wine at its level, a stem, a foot */
.flight-glass { position: relative; width: 44px; height: 92px; }
.flight-glass::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 52px; border: 1.4px solid color-mix(in srgb, var(--fg) 70%, transparent); border-top: 0; border-radius: 0 0 24px 24px / 0 0 30px 30px;
  background: linear-gradient(to top, var(--wine) calc(var(--h) * 100% * var(--k, 1)), transparent 0); }
.flight-glass::after { content: ''; position: absolute; left: 50%; top: 52px; width: 26px; height: 40px; translate: -50% 0; border-bottom: 1.4px solid var(--fg); background: linear-gradient(var(--fg), var(--fg)) 50% 0 / 1.4px 100% no-repeat; opacity: .7; }
.flight-price { display: flex; justify-content: center; gap: clamp(28px, 8vw, 80px); margin: 0 0 40px; }
.flight-price div { display: grid; gap: 8px; }
.flight-price dt { font: 600 11px/1 var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.flight-price dd { margin: 0; font: 400 clamp(2.6rem, 7vw, 3.6rem)/1 var(--f-disp); color: var(--fg); }
.flight-price small { display: block; margin-top: 8px; font: 400 .9rem/1 var(--f-text); color: var(--fg-2); }
.flight-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.flight-note { margin: 0 auto; max-width: 40ch; font-size: .92rem; color: var(--fg-2); }

/* ---------- motion: only under html.mo (motion wanted, script on its way) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mo .t-in, .mo .glass figcaption { opacity: 0; }
  .mo .t-hero-title .w > span { transform: translateY(110%); }
  .mo .course-name::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .15s; }
  .mo .course.in .course-name::after { transform: none; }
  .mo .glass-wine { transform: translateY(101%); }
  .mo .glass-bubbles { opacity: 0; }
  .mo .flight-glass { --k: 0; }
  .mo .eng { --p: 0; }
  .eng.live .steam { animation: steam 5s ease-in-out infinite alternate; }
  .eng.live .steam:nth-of-type(2n) { animation-duration: 6.5s; animation-delay: -2s; }
  .eng.live .ripple { transform-box: fill-box; transform-origin: center; animation: ripple 4.5s ease-in-out infinite; }
  .glass.full .glass-bubbles { opacity: 1; }
  .glass.full .glass-bubbles circle { animation: fizz 2.6s linear infinite; }
  .glass.full .glass-bubbles circle:nth-child(2) { animation-delay: -.7s; }
  .glass.full .glass-bubbles circle:nth-child(3) { animation-delay: -1.4s; animation-duration: 3.1s; }
  .glass.full .glass-bubbles circle:nth-child(4) { animation-delay: -2s; animation-duration: 2.2s; }
  .t-hero-sun { animation: turn 220s linear infinite; }
  .t-cue-line { animation: cue 2.4s var(--ease) infinite; }
}
@keyframes steam { to { transform: translate(5px, -12px); opacity: .35; } }
@keyframes ripple { 50% { transform: scale(1.035); } }
@keyframes fizz { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-62px); opacity: 0; } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- smaller screens ---------- */
@media (max-width: 860px) {
  /* phones: the plate, then the menu under it */
  .course-in { grid-template-columns: 1fr; gap: 30px; }
  .course:nth-child(even of .course) .plate { order: 0; }
  .plate { width: min(100%, 440px); justify-self: center; }
  .course-name { font-size: 2.7rem; }
  /* the rail becomes four segments under the header */
  .rail { top: var(--bar-h, 64px); right: 0; left: 0; translate: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding-inline: var(--gut) var(--gut-r); }
  .rail a { min-height: 0; min-width: 0; height: 18px; justify-content: stretch; align-items: start; }
  .rail a::after { width: 100%; height: 2px; background: linear-gradient(to right, var(--cu) calc(var(--p) * 100%), rgba(226, 162, 122, .22) 0); }
  .rail.on-paper a::after { background: linear-gradient(to right, var(--cu) calc(var(--p) * 100%), rgba(226, 162, 122, .22) 0); }
  .rail-n, .rail-name { display: none; }
}
@media (max-width: 600px) {
  .tbar-in { gap: 18px; padding-block: 10px; }
  .tbar-brand .bar-logo { height: 36px; }
  .tbar-link { font-size: 11px; letter-spacing: .14em; }
  .tbar-book { padding: 0 16px; }
  .t-hero-price { font-size: 11px; letter-spacing: .18em; }
  .flight-row { gap: 4px; font-size: 9.5px; letter-spacing: .12em; }
  .flight-act .btn { flex: 1 1 100%; }
}

/* ---------- Menu 29 (menu.html) and the wine list (drinks.html) ----------
   Same page, longer lists: each dish or wine with its price, where it comes
   from and what it contains. A long section (.long) keeps its plate or glass
   in view beside the list on wide screens. */
.dishes :is(h3, h4) { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.dishes h4 { margin: 0 0 4px; font: 500 clamp(1.15rem, 2vw, 1.35rem)/1.25 var(--f-disp); color: var(--fg); }
/* prices in Jost: Playfair's hairline, old-style figures did not line up or read at a glance */
.price { flex: none; font: 500 1.05rem/1 var(--f-text); letter-spacing: .01em; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
/* where it comes from and what it contains: sentence case, a size that can be read, the allergens in ink */
.dishes .dish-from { max-width: none; margin: 2px 0 8px; font: 500 .8125rem/1.5 var(--f-text); letter-spacing: .02em; color: var(--accent); }
.contains { color: color-mix(in srgb, var(--fg) 80%, transparent); }
.course.long .dishes { gap: 26px; }
.course-lede { margin: 0 0 30px; max-width: 42ch; font: italic 400 1.1rem/1.55 var(--f-disp); color: var(--fg-2); }
.group-name { margin: 46px 0 20px; font: italic 400 1.6rem/1.1 var(--f-disp); color: var(--accent); }
.course-name + .group-name { margin-top: 0; }
/* breads and rice: names and prices only, two to a row */
.dishes.short { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; }
.dishes.short h4 { font-size: 1.12rem; }
/* a wine's prices: by the glass and by the bottle */
.pours { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; }
.pours div { display: flex; align-items: baseline; gap: 8px; }
.pours dt { font: 500 .8125rem/1 var(--f-text); letter-spacing: .02em; color: color-mix(in srgb, var(--fg) 75%, transparent); }
.pours dd { margin: 0; font: 500 1.05rem/1 var(--f-text); color: var(--fg); font-variant-numeric: lining-nums tabular-nums; }
/* the wine list's large glass, in the plate's place */
.plate-glass { display: grid; justify-items: center; }
.glass-big { grid-template-columns: 1fr; justify-items: center; gap: 26px; text-align: center; }
.glass-big svg { width: clamp(120px, 17vw, 210px); }
.glass-big .glass-line { stroke-width: 1.1; }
.glass-big .glass-kind { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (min-width: 861px) {
  .course.long .course-in { align-items: start; }
  .course.long .plate { position: sticky; top: calc(var(--bar-h, 72px) + 6vh); }
}
@media (max-width: 860px) {
  .glass-big svg { width: 120px; }
}
@media (max-width: 420px) {
  .dishes.short { grid-template-columns: 1fr; }
}

/* ---------- the wine list's carried glass (drinks.js) ----------
   Only on wide screens with motion (html.travel): one glass at the middle of
   the screen, carried to each section's seat; the seats' own glasses are
   hidden meanwhile but keep their space. */
.traveller { display: none; }
.travel .traveller { position: fixed; z-index: 40; left: 0; top: 50%; display: grid; justify-items: center; gap: 26px; width: clamp(120px, 17vw, 210px); pointer-events: none; color: var(--ivory); transition: color .4s; will-change: transform, opacity; }
.travel .plate-glass .glass { visibility: hidden; }
.traveller.on-paper { color: var(--ink); }
.traveller svg { width: 100%; height: auto; overflow: visible; transform-origin: 50% 70%; }
.tv-glass { transition: opacity .2s; }
.tv-wine { fill: var(--wine); }
.tv-pour { transition: opacity .25s; }
.tv-bubbles { transition: opacity .4s; }
.tv-bubbles circle { fill: rgba(255, 252, 240, .85); animation: fizz 2.6s linear infinite; }
.tv-bubbles circle:nth-child(2) { animation-delay: -.7s; }
.tv-bubbles circle:nth-child(3) { animation-delay: -1.4s; animation-duration: 3.1s; }
.tv-bubbles circle:nth-child(4) { animation-delay: -2s; animation-duration: 2.2s; }
.traveller-cap { margin: 0; text-align: center; font: 500 11px/1.6 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 234, 220, .8); }
.traveller.on-paper .traveller-cap { color: var(--ink-2); }
.traveller-cap .glass-kind { color: inherit; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.traveller .glass-kind { color: var(--ivory); }
.traveller.on-paper .glass-kind { color: var(--ink); }
.traveller .glass-ml { color: var(--cu); }
.traveller.on-paper .glass-ml { color: var(--cu-deep); }

/* ---------- Menu 29's coin (menu.js) ----------
   A small copper coin beside each section's title, showing its numeral, and
   one in the hero showing the sun. With motion (html.coining) these seats are
   hidden and one coin flips from seat to seat. */
.coin-seat, .coin-face { border-radius: 50%; background: radial-gradient(circle at 34% 28%, #FBE2CA 0%, #E4A57D 30%, #A25A35 72%, #7A3A1E 100%);
  box-shadow: inset 0 0 0 1.5px rgba(94, 44, 21, .55), inset 0 0 0 5px rgba(251, 226, 202, .28), 0 2px 6px rgba(0, 0, 0, .3); }
.coin-seat { position: relative; display: inline-block; width: .62em; height: .62em; margin-left: .3em; vertical-align: .02em; }
.coin-seat::after { content: attr(data-n); position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 .36em/1 var(--f-disp); color: #4A2210; }
.coin-seat-hero { display: block; width: 72px; height: 72px; margin: 34px auto 0; }
.coin-seat-hero::after { content: ''; background: url(media/logo/mark-paper.svg) center / 82% no-repeat; }
.coin { display: none; }
.coining .coin { position: fixed; z-index: 45; left: 0; top: 0; display: block; perspective: 700px; pointer-events: none; will-change: transform; }
.coining .coin-seat { visibility: hidden; }
.coin-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.coin-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin-front img { width: 82%; height: 82%; }
.coin-back { transform: rotateY(180deg); }
.coin-n { font: italic 400 calc(var(--d, 40px) * .58)/1 var(--f-disp); color: #4A2210; }

/* ---------- chapters: each course a full-screen plate (html.chapters) ----------
   The tasting page only, with motion (set in its head; tasting.js plays it).
   Each course is a tall track with a screen-sized stage pinned in it: the
   course's name set large, its engraving drawn huge over it, then the menu
   rising in a panel while the plate steps back. Each track overlaps the one
   before by 150vh, so the next stage is pinned while the last still is, and
   washes over it from the middle like ink (clip-path, from tasting.js).
   Without the class, the courses are as above. */
.chapters .course { padding: 0; overflow: visible; height: 370vh; }
.chapters .course + .course { margin-top: -150vh; height: 420vh; }
.chapters .course:nth-last-child(1 of .course) { height: 270vh; }
.chapters .course.paper { background: none; }
.chapters .course-in { position: sticky; top: 0; display: block; max-width: none; height: 100vh; height: 100svh; margin: 0; padding: 0; overflow: clip; background: var(--ground); }
.chapters .plate { position: absolute; inset: 0; display: grid; place-items: center; width: auto; transform-origin: 50% 50%; will-change: transform; }
.chapters .plate .eng { width: min(84vh, 92vw, 860px); }
/* the course's name, set large behind the plate; it fades back as the plate is drawn */
.chap-name { position: absolute; inset: 0; display: grid; place-content: center; padding-inline: var(--gut) var(--gut-r); text-align: center; pointer-events: none; font: 400 clamp(3.4rem, 12.5vw, 11.5rem)/.95 var(--f-disp); letter-spacing: -.02em; color: var(--fg); will-change: opacity, transform; }
.chap-name span { display: block; margin-bottom: .55em; font: 600 12px/1 var(--f-text); letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
/* the menu: a panel rising over the lower part of the stage */
.chapters .course-text { position: absolute; left: 50%; bottom: 0; width: min(940px, 100%); translate: -50% 0; padding: 26px var(--gut-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gut);
  background: color-mix(in srgb, var(--ground) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); will-change: transform, opacity; }
.chapters .course-n { margin-bottom: 10px; }
.chapters .course-name { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 2.8rem); }
.chapters .course-name::after { margin-top: 14px; }
.chapters .dishes { gap: 14px; }
.chapters .course-with { margin-top: 14px; }
.chapters .pairing { margin-top: 18px; padding-top: 16px; }
@media (min-width: 861px) {
  .chapters .course-text { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: 56px; align-content: start; padding: 36px 56px 40px; border: 1px solid var(--rule); border-bottom: 0; }
  .chapters .course-text > .course-n, .chapters .course-name { grid-column: 1 / -1; }
  .chapters .pairing { grid-column: 2; grid-row: 3 / span 2; align-self: start; margin: 0; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .chapters .dishes p { font-size: .95rem; line-height: 1.5; }
  .chapters .dishes h3 { font-size: 1.2rem; }
  .chapters .course-name { font-size: 2rem; margin-bottom: 12px; }
  .chapters .pairing .glass svg { width: 40px; }
}

/* ---------- Menu 29's photographs (menu.js) ----------
   Square's photo of the dish being read rests on its section's engraved plate
   as a round in a double copper rule, as if served on it, and fades back to the
   engraving between dishes. Phones keep the plate engraved and show a small
   round by each name instead. */
.plate { position: relative; }
.plate-photo { position: absolute; left: 50%; top: 50%; width: 66%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; object-fit: cover; opacity: 0; scale: .96;
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 9px var(--ground), 0 0 0 10px var(--accent), 0 30px 60px -20px rgba(8, 20, 28, .55);
  transition: opacity .5s var(--ease), scale .7s var(--ease); pointer-events: none; }
.plate-photo.on { opacity: 1; scale: 1; }
.dish-thumb { display: none; }
@media (prefers-reduced-motion: reduce) { .plate-photo { transition: none; scale: 1; } }
@media (max-width: 860px) {
  .plate-photo { display: none; }
  .dish-thumb { display: inline-block; width: 44px; height: 44px; margin: -6px 12px -6px 0; vertical-align: middle; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px var(--ground), 0 0 0 4px var(--accent); }
}
/* the dish under the mouse, whose photo is on the plate */
@media (hover: hover) and (min-width: 861px) {
  .dishes [data-photo] :is(h3, h4) > span:first-child { transition: color .3s; }
  .dishes [data-photo]:hover :is(h3, h4) > span:first-child { color: var(--accent); }
}
