:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --white: #fffdf7;
  --ink: #352b26;
  --muted: #60564f;
  --line: #d9cec0;
  --linen: #eee8df;
  --cognac: #794832;
  --sun: #efcb88;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Trebuchet MS', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
img { display: block; width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9a662a; outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 4; padding: .5rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.wrap { width: min(100% - 6rem, 75rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.15rem); }
.header { width: min(100% - 4.5rem, 88rem); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 5.4rem; }
.wordmark { font: 1.75rem/1 var(--display); letter-spacing: -.055em; white-space: nowrap; text-decoration: none; }
.wordmark i { font-weight: normal; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3.4vw, 3.4rem); }
nav a, .footer a:last-child { font-size: .94rem; text-decoration: none; }
nav a:hover, .footer a:last-child:hover { text-decoration: underline; text-underline-offset: .3em; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .66rem 1.24rem; border: 1px solid transparent; border-radius: 3px; font-weight: 700; font-size: .94rem; line-height: 1.25; text-align: center; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
.button-outline { border-color: var(--cognac); background: transparent; color: var(--cognac); }
.button-outline:hover, .button-dark { background: var(--cognac); color: var(--white); }
.button-dark:hover { background: #653b2a; }
.button-sun { background: var(--sun); color: var(--ink); }
.button-sun:hover { background: #ffdda3; }

.hero { position: relative; isolation: isolate; width: min(100% - 4.5rem, 88rem); min-height: clamp(30rem, 65svh, 47rem); margin: auto; display: grid; align-items: end; overflow: hidden; background: #53443a; color: var(--white); }
.hero-photo, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; object-fit: cover; object-position: center 55%; }
.hero::before { content: ''; z-index: -1; background: linear-gradient(89deg, rgba(26,20,16,.59), transparent 81%), linear-gradient(0deg, rgba(26,20,16,.8), rgba(26,20,16,.04) 82%); }
.hero-content { padding: clamp(2rem, 6vw, 6rem); }
.eyebrow { color: #76513d; font-size: .86rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; margin-bottom: 1rem; }
.hero .eyebrow { color: #fff0d1; }
h1, h2 { font: 400 clamp(2.8rem, 5.5vw, 5.35rem)/.99 var(--display); letter-spacing: -.058em; text-wrap: balance; }
h1 { font-size: clamp(4.35rem, 10vw, 9rem); }
h1 em, h2 em { font-weight: 400; }
.hero-description { max-width: 34ch; margin-block: 1.2rem 1.8rem; font-size: clamp(1.12rem, 1.8vw, 1.34rem); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 1.65rem; border-bottom: 1px solid var(--line); }
.facts div { padding-inline: clamp(.5rem, 2vw, 1.5rem); text-align: center; }
.facts div + div { border-left: 1px solid var(--line); }
.facts strong, .facts span { display: block; }
.facts strong { font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.2 var(--display); letter-spacing: -.035em; }
.facts span { color: var(--muted); font-size: .875rem; margin-top: .3rem; }

.house { display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.house-copy > p:not(.eyebrow), .guide > div:first-child > p:last-child { color: var(--muted); margin-top: 1.15rem; }
.housekeeping { padding-left: 1rem; border-left: 2px solid #ad8b4e; }
.house-image img { aspect-ratio: 1.14; height: auto; object-fit: cover; }

.gallery-section { background: var(--linen); }
.gallery-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.gallery-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; grid-template-rows: repeat(2, clamp(9rem, 16vw, 14rem)); gap: .75rem; margin-top: 2rem; }
.full-gallery { padding-top: clamp(2.5rem, 6vw, 5rem); }
.full-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-block: 2rem; }
.full-gallery-grid .photo-card { aspect-ratio: 4 / 3; }
.photo-card { position: relative; display: block; overflow: hidden; background: #c8b9a9; color: var(--white); }
.photo-feature { grid-row: span 2; }
.photo-card img { height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-card:hover img { transform: scale(1.045); }
.photo-card span { position: absolute; inset: auto 0 0; padding: 1.65rem .9rem .72rem; background: linear-gradient(transparent, rgba(28,20,16,.84)); font-size: .94rem; font-weight: 700; }
.lightbox { width: min(92vw, 67rem); max-width: none; max-height: 95vh; padding: 1rem; border: 0; background: var(--white); color: var(--ink); }
.lightbox::backdrop { background: rgba(26,20,16,.86); }
.lightbox img { max-height: 69vh; object-fit: contain; background: var(--ink); }
.lightbox figcaption { padding: .55rem 0; }
.lightbox button { color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: .4rem .8rem; }
.lightbox .lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.45rem; line-height: 1; min-height: 2.75rem; min-width: 2.75rem; }
.lightbox-controls { display: flex; justify-content: space-between; gap: .75rem; }
.lightbox-position { align-self: center; color: var(--muted); font-size: .88rem; }

.guide { display: grid; gap: 1.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button { min-height: 2.8rem; padding: .52rem 1rem; border: 1px solid #a39588; border-radius: 3px; background: transparent; color: var(--cognac); font-weight: 700; font-size: .94rem; }
.filters button:hover { background: var(--linen); }
.filters button[aria-pressed="true"] { background: var(--cognac); border-color: var(--cognac); color: var(--white); }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.guide-list article { display: grid; grid-template-rows: auto 1fr auto; gap: .65rem; padding: 1.3rem 0 .4rem; border-top: 1px solid var(--line); }
h3 { font: 400 clamp(1.55rem, 2.5vw, 2rem)/1.12 var(--display); letter-spacing: -.035em; }
.guide-list p { color: var(--muted); }
.guide-list small { color: var(--muted); font-size: .88rem; }

.booking { background: var(--cognac); color: var(--white); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.booking .contacts a:focus-visible { outline-color: var(--sun); }
.booking .eyebrow, .booking h2 em { color: var(--sun); }
.booking h2 + p { max-width: 41ch; margin-block: 1.25rem; color: #f2f0e5; }
.contacts { display: grid; max-width: 29rem; }
.contacts a { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .15rem 1rem; padding: .7rem 0; border-bottom: 1px solid #ad8b77; text-decoration: none; overflow-wrap: anywhere; }
.contacts a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.contacts span { color: #f6e6c9; }
.enquiry { color: var(--ink); background: var(--paper); padding: clamp(1.3rem, 3vw, 2.65rem); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .85rem; margin-block: 1.25rem; }
.fields label { display: grid; gap: .28rem; font-size: .94rem; font-weight: 700; }
.fields input { color: var(--ink); background: var(--white); border: 1px solid #998775; border-radius: 3px; width: 100%; min-width: 0; min-height: 2.85rem; padding: .4rem .6rem; font-size: 1rem; }
.send-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.form-note { margin-top: .75rem; color: var(--muted); font-size: .88rem; }
.footer { min-height: 6.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { color: var(--muted); font-size: .9rem; }

@media (max-width: 850px) {
  .wrap { width: min(100% - 3rem, 75rem); }
  .header, .hero { width: calc(100% - 2rem); }
  .house, .booking-grid { gap: 2rem; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .header { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; padding-block: .7rem; }
  .header nav { grid-row: 2; grid-column: span 2; justify-content: space-between; padding-bottom: .2rem; }
  .hero { width: 100%; min-height: 31rem; }
  .hero-content { padding: 1.5rem 1.25rem 2.25rem; }
  .hero-photo { object-position: 55% 55%; }
  .hero::before { background: linear-gradient(0deg, rgba(26,20,16,.92), rgba(26,20,16,.06) 87%); }
  .facts { grid-template-columns: repeat(2, 1fr); padding-block: .45rem; }
  .facts div { padding-block: .8rem; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .house, .booking-grid, .guide-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 16rem repeat(2, 9rem); gap: .5rem; }
  .full-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .photo-feature { grid-row: auto; grid-column: span 2; }
  .guide-list { gap: .8rem; }
  .footer { flex-wrap: wrap; padding-block: 1.3rem; }
  .footer p { order: 1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
