/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5
 * macrostructure: custom ledger + day chapter · tone: austere hospitality
 * theme: custom (vibe: dusk sand, ink navy, one cobalt, porch gold)
 * paper oklch(94.2% 0.022 82) · accent gold oklch(72% 0.12 82) used once
 * cobalt oklch(42% 0.11 258) used once on the 450-foot fact
 * display: Libre Bodoni · body: Public Sans
 * axes: light paper / high-contrast serif / warm gold
 * nav: masthead wordmark + section line · footer: single address line
 * enrichment: real dusk photography · motion: day-chapter entry only
 * book bar: normal flow at the hero foot, not sticky
 */

@font-face {
  font-family: "Libre Bodoni";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/libre-bodoni-400.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Bodoni";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/libre-bodoni-700.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/public-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/public-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/public-sans-600.woff2") format("woff2");
}

:root {
  --color-paper: oklch(94.2% 0.022 82);
  --color-paper-2: oklch(90.4% 0.028 78);
  --color-paper-3: oklch(87.2% 0.032 74);
  --color-ink: oklch(22% 0.046 262);
  --color-ink-2: oklch(32% 0.04 262);
  --color-muted: oklch(38% 0.03 70);
  --color-rule: oklch(82% 0.028 78);
  --color-gold: oklch(72% 0.12 82);
  --color-gold-deep: oklch(64% 0.12 78);
  --color-cobalt: oklch(42% 0.11 258);
  --color-on-ink: oklch(96.5% 0.016 82);
  --color-focus: oklch(28% 0.07 262);
  --color-scrim: oklch(18% 0.04 262 / 0.84);
  --color-scrim-mid: oklch(18% 0.04 262 / 0.46);
  --color-scrim-clear: oklch(18% 0.04 262 / 0);
  --color-backdrop: oklch(16% 0.04 262 / 0.72);
  --color-lightbox: oklch(16% 0.035 262);
  --color-lightbox-line: oklch(40% 0.02 258);
  --color-lightbox-control: oklch(55% 0.02 258);
  --color-proof-line: oklch(96.5% 0.016 82 / 0.5);
  --color-proof-meta: oklch(96.5% 0.016 82 / 0.86);
  --font-display: "Libre Bodoni", "Palatino Linotype", Palatino, serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;
  --space-2xl: 6.5rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --text-2xl: clamp(1.85rem, 1.2rem + 2.2vw, 3.4rem);
  --text-display: clamp(2.15rem, 1.1rem + 3.6vw, 5.4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 150ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --header: 3.75rem;
  --radius-tight: 2px;
  --radius-dialog: 0.5rem;
  --radius-panel: 1.25rem;
  --page: 76rem;
  --measure: 62ch;
  --z-header: 5;
  --z-menu: 6;
  --z-skip: 20;
}

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

html {
  overflow-x: clip;
  color-scheme: light;
  scroll-padding-top: calc(var(--header) + env(safe-area-inset-top) + 0.75rem);
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

a {
  color: var(--color-ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-ink-2);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--color-gold);
  color: var(--color-ink);
}

.skip {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  z-index: var(--z-skip);
  padding: 0.55rem 0.8rem;
  background: var(--color-paper);
  color: var(--color-ink);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem var(--space-md);
  min-height: calc(var(--header) + env(safe-area-inset-top));
  padding: calc(env(safe-area-inset-top) + 0.55rem) var(--space-md) 0.45rem;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-rule);
}

.brand {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.15rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-place {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--color-ink);
}

.menu-btn {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-sm);
  min-height: calc(100svh - var(--header) - env(safe-area-inset-top));
  color: var(--color-on-ink);
  isolation: isolate;
}

.hero-still,
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-video {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-long) var(--ease-out);
}

.hero-video.is-playing {
  opacity: 1;
}

.hero-shade {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72%;
  background: linear-gradient(to top, var(--color-scrim), var(--color-scrim-mid) 52%, var(--color-scrim-clear));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - 2rem));
  margin-left: var(--space-md);
  min-width: 0;
  padding: var(--space-sm);
  background: var(--color-scrim);
}

.hero h1 {
  max-width: 11ch;
  font-size: var(--text-display);
  font-weight: 700;
  color: var(--color-on-ink);
}

.proof {
  max-width: 36rem;
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-proof-line);
  font-style: normal;
}

.proof p {
  font-size: var(--text-sm);
  line-height: 1.45;
}

.proof footer {
  margin-top: 0.2rem;
  color: var(--color-proof-meta);
  font-size: var(--text-sm);
}

.hero-note {
  max-width: 34rem;
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.book-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xs);
  align-items: end;
  margin: 0 var(--space-sm) max(var(--space-sm), env(safe-area-inset-bottom));
  padding: var(--space-sm);
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: var(--radius-tight);
}

.book-bar label,
.stay-form label {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.book-bar input,
.stay-form input,
.stay-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-tight);
  background: var(--color-paper);
  color: var(--color-ink);
  font: 400 1rem/1.3 var(--font-body);
}

.stay-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.book-bar input:focus-visible,
.stay-form input:focus-visible,
.stay-form textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-ink);
}

.book-bar input:user-invalid,
.stay-form input:user-invalid {
  border-color: var(--color-cobalt);
}

.book-bar button,
.stay-form button,
.show-more,
.menu-btn,
.gallery-dialog-bar button,
.lightbox-bar button {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font: 600 0.95rem/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.book-bar button {
  background: var(--color-gold);
  border-color: var(--color-gold-deep);
  color: var(--color-ink);
}

.book-bar button:disabled,
.stay-form button:disabled,
.show-more:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.book-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.book-bar label:last-of-type,
.book-bar button,
.book-bar a {
  grid-column: 1 / -1;
}

@media (hover: hover) and (pointer: fine) {
  .book-bar button:hover {
    background: var(--color-gold-deep);
  }

  .stay-form button:hover {
    background: var(--color-ink-2);
  }

  .menu-btn:hover,
  .show-more:hover,
  .gallery-dialog-bar button:hover,
  .lightbox-bar button:hover {
    background: var(--color-paper-2);
  }
}

.book-bar button:active,
.stay-form button:active,
.show-more:active,
.menu-btn:active,
.gallery-dialog-bar button:active,
.lightbox-bar button:active {
  transform: translateY(1px);
}

.facts,
.sleep,
.hosts,
.stay {
  width: min(var(--page), calc(100% - 2rem));
  margin: 0 auto;
}

.facts {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.facts h2,
.sleep h2,
.gallery-head h2,
.film h2,
.tour h2,
.hosts h2,
.stay h2 {
  max-width: 16ch;
  font-size: var(--text-2xl);
}

.facts p,
.sleep p,
.beat-copy p,
.film p,
.tour p,
.hosts p,
.stay p {
  max-width: var(--measure);
}

.facts-copy p + p,
.hosts-intro p + p,
.stay-copy p + p {
  margin-top: var(--space-sm);
}

.facts-copy > p,
.hosts-intro > p,
.stay-copy > p,
.beat-copy > p,
.film-copy > p,
.tour > p {
  margin-top: var(--space-sm);
  color: var(--color-ink-2);
}

.fact-list,
.floors,
.places,
.letters,
.rules {
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.fact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
}

.fact-list li {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-rule);
}

.fact-num {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.fact-distance .fact-num {
  color: var(--color-cobalt);
}

.fact-list strong {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  font-style: normal;
}

.fact-list li span:last-child {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.dining-still,
.room-still,
.beat-figure {
  margin: 0;
  min-width: 0;
}

.dining-still img,
.room-still img {
  display: block;
  width: 100%;
  height: 18rem;
  object-fit: cover;
  background: var(--color-paper-2);
}

.dining-still figcaption,
.room-still figcaption,
.beat-figure figcaption {
  margin-top: var(--space-2xs);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.sleep {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.floors li {
  width: 100%;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-rule);
}

.floors li:last-child {
  border-bottom: 1px solid var(--color-rule);
}

.floors h3 {
  font-size: var(--text-md);
}

.floors h3 span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
}

.floors p,
.cap {
  margin-top: var(--space-2xs);
  color: var(--color-ink-2);
}

.room-still img {
  height: 22rem;
  object-position: center 40%;
}

.day {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-2xl);
}

.beat {
  display: grid;
  gap: var(--space-sm);
  width: min(var(--page), calc(100% - 2rem));
  margin: 0 auto;
  min-width: 0;
}

.beat-figure img {
  display: block;
  width: 100%;
  height: min(58vh, 28rem);
  object-fit: cover;
  background: var(--color-paper-3);
}

.beat-copy {
  min-width: 0;
  padding: var(--space-md);
  background: var(--color-paper);
}

.beat-copy h2 {
  font-size: var(--text-2xl);
}

.places li + li {
  margin-top: 0.4rem;
}

.places {
  margin-top: var(--space-sm);
  color: var(--color-ink-2);
}

.gallery {
  padding: 0 0 var(--space-2xl);
}

.gallery-head {
  width: min(28rem, calc(100% - 2rem));
  margin: 0 0 var(--space-md) auto;
  padding-right: var(--space-sm);
}

.gallery-note {
  margin-top: var(--space-2xs);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 30vw 30vw 22vw;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mosaic li:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.mosaic li:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.mosaic li:nth-child(3) {
  grid-column: 4;
  grid-row: 1;
}

.mosaic li:nth-child(4) {
  grid-column: 3 / span 2;
  grid-row: 2;
}

.mosaic li:nth-child(5) { grid-column: 1; grid-row: 3; }
.mosaic li:nth-child(6) { grid-column: 2; grid-row: 3; }
.mosaic li:nth-child(7) { grid-column: 3; grid-row: 3; }
.mosaic li:nth-child(8) { grid-column: 4; grid-row: 3; }

.frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: var(--color-paper-3);
  cursor: pointer;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .frame:hover img {
    opacity: 0.9;
  }
}

.show-more {
  display: inline-flex;
  align-items: center;
  margin: var(--space-md) var(--space-sm) 0 auto;
  background: transparent;
  color: var(--color-ink);
}

.gallery .show-more {
  margin-right: var(--space-sm);
  float: right;
}

.gallery::after {
  content: "";
  display: block;
  clear: both;
}

.film {
  display: grid;
  gap: var(--space-md);
  align-items: end;
  padding: var(--space-xl) var(--space-sm) var(--space-lg);
  background: var(--color-paper-2);
}

.film-video {
  display: block;
  width: 100%;
  background: var(--color-paper-3);
  aspect-ratio: 854 / 480;
}

.tour {
  width: min(62rem, calc(100% - 2rem));
  margin: 0 0 0 auto;
  padding: var(--space-2xl) var(--space-sm) var(--space-xl) 0;
}

.tour-frame {
  display: block;
  width: 100%;
  margin-top: var(--space-md);
  border: 0;
  background: var(--color-paper-3);
  aspect-ratio: 16 / 9;
}

.tour-fallback {
  margin-top: var(--space-sm);
}

.tour-fallback a,
.aside-links a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  white-space: nowrap;
}

.hosts {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.camera {
  color: var(--color-ink-2);
}

.lead-note {
  max-width: 28rem;
  margin: 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-ink);
  font-style: normal;
}

.lead-note p {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
}

.lead-note footer,
.letters footer {
  margin-top: var(--space-2xs);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
}

.letters {
  display: grid;
  gap: var(--space-md);
  margin: 0;
}

.letters li {
  max-width: 38rem;
  min-width: 0;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
}

.letters li:nth-child(2) {
  margin-left: 0;
}

.stay {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-2xl);
}

.rate {
  margin-top: var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.4rem + 4vw, 4.8rem);
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.rate span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-muted);
}

.rules {
  display: grid;
  gap: 0.35rem;
  color: var(--color-ink-2);
}

.aside-links {
  display: grid;
  justify-items: start;
  gap: 0;
  margin-top: var(--space-md);
}

.stay-form {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
  min-width: 0;
  padding: var(--space-md);
  background: var(--color-paper-2);
  border-radius: var(--radius-panel);
}

.form-error {
  margin: 0;
  padding: 0.35rem 0 0.35rem 0.7rem;
  border-left: 3px solid var(--color-cobalt);
  color: var(--color-ink);
  font-weight: 600;
}

.form-error[hidden] {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem var(--space-md);
  align-items: center;
  width: min(var(--page), calc(100% - 2rem));
  margin: 0 auto;
  padding: var(--space-lg) 0 calc(var(--space-xl) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.site-footer p {
  margin: 0;
  min-width: 0;
}

.site-footer a {
  color: var(--color-ink-2);
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--color-backdrop);
}

.gallery-dialog {
  width: min(72rem, calc(100vw - 1.5rem));
  height: min(88dvh, 56rem);
  max-height: 88dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-dialog);
  background: var(--color-paper);
  color: var(--color-ink);
}

.gallery-dialog[open] {
  display: flex;
  flex-direction: column;
}

.gallery-dialog-bar,
.lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-rule);
}

.gallery-dialog-bar h2 {
  font-size: var(--text-md);
}

.gallery-dialog-bar form,
.lightbox-bar form {
  margin: 0;
}

.gallery-dialog-bar button,
.lightbox-bar button {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-rule);
}

.gallery-dialog-body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 var(--space-md) var(--space-lg);
}

.gallery-group {
  padding-top: var(--space-lg);
}

.gallery-group h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-md);
}

.popup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.popup-grid .frame {
  aspect-ratio: 4 / 3;
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-lightbox);
  color: var(--color-on-ink);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox-bar {
  border-bottom-color: var(--color-lightbox-line);
}

.lightbox-bar button {
  color: var(--color-on-ink);
  border-color: var(--color-lightbox-control);
  background: transparent;
}

.lb-count {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 5.5rem);
  margin: auto;
  object-fit: contain;
}

/* Heavy media below the fold. The stay form is excluded: content-visibility can drop off-screen controls from the accessibility tree. */
.defer-render {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 40rem;
}

@media (max-height: 700px) {
  .hero {
    gap: 0.35rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .proof,
  .hero-note {
    margin-top: 0.3rem;
  }

  .book-bar {
    padding: 0.45rem;
  }
}

@media (max-width: 19.5rem) {
  .book-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 40rem) {
  .fact-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .fact-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 52rem) {
  .beat-morning,
  .beat-afternoon {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
    align-items: end;
    gap: var(--space-md);
  }

  .beat-afternoon {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.4fr);
    align-items: center;
  }

  .beat-afternoon .beat-copy {
    background: transparent;
    padding-left: 0;
  }

  .beat-evening {
    position: relative;
    display: block;
  }

  .beat-evening .beat-figure img {
    height: min(62vh, 32rem);
  }

  .beat-evening .beat-copy {
    position: absolute;
    left: var(--space-md);
    bottom: var(--space-md);
    max-width: 22rem;
  }

  .film {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
    padding-inline: max(var(--space-md), calc((100% - var(--page)) / 2));
  }

  .hosts {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: start;
  }

  .letters li:nth-child(2) {
    margin-left: 12%;
  }

  .stay {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

@media (min-width: 64rem) {
  .facts,
  .sleep {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
    gap: var(--space-xl);
  }

  .dining-still img,
  .room-still img {
    height: 34rem;
  }

  .floors li:nth-child(1) {
    width: 78%;
  }

  .floors li:nth-child(2) {
    width: 90%;
  }

  .book-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 7rem) auto auto;
    margin-inline: var(--space-md);
  }

  .book-bar label:last-of-type,
  .book-bar button,
  .book-bar a {
    grid-column: auto;
  }

  .mosaic {
    grid-template-rows: 16rem 16rem 11rem;
  }
}

@media (max-width: 68rem) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    background: transparent;
    color: var(--color-ink);
    border-color: var(--color-rule);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: var(--z-menu);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--space-2xs) var(--space-md) var(--space-sm);
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-rule);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-place {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Rack focus for one chapter: the day at the house. Opacity and transform only. */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes day-in {
      from {
        opacity: 0;
        transform: translateY(1.25rem);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    .beat-copy {
      animation: day-in linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video {
    display: none;
  }

  .book-bar button,
  .stay-form button,
  .show-more,
  .menu-btn,
  .frame img,
  .hero-video {
    transition: none;
  }

  .book-bar button:active,
  .stay-form button:active,
  .show-more:active,
  .menu-btn:active,
  .gallery-dialog-bar button:active,
  .lightbox-bar button:active {
    transform: none;
  }
}

@supports (prefers-reduced-transparency: reduce) {
  .hero-shade {
    background: var(--color-scrim);
  }

  .site-header {
    background: var(--color-paper);
  }
}
