:root {
  color-scheme: light;
  --ivory: #fbf8f0;
  --ink: #243c33;
  --sand: #eee8db;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--ivory); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #b37951; outline-offset: 4px; }
img { display: block; width: 100%; object-fit: cover; }
figure, h1, h2, p { margin: 0; }
h1, h2, .brand { font-family: var(--serif); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: -.05em; }
p + p { margin-top: 1rem; }
.skip { position: fixed; top: 0; left: 0; background: var(--ivory); padding: .5rem; transform: translateY(-110%); z-index: 5; }
.skip:focus { transform: none; }
.header, footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.3rem;
  padding: 1rem clamp(1rem, 5vw, 5rem);
}
.brand { font-size: clamp(1.45rem, 3vw, 2rem); text-decoration: none; }
nav { display: flex; gap: clamp(1rem, 3vw, 3rem); font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; }
.header .button { justify-self: end; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: .75rem 1.15rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: .87rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #39584c; }
.button.light { background: var(--ivory); color: var(--ink); }
.button.light:hover { background: var(--sand); }
.hero { position: relative; min-height: 37rem; display: grid; align-items: end; isolation: isolate; color: white; }
.hero img, .hero::after { position: absolute; inset: 0; height: 100%; z-index: -1; }
.hero img { object-position: 60% 57%; z-index: -2; }
.hero::after { content: ""; background: linear-gradient(15deg, #101e18e8 0%, #101e185e 42%, transparent 73%); }
.hero-copy { padding: clamp(1.4rem, 7vw, 6rem); }
.location { text-transform: uppercase; font-size: .73rem; font-weight: 650; letter-spacing: .18em; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 8.5rem); letter-spacing: -.055em; margin: .5rem 0 .8rem; }
.hero-copy > p:not(.location) { font-size: clamp(1rem, 2vw, 1.25rem); }
.hero .button, .stay .button { margin-top: 1.6rem; }
.facts { margin: 0; padding: 1rem 4vw; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; border-bottom: 1px solid #ded6c6; }
.facts li { padding: .5rem; }
.facts li + li { border-left: 1px solid #ded6c6; }
.facts strong { display: block; font: 1.75rem var(--serif); }
.section { max-width: 86rem; margin: 0 auto; padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 6vw, 6rem); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.7rem, 6vw, 6rem); align-items: center; }
.split img { aspect-ratio: 4 / 3; }
.split h2, .stay h2 { margin-bottom: 1rem; }
.text-link { display: inline-block; margin-top: 1.2rem; text-underline-offset: .25rem; }
.gallery-section { background: var(--sand); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.1rem; margin-top: 2rem; }
.gallery a { text-decoration: none; }
.gallery a:hover figcaption { text-decoration: underline; }
.gallery a:first-child { grid-column: span 2; }
.gallery img { aspect-ratio: 4 / 3; }
.gallery a:first-child img { aspect-ratio: auto; height: 100%; }
.gallery a:first-child figure { display: grid; grid-template-rows: 1fr auto; height: 100%; }
figcaption { padding-top: .45rem; font-size: .88rem; }
.environs { display: block; }
.environs p { max-width: 42rem; }
.environs .location { margin-bottom: .65rem; }
.stay { background: var(--ink); color: var(--ivory); display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem; padding: clamp(2.7rem, 7vw, 6rem) clamp(1rem, 7vw, 7rem); }
.stay dl { margin: 0; }
.stay dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .65rem 0; border-bottom: 1px solid #ffffff48; }
.stay dd { margin: 0; }
.stay-form { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }
.stay-form label { display: grid; flex: 1 1 8rem; gap: .3rem; font-size: .9rem; }
.stay-form :is(input, select) { width: 100%; min-height: 2.75rem; padding: .4rem .55rem; font: inherit; color: var(--ink); background: var(--ivory); border: 1px solid var(--sand); }
.stay .stay-form button { margin-top: .2rem; border: 0; cursor: pointer; font-family: inherit; }
.stay-calendar { flex: 1 0 100%; min-width: 0; padding: clamp(.65rem, 3vw, 1.25rem); background: var(--ivory); color: var(--ink); }
#calendar-instruction { font-size: .92rem; }
.calendar-navigation { display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; text-align: center; margin: .65rem 0; }
#calendar-month { font: 600 1.55rem/1.15 var(--serif); text-transform: capitalize; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.calendar-weekdays { padding-bottom: .25rem; border-bottom: 1px solid var(--sand); font-size: .77rem; }
.stay-calendar button { min-height: 2.75rem; padding: 0; background: transparent; color: inherit; font: inherit; }
.calendar-navigation button { font-size: 1.5rem; }
.stay-calendar .calendar-day:enabled { font-weight: 800; }
.stay-calendar .calendar-day:enabled:hover, .calendar-day.calendar-in-range { background: var(--sand); }
.stay .stay-form button:disabled { cursor: default; }
.stay-calendar button:disabled, .calendar-footer small span { color: #6d726f; font-weight: 400; }
.stay-calendar .calendar-day[aria-pressed="true"] { background: var(--ink); color: var(--ivory); font-weight: 800; }
.calendar-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 .6rem; border-top: 1px solid var(--sand); }
.calendar-footer small { display: flex; gap: .65rem; }
.calendar-reset { text-decoration: underline; font-size: .85rem; }
#stay-availability:empty { display: none; }
.stay-form .button:disabled { opacity: .65; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; }
footer span { font-size: .9rem; }
dialog { width: min(94vw, 65rem); border: 0; background: var(--ivory); color: var(--ink); padding: 1rem; }
dialog::backdrop { background: #101e18db; }
dialog img { max-height: 70vh; object-fit: contain; }
dialog figcaption { text-align: center; }
dialog button { font: inherit; cursor: pointer; border: 1px solid var(--ink); padding: .35rem .65rem; color: var(--ink); background: var(--ivory); }
.close { display: block; margin: 0 0 .5rem auto; line-height: 1; font-size: 1.5rem; }
.controls { display: flex; justify-content: center; gap: .8rem; margin: .6rem 0 0; }

@media (max-width: 700px) {
  .header { grid-template-columns: 1fr auto; gap: .65rem; }
  nav { grid-row: 2; grid-column: 1 / -1; }
  .hero { min-height: 31rem; }
  .hero img { object-position: 60% center; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid #ded6c6; }
  .split, .stay { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery a:first-child img { aspect-ratio: 3 / 2; }
}
