:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --green: #23382c;
  --dark: #172b21;
  --line: #cec8b8;
  --accent: #dbc190;
  --serif: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--dark); font: 1rem/1.65 system-ui, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 5vw; border-bottom: 1px solid var(--line); }
nav { display: flex; gap: clamp(1rem, 3vw, 3rem); align-items: center; }
nav a { text-decoration: none; }
a { color: inherit; text-underline-offset: .3em; }
a:hover { text-decoration: underline; }
.brand { font: 1.5rem/1.1 var(--serif); text-decoration: none; }
button { font: inherit; cursor: pointer; }
nav button { border: 1px solid transparent; color: inherit; background: transparent; padding: .35rem .5rem; }
nav button[aria-pressed="true"] { border-bottom-color: currentColor; font-weight: 650; }
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(32rem, 78svh, 54rem); color: white; background: var(--dark); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: center 58%; z-index: -2; }
.identity { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .9rem; row-gap: .15rem; }
.city { font-size: .875rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.35rem, 2.25vw, 1.95rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 1.25rem; }
form button { display: inline-block; background: var(--paper); color: var(--dark); padding: .9rem 1.35rem; text-decoration: none; border: 1px solid transparent; }
form button:hover { background: var(--accent); text-decoration: none; }
.wrap { max-width: 1410px; margin: auto; padding: clamp(3.5rem, 8vw, 8rem) 6vw; }
.story { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(1rem, 7vw, 7rem); border-bottom: 1px solid var(--line); }
.story p { margin: 0; font: clamp(1rem, 1.3vw, 1.125rem)/1.55 var(--serif); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 2rem); }
figure { margin: 0; grid-column: span 4; }
figure:nth-child(2) { grid-column: span 7; }
figure.gallery-cover { grid-column: 1 / -1; }
.gallery-cover .photo img { height: auto; aspect-ratio: 2.15; object-position: center 62%; }
figure:nth-child(3) { grid-column: span 5; }
figure:last-child { grid-column: 3 / 11; }
.photo { display: block; width: 100%; padding: 0; text-align: left; background: none; border: 0; color: inherit; }
.photo img { display: block; width: 100%; height: clamp(12rem, 25vw, 24rem); object-fit: cover; }
figure:last-child img { height: auto; aspect-ratio: 2.25; }
.photo span { display: block; border-top: 1px solid var(--line); padding: .7rem 0; }
.photo:hover span { text-decoration: underline; text-underline-offset: .3em; }
dialog { width: min(94vw, 1000px); max-height: 95dvh; border: 1px solid var(--line); padding: clamp(.65rem, 2vw, 1.5rem); background: var(--paper); color: var(--dark); }
dialog::backdrop { background: #101a15db; }
dialog img { display: block; width: 100%; height: min(67dvh, 720px); object-fit: contain; background: var(--dark); }
.viewer-bar, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.viewer-bar { padding-bottom: .5rem; }
.viewer-bar p { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.viewer-controls { padding-top: .5rem; }
dialog button { background: transparent; color: inherit; border: 1px solid var(--line); padding: .35rem .65rem; }
.contact { background: var(--green); color: var(--paper); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 7vw, 7rem); }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: grid; gap: .35rem; }
input, textarea { width: 100%; min-width: 0; min-height: 3rem; padding: .6rem; border: 1px solid #adaf9d; border-radius: 0; background: #fcfaf4; color: var(--dark); font: inherit; }
.full { grid-column: 1 / -1; }
footer { padding: 1.5rem 6vw; text-align: center; font-family: var(--serif); }
:focus-visible { outline: 3px solid #b47826; outline-offset: 4px; }
@media (max-width: 720px) {
  nav > a { display: none; }
  nav > div { white-space: nowrap; }
  .hero { min-height: clamp(27rem, 72svh, 42rem); }
  .hero img { object-position: 56% center; }
  .story, .contact .wrap { grid-template-columns: 1fr; }
  .story h2 { margin: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure { grid-column: auto; }
  .gallery figure:first-child, .gallery figure:last-child { grid-column: 1 / -1; }
  .photo img { height: auto; aspect-ratio: 1.15; }
  .gallery-cover .photo img { aspect-ratio: 1.5; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.house-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  max-width: 1410px;
  margin: 0 auto 3rem;
  padding: 1.25rem 0;
  width: calc(100% - 12vw);
  border-block: 1px solid var(--line);
  text-align: center;
}
.house-facts li + li { border-inline-start: 1px solid var(--line); }
.house-facts li > span:first-child {
  display: block;
  font: clamp(2rem, 5vw, 3.5rem)/1 var(--serif);
  margin-bottom: .4rem;
}

textarea { resize: vertical; }

.booking-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem 1.25rem;
}

.neighbourhood {
  width: min(88%, 54rem);
  margin: 0 auto clamp(2.5rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 5vw, 4rem);
  background: #e7ebdf;
  text-align: center;
}
.neighbourhood p {
  max-width: 52ch;
  margin: 0 auto;
  font: clamp(1rem, 1.3vw, 1.125rem)/1.55 var(--serif);
  text-wrap: pretty;
}

.story-heading h1,
.story-heading .story-tagline {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.story-heading .story-tagline {
  margin-top: .65rem;
  font-size: clamp(1.2rem, 1.65vw, 1.4rem);
}
