@font-face {
  font-family: Baskervville;
  src: url("assets/baskervville.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Baskervville;
  src: url("assets/baskervville-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f5efe4;
  --ink: #332117;
  --muted: #625247;
  --olive: #363e2d;
  --line: #b9aa99;
  --serif: Baskervville, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --header: 4.85rem;
  --gutter: clamp(1.4rem, 4.15vw, 5rem);
  --hero-height: clamp(28rem, 68.5svh, 61rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: var(--header);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

p, h1, h2, figure, dl, dd { margin: 0; }

h1, h2 { font-family: var(--serif); font-weight: 400; }

p { line-height: 1.65; }

.skip-link {
  position: fixed;
  inset: .75rem auto auto .75rem;
  transform: translateY(-200%);
  z-index: 10;
  padding: .7rem 1rem;
  color: var(--cream);
  background: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: .55rem clamp(1.25rem, 2.55vw, 4rem);
  background: var(--cream);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}

.wordmark {
  display: inline-block;
  font: 400 clamp(1.35rem, 2.45vw, 2.45rem)/1.1 var(--serif);
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4.15rem);
  font: 1.2rem/1.15 var(--serif);
}

.header nav a:not(.outline):hover, .film-credit:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .48em 1.55em;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  font: inherit;
  white-space: nowrap;
  transition: color 160ms, background-color 160ms;
}

a.outline:hover { color: var(--cream); background: var(--ink); border-color: var(--ink); }

.arrival { position: relative; --travel: 0px; }

.arrival[data-motion="on"] { --travel: clamp(37rem, 111svh, 74rem); }

.arrival[data-motion="on"] .stage { position: sticky; top: var(--header); }

.runway { height: var(--travel); }

.room-anchor {
  position: absolute;
  top: calc(var(--hero-height) + var(--travel));
  left: 0;
}

.hero {
  height: var(--hero-height);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #554233;
  color: #fff9ef;
}

.hero-media, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media { object-fit: cover; object-position: 50% 51%; }

.hero-media:is(video, canvas):not([data-visible]) { visibility: hidden; }

.hero-shade {
  background: linear-gradient(90deg, rgb(35 19 9 / .76) 0%, rgb(40 22 11 / .52) 29%, rgb(38 22 11 / .08) 63%, transparent 84%);
  opacity: var(--intro-opacity, 1);
}

.hero-copy {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  opacity: var(--intro-opacity, 1);
}

.hero:focus-within .hero-shade, .hero-copy:focus-within { opacity: 1; }

.hero h1 {
  font-size: clamp(4.1rem, 6.15vw, 7.7rem);
  line-height: .95;
  letter-spacing: -.045em;
}

.enter {
  display: grid;
  justify-items: start;
  width: fit-content;
  gap: .95rem;
  margin-top: clamp(2.5rem, 5.15vw, 5rem);
  padding-top: .95rem;
  border-top: 1px solid currentColor;
  font: 1.28rem/1.3 var(--serif);
}

.enter img { filter: invert(1); transition: transform 160ms ease; }
.enter:hover img { transform: translateY(.22rem); }
.scroll-label { display: none; }
[data-motion="on"] .scroll-label { display: inline; }
[data-motion="on"] .still-label { display: none; }

.room {
  display: grid;
  grid-template-columns: 35.5% 1fr;
  align-items: stretch;
  padding-top: 1.45rem;
}

.room-copy {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  padding: 3.8rem clamp(1.5rem, 3.2vw, 3.8rem) 4.4rem var(--gutter);
}

.room h2, .menu-section h2, .book-section h2 {
  font-size: clamp(3.3rem, 5.18vw, 6.2rem);
  line-height: .93;
  letter-spacing: -.05em;
}

.room p {
  color: var(--muted);
  max-width: 28ch;
}

.room > img {
  height: 100%;
  max-height: 38rem;
  min-height: 28rem;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.menu-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 9rem);
  background: var(--olive);
  color: var(--cream);
  margin-top: clamp(3rem, 7vw, 7rem);
  padding: clamp(3rem, 7.5vw, 8rem) max(var(--gutter), calc((100vw - 91rem) / 2));
}

.menu-photo img { width: 100%; height: auto; }
.menu-copy { max-width: 36rem; }
.menu-copy > p { margin-top: 1.5rem; max-width: 36ch; }
.dishes { margin-top: clamp(1.8rem, 4vw, 3rem); }
.dishes > div { border-top: 1px solid #9d9f8d; padding: 1rem 0; }
.dishes > div:last-child { border-bottom: 1px solid #9d9f8d; }
.dishes dt { font: 1.5rem/1.15 var(--serif); }
.dishes dd { margin-top: .35rem; color: #eee5d9; font-size: .94rem; }

.book-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(4rem, 9vw, 10rem) var(--gutter);
}

.book-section h2 { max-width: 12ch; }
.book-section p { margin-top: 1.2rem; color: var(--muted); }
.book-action button { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.book-action p { margin-top: .55rem; font-size: .87rem; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-inline: var(--gutter);
  border-top: 1px solid var(--line);
  padding: 1.65rem 0 2rem;
}

.footer .wordmark { font-size: 1.35rem; }
.footer p, .film-credit { color: var(--muted); font-size: .86rem; }

@media (max-width: 56rem) {
  .room { grid-template-columns: 42% 1fr; }
  .room > img { min-height: 24rem; }
}

@media (max-width: 39rem) {
  :root {
    --header: 4.25rem;
    --hero-height: clamp(24rem, 65svh, 39rem);
  }

  .header { padding-inline: .9rem; gap: .65rem; }
  .header .wordmark { font-size: clamp(1rem, 4.8vw, 1.35rem); }
  .header nav { gap: clamp(.55rem, 2.5vw, 1rem); font-size: 1rem; }
  .header .outline { min-height: 2.75rem; padding-inline: .55em; }
  .header nav a:not(.outline) { display: grid; align-items: center; min-height: 2.75rem; }
  .header nav a:first-child { display: none; }

  .arrival[data-motion="on"] { --travel: clamp(29rem, 83svh, 45rem); }
  .hero-media { object-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg, rgb(35 19 9 / .73), rgb(37 20 9 / .5) 47%, rgb(37 20 9 / .1)); }
  .hero h1 { font-size: clamp(3.7rem, 13.2vw, 5.8rem); }
  .enter { font-size: 1.12rem; margin-top: 2.1rem; }

  .room { grid-template-columns: 1fr; padding-top: 0; }
  .room-copy { padding: 2.5rem var(--gutter); }
  .room p { max-width: 38ch; }
  .room > img { min-height: 0; height: auto; }
  .menu-section { grid-template-columns: 1fr; }
  .menu-photo img { max-height: 27rem; object-fit: cover; }
  .book-section { flex-direction: column; align-items: start; gap: 1.5rem; }
  .footer { align-items: start; flex-direction: column; gap: .7rem; }
}

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