:root {
  color-scheme: light;
  --ink: #332a2b;
  --muted: #75686a;
  --cream: #fbf7f1;
  --blush: #f0dcd6;
  --rose: #a85f63;
  --white: #fffdf9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  min-height: min(850px, 100svh);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 76px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  left: -120px;
  top: -100px;
  border-radius: 50%;
  background: var(--blush);
  opacity: 0.65;
  z-index: -1;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.7rem, 10vw, 9.2rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.lede {
  max-width: 520px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--white);
  background: var(--ink);
  transform: translateY(-2px);
}

.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid rgba(168, 95, 99, 0.45);
  border-radius: 48% 48% 30px 30px / 36% 36% 30px 30px;
  z-index: -1;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 48% 48% 30px 30px / 36% 36% 30px 30px;
}

.hero-photo figcaption {
  position: absolute;
  right: -22px;
  bottom: 46px;
  max-width: 190px;
  padding: 13px 17px;
  border-radius: 16px 16px 3px 16px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 14px 45px rgba(72, 49, 50, 0.13);
  font-size: 0.86rem;
  line-height: 1.35;
  transform: rotate(-3deg);
}

.intro {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 170px) clamp(24px, 5vw, 72px);
}

.intro h2,
.section-heading h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.intro > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.gallery-section {
  padding: clamp(72px, 10vw, 140px) clamp(18px, 4vw, 60px);
  background: #ead2cc;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto 54px;
}

.section-heading > p {
  margin-bottom: 8px;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(170px, 21vw, 310px);
  gap: clamp(10px, 1.4vw, 20px);
  max-width: 1320px;
  margin: 0 auto;
}

.photo {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #d8c1bb;
  cursor: zoom-in;
}

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

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

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 220ms ease;
}

.photo:hover img,
.photo:focus-visible img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.035);
}

.photo:focus-visible,
.button:focus-visible,
.lightbox button:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}

footer {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background: var(--cream);
}

footer span {
  color: var(--rose);
  font-size: 1.6rem;
}

footer p {
  margin: 0;
}

.lightbox {
  width: min(94vw, 1280px);
  height: min(94svh, 920px);
  padding: 0;
  border: 0;
  overflow: visible;
  color: white;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(28, 22, 23, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox figure {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.lightbox figure img {
  max-width: 100%;
  max-height: calc(100% - 46px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
}

.lightbox figcaption {
  position: absolute;
  bottom: 0;
  left: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transform: translateX(-50%);
}

.lightbox button {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: white;
  background: rgba(30, 24, 25, 0.6);
  font: inherit;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-close {
  top: 0;
  right: 0;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 42px 24px 86px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero-photo {
    width: min(88vw, 560px);
    justify-self: center;
  }

  .hero-photo figcaption {
    right: -8px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro .kicker {
    margin-bottom: -8px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(170px, 52vw, 310px);
  }

  .lightbox {
    width: 100vw;
    height: 100svh;
    max-width: none;
    max-height: none;
  }

  .lightbox figure img {
    max-width: calc(100% - 24px);
    max-height: calc(100% - 90px);
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 4.4rem;
  }

  .hero-photo::after {
    inset: 14px -10px -14px 10px;
  }

  .gallery-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .gallery {
    gap: 8px;
  }

  .photo {
    border-radius: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
