@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --blue: #173d5f;
  --ink: #173044;
  --muted: #435b6c;
  --olive: #4d5d48;
  --cream: #f5f0e8;
  --sand: #e7ddd0;
  --paper: #fbf9f5;
  --line: #17304430;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --gutter: clamp(1.25rem, 6vw, 8rem);
  --section: clamp(4rem, 9vw, 9rem);
  --header-height: 5.25rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

html:has(.menu[open], .photo-viewer[open]) { overflow: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a { color: inherit; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1, h2 {
  margin: 0;
  font: 300 clamp(3rem, 5.5vw, 6rem) / .99 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

p { margin: 0; }

address { font-style: normal; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: 1rem;
  z-index: 20;
  padding: .5rem 1rem;
  transform: translateY(-160%);
  color: var(--blue);
  background: var(--paper);
}

.skip-link:focus { transform: none; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: clamp(1rem, 3vw, 3rem);
  color: white;
  border-bottom: 1px solid #fff4;
  background: #10233448;
  transition: background-color .25s, color .25s;
}

.header.scrolled {
  color: var(--blue);
  background: var(--paper);
  border-color: var(--line);
}

.brand {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 4.3rem;
}

.brand img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header.scrolled .brand img { filter: none; }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.8vw, 1.5rem);
}

.language,
.menu-trigger,
.menu-close {
  padding: .65rem .15rem;
  color: inherit;
  background: none;
  border: 0;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.menu-trigger, .menu-close { cursor: pointer; }

.menu-trigger:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.menu-icon {
  width: 1.25rem;
  height: .55rem;
  border-block: 1px solid;
}

.book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem clamp(.62rem, 2vw, 1.45rem);
  border: 1px solid currentColor;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s, color .2s;
}

.book:hover, .book-light {
  color: var(--blue);
  background: var(--paper);
  border-color: var(--paper);
}

.book-light:hover, .book-solid {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.book-solid:hover, .header.scrolled .book:hover {
  color: white;
  background: var(--olive);
  border-color: var(--olive);
}

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--cream);
}

.menu-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: 44% 56%;
}

.menu-photo { position: relative; }

.menu-photo img {
  position: absolute;
  height: 100%;
  object-fit: cover;
}

.menu-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1rem, 4vw, 3.25rem) var(--gutter);
}

.menu-close { align-self: end; }

.menu-close span {
  margin-left: .3rem;
  font-size: 1.4rem;
  line-height: .8;
}

.menu nav {
  display: grid;
  justify-items: start;
  gap: .3rem;
}

.menu nav a {
  font: 300 clamp(2.5rem, 5vw, 5.5rem) / 1 var(--serif);
  text-decoration: none;
}

.menu nav a:hover, .menu-meta a:hover, .language:hover { text-decoration: underline; }

.menu-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  font-size: .875rem;
}

.hero, .closing {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  color: white;
  background: var(--blue);
}

.hero {
  min-height: 42rem;
  min-height: max(42rem, 100svh);
  padding: calc(var(--header-height) + 2.5rem) var(--gutter) clamp(3.5rem, 10vh, 7rem);
}

.cover-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cover-photo img {
  height: 100%;
  object-fit: cover;
}

.hero .cover-photo img { object-position: 55% 52%; }

.hero::before, .closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #10233470 0%, #10233422 30%, #102334cc 100%), linear-gradient(90deg, #10233465, transparent 74%);
}

.hero-copy { max-width: 60rem; }

.eyebrow {
  margin-bottom: 1rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(4.5rem, 9vw, 10rem); }

.hero h1 em { font-weight: inherit; }

.lead {
  max-width: 35rem;
  margin: 1rem 0 1.6rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.stay-notice {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--gutter);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.75rem) var(--gutter);
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.stay-notice h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  text-wrap: initial;
}

.stay-notice p { max-width: 38rem; }

.split, .location {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--gutter);
  padding: var(--section) var(--gutter);
}

.intro, .location { background: var(--cream); }

.split-copy p, .section-head p, .location p, .location address {
  max-width: 38rem;
  margin-top: 1.15rem;
  color: var(--muted);
}

.split-photo img, .location-photo img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.text-link {
  display: inline-block;
  margin-top: 1.15rem;
  font-weight: 700;
  text-underline-offset: .27em;
}

.header .text-link { margin: 0; }

.legacy-anchor {
  display: block;
  position: absolute;
  width: 0;
  height: 0;
}

.apartments, .services { padding: var(--section) var(--gutter); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: var(--gutter);
  margin-bottom: clamp(1.7rem, 4vw, 3.4rem);
}

.section-head p { margin: 0; }

.apartment-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 1.25rem;
  border-block: 1px solid var(--line);
}

.apartment-types div { padding: clamp(.65rem, 2.5vw, 1.5rem); }

.apartment-types div + div { border-left: 1px solid var(--line); }

.apartment-types dt { font: 300 clamp(1.65rem, 3vw, 2.8rem) / 1 var(--serif); }

.apartment-types dd {
  margin: .25rem 0 0;
  color: var(--muted);
}

.apartment-gallery, .extra-gallery {
  display: grid;
  gap: .9rem;
}

.apartment-gallery {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, clamp(10rem, 19vw, 19rem));
}

.apartment-gallery a:first-child { grid-row: span 2; }

.apartment-gallery img, .extra-gallery img {
  height: 100%;
  object-fit: cover;
}

.gallery-photo {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-photo:focus-visible { outline-offset: -4px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-photo img { transition: scale .55s ease; }
  .gallery-photo:hover img { scale: 1.035; }
}

.apartment-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.65rem;
}

.gallery-more { margin-top: 1.25rem; }

.gallery-more summary {
  width: fit-content;
  margin-inline: auto;
  padding: .55rem;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.extra-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.extra-gallery img { aspect-ratio: 4 / 3; }

.terrace {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--blue);
}

.terrace img {
  height: clamp(16rem, 36vw, 36rem);
  object-fit: cover;
  object-position: 50% 65%;
  filter: blur(.6px);
  transform: scale(1.01);
}

.terrace figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: .65rem var(--gutter);
  color: white;
  background: #102334df;
  font-size: .875rem;
}

.services { background: var(--sand); }

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.service-list li {
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.service-note {
  margin-top: 1.5rem;
  color: var(--muted);
}

.village { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }

.location h2 { font-size: clamp(3rem, 5vw, 5.5rem); }

.closing {
  min-height: clamp(27rem, 55vw, 42rem);
  padding: 3.5rem var(--gutter);
}

.closing-copy { max-width: 42rem; }

.closing-copy .book { margin: 1.4rem 0 .75rem; }

.photo-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(.85rem, 3vw, 2rem);
  border: 0;
  color: white;
  background: #0c2032;
}

.photo-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(.45rem, 2vw, 1.25rem);
}

.photo-viewer::backdrop { background: #0c2032; }

.photo-viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.photo-viewer-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.4rem, 2vw, 1.25rem);
}

.photo-viewer-media {
  display: grid;
  height: 100%;
  min-height: 0;
}

.photo-viewer-media img {
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.photo-viewer button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .3rem .6rem;
  border: 1px solid #ffffff80;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.photo-viewer button:hover { background: #ffffff20; }

.photo-viewer-prev, .photo-viewer-next { font-size: 1.6rem; }

.photo-viewer-caption {
  justify-self: center;
  max-width: 50rem;
  text-align: center;
  font-size: .9rem;
}

.footer {
  padding: clamp(2.75rem, 7vw, 6rem) var(--gutter) 1.75rem;
  background: #dacebf;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(4rem, .55fr) 1fr 1.3fr .65fr;
  gap: 2rem;
}

.footer-brand {
  display: block;
  width: clamp(3rem, 7vw, 5.2rem);
}

.footer-main p {
  margin-bottom: .6rem;
  font-weight: 700;
}

.footer-main nav a, .footer-main div a {
  display: block;
  margin-bottom: .25rem;
  text-decoration-color: transparent;
}

.footer-main a:hover { text-decoration-color: currentColor; }

.footer-main address { margin-top: .5rem; }

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-bottom: .55rem;
}

@media (max-width: 52rem) {
  .menu-layout, .split, .location, .section-head { grid-template-columns: 1fr; }
  .menu-photo { display: none; }
  .section-head { gap: .9rem; }
  .stay-notice { grid-template-columns: 1fr; gap: .7rem; }
  .village .split-copy { grid-row: 1; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main a { overflow-wrap: anywhere; }
}

@media (max-width: 38rem) {
  :root { --header-height: 4.5rem; }

  .header { padding-inline: .8rem; }
  .brand { width: 2.5rem; height: 3.4rem; }
  .hero { min-height: max(35rem, 100svh); }
  .hero h1 { font-size: clamp(3.5rem, 13vw, 5rem); }
  .apartment-types dd { font-size: .875rem; }
  .apartment-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .apartment-gallery a:first-child { grid-column: 1 / -1; grid-row: auto; }
  .apartment-gallery img { aspect-ratio: 4 / 3; }
  .extra-gallery, .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-viewer-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; }
  .photo-viewer-media { grid-area: 1 / 1 / 2 / -1; }
  .photo-viewer-prev { justify-self: end; }
  .photo-viewer-next { justify-self: start; }
  .service-list li { padding: .85rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1.5rem .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
