/* Foça Balık. A menu opened at the table from a QR code.
   One idea: a printed carte from a fish house named after an Aegean town, opened by the engraving of one of
   its fish. The name stands across the whole width on the sea field; under it, the engraving. Then the carte:
   type and space, a dish and its price, nothing between them.
   Two colours, ivory and navy, and one accent with one job: the blue of the restaurant's printed card marks
   where a chapter begins (its title, its one engraving) and which chapter is being read.
   One typeface, Fraunces, for everything.
   What a guest can do (see the dishes photographed, search, keep favourites, open a dish) is one step down,
   in a single quiet line of words at the head of the carte. Only transform and opacity ever move. */
:root {
  --sea-field: #10305f;  /* the field under the name; a shade of the navy that follows the hour (see [data-sea]) */
  --navy: #0b1d38;       /* the ink, the foot, the dark behind an opened dish */
  --ivory: #f5f0e6;      /* the carte */
  --ivory-2: #ece5d7;    /* the same ivory one tone down: the section row, the drinks, the opened dish's foot */
  --blue: #1d57a5;       /* the accent: a chapter's title and engraving, the marked section */
  --red: #c2452d;        /* the second ink, sparingly: the shellfish engravings on ivory */
  --ink: var(--navy);
  --ink-2: #3a4860;      /* the navy, softer: sizes, notes */
  --on-sea: var(--ivory);
  --on-sea-soft: #c2cad8;

  --face: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --step-small: 1.0625rem;
  --step-dish: clamp(1.3125rem, 1.26rem + .2vw, 1.4375rem);
  --step-lead: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --step-head: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);

  --m: clamp(1.375rem, 5vw, 4.5rem);
  --g: clamp(1rem, 2vw, 2rem);
  --row-h: 3.375rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
:root[data-sea='dusk'] { --sea-field: #0c2448; }
:root[data-sea='night'] { --sea-field: #081a36; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 450 var(--step-small)/1.45 var(--face); font-optical-sizing: auto; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-weight: 400; }
a { color: inherit; text-decoration: none; }
abbr { text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: .1875rem solid var(--blue); outline-offset: .1875rem; }
.band :focus-visible, .foot :focus-visible, .sheet-x:focus-visible { outline-color: var(--ivory); }
::selection { background: var(--blue); color: var(--ivory); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- TR | EN: the language being read is stronger, the other one is a link ---------- */
.lang { display: inline-flex; align-items: center; font-size: 1.0625rem; line-height: 1; letter-spacing: .05em; white-space: nowrap; }
.lang strong, .lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }
.lang strong { font-weight: 650; }
.lang a { font-weight: 450; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .32em; }
.lang span { opacity: .5; }

/* ---------- the band: the sea field, the name across its whole width, one engraving. Nothing else. ---------- */
.band { background: var(--sea-field); color: var(--on-sea); padding: .25rem var(--m) clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; overflow: clip; }
.band-top { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-right: -.7rem; }
.mon { grid-column: 1 / -1; grid-row: 2; }
.mon-name { display: block; font-size: 18.6vw; line-height: .92; letter-spacing: -.035em; white-space: nowrap; margin-top: -.06em; padding-bottom: .09em; }
.mon-name > span { display: inline-block; transform-origin: 0 100%; }
.mon-sub { display: block; font-size: var(--step-lead); line-height: 1.2; color: var(--on-sea-soft); }
/* Every engraving is shown whole: none is cut by the edge of the screen or of its column (the owner read the cut ones as broken). */
/* the contents of the carte, beside the engraving on a wide screen: chapter and how many dishes */
.band-index { display: none; grid-column: 1 / 6; grid-row: 3; align-self: start; margin-top: clamp(1rem, 3vw, 2.5rem); }
.band-index ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: clamp(1.5rem, 3vw, 3rem); }
.band-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-top: 1px solid rgb(245 240 230 / .22); font-size: var(--step-lead); line-height: 1.15; color: var(--on-sea); }
.band-index li:nth-child(4n) a { border-bottom: 1px solid rgb(245 240 230 / .22); }
.bi-nm { transition: transform .9s var(--ease); }
.bi-n { font-size: var(--step-small); color: var(--on-sea-soft); font-variant-numeric: lining-nums tabular-nums; }
@media (hover: hover) { .band-index a:hover .bi-nm { transform: translateX(.5rem); } }
@media (min-width: 64rem) { .band-index { display: block; } .plate { max-height: 33vh; } }
.plate-wrap { grid-column: 6 / 13; grid-row: 3; margin: clamp(1rem, 3vw, 2.5rem) 0 0 0; }
.plate { display: block; width: 100%; aspect-ratio: 5 / 2; padding: 0; border: 0; background: none; }
.plate-img { width: 100%; height: 100%; object-fit: contain; object-position: right center; transition: opacity .6s ease, transform 1s var(--ease); }
.plate.is-turning .plate-img { opacity: 0; transform: translateX(1.25rem); }
.plate-cap { margin-top: .5rem; padding-right: 0; text-align: right; font-size: var(--step-small); line-height: 1.3; color: var(--on-sea-soft); }

/* the slim band of the pictures page */
.band--slim { display: flex; align-items: center; justify-content: space-between; padding: .5rem calc(var(--m) - .7rem) .5rem var(--m); }
.band-home { font-size: 1.75rem; line-height: 1; letter-spacing: -.02em; }
.band-home a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- the section row: the section names and TR | EN, stuck to the top. Nothing else. ---------- */
.row { --row-pad: max(1rem, calc(var(--m) - .85rem)); position: sticky; top: 0; z-index: 6; display: flex; align-items: stretch; background: var(--ivory-2); padding-left: var(--row-pad); }
.row-nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.row-nav::-webkit-scrollbar { display: none; }
.row-nav ul { display: flex; width: max-content; padding-right: 1rem; }
.row-nav a { display: inline-flex; align-items: center; min-height: var(--row-h); min-width: 2.75rem; padding: 0 .85rem; font-size: 1.125rem; font-weight: 450; line-height: 1; white-space: nowrap; color: var(--ink); }
.row-nav li:first-child a { padding-left: calc(var(--m) - var(--row-pad)); }
.row-nav a[aria-current] { background: var(--blue); color: var(--ivory); }
.row-nav li:first-child a[aria-current] { padding-left: .85rem; margin-left: calc(var(--m) - var(--row-pad) - .85rem); }
.row .lang { flex: none; padding: 0 calc(var(--m) - .7rem) 0 .25rem; background: var(--ivory-2); color: var(--ink); }

/* ---------- the head of the carte: one quiet line of words (how to read it, favourites, search), then the allergy line ---------- */
.tools { display: none; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2.25rem) var(--m) 0; font-size: 1.125rem; }
.js .tools { display: flex; }
.view { display: inline-flex; gap: 1.25rem; margin-right: auto; }
.view button, .tool { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; padding: 0; border: 0; background: none; font-weight: 450; color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .09em; text-underline-offset: .4em; }
.view button[aria-pressed='true'], .tool[aria-pressed='true'], .tool[aria-expanded='true'] { color: var(--ink); font-weight: 650; text-decoration-color: var(--blue); }
.find { flex: 1 1 100%; display: flex; align-items: stretch; gap: 1rem; margin-top: .4rem; }
.find input { flex: 1 1 auto; min-width: 0; height: 3.25rem; padding: 0 1rem; border: 0; border-radius: 0; background: var(--ivory-2); font-size: 1.25rem; color: var(--ink); appearance: none; }
.find input::placeholder { color: var(--ink-2); opacity: 1; }
.find input::-webkit-search-cancel-button { display: none; }
.tools.is-finding [data-find-open] { display: none; }
.carte-note { padding: clamp(1rem, 2vw, 1.5rem) var(--m) 0; max-width: 46rem; font-size: var(--step-small); line-height: 1.45; color: var(--ink-2); }
.js .tools + .carte-note { padding-top: .6rem; }
.carte-note--photo { display: none; padding-top: .35rem; }
.view-photo .carte-note--photo { display: block; }
.state { margin: 1rem var(--m) 2.5rem; padding: .9rem 1rem; background: var(--ivory-2); color: var(--ink); font-size: var(--step-small); line-height: 1.45; }

/* ---------- the carte: a chapter's title and its one engraving, then dishes and prices with air between them ---------- */
.carte { padding: clamp(3rem, 7vw, 6rem) var(--m) clamp(5.5rem, 10vw, 9rem); display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(5.5rem, 10vw, 9rem); overflow-x: clip; }
.carte + .carte { padding-top: 0; }
/* the kitchen's chapters are set on the navy, engravings in ivory */
.carte--hot, .carte + .carte--hot { background: var(--navy); padding-top: clamp(4rem, 8vw, 7rem); --ink: var(--ivory); --ink-2: #b9c3d6; --ivory-2: #16294b; --art-ink: var(--ivory); color: var(--ivory); }
.carte--hot .sec h2 { color: var(--ivory); }
.carte--hot .th--red { --art-ink: #e98a73; }
.carte--hot + .carte--drinks { padding-top: clamp(4rem, 8vw, 7rem); }

/* ---------- the deck: one tile per chapter, the first thing under the tools ---------- */
.deck { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1rem); padding: clamp(1.5rem, 3vw, 2.5rem) var(--m) 0; }
.tile { position: relative; display: grid; align-content: end; gap: .15rem; min-height: 5.25rem; padding: .9rem 1rem; background: var(--navy); color: var(--ivory); overflow: clip; }
.tile--art { min-height: clamp(11rem, 20vw, 15rem); background: var(--ivory-2); color: var(--ink); }
.tile--art:nth-child(even) { background: var(--navy); color: var(--ivory); --art-ink: var(--ivory); }
.tile .ink { position: absolute; inset: .9rem .9rem 4.4rem; width: auto; height: auto; transition: transform 1.2s var(--ease); }
.tile-nm { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -.015em; }
.tile-n { font-size: var(--step-small); opacity: .72; }
@media (hover: hover) { .tile:hover .ink { transform: scale(1.05); } }
.carte--drinks, .carte + .carte--drinks { background: var(--ivory-2); padding-top: clamp(4rem, 8vw, 7rem); }
.sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; scroll-margin-top: calc(var(--row-h) + 1.5rem); }
.js .sec--far { content-visibility: auto; contain-intrinsic-size: auto calc(var(--n) * 2.5rem + 9rem); } /* sections further down are laid out when they come near */
.sec-head { grid-column: 1 / 5; position: sticky; top: calc(var(--row-h) + 2rem); padding-right: 1rem; }
.sec h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -.028em; color: var(--blue); text-wrap: balance; }
.opener { width: 100%; max-width: 100%; height: auto; max-height: 18rem; object-fit: contain; object-position: left center; margin: 2.25rem 0 0 0; }
.dishes { grid-column: 6 / 13; columns: 2; column-gap: clamp(2.5rem, 5vw, 5rem); margin-top: .35rem; }
.dish { break-inside: avoid; }
.dish-open { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; padding: .55rem 0; }
/* every line carries a small picture: the dish's photograph, or an engraving standing in for it */
.th { display: block; width: 3.75rem; aspect-ratio: 1; overflow: clip; border-radius: 50%; background: var(--ivory-2); }
.th img { width: 100%; height: 100%; object-fit: cover; }
.ink { display: block; width: 100%; height: 100%; background: var(--art-ink, var(--blue)); -webkit-mask: var(--a) center / contain no-repeat; mask: var(--a) center / contain no-repeat; }
.th--art { padding: .5rem; }
.th--red, .tile--red { --art-ink: var(--red); }
.carte--drinks .th { background: var(--ivory); }
.view-photo .dish[data-pic] .th { display: none; }
.card-pic { display: none; }
.nm { font-size: var(--step-dish); font-weight: 450; line-height: 1.22; letter-spacing: -.008em; text-wrap: pretty; }
.unit { margin-left: .2rem; font-size: var(--step-small); letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
.pr { font-size: var(--step-dish); font-weight: 600; line-height: 1.22; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ask { display: block; margin-top: .15rem; font-size: var(--step-small); line-height: 1.3; color: var(--ink-2); }

/* "Fotoğraflı": the dishes that have a good picture come first in each chapter, as large pictures in one crop
   and one tone; the others stay plain lines beneath them */
/* the dishes with a picture are served as plates: round, ringed, in rows of two or three, name and price beneath */
.view-photo .dishes { columns: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.view-photo .dish { grid-column: span 3; }
.view-photo .dish[data-pic] { order: -1; grid-column: span 2; margin-bottom: 2.25rem; }
.view-photo .dish[data-pic] .dish-open { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: .15rem; padding: 0; text-align: center; }
.view-photo .dish[data-pic] .card-pic { display: block; width: 100%; aspect-ratio: 1; padding: .4rem; border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); border-radius: 50%; margin-bottom: .75rem; }
.view-photo .card-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform 1.4s var(--ease); }
@media (hover: hover) { .view-photo .dish-open:hover .card-pic img { transform: scale(1.04); } }

/* ---------- a dish, opened: a card that slides in from the right edge with the picture (if it has one), both names, the price, the weight ---------- */
.sheet { width: min(88vw, 34rem); max-width: none; max-height: none; margin: auto 0 auto auto; padding: 0; border: 0; background: none; color: var(--ink); overflow: visible; }
.sheet::backdrop { background: rgb(5 14 30 / .84); }
.sheet-in { position: relative; display: grid; background: var(--ivory); max-height: min(86dvh, 86vh); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.sheet-in:focus { outline: none; }
.sheet-pic { aspect-ratio: 4 / 3; background: var(--ivory-2); }
.sheet-pic img { width: 100%; height: 100%; object-fit: cover; }
.sheet-pic.is-art img { object-fit: contain; padding: 1.75rem 2rem; }
.sheet-body { display: grid; gap: .35rem; padding: 1.5rem var(--m) .5rem; }
.sheet-pic[hidden] + .sheet-body { padding-top: 3.75rem; }
.sheet-name { font-size: clamp(2rem, 1.7rem + 1.4vw, 2.5rem); line-height: 1.05; letter-spacing: -.022em; color: var(--ink); text-wrap: balance; padding-right: 2rem; }
.sheet-other { font-size: var(--step-dish); line-height: 1.25; color: var(--ink-2); }
.sheet-price { margin-top: .5rem; font-size: var(--step-lead); font-weight: 600; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; }
.sheet-price .unit { font-weight: 450; }
.sheet-price.is-ask { font-size: var(--step-small); font-weight: 450; color: var(--ink-2); }
.sheet-note { margin-top: .5rem; font-size: var(--step-small); color: var(--ink-2); }
.calc { margin-top: 1.1rem; display: grid; gap: .6rem; }
.calc-h { font-size: var(--step-small); color: var(--ink-2); }
.calc-row { display: grid; grid-template-columns: 3rem minmax(5rem, auto) 3rem minmax(0, 1fr); align-items: center; column-gap: .5rem; }
.calc-btn { display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 0; background: var(--navy); color: var(--ivory); }
.calc-btn:disabled { opacity: .3; cursor: default; }
.calc-btn:active:not(:disabled) { transform: scale(.94); }
.calc-g { text-align: center; font-size: var(--step-dish); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.calc-sum { justify-self: end; font-size: var(--step-dish); font-weight: 600; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.calc-note { font-size: var(--step-small); line-height: 1.35; color: var(--ink-2); }
.sheet-bar { position: sticky; bottom: 0; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem; align-items: stretch; margin-top: 1.25rem; background: var(--ivory-2); }
.sheet-btn { display: grid; place-items: center; min-height: 3.25rem; padding: 0; border: 0; background: none; color: var(--ink); }
.sheet-btn:disabled { opacity: .28; cursor: default; }
.sheet-keep { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.25rem; padding: 0 .5rem; border: 0; background: none; font-size: 1.125rem; color: var(--ink); }
.star { display: block; fill: none; }
.sheet-keep[aria-pressed='true'] .star { fill: var(--blue); color: var(--blue); }
.sheet-x { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 0; background: var(--navy); color: var(--ivory); }

/* ---------- the close: the navy, a few small lines, the name again ---------- */
.foot { background: var(--navy); color: var(--on-sea); padding: clamp(1.75rem, 3vw, 2.75rem) var(--m) clamp(.75rem, 1.6vw, 1.5rem); overflow: clip; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 2rem; }
.foot-note { flex: 1 1 16rem; font-size: var(--step-small); color: var(--on-sea-soft); }
.foot .lang { margin: 0 -.5rem; }
.foot-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.0625rem; white-space: nowrap; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .32em; }
.foot-name { margin-top: clamp(3rem, 8vw, 7rem); font-size: 18.6vw; line-height: .92; letter-spacing: -.035em; white-space: nowrap; padding-bottom: .09em; }
.foot-name > span { display: inline-block; }

/* ---------- the pictures page: who made each picture, and its licence ---------- */
.credits { padding: clamp(2.5rem, 6vw, 5rem) var(--m) clamp(3.5rem, 8vw, 6rem); display: grid; gap: 1.1rem; }
.credits h1 { font-size: var(--step-head); line-height: 1; letter-spacing: -.028em; color: var(--blue); }
.credits h2 { font-size: var(--step-lead); line-height: 1.15; color: var(--blue); }
.cr-lead { max-width: 40rem; }
.cr-back, .cr a { font-weight: 600; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .25em; }
.cr-back { display: inline-flex; align-items: center; min-height: 2.75rem; }
.cr-sec { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; gap: 1rem; }
.cr-scroll { overflow-x: auto; }
.cr { width: 100%; max-width: 68rem; border-collapse: collapse; font-size: var(--step-small); }
.cr th, .cr td { padding: .7rem 1.25rem .7rem 0; text-align: left; vertical-align: top; font-weight: 450; }
.cr thead th { font-weight: 650; padding-bottom: .5rem; }
.cr tbody th { font-weight: 600; min-width: 11rem; }
.cr tbody tr:nth-child(odd) > * { background: var(--ivory-2); }
.cr th:first-child { padding-left: .75rem; }
.cr td a { display: inline-block; padding: .35rem 0; }
.cr-work { display: block; font-weight: 450; color: var(--ink-2); }

/* ---------- under the hand: opacity only ---------- */
@media (hover: hover) and (pointer: fine) {
  .lang a:hover, .foot-link:hover, .view button:hover, .tool:hover { opacity: .7; }
  .dish-open:hover .nm { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .28em; }
}

/* ---------- motion: few moves, all slow, transform and opacity only. Every hidden starting state lives here,
   so without script or with less motion the page is simply finished ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(.75rem); }
  .js [data-rise].in { opacity: 1; transform: none; transition: opacity 1.1s ease calc(var(--i, 0) * 120ms), transform 1.4s var(--ease) calc(var(--i, 0) * 120ms); }
  .js .mon-name > span { animation: settle 1.8s var(--ease) both; }
  .js .mon-sub, .js .plate-cap, .js .band-index { animation: arrive 1.4s ease .3s both; }
  .js .plate { animation: glide 2.2s var(--ease) .15s both; }
  .js .opener { opacity: 0; transform: translateX(-1.75rem); }
  .js .opener.in { opacity: 1; transform: none; transition: opacity 1.6s ease .15s, transform 2.2s var(--ease) .15s; }
  .sheet[open] .sheet-in { animation: slide-in .7s var(--ease) both; }
  .sheet[open]::backdrop { animation: fade .5s ease both; }
  .sheet.is-closing .sheet-in { animation: slide-out .26s ease both; }
  .sheet.is-closing::backdrop { animation: fade .26s ease reverse both; }
  .sheet-in.is-next .sheet-pic img, .sheet-in.is-next .sheet-body { animation: from-right .45s var(--ease) both; }
  .sheet-in.is-prev .sheet-pic img, .sheet-in.is-prev .sheet-body { animation: from-left .45s var(--ease) both; }
  .carte.is-changing { animation: fade .7s ease both; }
}
@keyframes settle { from { transform: scale(.965); opacity: 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(.5rem); } }
@keyframes glide { from { opacity: 0; transform: translateX(2.5rem); } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-out { to { transform: translateX(100%); } }
@keyframes from-right { from { opacity: 0; transform: translateX(1.5rem); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-1.5rem); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- a tablet held upright: the title and its engraving above, the dishes still in two columns ---------- */
@media (max-width: 63.99rem) {
  .sec { display: block; }
  .sec-head { position: static; padding-right: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); column-gap: 1rem; align-items: end; min-height: 6rem; }
  .sec:not(.sec--art) .sec-head { display: block; min-height: 0; }
  .sec--long h2 { grid-column: 1 / -1; }
  .sec--long .opener { grid-column: 2; margin-top: .25rem; }
  .opener { width: 100%; max-height: 10rem; object-position: right bottom; margin: 0; }
  .js .opener { transform: translateX(1.75rem); }
  .dishes { margin-top: 2rem; }
  .plate-wrap { grid-column: 3 / 13; }
}

/* ---------- a phone: one column; the first dish and its price inside the first screen and a half ---------- */
@media (max-width: 47.99rem) {
  .band { display: block; padding-bottom: 1.5rem; }
  .mon-sub { margin-top: .2rem; }
  .plate-wrap { margin: 1.25rem 0 0 0; }
  .plate { aspect-ratio: 11 / 4; }
  .plate-cap { padding-right: 0; margin-top: .4rem; text-align: left; }
  .view { gap: 1.1rem; }
  .tools { column-gap: 1.1rem; font-size: 1.0625rem; }
  .row-nav a { padding: 0 .7rem; font-size: 1.0625rem; }
  .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); min-height: 5.5rem; }
  .opener { max-height: 7rem; }
  .dishes { columns: 1; margin-top: 1.5rem; }
  .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--art { min-height: 12.5rem; }
  .tile .ink { inset: .8rem .8rem 6.2rem; }
  .tile-nm { font-size: 1.3125rem; }
  .js .sec--far { contain-intrinsic-size: auto calc(var(--n) * 4.9rem + 10rem); }
  .view-photo .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-photo .dish { grid-column: 1 / -1; }
  .view-photo .dish[data-pic] { grid-column: span 1; margin-bottom: 2rem; }
  .view-photo .dish[data-pic] .nm { font-size: 1.1875rem; }
  .view-photo .dish[data-pic] .pr { font-size: 1.1875rem; }
  .calc-row { grid-template-columns: 3rem minmax(5rem, auto) 3rem; justify-content: start; row-gap: .6rem; }
  .calc-sum { grid-column: 1 / -1; justify-self: start; }
  .foot-row { gap: .25rem 1.25rem; }
  .foot-note { flex-basis: 100%; margin-bottom: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; }
}
