@font-face {
  font-family: Inter;
  src: url("./inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --paper: #f6f3ed;
  --white: #fbf9f4;
  --ink: #192129;
  --body: #50524f;
  --line: #d8d2c8;
  --accent: #6c5036;
  --light-accent: #e1c9a4;
  --header-height: 76px;
  --pad: clamp(20px, 5.5vw, 84px);
  --serif: "Cormorant Garamond", Georgia, serif;
  font-family: Inter, Arial, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, video { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .99;
}
h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
p { line-height: 1.6; }
.wrap { width: min(100%, 1440px); padding-inline: var(--pad); margin-inline: auto; }
.anchor { scroll-margin-block-start: calc(var(--header-height) + 22px); }
.kicker {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border: 1px solid transparent;
  padding: .65rem 1.22rem;
  background: var(--ink);
  color: var(--white);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.button:hover { background: #39434c; }
.text-link { font-weight: 600; text-underline-offset: .35em; text-decoration-color: #a48b70; }
.text-link:hover { text-decoration-color: currentColor; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.site-header.home-header { margin-bottom: calc(-1 * var(--header-height)); }
.site-header.over-hero { background: transparent; color: var(--white); border-color: transparent; }
/* Once the page moves, hero text slides under the bar: a dark backdrop keeps the two apart. */
.site-header.over-hero.scrolled { background: #11171bc7; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header-inner {
  height: calc(var(--header-height) - 1px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font: 600 1.5rem/.95 var(--serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav { display: flex; gap: clamp(1rem, 3vw, 2.6rem); align-items: center; }
.main-nav a {
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:not(.nav-contact):hover, .main-nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: .4em;
}
.nav-contact { border: 1px solid currentColor; padding: .62rem .9rem; }
.nav-contact:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.over-hero .nav-contact:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.hero {
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  min-height: 100svh;
  padding-block: calc(var(--header-height) + 25px) 66px;
  color: var(--white);
  background: #25292b url("./hero-poster.webp") center / cover;
}
.hero video, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero video { z-index: -2; object-fit: cover; object-position: 56% center; }
.hero::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(180deg, #151a1ecc, transparent 29%, transparent 74%, #151a1e69),
    linear-gradient(90deg, #14191de8, #14191daf 37%, #14191d31 82%);
}
.hero-content { position: relative; }
.hero .kicker { color: var(--light-accent); }
.hero h1 { margin-top: 1.2rem; font-size: clamp(4rem, min(9vw, 16svh), 8.6rem); line-height: .82; }
.hero h1 em { color: var(--white); font-weight: 500; }
.hero-copy { max-width: 38ch; margin-top: clamp(1rem, 4svh, 2rem); font-size: clamp(1rem, 1.25vw, 1.2rem); }
.hero-actions { margin-top: clamp(1.12rem, 4svh, 2rem); display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.4rem; }
.hero .button { background: var(--white); color: var(--ink); }
.hero .button:hover { background: var(--light-accent); }
.hero .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; }
.video-toggle {
  position: absolute;
  right: var(--pad);
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #ffffffa1;
  background: #151a1e77;
  color: var(--white);
  cursor: pointer;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { background: #151a1e; }
.video-toggle[data-playing="true"] .play, .video-toggle[data-playing="false"] .pause { display: none; }
.pause { display: flex; gap: 4px; }
.pause::before, .pause::after { content: ""; width: 2px; height: 13px; background: currentColor; }
.play { border-block: 6px solid transparent; border-left: 9px solid currentColor; }

.section-space { padding-block: clamp(56px, 8vw, 112px); }
.section-intro { margin-bottom: clamp(24px, 4vw, 52px); }
.section-intro h2, .about-copy h2, .contact h2 { margin-top: .6rem; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, .95fr);
  gap: clamp(26px, 4vw, 66px);
  align-items: center;
}
.photo-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 7px; aspect-ratio: 1.68; }
.photo-grid > :first-child { grid-row: span 2; }
.photo-grid a, .gallery-photo, .card-media { position: relative; display: block; overflow: hidden; background: #ded7cb; }
.photo-grid img, .gallery-photo img, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-grid a:hover img, .gallery-photo:hover img, .property-card:hover img { transform: scale(1.035); }
.feature-copy h3 { font-size: clamp(2.35rem, 3.5vw, 3.7rem); margin-block: .5rem .6rem; }
.location { color: var(--body); font-size: .94rem; }
.price { font-size: clamp(1.12rem, 1.9vw, 1.5rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.feature-copy .price { margin-block: 1.35rem .9rem; }
.feature-copy .button { margin-top: 1.25rem; }
.fact-row { display: flex; flex-wrap: wrap; gap: .45rem 1rem; font-size: .88rem; color: var(--body); }
.fact-row span { white-space: nowrap; }
.fact-row span + span { border-left: 1px solid var(--line); padding-left: 1rem; }
.additional { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 50px); margin-top: clamp(46px, 6.2vw, 88px); }
.additional h3 { font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: 1.25rem; }
.property-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 30px); }
.property-card { display: block; text-decoration: none; border: 1px solid var(--line); background: var(--white); }
.card-media { aspect-ratio: 2.05; }
.card-copy { padding: clamp(16px, 2vw, 28px); }
.card-copy h4 { font: 600 clamp(1.7rem, 2.4vw, 2.4rem)/1 var(--serif); margin: 0 0 .35rem; letter-spacing: -.02em; }
.card-copy .price { margin-block: .75rem .55rem; }
.listings-link { display: inline-block; margin-top: 1.7rem; font-size: .9rem; }

.about { background: #ede8de; }
.about-grid { display: grid; grid-template-columns: minmax(230px, 5fr) minmax(0, 7fr); gap: clamp(24px, 8vw, 128px); align-items: center; }
.portrait { width: 100%; max-height: 520px; aspect-ratio: .93; object-fit: cover; object-position: 50% 47%; }
.about-copy > p:not(.kicker) { margin-top: 1.1rem; max-width: 53ch; color: var(--body); }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; border-top: 1px solid #c9c0b1; margin-top: 1.65rem; padding-top: 1rem; }
.profile-facts dt { font-size: .82rem; color: var(--accent); }
.profile-facts dd { font-size: .95rem; font-weight: 500; margin-top: .35rem; }

.site-footer { background: var(--ink); color: var(--white); }
.contact { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: end; padding-block: clamp(38px, 6vw, 78px); }
.contact .kicker { color: var(--light-accent); }
.contact p:not(.kicker) { margin-top: .8rem; color: #e0dbd0; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; font-size: .9rem; }
.contact-links .button { background: var(--white); color: var(--ink); }
.contact-links .button:hover { background: var(--light-accent); }
.footer-line { border-top: 1px solid #ffffff36; padding-block: 1.1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; color: #e0dbd0; font-size: .83rem; }

.detail { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 92px); }
.breadcrumb { color: var(--body); font-size: .86rem; margin-bottom: clamp(24px, 3vw, 42px); }
.detail-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: end; gap: 15px 30px; margin-bottom: clamp(20px, 4vw, 36px); }
.detail-head h1 { font-size: clamp(3rem, 6.75vw, 6rem); margin-block: .45rem .7rem; }
.detail-head .price { font-size: clamp(1.35rem, 2.65vw, 2.1rem); }
.detail-gallery { aspect-ratio: 2.05; }
.gallery-photo { border: 0; padding: 0; width: 100%; cursor: zoom-in; }
.gallery-photo img { display: block; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(28px, 6vw, 90px); margin-top: clamp(36px, 6vw, 72px); }
.detail-content h2, .detail-aside h2 { font-size: clamp(2.2rem, 3.4vw, 3.5rem); line-height: 1.05; }
.detail-content p { margin-top: .85rem; color: var(--body); }
.detail-content section + section { border-top: 1px solid var(--line); padding-top: 1.65rem; margin-top: 1.65rem; }
.amenities { padding-left: 1.1rem; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .65rem 1rem; color: var(--body); }
.detail-aside { align-self: start; padding: clamp(18px, 3vw, 34px); background: var(--white); border: 1px solid var(--line); }
.specs { border-top: 1px solid var(--line); margin-block: 1.2rem; }
.specs > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-block: .64rem; font-size: .92rem; }
.specs dt { color: var(--body); }
.specs dd { font-weight: 600; text-align: right; }
.detail-aside .contact-links { gap: .8rem 1rem; }
.detail-aside .contact-links .button { background: var(--ink); color: var(--white); }
.detail-aside .contact-links .button:hover { background: #39434c; }
.footnote { margin-top: 1rem; font-size: .8rem; color: var(--body); }
.lightbox { width: min(1060px, 94vw); max-width: none; max-height: 94dvh; border: none; padding: 0; background: var(--ink); color: var(--white); }
.lightbox::backdrop { background: #11161cea; }
.lightbox img { width: 100%; height: min(67dvh, 680px); object-fit: contain; background: #11161c; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: .55rem .8rem; }
.gallery-toolbar p { font-size: .85rem; margin-right: auto; }
.gallery-toolbar button {
  color: inherit;
  background: transparent;
  border: 1px solid #ffffff64;
  padding: .45rem .65rem;
  min-height: 40px;
  font-size: .82rem;
  cursor: pointer;
}
.gallery-toolbar button:hover { background: #ffffff22; }

@media (max-width: 860px) {
  .feature, .detail-layout { grid-template-columns: 1fr; }
  .feature-copy { max-width: 580px; }
  .detail-aside { grid-row: 1; }
  .detail-gallery { aspect-ratio: 1.65; }
}
@media (max-width: 600px) {
  :root { --header-height: 63px; }
  .header-inner { gap: .6rem; }
  .wordmark { font-size: clamp(1rem, 4vw, 1.28rem); letter-spacing: .075em; }
  .main-nav { gap: .68rem; }
  .main-nav a { font-size: .78rem; }
  .main-nav .nav-about { display: none; }
  .nav-contact { padding: .44rem .5rem; }
  .hero { background-position: 53% center; }
  .hero video { object-position: 55% center; }
  .hero::before { background: linear-gradient(180deg, #11171bc4, #11171b55 28%, #11171bc9 78%, #11171bec); }
  .hero h1 { font-size: clamp(3.65rem, 15vw, 5.7rem); }
  .hero-content { align-self: end; }
  .hero .hero-copy { max-width: 33ch; }
  .video-toggle { bottom: 14px; right: 16px; }
  .property-cards, .about-grid { grid-template-columns: 1fr; }
  .about-copy { grid-row: 1; }
  .about-grid picture { max-width: 440px; }
  .photo-grid { aspect-ratio: 1.3; }
  .detail-gallery { aspect-ratio: 1.25; }
  .amenities { grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
  .wordmark { max-width: 115px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
