:root {
  --ink: #1c1916;
  --muted: #6f675f;
  --paper: #f6f1ea;
  --paper-2: #efe7dc;
  --line: rgba(28, 25, 22, 0.12);
  --dark: #141311;
  --cream: #f3ece3;
  --accent: #8d4b3a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.7rem, 4.8vw, 4.5rem); line-height: 0.92; }
h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; }

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 28px;
  background: rgba(246, 241, 234, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.word {
  font-family: var(--serif);
  font-size: 1.7rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav nav { display: flex; gap: 18px; margin-right: auto; }
.nav nav a, .text-link, .visit-links a, footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav nav a:hover, .text-link:hover, .visit-links a:hover, footer a:hover { color: var(--ink); }
.book, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease;
}
.book:hover, .button:hover { background: var(--accent); transform: translateY(-1px); }

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) 1.1fr;
  height: calc(100svh - 69px);
  min-height: 640px;
  background: var(--dark);
  color: var(--cream);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 40px 48px;
  min-height: 0;
}
.eyebrow {
  margin: 0 0 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #c8b8a6;
}
.lede { max-width: 36rem; font-size: 1.05rem; color: #ddd4c8; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.hero .text-link { color: #ddd4c8; }
.hero-photo { margin: 0; min-height: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.section { padding: 88px 28px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head p, .muted, .fine, .form-note { color: var(--muted); }
.section-head p { max-width: 28rem; margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery button {
  padding: 0;
  border: 0;
  background: #ddd4c8;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.gallery button:first-child { grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery button:hover img { transform: scale(1.045); }

.paper { background: var(--paper-2); }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 64px; }
.price-group h3 { font-size: 2rem; margin-bottom: 8px; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.price-row strong { font-weight: 500; }
.price-row span { color: var(--muted); font-size: 0.92rem; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }

.book-section { background: var(--dark); color: var(--cream); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.book-section .lede { color: #ddd4c8; }
.book-section .button { margin-top: 8px; background: var(--cream); color: var(--ink); }
.book-section .button:hover { background: white; }
.fine { margin-top: 16px; max-width: 34rem; }
.card {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #1d1b18;
  border: 1px solid rgba(243, 236, 227, 0.14);
}
.card label { display: grid; gap: 6px; font-size: 0.86rem; color: #c8b8a6; }
.card input, .card select, .card textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 236, 227, 0.28);
  outline: none;
}
.card textarea { resize: vertical; }
.form-note { min-height: 1.4em; margin: 0; }

.visit { display: grid; grid-template-columns: 1fr; }
.visit p { margin: 8px 0; }
.visit-links { display: flex; gap: 18px; margin-top: 18px; }
footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

dialog {
  width: min(920px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
}
dialog::backdrop { background: rgba(20, 19, 17, 0.82); }
dialog img { width: 100%; max-height: 86vh; object-fit: contain; }
#close-light {
  position: absolute;
  right: 0;
  top: -36px;
  background: transparent;
  color: var(--cream);
  border: 0;
  cursor: pointer;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes photo-in {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .nav { animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero.ready .hero-copy > * {
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero.ready .eyebrow { animation-delay: 0.05s; }
  .hero.ready h1 { animation-delay: 0.14s; }
  .hero.ready .lede { animation-delay: 0.26s; }
  .hero.ready .hero-actions { animation-delay: 0.4s; }
  .hero:not(.ready) .hero-copy > * { opacity: 0; }
  .hero:not(.photo) .hero-photo img { opacity: 0; }
  .hero.photo .hero-photo img { animation: photo-in 1.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-play-state: paused;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.in { animation-play-state: running; }
  .price-row { transition: background 0.35s ease; }
  .price-row:hover { background: rgba(255, 255, 255, 0.35); }
  dialog[open] { animation: fade 0.35s ease; }
}

@media (max-width: 860px) {
  .nav nav { display: none; }
  .hero, .book-grid, .prices { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 0; }
  .hero-photo { height: 68vw; min-height: 280px; }
  .hero-copy { padding: 36px 22px 28px; }
  .section { padding: 64px 22px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .section-head { display: block; }
}
