@font-face {
  font-family: "Young Serif";
  src: url("assets/young-serif-latin-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02FF,U+1E00-1EFF;
}
@font-face {
  font-family: "Young Serif";
  src: url("assets/young-serif-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02FF,U+1E00-1EFF;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F;
}

/* The honey-pine garden table is the surface of the page.
   The plates, the printed lístek and the booking slip lie on it. */
:root {
  --ink: #1d1510;         /* roast: the Kozel parasols and the frame of the sign */
  --ink-soft: #2e231b;    /* one step up, for fields on the dark ground */
  --foam: #f1f0ec;        /* the head of the beer, paper */
  --foam-deep: #e4e1d8;   /* one step down, for fields on paper */
  --honey: #efab3d;       /* lacquered pine of the garden tables */
  --muted: #5d4c3f;       /* secondary text on paper */
  --muted-dark: #d5cdc1;  /* secondary text on the dark ground */
  --error: #96291d;

  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --text: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  --step-sub: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);
  --step-head: clamp(2.5rem, 1.2rem + 5.2vw, 5.75rem);
  --step-display: clamp(3.25rem, 1rem + 9.6vw, 9.75rem);

  --gutter: clamp(1.125rem, 3.2vw, 3.5rem);
  --col-gap: clamp(0.75rem, 1.7vw, 1.5rem);
  --space-section: clamp(4.5rem, 2rem + 8vw, 10rem);
  --field: 3.25rem;       /* one height for every form control */
  --dish-dwell: 6s;       /* how long a dish stays on the stage */
  --ease: cubic-bezier(.2, .7, .2, 1);

  --scallop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9' preserveAspectRatio='none'%3E%3Cellipse cx='11' cy='9' rx='11' ry='9'/%3E%3C/svg%3E");
  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11' preserveAspectRatio='none'%3E%3Cpath d='M0 0h18L9 11z'/%3E%3C/svg%3E");
  /* the arrow of a dropdown, in the ink colour */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M0 0h14L7 9z' fill='%231d1510'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); font-kerning: normal; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .2em; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
/* quick taps on the stepper and the chips must not zoom the page */
a, button, label, summary, input, select { touch-action: manipulation; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; text-wrap: balance; hyphens: none; }
h1 { font-size: var(--step-display); line-height: .93; letter-spacing: -.045em; }
h2 { font-size: var(--step-head); line-height: .98; letter-spacing: -.04em; }
h3 { font-size: var(--step-sub); line-height: 1.1; letter-spacing: -.025em; }
h4 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -.02em; }
p { text-wrap: pretty; }
.lead { max-width: 34ch; font-size: var(--step-lead); line-height: 1.38; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
:is(.hero, .strip, .booking, .occasion-party, .site-footer) :focus-visible { outline-color: var(--foam); }
::selection { background: var(--honey); color: var(--ink); }

.site { background: var(--foam); }
.frame {
  width: 100%;
  max-width: 110rem;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: fixed; top: 10px; left: 10px; z-index: 5; padding: 10px 16px; background: var(--foam); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: none; }
.skip:not(:focus) { clip-path: inset(50%); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.375rem;
  padding: .75rem 1.5rem;
  border: 0;
  border-radius: 0;
  font: 700 var(--step-body)/1.2 var(--text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.button:active { transform: translateY(2px); }
.button-honey { background: var(--honey); color: var(--ink); }
.button-foam { background: var(--foam); color: var(--ink); }
.button-ink { background: var(--ink); color: var(--foam); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: .09em;
  text-underline-offset: .22em;
  transition: text-decoration-thickness .2s var(--ease), color .2s var(--ease);
}

/* Opening: the real garden table, the name set into the photograph */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: min(88svh, 55rem);
  background: var(--ink);
  color: var(--foam);
  overflow: clip;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; overflow: clip; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(29 21 16 / .84) 0%, rgb(29 21 16 / .7) 25%, rgb(29 21 16 / .3) 48%, rgb(29 21 16 / 0) 68%), linear-gradient(180deg, rgb(29 21 16 / .6) 0%, rgb(29 21 16 / 0) 24%); /* taste-skill-ignore: photographic contrast scrim */
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.75rem;
  min-height: 5.25rem;
  font-weight: 650;
}
.nav a { display: inline-flex; align-items: center; width: fit-content; min-height: 2.75rem; text-decoration: none; }
.wordmark { font: 400 var(--step-lead)/1.1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 3rem); white-space: nowrap; }
.phone { justify-self: end; gap: .45em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone-menu { display: none; }

.hero-inner { align-self: end; padding-block: clamp(2rem, 6vh, 4rem) clamp(2.5rem, 7vh, 4.5rem); }
.hero h1 { margin-left: -.035em; }
.hero-lead { max-width: 33ch; margin-top: clamp(1.1rem, 2vw, 1.75rem); font-size: var(--step-lead); line-height: 1.38; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: clamp(1.25rem, 2.2vw, 1.9rem); }

.strip { background: var(--ink); color: var(--foam); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; min-height: 4rem; }
.strip a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; text-decoration: none; }
.strip-status { font-variant-numeric: tabular-nums; }
.strip-status[data-open="true"] { color: var(--honey); }
.strip-address span { margin-left: .4em; font-weight: 400; color: var(--muted-dark); }

/* The offer: the dishes take turns on the honey table beside the printed sheet */
.offer { background: var(--honey); padding-block: var(--space-section); }
.offer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.offer-intro { grid-column: 1 / span 5; grid-row: 1; padding-bottom: clamp(2rem, 3.6vw, 3.4rem); }
.offer-intro .lead { margin-top: clamp(.9rem, 1.6vw, 1.4rem); }
.offer-note { grid-column: 1 / span 5; grid-row: 3; margin-top: .5rem; font-size: var(--step-small); }

/* Without scripts the three dishes stand side by side; with them one stage shows each in turn. */
.dishes { position: relative; grid-column: 1 / span 5; grid-row: 2; min-width: 0; }
.dish-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.dish { min-width: 0; }
.dish:first-child { grid-column: 1 / -1; }
.dish-photo { display: block; overflow: clip; }
.dish img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.dish:first-child img { aspect-ratio: 4 / 5; }
.dish[data-dish="hermelin"] img { object-position: 36% 50%; }
.dish[data-dish="utopenci"] img { object-position: 40% 50%; }
.dish figcaption { margin-top: .7rem; font: 400 var(--step-lead)/1.2 var(--display); letter-spacing: -.02em; }

.dishes[data-enhanced] .dish-stage { grid-template-columns: minmax(0, 1fr); gap: 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.dishes[data-enhanced] .dish { grid-area: 1 / 1; opacity: 0; transition: opacity .9s var(--ease); }
.dishes[data-enhanced] .dish.is-current { z-index: 1; opacity: 1; }
.dishes[data-enhanced] .dish img { aspect-ratio: 4 / 5; transform: scale(1.06); transition: transform 2s var(--ease); }
.dishes[data-enhanced] .dish.is-current img { transform: none; }
.dishes[data-enhanced] .dish figcaption { display: flex; align-items: center; min-height: 2.75rem; margin-top: .3rem; padding-right: 7.25rem; opacity: 0; transition: opacity .25s var(--ease); }
/* the name leaves before the next one arrives, so two names never lie over each other */
.dishes[data-enhanced] .dish.is-current figcaption { opacity: 1; transition: opacity .4s var(--ease) .3s; }
.dish-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: .09em;
  text-underline-offset: .22em;
  cursor: pointer;
  transition: text-decoration-thickness .2s var(--ease);
}
.dish-announcement { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The same dishes as small plates: they pick the one on the stage, and a bar under the current one fills until the next. */
.dish-picks { display: grid; gap: clamp(.9rem, 1.5vw, 1.35rem); }
.dish-pick {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: 400 var(--step-lead)/1.2 var(--display);
  letter-spacing: -.02em;
  text-align: left;
  cursor: pointer;
}
.dish-pick-photo { display: block; overflow: clip; }
.dish-pick img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.dish-progress { display: block; height: 6px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.dish-pick[aria-current="true"] .dish-progress { transform: scaleX(1); }
.dish-pick-name { margin-top: .5rem; }
.dish-pick:focus-visible { outline-offset: 5px; }

.sheet {
  position: relative;
  grid-column: 6 / span 4;
  grid-row: 1 / span 3;
  margin-block: 9px;
  padding: clamp(2.1rem, 3.3vw, 3rem) clamp(1.25rem, 2.4vw, 2.25rem) clamp(1.9rem, 3vw, 2.6rem);
  background: var(--foam);
  text-align: center;
}
.sheet::before, .sheet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background: var(--foam);
  -webkit-mask: var(--scallop) left top / 22px 100% round no-repeat;
  mask: var(--scallop) left top / 22px 100% round no-repeat;
}
.sheet::before { bottom: calc(100% - 1px); }
.sheet::after { top: calc(100% - 1px); transform: scaleY(-1); }
.sheet-group { margin-top: clamp(1.7rem, 2.7vw, 2.35rem); }
.sheet-group ul { display: grid; gap: .8rem; margin-top: .75rem; }
.sheet-group li { display: grid; justify-items: center; }
.sheet-group strong {
  font-weight: 650;
  line-height: 1.3;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: .26em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
  transition: text-decoration-color .6s var(--ease);
}
/* the dish on the stage is marked on the sheet */
.sheet-group .is-served strong { text-decoration-color: var(--honey); }
.sheet-group small { font-size: var(--step-small); line-height: 1.4; color: var(--muted); }
.sheet-hours { margin-top: clamp(1.8rem, 2.9vw, 2.5rem); font: 400 var(--step-lead)/1.25 var(--display); letter-spacing: -.02em; }
.sheet-hours span { display: block; font-variant-numeric: tabular-nums; }
.sheet-note { max-width: 31ch; margin: 1.1rem auto 0; font-size: var(--step-small); line-height: 1.45; color: var(--muted); }

.offer-side {
  grid-column: 10 / span 3;
  grid-row: 1 / span 3;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 9px;
}
.coaster {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .45rem;
  align-self: center;
  width: min(100%, 15rem);
  aspect-ratio: 1;
  margin-top: auto;
  padding: 1.8rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--foam);
  text-align: center;
  text-decoration: none;
  rotate: -8deg;
  transition: rotate .5s var(--ease), scale .5s var(--ease);
}
.coaster strong { max-width: 8ch; font: 400 var(--step-lead)/1.1 var(--display); letter-spacing: -.02em; }
.coaster span { max-width: 21ch; font-size: var(--step-small); line-height: 1.32; }
.coaster:focus-visible { rotate: 0deg; scale: 1.04; outline-color: var(--ink); }

/* Three reasons to come */
.gather { background: var(--foam); padding-block: var(--space-section); }
.gather-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(2rem, 4.2vw, 3.75rem); align-items: end; }
.gather h2 { grid-column: 1 / span 7; }
.gather-lead { grid-column: 9 / span 4; display: grid; justify-items: start; gap: .35rem; }
.gather-photo { position: relative; grid-column: 1 / span 8; align-self: stretch; }
.gather-photo img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 42%; }
.gather-photo figcaption { position: absolute; left: 0; bottom: 0; padding: .45rem .85rem; background: var(--foam); font-size: var(--step-small); }
.occasions { grid-column: 9 / span 4; align-self: stretch; display: grid; grid-template-rows: 1fr 1fr; gap: var(--col-gap); }
.occasion { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(1.4rem, 2.3vw, 2.1rem) clamp(1.4rem, 2.3vw, 2.1rem) clamp(1rem, 1.6vw, 1.5rem); }
.occasion-match { background: var(--honey); }
.occasion-party { background: var(--ink); color: var(--foam); }
.occasion p { margin-top: .7rem; }
.occasion .text-link { margin-top: auto; padding-top: .5rem; }
.occasion-party .text-link { color: var(--honey); }

/* Booking: a slip on the dark ground */
.booking { background: var(--ink); color: var(--foam); padding-block: var(--space-section); }
.booking-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.booking-copy { grid-column: 1 / span 5; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.booking-copy .lead { margin-top: clamp(.9rem, 1.6vw, 1.4rem); }
.booking-note { margin-top: 1.4rem; font-size: var(--step-small); color: var(--muted-dark); }
.booking-note strong { color: var(--foam); }
.booking-phone a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
  color: var(--honey);
  font: 400 var(--step-sub)/1.15 var(--display);
  letter-spacing: -.025em;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
  transition: text-decoration-color .25s var(--ease);
}

.slip {
  position: relative;
  grid-column: 7 / span 6;
  min-width: 0;
  margin-bottom: 11px;
  padding: clamp(1.4rem, 3.4vw, 3.1rem) clamp(1.1rem, 3.4vw, 3.1rem) clamp(1.5rem, 3vw, 2.6rem);
  background: var(--foam);
  color: var(--ink);
}
.slip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  height: 11px;
  background: var(--foam);
  -webkit-mask: var(--zigzag) left top / 18px 100% round no-repeat;
  mask: var(--zigzag) left top / 18px 100% round no-repeat;
}
.slip h3 { margin-bottom: 1.1rem; }
.slip h3:focus { outline: none; }
.slip [data-booking-fallback] p { max-width: 30ch; }
.booking .slip :focus-visible { outline-color: var(--ink); }

.booking-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 650; color: var(--muted); }
.booking-progress li { padding-bottom: .5rem; border-bottom: 4px solid var(--foam-deep); transition: border-color .3s var(--ease), color .3s var(--ease); }
.booking-progress [aria-current="step"] { border-color: var(--ink); color: var(--ink); font-weight: 700; }

/* Chips: the day shortcuts and the kind of visit share one control */
.booking-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.booking-chips :is(button, span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .4rem 1.05rem;
  border: 0;
  border-radius: 0;
  background: var(--foam-deep);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.booking-chips label { position: relative; display: flex; }
.booking-chips label span { width: 100%; min-height: var(--field); }
.booking-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.booking-chips :is([aria-pressed="true"], input:checked + span) { background: var(--ink); color: var(--foam); }
.booking-chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.booking-shortcuts { margin-bottom: 1rem; }

/* Fields: every control is drawn by the page, so a date, a dropdown and a text field share one shape on every phone */
.booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1.1rem .9rem; }
.booking-control { min-width: 0; margin: 0; padding: 0; border: 0; }
.booking-field-wide { grid-column: 1 / -1; }
.booking-control > :is(label, legend) { display: block; margin-bottom: .4rem; padding: 0; font-weight: 700; line-height: 1.2; }
.booking-control > label span { font-weight: 400; }
.booking-control :is(input:not([type="radio"]), select, textarea) {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: var(--field);
  margin: 0;
  padding: 0 .8rem;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background-color: var(--foam-deep);
  color: var(--ink);
  line-height: 1.25;
  text-align: left;
}
.booking-control select { padding-right: 2.5rem; background-image: var(--chevron); background-repeat: no-repeat; background-position: right .9rem center; background-size: .8rem auto; cursor: pointer; }
.booking-control textarea { height: auto; min-height: 5.25rem; padding-block: .7rem; line-height: 1.4; resize: vertical; }
/* Phones (iOS, Android) hold the value of a date field at mid-height with flex; as a block, the value drops to the top
   edge of the field. A column keeps it centred and still lets the desktop field's inner row, with its calendar
   button, take the full width. */
.booking-control input[type="date"] { display: flex; flex-direction: column; align-items: stretch; justify-content: center; cursor: pointer; }
.booking-control input[type="date"]::-webkit-date-and-time-value { margin: 0; text-align: left; white-space: nowrap; }
.booking-control input[type="date"]::-webkit-datetime-edit { padding: 0; }
.booking-control input[type="date"]::-webkit-calendar-picker-indicator { margin: 0 0 0 .25rem; padding: 0; cursor: pointer; }
.booking-control [aria-invalid="true"] { border-bottom-color: var(--error); }

.booking-guests { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem 1rem; }
.booking-stepper { display: grid; flex: 0 0 auto; grid-template-columns: var(--field) 3.5rem var(--field); align-items: stretch; }
.booking-stepper button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--foam);
  font: 650 var(--step-lead)/1 var(--text);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.booking-stepper button:active { background: var(--honey); color: var(--ink); }
.booking-stepper [aria-disabled="true"], .booking-stepper [aria-disabled="true"]:active { background: var(--foam-deep); color: var(--muted); cursor: default; }
.booking-control .booking-stepper input { -moz-appearance: textfield; padding-inline: .2rem; text-align: center; font-variant-numeric: tabular-nums; }
.booking-stepper input::-webkit-inner-spin-button, .booking-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* The party as tally strokes, the way a tab is kept on a pub slip */
/* the first row of strokes sits level with the middle of the stepper; more rows grow downwards */
.tally { display: flex; flex: 1 1 5rem; flex-wrap: wrap; gap: .5rem .9rem; min-height: 1.5rem; margin-top: calc((var(--field) - 1.5rem) / 2); }
.tally-group { position: relative; display: inline-flex; gap: 6px; height: 1.5rem; }
.tally-group i { display: block; width: 3px; height: 100%; background: var(--ink); transform: rotate(5deg); transform-origin: 50% 0; }
.tally-group i:nth-child(2n) { transform: rotate(2deg); }
.tally-group i:nth-child(3n) { transform: rotate(7deg); }
.tally-group .tally-cross { position: absolute; top: 46%; left: -5px; right: -5px; width: auto; height: 3px; transform: rotate(-24deg); transform-origin: 50% 50%; }

:is(.booking-note, .booking-time-note, .booking-review-note, .field-error) { font-size: var(--step-small); line-height: 1.38; }
.booking-time-note, .booking-review-note { color: var(--muted); }
.field-error { margin-top: .4rem; color: var(--error); font-weight: 700; }
.booking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.6rem; }
.booking-back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: .09em;
  text-underline-offset: .22em;
  cursor: pointer;
  transition: text-decoration-thickness .2s var(--ease);
}
.booking-summary { margin-bottom: 1.05rem; padding: .6rem .8rem; background: var(--foam-deep); font-weight: 650; }
.booking-review-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.booking-review-group { min-width: 0; padding: .8rem .9rem .35rem; background: var(--foam-deep); }
.booking-review-label { margin-bottom: .5rem; font-weight: 700; }
.booking-review dl { display: grid; gap: .45rem; margin: 0; }
.booking-review dl > div { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: .3rem .5rem; }
.booking-review dt { color: var(--muted); }
.booking-review dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.booking-complete p { max-width: 34ch; }

/* The way in: the heading, then the street view with the address card */
.visit { background: var(--foam); padding-top: var(--space-section); }
.visit-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 1.5rem; align-items: end; padding-bottom: clamp(2rem, 4.2vw, 3.75rem); }
.visit-head h2 { grid-column: 1 / span 6; }
.visit-way { grid-column: 7 / span 6; display: grid; gap: 1.1rem; }
.visit-way .lead { max-width: 38ch; }
.visit-facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.visit-facts li { padding: .4rem .8rem; background: var(--foam-deep); font-weight: 650; }

.visit-stage { position: relative; background: var(--ink); }
.visit-photo img { width: 100%; height: clamp(32rem, 60vw, 55rem); object-fit: cover; object-position: 100% 36%; }
.visit-frame { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-end; padding-top: clamp(1.5rem, 3.2vw, 3rem); pointer-events: none; }
.visit-card { display: grid; width: 22.5rem; padding: 1.75rem 1.75rem 0; background: var(--foam); pointer-events: auto; }
.visit-card address { display: grid; gap: .4rem; }
.visit-street { font: 400 var(--step-sub)/1.12 var(--display); letter-spacing: -.025em; }
.visit-card .hours { margin-top: 1.1rem; font-variant-numeric: tabular-nums; }
.hours strong { margin-right: .3em; }
.visit-status { font-weight: 650; }
.visit-card .text-link { justify-self: start; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.visit-card .button { width: calc(100% + 3.5rem); margin: 1.1rem -1.75rem 0; }

/* The close: the name returns at full width */
.site-footer { background: var(--ink); color: var(--foam); padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(1.4rem, 2.2vw, 2rem); }
.footer-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.footer-farewell { grid-column: 1 / span 6; font: 400 var(--step-sub)/1.1 var(--display); letter-spacing: -.025em; }
.footer-facts { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem var(--col-gap); font-variant-numeric: tabular-nums; }
.footer-facts a { text-decoration-thickness: .07em; transition: color .2s var(--ease); }
.footer-name { grid-column: 1 / -1; display: block; overflow-x: clip; overflow-y: visible; color: var(--honey); font: 400 12.2vw/1 var(--display); letter-spacing: -.045em; white-space: nowrap; text-decoration: none; transition: color .3s var(--ease); }
.footer-name span { display: inline-block; padding-bottom: .06em; }
.footer-credit { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted-dark); }

/* Hover belongs to pointers that can hover. On a touch screen it would stick to the last thing tapped. */
@media (hover: hover) {
  .button-honey:hover { background: var(--foam); }
  .button-foam:hover { background: var(--honey); }
  .button-ink:hover { background: var(--honey); color: var(--ink); }
  .slip .button-honey:hover { background: var(--ink); color: var(--foam); }
  .text-link:hover, .booking-back:hover, .dish-toggle:hover { text-decoration-thickness: .17em; }
  :is(.nav, .strip) a:hover { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .3em; }
  .coaster:hover { rotate: 0deg; scale: 1.04; }
  .dish-pick:hover img { transform: scale(1.05); }
  .booking-phone a:hover { text-decoration-color: currentColor; }
  .booking-chips :is(button:hover, input:hover + span) { background: var(--ink); color: var(--foam); }
  .booking-stepper button:hover { background: var(--honey); color: var(--ink); }
  .booking-stepper [aria-disabled="true"]:hover { background: var(--foam-deep); color: var(--muted); }
  .footer-facts a:hover { color: var(--honey); }
  .footer-name:hover { color: var(--foam); }
}

/* Motion: the opening settles in, each part of a section rises as it arrives */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { transform: scale(1.07); }
  to { transform: none; }
}
@keyframes lay {
  from { opacity: 0; transform: translateY(38px) rotate(-1.8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes toss {
  from { opacity: 0; transform: translateY(26px) rotate(-38deg); }
  to { opacity: 1; transform: none; }
}
@keyframes stroke {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
@keyframes stroke-across {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: settle 1.5s var(--ease) both; }
  .hero h1, .hero-lead, .hero-actions { animation: rise .85s var(--ease) both; }
  .hero-lead { animation-delay: .08s; }
  .hero-actions { animation-delay: .16s; }
  [data-enter].is-entering { animation: rise .8s var(--ease) both; animation-delay: var(--enter-delay, 0ms); }
  /* The sheet is laid on the table and the beer mat lands beside it. */
  .sheet.is-entering { animation-name: lay; animation-duration: .95s; }
  .coaster.is-entering { animation-name: toss; animation-duration: .95s; }
  .tally .is-new { animation: stroke .28s var(--ease) both; }
  .tally .tally-cross.is-new { animation-name: stroke-across; }
  /* While the dishes play, the bar under the current one is the clock: when it is full, the next dish comes. */
  .dish-picks.is-playing [aria-current="true"] .dish-progress { animation: fill var(--dish-dwell) linear both paused; }
  .dish-picks.is-playing.is-running [aria-current="true"] .dish-progress { animation-play-state: running; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .coaster:hover, .coaster:focus-visible { rotate: -8deg; scale: 1; }
}

@media (width > 700px) and (height <= 560px) {
  .hero { min-height: 100svh; }
  .hero-inner { padding-block: .75rem 1.4rem; }
  .hero h1 { font-size: clamp(3.4rem, 8vw, 5.2rem); }
  .hero-lead { margin-top: .8rem; }
  .hero-actions { margin-top: .9rem; }
}

/* Street view on laptops: the photograph moves a little to the left so the card stays clear of the sign */
@media (min-width: 1280px) and (max-width: 1439px) {
  .visit-stage { overflow: clip; }
  .visit-photo img { width: 111.2%; max-width: none; margin-left: -11.2%; }
  .visit-card { width: 21.25rem; }
}

/* Narrower than that, the card leaves the photograph and locks into its lower edge at full width */
@media (max-width: 1279px) {
  .visit-photo img { height: auto; aspect-ratio: 16 / 9; object-position: 50% 40%; }
  .visit-stage { background: var(--foam); }
  .visit-frame { position: relative; inset: auto; margin-top: -4.5rem; padding-top: 0; padding-bottom: var(--space-section); }
  .visit-card { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .visit-card address { grid-row: 1 / span 3; }
  .visit-card :is(.hours, .visit-status, .text-link) { grid-column: 2; }
  .visit-card .hours { margin-top: 0; }
  .visit-card .button { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links { justify-self: center; gap: clamp(.9rem, 2.6vw, 2rem); }

  /* stage beside the small plates, then the sheet beside the beer mat */
  .offer-grid { row-gap: 0; }
  .offer-intro { grid-column: 1 / -1; }
  .offer-side { display: contents; }
  .dishes { grid-column: 1 / span 8; grid-row: 2; }
  .dishes[data-enhanced] .dish img { aspect-ratio: 1; }
  .dish-picks { grid-column: 9 / span 4; grid-row: 2; align-content: start; gap: var(--col-gap); }
  .dish-pick-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .offer-note { grid-column: 1 / -1; grid-row: 3; }
  .sheet { grid-column: 1 / span 8; grid-row: 4; margin-top: clamp(2.5rem, 6vw, 3.5rem); }
  .coaster { grid-column: 9 / span 4; grid-row: 4; align-self: center; justify-self: center; margin-top: clamp(2.5rem, 6vw, 3.5rem); }

  .gather-grid { row-gap: 1.25rem; }
  .gather h2 { grid-column: 1 / -1; }
  .gather-lead { grid-column: 1 / span 9; }
  .gather-photo { grid-column: 1 / -1; margin-top: 1rem; }
  .occasions { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: calc(var(--col-gap) - 1.25rem); }

  .booking-copy { grid-column: 1 / -1; gap: 1.25rem; padding-bottom: 2.25rem; }
  .slip { grid-column: 1 / -1; }

  .visit-head h2 { grid-column: 1 / -1; }
  .visit-way { grid-column: 1 / span 10; }

  .footer-farewell { grid-column: 1 / -1; }
  .footer-facts { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .phone-number { display: none; }
}

@media (max-width: 700px) {
  .hero { min-height: 0; grid-template-rows: auto auto auto; }
  .hero::before { display: none; }
  .nav { position: relative; z-index: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 1rem; min-height: 3.625rem; }
  .nav-links { display: none; }
  .wordmark { font-size: 1.125rem; }
  .phone-menu { display: block; }
  .phone-menu summary { display: flex; align-items: center; min-height: 2.75rem; font-weight: 700; list-style: none; cursor: pointer; }
  .phone-menu summary::-webkit-details-marker { display: none; }
  .phone-menu[open] summary { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .3em; }
  .phone-menu nav { position: absolute; top: calc(100% - 4px); right: max(var(--gutter), env(safe-area-inset-right, 0px)); display: grid; min-width: 11rem; padding: .5rem 1rem; background: var(--foam); color: var(--ink); }
  .phone-menu nav a { width: 100%; }
  .phone-menu nav a:focus-visible { outline-color: var(--ink); }
  .hero-photo { position: relative; inset: auto; z-index: auto; grid-row: 2; height: clamp(13.5rem, 62vw, 23rem); }
  .hero-photo img { object-position: 58% 50%; }
  .hero-inner { grid-row: 3; padding-block: 1.25rem 1.35rem; background: var(--foam); color: var(--ink); }
  .hero h1 { font-size: clamp(3rem, 15.2vw, 5.25rem); }
  .hero-lead { max-width: 34ch; margin-top: .8rem; font-size: 1.125rem; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: .45rem; margin-top: 1.1rem; }
  .hero-actions .button { min-height: 3.125rem; padding-inline: .5rem; }
  .hero-actions .button-foam { background: var(--ink); color: var(--foam); }
  .hero .hero-inner :focus-visible { outline-color: var(--ink); }
  .strip-inner { min-height: 3.5rem; padding-block: .3rem; }
  .strip a { min-height: 2.25rem; }

  /* one stage, the three small plates in a row under it */
  .dishes { grid-column: 1 / -1; }
  .dishes[data-enhanced] .dish img { aspect-ratio: 5 / 4; }
  .dish:first-child img { aspect-ratio: 5 / 4; }
  .dish-picks { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .55rem; }
  .dish-pick img { aspect-ratio: 4 / 3; }
  .offer-note { grid-row: 4; margin-top: .9rem; }
  .sheet { grid-column: 1 / -1; grid-row: 5; margin-top: 2.25rem; }
  .coaster { grid-column: 1 / -1; grid-row: 6; width: 13.5rem; margin-top: 2.5rem; }

  .gather-lead { grid-column: 1 / -1; }
  .gather-photo img { aspect-ratio: 4 / 3; object-position: 58% 42%; }
  .occasions { grid-template-columns: minmax(0, 1fr); }

  /* the slip on a phone: date and time side by side, then guests and the kind of visit on rows of their own */
  .booking-fields { gap: 1rem .7rem; }
  .booking-party, .booking-choice { grid-column: 1 / -1; }
  /* the two kinds of visit share the row by the length of their words, so neither label breaks */
  .booking-choice .booking-chips label { flex: 1 1 auto; }
  .booking-choice .booking-chips span { padding-inline: .75rem; white-space: nowrap; }
  .booking-actions .button { width: 100%; }

  .visit-way { grid-column: 1 / -1; }
  .visit-photo img { aspect-ratio: 4 / 3; }
  .visit-frame { margin-top: -3.5rem; }
  .visit-card { grid-template-columns: minmax(0, 1fr); }
  .visit-card address { grid-row: auto; }
  .visit-card :is(.hours, .visit-status, .text-link) { grid-column: 1; }
  .visit-card .hours { margin-top: 1.1rem; }

  .footer-facts { grid-template-columns: minmax(0, 1fr); }
  .footer-name { font-size: 13.4vw; }
}
@media (hover: hover) and (max-width: 700px) {
  .hero-actions .button-honey:hover { background: var(--ink); color: var(--foam); }
  .hero-actions .button-foam:hover { background: var(--honey); color: var(--ink); }
}

@media (max-width: 430px) {
  [data-booking-step="contact"] .booking-fields, .booking-review-groups { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 345px) {
  .nav { column-gap: .6rem; font-size: 1rem; }
  .hero-actions .button { font-size: .9375rem; padding-inline: .2rem; }
  .strip-address span { display: none; }
  .booking-fields { grid-template-columns: minmax(0, 1fr); }
}
