@font-face {
  font-family: "Noto Display";
  src: url("assets/serif.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Noto Display";
  src: url("assets/serif-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/sans.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/sans-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f9f6ef;
  --paper: #fdfbf6;
  --teal: #183635;
  --teal-deep: #142e2d;
  --ink: #203c38;
  --muted: #4e5a53;
  --bronze: #815d3d;
  --gold: #dfbd95;
  --border: #dcd4c6;
  --heading: "Noto Display", Georgia, serif;
  --body: "Open Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.4vw, 6rem);
  --container: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.68 var(--body); }
h1, h2, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-family: var(--heading); font-weight: 400; line-height: 1.02; letter-spacing: -.042em; }
h2 { font-size: clamp(2.5rem, 4.75vw, 4.65rem); }
h2 em { color: var(--bronze); font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, select { font: inherit; color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #a8794e; outline-offset: 4px; }
[hidden] { display: none !important; }

.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex: none; width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4.125rem, 8.2vw, 8rem); }
.eyebrow { color: var(--bronze); font-size: .78rem; font-weight: 600; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.skip { position: fixed; z-index: 10; top: .65rem; left: .65rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.header { position: relative; z-index: 2; background: var(--paper); }
.header-inner {
  min-height: 5.125rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.65rem;
  padding: .65rem var(--gutter);
  max-width: 106rem;
  margin-inline: auto;
}
.brand {
  position: relative;
  display: block;
  justify-self: start;
  width: 3.125rem;
  aspect-ratio: 575 / 680;
  overflow: hidden;
}
/* Frame the lettering inside the square image and blend its white margin with the page. */
.brand img {
  position: absolute;
  top: -25.44%;
  left: -46.09%;
  width: 187.83%;
  mix-blend-mode: multiply;
}
.footer .brand { width: 3.625rem; }
.nav { display: flex; align-items: center; gap: clamp(1.05rem, 2.3vw, 2.4rem); }
.nav a { position: relative; padding-block: .66rem; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.nav a::after { position: absolute; right: 0; bottom: .32rem; left: 0; height: 1px; content: ""; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: clamp(.45rem, 1.45vw, 1.25rem); }
.language { position: relative; display: inline-flex; min-height: 2.75rem; align-items: center; gap: .38rem; padding-inline: .35rem; font-weight: 600; }
.language:focus-within { outline: 2px solid #a8794e; outline-offset: 2px; }
.language .icon { width: 1.12rem; height: 1.12rem; }
.language .language-chevron { width: .95rem; height: .95rem; }
.language-code { min-width: 1.1rem; font-size: .82rem; text-align: center; }
.language select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.menu-toggle { display: none !important; }

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 3.3rem;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .18rem;
  background: transparent;
  color: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.38;
  text-align: center;
  transition: background-color .18s, color .18s, border-color .18s;
}
.button .icon { width: 1.1rem; height: 1.1rem; }
.button-dark { background: var(--teal); color: white; }
.button-dark:hover { background: #2e5650; }
.header-book { min-height: 2.75rem; padding-inline: clamp(.8rem, 1.5vw, 1.35rem); }
.button-gold { background: var(--gold); color: #18302b; }
.button-gold:hover { background: #efd5b5; }
.button-outline { border-color: #9e8b73; }
.button-outline:hover { background: var(--teal); border-color: var(--teal); color: white; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  min-height: clamp(35rem, 44vw, 46rem);
  background: var(--teal);
  color: var(--cream);
}
.hero-panel { display: flex; align-items: center; padding: clamp(3.25rem, 6vw, 6.5rem) clamp(1.75rem, 3.25vw, 3.75rem) clamp(3.4rem, 6vw, 6.5rem) var(--gutter); }
.hero-content { width: min(100%, 35rem); margin-left: auto; }
.hero-location { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.55rem; color: var(--gold); }
.hero-location .icon { width: 1.075rem; height: 1.075rem; }
.hero h1 { font-size: clamp(2.45rem, 5.2vw, 6.1rem); }
:lang(fr) .hero h1 { font-size: clamp(2.1rem, 4.42vw, 5.3rem); }
:lang(es) .hero h1 { font-size: clamp(2.35rem, 4.92vw, 5.8rem); }
.hero h1 em { display: block; color: #e8caa5; font-weight: 400; }
.hero-description { max-width: 27rem; margin-top: 1.55rem; color: #e5e6dc; font-size: clamp(1rem, 1.27vw, 1.15rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; margin-top: 2rem; }
.hero-gallery, .contact-email { width: fit-content; padding-block: .55rem; font-size: .9rem; font-weight: 600; text-decoration: underline; text-decoration-color: #bd9e77; text-underline-offset: .32rem; }
.hero-gallery:hover, .contact-email:hover { color: var(--gold); }
.hero-photo { position: relative; overflow: hidden; min-height: 100%; background: #bc9f83; }
.hero-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 47% center; }
.hero-photo::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(110deg, rgb(29 30 22 / .12), transparent 65%); }

.facts-wrap { border-bottom: 1px solid var(--border); background: #f1eadf; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 1.25rem; }
.facts li { display: flex; justify-content: center; align-items: center; gap: .72rem; min-height: 3.4rem; padding: .3rem .43rem; font-weight: 600; text-align: center; }
.facts li + li { border-left: 1px solid #d8cdbd; }
.facts .icon { color: var(--bronze); width: 1.6rem; height: 1.6rem; }

.apartment, .location { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 7vw, 7.25rem); }
.apartment-photo, .location-photo { position: relative; overflow: hidden; border-radius: .2rem; background: #d9cdbd; }
.apartment-photo img { aspect-ratio: 1.21; object-fit: cover; object-position: 53% center; }
.apartment h2, .location h2, .contact-inner h2, .section-heading h2 { margin-top: .75rem; }
.apartment-content > p:not(.eyebrow), .location-content > p:not(.eyebrow) { max-width: 34rem; margin-top: 1.2rem; color: var(--muted); }
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .6rem; margin-top: 1.65rem; padding-top: 1.35rem; border-top: 1px solid var(--border); }
.amenities li, .landmarks li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; font-weight: 600; line-height: 1.45; }
.amenities .icon, .landmarks .icon { color: var(--bronze); }

.gallery-section { background: #efe8dc; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.45rem; margin-bottom: 2rem; }
.gallery-grid { display: grid; grid-template-columns: 1.42fr 1fr; grid-template-rows: repeat(2, clamp(10.75rem, 17vw, 15.5rem)); gap: .85rem; }
.gallery-main { grid-row: span 2; }
.gallery-tile {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: .2rem;
  background: #c1ad94;
  text-align: left;
}
.gallery-tile img { height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-tile[data-photo="10"] img { object-position: center 56%; }
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile span { position: absolute; bottom: .8rem; left: .8rem; max-width: calc(100% - 1.6rem); padding: .42rem .7rem; border-radius: .15rem; background: #17332f; color: white; font-size: .82rem; line-height: 1.4; }
.location { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
.location-photo img { aspect-ratio: 1.26; object-fit: cover; object-position: 55% center; }
.location-photo figcaption { position: absolute; right: .8rem; bottom: .8rem; padding: .45rem .75rem; border-radius: .15rem; background: var(--paper); font-size: .82rem; }
.landmarks { max-width: 34rem; margin-block: 1.35rem 1.7rem; }
.landmarks li { padding-block: .8rem; border-bottom: 1px solid var(--border); }
.landmarks li:first-child { border-top: 1px solid var(--border); }
.landmark-detail { margin-inline-start: auto; padding-inline-start: .35rem; color: var(--muted); font-size: .85rem; font-weight: 400; text-align: right; }

.contact-section { padding-block: clamp(3.75rem, 7.3vw, 7rem); background: var(--teal); color: var(--cream); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-inner .eyebrow { color: var(--gold); }
.contact-inner p:not(.eyebrow) { margin-top: 1.1rem; color: #e2e4da; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.55rem; margin-top: 1.55rem; }
.arrival { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .95rem; min-width: 15rem; padding: 1.55rem; border: 1px solid #658177; border-radius: .2rem; }
.arrival .icon { grid-row: span 2; color: var(--gold); }
.arrival div { display: grid; gap: .12rem; }
.arrival span { color: #dce5d9; font-size: .84rem; }
.arrival strong { font-size: 1.05rem; font-weight: 600; }

.footer { background: var(--paper); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; padding-block: 2rem; }
.footer-details { display: grid; color: var(--muted); font-size: .8rem; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1rem; font-size: .85rem; }
.footer-links a { text-decoration: underline; text-underline-offset: .22em; }
.footer-links a:hover { color: var(--bronze); }

.icon-button { display: inline-grid; width: 2.75rem; height: 2.75rem; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; }
.icon-button:hover { background: rgb(154 132 107 / .16); }
.lightbox { width: min(65rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: .65rem 1.15rem .9rem; overflow: auto; border: 1px solid #668176; border-radius: .35rem; background: var(--teal-deep); color: var(--cream); }
.lightbox::backdrop { background: rgb(14 27 25 / .84); }
.lightbox[open] { display: grid; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .35rem; }
.lightbox-top h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.lightbox-figure img { width: 100%; height: min(57vh, 35rem); object-fit: contain; background: #102422; }
.lightbox-figure figcaption { min-height: 1.5rem; margin-top: .4rem; text-align: center; }
.lightbox-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: .35rem; }
.lightbox-controls .icon-button { border-color: #729185; }
#gallery-count { min-width: 4.5ch; color: var(--gold); text-align: center; font-variant-numeric: tabular-nums; }
body:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 62rem) {
  .header-inner { gap: 1rem; }
  .nav { gap: .95rem; }
  .nav a { font-size: .81rem; }
  .hero { min-height: 33rem; }
  .hero-actions { column-gap: .95rem; }
}
@media (max-width: 49rem) {
  .header-inner { min-height: 4.35rem; grid-template-columns: 1fr auto; }
  .header .brand { width: 2.5rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .nav { flex-wrap: wrap; grid-column: 1 / -1; grid-row: 2; gap: .4rem 1rem; }
  .has-js .nav { display: none; }
  .has-js .nav.is-open {
    position: absolute;
    display: grid;
    inset: 100% 0 auto;
    gap: 0;
    padding: .25rem var(--gutter) .8rem;
    border-bottom: 1px solid var(--border);
    background: var(--paper);
    box-shadow: 0 .65rem 1.25rem rgb(20 46 45 / .11);
  }
  .nav a { font-size: .94rem; }
  .nav a + a { border-top: 1px solid var(--border); }
  .nav a::after { display: none; }
  .has-js .menu-toggle { display: inline-grid !important; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-panel { padding: 3rem var(--gutter) 3.2rem; }
  .hero-content { width: min(100%, 33rem); margin: 0; }
  .hero h1, :lang(es) .hero h1 { font-size: clamp(2.45rem, 11.1vw, 5rem); }
  :lang(fr) .hero h1 { font-size: clamp(2.12rem, 9.65vw, 4.9rem); }
  .hero-photo { min-height: 0; }
  .hero-photo img { position: static; height: auto; max-height: 30rem; aspect-ratio: 1.48; object-fit: cover; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: .55rem; }
  .facts li { gap: .5rem; min-height: 3.35rem; font-size: .89rem; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid #d8cdbd; }
  .apartment, .location { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .apartment-content { grid-row: 1; }
  .apartment-photo img, .location-photo img { aspect-ratio: 1.43; }
  .gallery-grid { gap: .65rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .arrival { width: fit-content; }
  .footer-inner { grid-template-columns: auto 1fr; gap: .95rem; }
  .footer-details { grid-row: 2; grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 30rem) {
  .header-inner { gap: .3rem; }
  .header-actions { gap: .12rem; }
  .header-book { min-height: 2.5rem; padding-inline: .55rem; font-size: .78rem; }
  .language { gap: .18rem; padding-inline: .19rem; }
  .language .icon { width: .95rem; height: .95rem; }
  .hero-location { margin-bottom: 1.05rem; }
  .hero-description { margin-top: 1.18rem; }
  .hero-actions { margin-top: 1.35rem; }
  .facts .icon { width: 1.25rem; height: 1.25rem; }
  .facts li { text-align: left; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 12rem 8.5rem; }
  .gallery-main { grid-column: 1 / -1; grid-row: auto; }
  .gallery-tile span { bottom: .4rem; left: .4rem; max-width: calc(100% - .8rem); padding: .3rem .45rem; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
