:root {
  color-scheme: light;
  --paper: #fffdf8;
  --sand: #f6efdf;
  --white: #fffdf8;
  --ink: #183847;
  --muted: #435962;
  --sea: #eaf2f2;
  --line: #cddadd;
  --accent: #a74b28;
  --focus: #be5b27;
  font: 100%/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button { font: inherit; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 8px; left: 8px; transform: translateY(-160%); background: var(--white); padding: 8px 16px; }
.skip:focus { transform: translateY(0); }

.header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 84px; }
.header > .button { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 16px; font-weight: 750; line-height: 1.25; text-decoration: none; }
.mark { display: grid; flex: none; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--ink); color: var(--white); font: 22px Georgia, serif; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
nav a, .footer a { font-size: 15px; font-weight: 650; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; width: fit-content; padding: 11px 19px; border-radius: 7px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 15px; line-height: 1.25; text-decoration: none; }
.button:hover { background: #2a5464; }
.button-small { min-height: 44px; padding-inline: 15px; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--sand); }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent); }

.hero { background: var(--sand); }
.hero-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 5.2vw, 75px); align-items: center; padding-block: clamp(32px, 4vw, 56px); }
.hero-photo { position: relative; aspect-ratio: 1.16; overflow: hidden; border-radius: 18px; background: var(--sea); }
.hero-photo img, .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { object-position: center 59%; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .135em; text-transform: uppercase; }
h1, h2, .stats dd { font-family: Georgia, serif; font-weight: 400; }
h1, h2 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(54px, 7.3vw, 107px); line-height: .96; letter-spacing: -.065em; }
h1 em { font-weight: inherit; }
h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -.047em; }
.lead { max-width: 42ch; margin: 22px 0 24px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }
.actions { display: flex; flex-wrap: wrap; gap: 5px 18px; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px 0; margin-block: 0; border-bottom: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dd { margin: 0; font-size: clamp(26px, 3.2vw, 39px); line-height: 1.15; }
.stats dt { order: 1; color: var(--muted); font-size: 14px; }

.gallery { padding-block: clamp(52px, 7vw, 88px) clamp(42px, 6vw, 72px); }
.photo-grid { display: grid; grid-template-columns: 1.75fr 1fr; grid-template-rows: repeat(2, clamp(150px, 17vw, 222px)); gap: 14px; margin-top: 24px; }
.photo { display: block; overflow: hidden; border-radius: 12px; background: var(--sea); text-decoration: none; }
.photo-main { grid-row: span 2; }
.photo figure { position: relative; height: 100%; }
.photo img { transition: transform .25s ease; }
.photo:hover img { transform: scale(1.04); }
.photo figcaption { position: absolute; bottom: 12px; left: 12px; padding: 6px 12px; border-radius: 5px; background: var(--white); font-size: 14px; font-weight: 700; }
.photo-source { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.photo-source a { text-underline-offset: 4px; }

.house { padding-block: clamp(46px, 6vw, 74px); background: var(--sea); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 25px 0 0; }
.features div { padding-top: 16px; border-top: 1px solid #a9bec3; }
.features dt { font-weight: 750; font-size: 17px; }
.features dd { margin: 6px 0 0; color: var(--muted); }

.trip { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 6vw, 76px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.trip p:not(.eyebrow), .booking p { margin: 14px 0 0; }
.trip p:not(.eyebrow) { max-width: 45ch; color: var(--muted); }
.address-panel { padding: 20px 26px; border-radius: 12px; background: var(--sand); }
address { font-style: normal; }
address strong { font-size: 18px; }
.map-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 7px; }
.booking { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px, 5vw, 52px); border-radius: 14px; background: var(--ink); color: var(--white); }
.booking h2 { font-size: clamp(32px, 3.6vw, 50px); }
.booking .button { flex-shrink: 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer a { font-size: inherit; }

.viewer { width: min(900px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 12px; border: 0; border-radius: 12px; background: var(--ink); color: var(--white); }
.viewer::backdrop { background: rgb(12 30 39 / .84); }
.viewer-bar, .viewer-controls { display: flex; align-items: center; gap: 14px; }
.viewer-bar { justify-content: space-between; padding: 0 0 8px 5px; }
.viewer-bar p { margin: 0; font-weight: 700; }
.viewer-image { width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 5px; background: #102835; }
.viewer-controls { justify-content: center; padding-top: 8px; }
.viewer-button { display: grid; place-items: center; border: 1px solid #829eab; border-radius: 5px; min-width: 44px; min-height: 44px; background: transparent; color: inherit; cursor: pointer; }
.viewer-button:hover { background: #2a5464; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .hero-inner { gap: 28px; }
  .hero-photo { aspect-ratio: 1; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header { grid-template-columns: 1fr auto; gap: 0 12px; min-height: 68px; }
  .header > .button { grid-column: 2; grid-row: 1; }
  nav { grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; }
  nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .brand, .header > .button { margin-top: 8px; }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 28px 20px; }
  .hero-photo { aspect-ratio: 1.45; border-radius: 12px; }
  .lead { margin: 17px 0 18px; }
  .stats dt { font-size: 12px; }
  .features, .trip { grid-template-columns: 1fr; }
  .features { gap: 16px; }
  .booking { align-items: start; flex-direction: column; }
}
@media (max-width: 450px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 10px; }
  .stats div { padding: 10px 2px; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; }
  .photo, .photo-main { grid-row: auto; aspect-ratio: 1.55; }
}
@media (prefers-reduced-motion: reduce) {
  .photo img { transition: none; }
}
