/* Lucien, West Village. Fictional concept by Mono Digital */

:root {
  --night: #1B0408;
  --wine: #36070F;
  --salt: #F1EADF;
  --on-dark-muted: #CDB8B5;
  --on-light-muted: #53393F;
  --error: #9A3B2E;

  /* --display is the headline face; swap it here to change every title */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --hh: 72px;

  --step--1: clamp(.875rem, .85rem + .1vw, .94rem);
  --step-0: clamp(.95rem, .92rem + .15vw, 1.05rem);
  --step-1: clamp(1.1rem, 1.04rem + .3vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.2rem + .8vw, 1.8rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 3.25rem);
  --step-h2: clamp(2.1rem, 1.4rem + 3vw, 4rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.8vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--night);
  color: var(--salt);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: #D9C3BE; color: var(--night); }
:focus-visible { outline: 2px solid var(--accent, var(--salt)); outline-offset: 4px; }

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  background: var(--salt); color: var(--night); padding: .6rem 1rem; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Section themes ---------------------------------------------------------- */
.theme-dark, .theme-wine {
  color: var(--salt);
  --muted: var(--on-dark-muted); --line: rgba(241, 234, 223, .22);
  --accent: var(--salt); --fill: var(--salt); --fill-ink: var(--night);
}
.theme-dark { background: var(--night); }
.theme-wine { background: var(--wine); }
.theme-light {
  background: var(--salt); color: var(--night);
  --muted: var(--on-light-muted); --line: rgba(27, 4, 8, .2);
  --accent: var(--night); --fill: var(--night); --fill-ink: var(--salt);
}

.section { padding-block: clamp(5rem, 10vw, 9rem); position: relative; }

/* Type -------------------------------------------------------------------- */
h1, h2 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.04; margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-h2); font-weight: 500; }
h3 { font-weight: 500; font-size: var(--step-1); line-height: 1.3; margin: 0; }

p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.muted { color: var(--muted); }
.caption { font-size: var(--step--1); color: var(--muted); margin-top: .75rem; }

.statement {
  font-family: var(--display); font-size: var(--step-3); font-weight: 500;
  letter-spacing: 0; line-height: 1.15; max-width: 26ch; margin: 0; text-wrap: balance;
}

/* Dashed underline, kept for links inside running text only */
.dash {
  text-decoration: none;
  background-image: linear-gradient(to right, var(--accent) 55%, transparent 0);
  background-size: 9px 1px; background-repeat: repeat-x; background-position: 0 100%;
  padding-bottom: .2em;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  border: 1px solid currentColor; border-radius: 0; background: none;
  text-decoration: none; font-size: var(--step--1); font-weight: 500; letter-spacing: .02em;
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.btn:not(.btn--solid) {
  background-image: linear-gradient(var(--fill), var(--fill)); background-repeat: no-repeat; background-size: 0 100%;
  transition: background-size .35s var(--ease-out), color .25s, border-color .25s;
}
.btn:not(.btn--solid):hover { background-size: 100% 100%; border-color: var(--fill); color: var(--fill-ink); }
.btn--solid { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.btn--solid:hover { background: transparent; color: inherit; border-color: currentColor; }
.btn--small { min-height: 2.75rem; padding: .45rem 1.1rem; }

/* Header ------------------------------------------------------------------ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--salt); --fill: var(--salt); --fill-ink: var(--night);
  transition: color .3s, background-color .3s, transform .35s var(--ease-out);
}
.header.is-solid { background: var(--night); }
.header.on-light { color: var(--night); --fill: var(--night); --fill-ink: var(--salt); }
.header.on-light.is-solid { background: var(--salt); box-shadow: 0 1px 0 rgba(27,4,8,.12); }
.header.is-hidden { transform: translateY(-110%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 2.75rem; margin-right: -.3em;
  font-family: var(--display); font-size: 1.25rem; font-weight: 500; letter-spacing: .3em;
  text-decoration: none; transition: opacity .3s;
}
.header__right { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.header__book { transition: opacity .3s, background-size .35s var(--ease-out), color .25s, border-color .25s; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 2.75rem;
  background: none; border: 1px solid currentColor; cursor: pointer; padding: 0;
  font-size: var(--step--1); font-weight: 500;
}
.menu-toggle__lines { width: 26px; height: 9px; position: relative; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .3s var(--ease);
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { bottom: 0; }
.menu-open .menu-toggle__lines::before { transform: translateY(4px) rotate(18deg); }
.menu-open .menu-toggle__lines::after { transform: translateY(-4px) rotate(-18deg); }
.menu-open .header { color: var(--salt); background: transparent; box-shadow: none; }

/* Home: the header stays empty on the first screen, the actions sit in the hero */
.page-home .header:not(.is-solid) .wordmark { opacity: 0; pointer-events: none; }
.page-home .header:not(.is-solid) .header__book { opacity: 0; visibility: hidden; }
.menu-open .header .wordmark { opacity: 1 !important; pointer-events: auto !important; }
.page-home:not(.menu-open) .header:not(.is-solid) .menu-toggle {
  background: rgba(27, 4, 8, .72); border-color: rgba(241, 234, 223, .75);
}

/* Full-screen navigation ----------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  background: var(--night); color: var(--salt);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .45s var(--ease), visibility 0s .45s;
  --accent: var(--salt); --muted: var(--on-dark-muted);
}
.menu-open .overlay { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
.overlay:focus { outline: none; }
.overlay__grid {
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; gap: var(--gutter);
  padding: calc(6rem + env(safe-area-inset-top, 0px)) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.overlay__nav ul { list-style: none; margin: 0; padding: 0; }
.overlay__nav li { overflow: hidden; border-bottom: 1px solid rgba(241, 234, 223, .2); }
.overlay__nav li:first-child { border-top: 1px solid rgba(241, 234, 223, .2); }
.overlay__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; text-decoration: none;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.7rem, 8vw, 3.5rem); line-height: 1.15; font-weight: 500; letter-spacing: .04em;
  transform: translateY(105%); transition: transform .45s var(--ease-out);
}
.menu-open .overlay__nav a { transform: none; }
.overlay__nav li:nth-child(2) a { transition-delay: .04s; }
.overlay__nav li:nth-child(3) a { transition-delay: .08s; }
.overlay__nav a[aria-current="page"]::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; flex: none; }
.overlay__foot { display: flex; flex-direction: column; font-size: var(--step--1); color: var(--on-dark-muted); }
.overlay__foot > * { display: flex; align-items: center; min-height: 2.75rem; }
.overlay__foot a { color: var(--salt); }
.overlay__photo { display: none; }

/* wide screens: pages on the left, the room and the contacts on the right */
@media (min-width: 961px) {
  .overlay__grid {
    height: 100%; min-height: 560px; max-width: var(--max); margin-inline: auto;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: minmax(0, 1fr) auto; gap: 1.5rem clamp(3rem, 7vw, 7rem);
  }
  .overlay__nav { grid-row: 1 / -1; align-self: center; }
  .overlay__nav a { font-size: clamp(2.5rem, min(5vw, 9vh), 4.75rem); }
  .overlay__nav a:hover { opacity: .65; }
  .overlay__photo { display: block; margin: 0; min-height: 0; overflow: hidden; }
  .overlay__photo img { width: 100%; height: 100%; object-fit: cover; }
}

/* Preloader --------------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 150; background: var(--night); color: var(--salt); display: grid; place-items: center; }
.loader__word { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 9vw, 7rem); letter-spacing: .2em; margin-right: -.2em; display: flex; overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(110%); }
.no-loader .loader { display: none; }

/* Home hero --------------------------------------------------------------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: contents; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
@media (min-aspect-ratio: 1/1) { .hero__media img { object-position: 50% 50%; } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* a soft shade under the name and button, then the top and bottom fade */
  background:
    radial-gradient(ellipse 75% 62% at 8% 72%, rgba(27,4,8,.7) 0%, rgba(27,4,8,.5) 42%, rgba(27,4,8,0) 100%),
    linear-gradient(180deg, rgba(27,4,8,.6) 0%, rgba(27,4,8,0) 22%, rgba(27,4,8,0) 50%, rgba(27,4,8,.72) 100%);
}
.hero__content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: clamp(1rem, 2.5vh, 1.5rem); padding-bottom: clamp(5.5rem, 13vh, 8rem);
}
.hero__name {
  font-weight: 500; font-size: clamp(3rem, 11vw, 10rem); line-height: 1; letter-spacing: .24em; margin: 0 -.24em 0 0;
  white-space: nowrap; overflow: hidden; padding-block: .06em;
  text-shadow: 0 0 .12em rgba(27,4,8,.9), 0 .02em .3em rgba(27,4,8,.75);
}
.hero__name span { display: inline-block; }
.hero__intro { max-width: 30ch; font-size: var(--step-1); line-height: 1.5; margin: 0; text-wrap: balance; text-shadow: 0 1px 12px rgba(27,4,8,.8); }
.hero__actions { width: 12.5rem; }
.hero__actions .btn { width: 100%; background-color: rgba(27, 4, 8, .55); }
.hero__meta {
  position: absolute; inset: auto 0 0; z-index: 2;
  display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap;
  font-size: var(--step--1); color: var(--on-dark-muted); padding-block: 0 clamp(1.25rem, 3vw, 2rem);
}

/* Motion (JS adds .is-in) ------------------------------------------------- */
.reveal-img { overflow: hidden; position: relative; }
.reveal-img > img { width: 100%; height: 100%; object-fit: cover; }
/* text surfaces out of a soft blur */
.js .lines .line, .js .lines .line > span { display: block; }
.js .lines .line > span, .js .stagger > li, .js .rise { opacity: 0; filter: blur(10px); transform: translateY(16px); }
.js .lines.is-in .line > span, .js .stagger > li.is-in, .js .rise.is-in {
  opacity: 1; filter: none; transform: none;
  transition: opacity .9s var(--ease-out), filter .9s var(--ease-out), transform .9s var(--ease-out);
}
.js .lines.is-in .line:nth-child(2) > span { transition-delay: .12s; }
.js .lines.is-in .line:nth-child(3) > span { transition-delay: .24s; }

/* Home: intro ------------------------------------------------------------- */
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.intro__text { grid-column: 1 / 8; display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }
.intro__note { color: var(--muted); max-width: 34ch; margin: 0; }
.intro__photo { grid-column: 9 / 13; margin: 0; }
.intro__photo .reveal-img { aspect-ratio: 1122 / 1402; }

/* Home: three dishes, same frame ------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
.card .reveal-img { aspect-ratio: 2 / 3; margin-bottom: 1.25rem; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; max-width: 34ch; }
.cards__foot .dash { display: inline-block; padding-block: .7rem .2rem; }
.cards__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Home: the evening, a soft static staircase ------------------------------ */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.moment:nth-child(2) { margin-top: 2.5rem; }
.moment:nth-child(3) { margin-top: 5rem; }
.moment .reveal-img { aspect-ratio: 2 / 3; margin-bottom: 1.5rem; }
.moment__time { display: block; font-family: var(--display); font-weight: 500; font-size: var(--step-3); line-height: 1; margin-bottom: .9rem; }
.moment h3 { margin-bottom: .35rem; }
.moment p { color: var(--muted); margin: 0; max-width: 34ch; }

/* Closing blocks ---------------------------------------------------------- */
/* the facade section takes the photo's proportions */
.cta { position: relative; overflow: hidden; display: grid; align-items: end; aspect-ratio: 1448 / 1086; }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(27,4,8,.9) 0%, rgba(27,4,8,.55) 40%, rgba(27,4,8,.05) 75%); }
.cta .wrap { position: relative; z-index: 2; display: grid; justify-items: start; gap: 1.75rem; padding-block: 8rem clamp(3rem, 7vw, 6rem); }
.cta h2 { font-size: clamp(2rem, 5.6vw, 5.25rem); }
.cta p { margin: 0; color: var(--on-dark-muted); }
/* closing buttons: same outlined look as the one on the first screen */
.cta .btn, .closing__body .btn { min-width: 12.5rem; }
.cta .btn { background-color: rgba(27, 4, 8, .55); }

.closing__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.closing__grid h2 { grid-column: 1 / 8; }
.closing__body { grid-column: 8 / 13; }
.closing__body p { color: var(--muted); }

/* Footer ------------------------------------------------------------------ */
.footer { padding-block: clamp(4rem, 8vw, 6rem) calc(2rem + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem var(--gutter); }
.footer h3 { font-size: var(--step--1); color: var(--muted); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer a { text-decoration: none; }
.footer a:hover { opacity: .6; }
.footer__word { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; letter-spacing: .25em; line-height: 1; margin-bottom: 1.25rem; }
.footer address { font-style: normal; }
.footer__base { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--step--1); color: var(--muted); }

/* Menu page --------------------------------------------------------------- */
/* one centred dark block: title, line of text, section links */
.menu-head { text-align: center; padding-block: calc(var(--hh) + clamp(2rem, 5vw, 3.5rem)) clamp(1rem, 2vw, 1.5rem); }
.menu-head h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.menu-head p { color: var(--muted); margin: 1rem auto 0; max-width: 52ch; }
/* the header stays dark on this page, so it never stripes against the links */
.page-menu .header.on-light { color: var(--salt); --fill: var(--salt); --fill-ink: var(--night); }
.page-menu .header.on-light.is-solid { background: var(--night); box-shadow: none; }

.subnav { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--salt); border-bottom: 1px solid rgba(241,234,223,.18); transition: top .35s var(--ease-out); }
.header-shown .subnav { top: var(--hh); }
.subnav ul { list-style: none; margin: 0 auto; padding: 0; width: max-content; max-width: 100%; display: flex; gap: clamp(1.25rem, 4vw, 3rem); overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 1.1rem 0; text-decoration: none; white-space: nowrap; font-size: var(--step--1); font-weight: 500; border-bottom: 2px solid transparent; }
.subnav a.is-active { border-bottom-color: currentColor; }

/* four sections built the same way: one photo, one list, sides alternate */
.course { padding-block: clamp(3.5rem, 7vw, 6rem); scroll-margin-top: 3.5rem; }
.course__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.course__photo {
  position: sticky; top: calc(var(--hh) + 5rem); justify-self: center; margin: 0;
  width: min(100%, 34rem, max(20rem, calc((100svh - 11rem) * .8))); aspect-ratio: 4 / 5;
}
.course__photo img { width: 100%; height: 100%; object-fit: cover; }
.course--flip .course__photo { order: 2; }
.course__intro { color: var(--muted); margin: 1.25rem 0 2rem; max-width: 46ch; }

.dishlist { list-style: none; margin: 0; padding: 0; }
.dishlist li { padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.dishlist li:first-child { border-top: 1px solid var(--line); }
.dishlist p { margin: .35rem 0 0; color: var(--muted); max-width: 56ch; }
.dishrow { display: flex; align-items: baseline; gap: 1rem; }
.dishrow__name { font-size: var(--step-1); font-weight: 500; line-height: 1.3; }
.dishrow__leader { flex: 1; border-bottom: 1px dashed var(--line); transform: translateY(-.3em); min-width: 1.5rem; }
.dishrow__price { font-size: var(--step-1); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { font-size: var(--step--1); color: var(--muted); margin-top: 2rem; max-width: 60ch; }

/* Reservations ------------------------------------------------------------ */
/* the photo column is one screen tall and stays put; the shot is never cropped */
.book { display: grid; grid-template-columns: min(75svh, 46%) minmax(0, 1fr); }
.book .btn { white-space: nowrap; }
.hours td:last-child { white-space: nowrap; }
.book__photo { position: sticky; top: 0; height: 100svh; overflow: hidden; align-self: start; }
.book__photo img { width: 100%; height: 100%; object-fit: contain; }
.book__panel { padding: 7rem clamp(1.25rem, 5vw, 5rem) 6rem; max-width: 54rem; min-width: 0; }
.book__panel h1 { font-size: var(--step-3); }
.book__lead { color: var(--muted); margin: 1rem 0 2.5rem; max-width: 46ch; }

.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem var(--gutter); }
.field { display: grid; gap: .5rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend, .field__label { font-size: var(--step--1); color: var(--muted); padding: 0; }
.field legend { margin-bottom: .75rem; }
.field__label { margin-bottom: .25rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--night); background: transparent;
  border: 0; border-bottom: 1px solid rgba(27,4,8,.45); border-radius: 0;
  padding: .7rem 0; min-height: 3rem; width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--night) 50%), linear-gradient(135deg, var(--night) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--night); }
.field.has-error input, .field.has-error select { border-bottom-color: var(--error); }
.field__error { font-size: var(--step--1); color: var(--error); min-height: 1.2em; }

.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.days__head { font-size: var(--step--1); color: var(--muted); text-align: center; }
.day { min-width: 0; min-height: 2.9rem; padding: .4rem 0; border: 1px solid rgba(27,4,8,.35); background: none; color: var(--night); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.day:hover:not(:disabled) { border-color: var(--night); }
.day[aria-pressed="true"] { background: var(--night); color: var(--salt); border-color: var(--night); }
.day:disabled { cursor: default; border-color: transparent; background: rgba(27,4,8,.05); color: rgba(27,4,8,.38); text-decoration: line-through; }
.has-error .days .day:not(:disabled), .has-error .seatings label { border-color: var(--error); }

.party { display: flex; flex-wrap: wrap; }
.field .party input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; }
.party label {
  width: 3.25rem; height: 3.25rem; margin-left: -1px;
  border: 1px solid rgba(27,4,8,.35);
  display: grid; place-items: center; cursor: pointer; color: var(--night); font-size: var(--step-0);
  transition: background .2s, color .2s;
}
.party label:first-of-type { margin-left: 0; }
.party input:checked + label { background: var(--night); color: var(--salt); border-color: var(--night); position: relative; }
.party input:focus-visible + label { outline: 2px solid var(--night); outline-offset: 3px; position: relative; }
.seatings label { width: 8rem; }
.form__done { grid-column: 1 / -1; }
.form__done h2 { margin-bottom: 1.5rem; }

.info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.info > :first-child { grid-column: 1 / -1; }
.info h3 { font-size: var(--step--1); color: var(--muted); margin-bottom: .75rem; }
.info p { margin: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:last-child { text-align: right; padding-left: 1rem; }

@media (min-width: 961px) {
  .page-book .header { position: absolute; background: transparent !important; box-shadow: none !important; transform: none !important; }
  html:not(.menu-open) .page-book .header__right { color: var(--night); }
  .page-book .header__book { display: none; }
  .page-book .wordmark { color: var(--salt); }
}

/* Booking bar pinned to the bottom of a phone screen ---------------------- */
.bookbar { display: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .intro__text, .intro__photo, .closing__grid h2, .closing__body { grid-column: 1 / -1; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .moments { grid-template-columns: minmax(0, 1fr); gap: 4rem; }
  .moment:nth-child(2), .moment:nth-child(3) { margin-top: 0; }

  /* on a phone the facade stands whole above the text */
  .cta { aspect-ratio: auto; display: block; }
  .cta::after { content: none; }
  .cta__media { position: static; aspect-ratio: 1448 / 1086; }
  .cta .wrap { padding-block: 2.5rem 4rem; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .footer ul { gap: 0; }
  .footer li { display: flex; align-items: center; min-height: 2.75rem; }
  .footer li a { display: flex; align-items: center; min-height: 2.75rem; }

  .course__grid { grid-template-columns: minmax(0, 1fr); }
  .course__photo { position: static; width: min(100%, 34rem); }
  .course--flip .course__photo { order: 0; }

  .book { display: block; }
  .book__photo { position: relative; height: auto; aspect-ratio: 1086 / 1448; }
  .book__panel { padding-top: 3rem; }
  .book__panel .dash { display: inline-block; padding-block: .6rem .2rem; }
}

@media (max-width: 640px) {
  .hero::after { background:
    radial-gradient(ellipse 120% 40% at 20% 76%, rgba(27,4,8,.69) 0%, rgba(27,4,8,.46) 50%, rgba(27,4,8,0) 100%),
    linear-gradient(180deg, rgba(27,4,8,.6) 0%, rgba(27,4,8,0) 22%, rgba(27,4,8,0) 50%, rgba(27,4,8,.72) 100%); }
  .form, .info { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__intro { font-size: var(--step-0); }
  .day { font-size: .8rem; }
  .party:not(.seatings) label { width: auto; flex: 1; min-width: 2.75rem; }

  /* the booking button moves from the header to a bar at the bottom */
  .header__book { display: none; }
  .bookbar {
    display: block; position: fixed; inset: auto 0 0; z-index: 70;
    padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--night); border-top: 1px solid rgba(241,234,223,.2);
    --fill: var(--salt); --fill-ink: var(--night); color: var(--salt);
    transform: translateY(100%); visibility: hidden;
    transition: transform .3s var(--ease-out), visibility 0s .3s;
  }
  .bookbar.is-shown { transform: none; visibility: visible; transition: transform .3s var(--ease-out); }
  .menu-open .bookbar { display: none; }
  .bookbar .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
  .js .lines .line > span, .js .rise { opacity: 1; filter: none; transform: none; }
  .js .stagger > li { opacity: 1; filter: none; transform: none; }
  .loader { display: none; }
}

/* home first screen: the navigation button sits a little lower, away from the edge */
.page-home .menu-toggle { transition: transform .3s var(--ease-out); }
html:not(.menu-open) .page-home .header:not(.is-solid) .menu-toggle { transform: translateY(.9rem); }

/* large screens: a more compact block that sits lower, so the room shows more */
@media (min-width: 961px) {
  .hero__name { font-size: clamp(4.5rem, min(8.2vw, 15vh), 7.5rem); }
  .hero__content { gap: 1rem; padding-bottom: clamp(5.25rem, 11vh, 7rem); }
}

/* home intro: facts under the text */
.facts { margin: 0; max-width: 36rem; border-top: 1px solid var(--line); }
.facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1.5rem; padding-block: .95rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.intro__caption { margin: 0; display: none; }

/* home intro on wide screens: text on the left half, photo bleeding to the edges on the right */
@media (min-width: 961px) {
  .intro { padding-block: 0; }
  .intro__caption { display: block; }
  .intro__figcaption { display: none; }
  .intro .intro__grid { max-width: none; padding-inline: 0; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; min-height: min(62.5vw, 100svh); }
  .intro__text { grid-column: 1; justify-content: center; gap: clamp(1.5rem, 3.5svh, 2.5rem); padding: 5.5rem clamp(3rem, 5vw, 6rem) 3rem var(--gutter); }
  .intro__text .statement { font-size: clamp(2.4rem, min(4.5vw, 7.4svh), 5rem); line-height: 1.1; max-width: 19ch; }
  .intro__note { font-size: var(--step-1); }
  .intro__photo { grid-column: 2; position: relative; }
  .intro__photo .reveal-img { position: absolute; inset: 0; aspect-ratio: auto; }
}

/* reservations: a compact form */
.book__panel { padding-top: 5.5rem; }
.book__lead { margin: .75rem 0 1.75rem; }
.form { gap: 1.1rem var(--gutter); }
.field { gap: .35rem; align-content: start; }
.field legend { margin-bottom: .35rem; float: left; width: 100%; }
.field legend + .party { clear: both; }
.field input, .field select { min-height: 2.6rem; padding-block: .45rem; }
.field textarea { min-height: 3.75rem; padding-block: .45rem; }
.field__error:empty { display: none; }
.days { gap: .3rem; }
.day { min-height: 2.5rem; padding-block: .2rem; }
.party { flex-wrap: nowrap; }
.party label, .seatings label { width: auto; flex: 1; min-width: 0; height: 2.75rem; white-space: nowrap; }
.form__hint { margin: -.4rem 0 0; max-width: none; }
.info { margin-top: 3rem; padding-top: 2rem; gap: 2rem; }
@media (max-width: 960px) {
  .book__panel { padding-top: 2.5rem; }
  .day { min-height: 2.75rem; }
}

/* alignment: every page shares the same edges and the same middle column line */
.moment:nth-child(2), .moment:nth-child(3) { margin-top: 0; }
.info { column-gap: var(--gutter); }

@media (min-width: 961px) {
  /* intro text starts on the same line as every other block, also on very wide screens */
  .intro__text { padding-left: max(var(--gutter), calc(100% - var(--max) / 2 + var(--gutter))); }

  /* menu: photos reach the outer edges of the page grid */
  .course__photo { top: calc(var(--hh) + 1.5rem); justify-self: start; width: min(100%, max(20rem, calc((100svh - 8rem) * .8))); }
  .course--flip .course__photo { justify-self: end; }
  .closing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .closing__grid h2 { grid-column: 1; }
  .closing__body { grid-column: 2; }

  /* reservations: no bars around the photo, form ends on the same line as the menu button */
  .book { grid-template-columns: min(75svh, 50%) minmax(0, 1fr); }
  .book__panel { max-width: none; padding-right: var(--gutter); }
  .page-book .header__inner { max-width: none; }
}

/* footer: the second column starts on the same line as the right-hand column above */
@media (min-width: 1260px) {
  .footer__grid { grid-template-columns: calc(50% + min(3vw, 3rem) - 1.5rem) auto auto 1fr; column-gap: 1.5rem; }
  .footer__grid > :last-child { justify-self: end; }
  .footer__grid li { white-space: nowrap; font-size: var(--step--1); }
}

/* home: the name sits a little lower, closer to the line under it */
@media (min-width: 961px) {
  .hero__name { margin-bottom: -1rem; }
}

[hidden] { display: none !important; }

/* booking button inside the open navigation */
.overlay__foot > .overlay__book { justify-content: center; min-height: 3.25rem; margin-bottom: .75rem; color: var(--salt); --fill: var(--salt); --fill-ink: var(--night); }
.overlay__foot > .overlay__book:hover { color: var(--night); }

/* home first screen: booking and menu side by side */
.hero__actions { display: flex; gap: .75rem; width: min(100%, 25.75rem); }
.hero__actions .btn { flex: 1; width: auto; }

/* the confirmation keeps some air above it when the page jumps to it */
.form__done { scroll-margin-top: 8rem; }

/* home: a deeper shadow under the name. A filter is used because the clipped letter reveal would cut off a wide text-shadow */
.hero__name { filter: drop-shadow(0 2px 4px rgba(27,4,8,.85)) drop-shadow(0 6px 22px rgba(27,4,8,.8)); }

/* booking page on phones and tablets: the header sits on the dark photo, so it stays light until it turns solid */
@media (max-width: 960px) {
  .page-book .header:not(.is-solid) { color: var(--salt); --fill: var(--salt); --fill-ink: var(--night); }
  .page-book .header:not(.is-solid)::before { content: ""; position: absolute; inset: 0 0 -1.5rem; z-index: -1; background: linear-gradient(rgba(27,4,8,.7), rgba(27,4,8,0)); pointer-events: none; }
}
/* no "Book a table" button on the booking page itself */
.page-book .header__book { display: none; }

/* tablets: dishes and evening photos three in a row, not one screen-high photo after another */
@media (min-width: 641px) and (max-width: 960px) {
  .cards, .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

/* narrow phones: both buttons stay on one line */
.hero__actions .btn { white-space: nowrap; padding-inline: .75rem; }

/* phone held sideways: the whole first screen fits */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 340px; }
  .hero__content { gap: .6rem; padding-bottom: 3.25rem; }
  .hero__name { font-size: clamp(2.6rem, 13vh, 4rem); margin-bottom: 0; }
  .hero__intro { max-width: 46ch; font-size: var(--step-0); }
  .hero__actions .btn { min-height: 2.75rem; padding-block: .4rem; }
  .hero__meta { padding-bottom: .75rem; }
}

/* very short upright phones: no forced height, so the address stays on the first screen */
@media (max-width: 640px) and (max-height: 619px) {
  .hero { min-height: 500px; }
  .hero__content { padding-bottom: 5rem; }
}

/* lighter text reveal: a smaller blur on computers, none on phones, where blur is what stutters */
.js .lines .line > span, .js .stagger > li, .js .rise { filter: blur(6px); }
.js .lines.is-in .line > span, .js .stagger > li.is-in, .js .rise.is-in { filter: none; }
@media (max-width: 960px) {
  .js .lines .line > span, .js .stagger > li, .js .rise { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .lines .line > span, .js .stagger > li, .js .rise { filter: none; }
}
