/* This layer keeps the property page aligned with the homepage typography. */
.overview h2,
.gallery-heading h2,
.view-copy h2,
.location h2,
.contact h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(2.45rem, 4.25vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.008em;
}

.hero-copy h1 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.brand b,
.hero-index,
.facts dd,
.garage h3,
.material-note,
.closing-note {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.garage h3,
.material-note {
  font-weight: 500;
}

.material-note {
  font-weight: 400;
}

.gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-flow: dense;
  grid-auto-rows: 20vw;
}

.photo-wide {
  grid-column: span 2;
}

.photo-tall {
  grid-row: span 2;
}

.closing-note {
  margin-top: clamp(4.5rem, 8vw, 7rem) !important;
  padding: clamp(2rem, 4vw, 3rem) clamp(0.5rem, 2vw, 1.5rem);
  border-top: 1px solid #bdb3ac;
  border-bottom: 1px solid #bdb3ac;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem) !important;
  line-height: 1.55 !important;
}

.closing-statement {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(22rem, 44vw, 38rem);
  padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 8vw, 9rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 35%, rgba(116, 59, 45, 0.16), transparent 34%),
    linear-gradient(125deg, #171113, #0d090a 72%);
  color: #f6d0c2;
  text-align: center;
}

.closing-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0 0.5px, transparent 0.8px 3px),
    repeating-radial-gradient(circle at 80% 65%, rgba(0, 0, 0, 0.25) 0 0.6px, transparent 0.9px 4px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: soft-light;
}

.closing-statement p {
  max-width: 68rem;
  margin: 0;
  font: 400 clamp(1.35rem, 2.15vw, 2rem)/1.6 "Playfair Display", serif;
  letter-spacing: 0.004em;
}

@media (max-width: 800px) {
  .overview h2,
  .gallery-heading h2,
  .view-copy h2,
  .location h2,
  .contact h2 {
    font-size: clamp(2.2rem, 10vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: 0.012em;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 58vw;
  }

  .photo-tall {
    grid-row: span 1;
  }
}

/* The homepage title sets the scale for every display heading. */
.hero-copy h1,
.overview h2,
.gallery-heading h2,
.view-copy h2,
.location h2,
.contact h2 {
  font-size: clamp(2.15rem, 3.2vw, 45px);
  line-height: 1.14;
  letter-spacing: 0.006em;
}

.garage h3 {
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  line-height: 1.25;
}

.material-note {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.5;
}

@media (max-width: 800px) {
  .hero-copy h1,
  .overview h2,
  .gallery-heading h2,
  .view-copy h2,
  .location h2,
  .contact h2 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.16;
  }

  .closing-statement {
    min-height: 28rem;
  }

  .closing-statement p {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  }
}

/* Branded art direction */
body {
  background: #090708;
}

.site-header {
  padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1.25rem, 5vw, 5.5rem);
}

.site-header .brand img {
  width: clamp(3.8rem, 6vw, 6.2rem);
}

.site-header .brand b {
  font-size: clamp(1.45rem, 2.1vw, 2.35rem);
  color: #efc1b0;
}

.site-header .brand small,
.header-contact {
  color: rgba(239, 193, 176, 0.76);
}

.property-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -10%;
  right: 18%;
  width: min(55vw, 52rem);
  height: 72%;
  background: url("./ribbon.svg") center / 100% 100% no-repeat;
  opacity: 0.42;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: ribbonIn 1.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 6, 7, 0.68), rgba(8, 6, 7, 0.14) 58%),
    linear-gradient(0deg, rgba(8, 6, 7, 0.78), transparent 62%),
    radial-gradient(circle at 75% 30%, rgba(116, 59, 45, 0.25), transparent 32%);
}

.hero-copy h1 {
  color: #efc1b0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.kicker {
  color: rgba(239, 193, 176, 0.78);
}

.hero-index {
  color: #efc1b0;
}

.overview,
.location {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.overview {
  background: linear-gradient(135deg, #f3ece8, #e9e1dc);
}

.location {
  background: #eee8e4;
}

.overview::before,
.location::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.7) 0 0.5px, transparent 0.8px 3px),
    repeating-radial-gradient(circle at 80% 65%, rgba(74, 45, 38, 0.16) 0 0.6px, transparent 0.9px 4px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: soft-light;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #743b2d;
}

.section-label::after {
  content: "";
  width: clamp(2.5rem, 5vw, 5.5rem);
  height: 1px;
  background: linear-gradient(90deg, #cb856f, transparent);
}

.overview-copy > p,
.location-copy > p,
.garage p {
  color: #54433e;
}

.facts,
.garage,
.closing-note {
  border-color: rgba(116, 59, 45, 0.3);
}

.facts div {
  border-color: rgba(116, 59, 45, 0.24);
}

.facts dt,
.garage span {
  color: #8b6458;
}

.overview,
.location,
.overview h2,
.location h2,
.overview .section-label,
.location .section-label,
.overview-copy > p,
.location-copy > p,
.facts dt,
.facts dd,
.garage span,
.garage h3,
.garage p,
.closing-note {
  color: #875443;
}

.gallery-section {
  position: relative;
  background:
    radial-gradient(circle at 74% 18%, rgba(130, 63, 45, 0.18), transparent 27%),
    linear-gradient(126deg, #171314 0%, #0e0b0c 60%, #080607 100%);
}

.gallery-section::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.055) 0 0.5px, transparent 0.8px 3px),
    repeating-radial-gradient(circle at 80% 65%, rgba(0, 0, 0, 0.28) 0 0.6px, transparent 0.9px 4px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: soft-light;
}

.gallery-heading,
.gallery,
.material-note,
.contact > * {
  position: relative;
  z-index: 1;
}

.gallery-heading h2,
.view-copy h2,
.contact h2 {
  color: #efc1b0;
}

.photo {
  outline: 1px solid rgba(239, 193, 176, 0.08);
  outline-offset: -1px;
}

.lightbox {
  display: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  padding: clamp(1rem, 3vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(116, 59, 45, 0.18), transparent 42%),
    rgba(7, 5, 6, 0.97);
}

.lightbox[open] {
  display: grid;
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
}

.lightbox img {
  min-height: 0;
}

.lightbox figcaption {
  padding-top: 0.8rem;
  color: rgba(239, 193, 176, 0.72);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-align: center;
}

.lightbox .lightbox-close,
.lightbox .lightbox-nav {
  position: static;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(203, 133, 111, 0.42);
  border-radius: 50%;
  color: #efc1b0;
  font: 300 1.2rem/1 "Manrope", sans-serif;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lightbox .lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  border: 0;
  font-size: 2rem;
}

.lightbox .lightbox-close:hover,
.lightbox .lightbox-nav:hover {
  background: #cb856f;
  border-color: #cb856f;
  color: #120f10;
}

.material-note {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(203, 133, 111, 0.34);
}

.view-section {
  border-block: 1px solid rgba(203, 133, 111, 0.28);
}

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(130, 63, 45, 0.22), transparent 32%),
    linear-gradient(126deg, #171314, #090708 68%);
}

.contact-actions .primary {
  border-color: #cb856f;
  color: #efc1b0;
}

footer {
  border-top: 1px solid rgba(203, 133, 111, 0.2);
  background: #070506;
}

@keyframes ribbonIn {
  from {
    opacity: 0;
    transform: translate3d(3%, -3%, 0);
  }
}

@media (max-width: 800px) {
  .site-header .brand img {
    width: 3.5rem;
  }

  .property-hero::before {
    top: -3%;
    right: -12%;
    width: 96vw;
    height: 40%;
    opacity: 0.32;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(8, 6, 7, 0.84), transparent 70%),
      linear-gradient(90deg, rgba(8, 6, 7, 0.52), transparent);
  }

  .section-label::after {
    flex: 1;
    max-width: 5rem;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.8rem;
    padding: 3.5rem 1rem 1rem;
  }

  .lightbox figure {
    grid-column: 1 / -1;
  }

  .lightbox .lightbox-nav {
    width: 100%;
    border-radius: 0;
  }
}
