:root {
  --ink: #171412;
  --paper: #f8f4ed;
  --shell: #fff9f0;
  --coral: #d85f48;
  --wine: #7b2936;
  --teal: #1f6f78;
  --sun: #f2b84b;
  --sage: #7e8b63;
  --line: rgba(23, 20, 18, 0.14);
  --shadow: 0 24px 80px rgba(23, 20, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 18px;
  color: #fff;
  background: rgba(23, 20, 18, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(248, 244, 237, 0.88);
  border-color: rgba(23, 20, 18, 0.12);
  box-shadow: 0 12px 38px rgba(23, 20, 18, 0.12);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: max-content;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.brand span {
  opacity: 0.82;
}

.brand strong {
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.site-header.is-scrolled .nav a:hover {
  background: rgba(23, 20, 18, 0.07);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  place-items: center;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 140px clamp(22px, 6vw, 80px) 36px;
  color: #fff;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 12, 10, 0.78), rgba(16, 12, 10, 0.36) 48%, rgba(16, 12, 10, 0.08)),
    linear-gradient(0deg, rgba(16, 12, 10, 0.58), rgba(16, 12, 10, 0.04) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 830px;
  padding-bottom: 168px;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd28c;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

h1 {
  max-width: 860px;
  font-size: clamp(3.8rem, 8vw, 7.6rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

h3 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-action {
  background: #fff;
  color: var(--ink);
}

.ghost-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-strip {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 70px);
  bottom: 34px;
  left: clamp(18px, 5vw, 70px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hero-strip img {
  width: 100%;
  height: clamp(74px, 10vw, 128px);
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

section:not(.hero) {
  padding: clamp(76px, 10vw, 128px) clamp(22px, 6vw, 80px);
}

.intro-section,
.letter-section {
  background: var(--shell);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 7vw, 86px);
  align-items: end;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-grid p,
.section-heading p,
.distance-copy p,
.letter p,
.footer {
  font-size: 1.04rem;
  line-height: 1.8;
}

.intro-grid p {
  max-width: 740px;
  margin: 28px 0 0;
}

.summer-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.summer-card dl {
  display: grid;
  gap: 22px;
  margin: 0;
}

.summer-card div {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summer-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summer-card dt {
  color: var(--teal);
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.82;
}

.summer-card dd {
  margin: 0;
  font-weight: 800;
}

.moments-section {
  background: #202927;
  color: #fff;
}

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

.section-heading p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-section .section-heading p {
  color: rgba(23, 20, 18, 0.66);
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.moment {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 8px;
  background: #111;
}

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

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

.moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.moment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04) 58%);
}

.moment:hover img {
  transform: scale(1.045);
}

.moment div {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 20px;
  left: 20px;
}

.moment span {
  color: #ffd28c;
  font-size: 0.78rem;
  font-weight: 900;
}

.moment p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.distance-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.distance-copy p {
  max-width: 690px;
  margin: 28px 0 0;
}

.distance-photo {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.distance-photo img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

.letter {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.letter h2 {
  max-width: 760px;
  margin-bottom: 28px;
}

.letter p {
  margin: 0 0 18px;
}

.letter strong {
  display: block;
  margin-top: 26px;
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.gallery-section {
  background: var(--paper);
}

.gallery-section .section-heading {
  align-items: center;
}

.gallery-controls {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.gallery-controls button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 20, 18, 0.66);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gallery-controls button.is-active {
  background: var(--ink);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 0;
  border-radius: 8px;
  background: #ddd;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(23, 20, 18, 0.08);
}

.gallery-item.is-wide {
  grid-column: span 2;
}

.gallery-item.is-tall {
  min-height: 360px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-item:hover img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(22px, 6vw, 80px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #fff;
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 58px clamp(16px, 5vw, 70px);
  background: rgba(12, 10, 9, 0.9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1120px, 88vw);
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.lightbox p {
  position: absolute;
  bottom: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 2.8rem;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 22px;
}

.lightbox-nav.next {
  right: 22px;
}

@keyframes slowDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -1%, 0);
  }
}

@media (max-width: 980px) {
  .site-header {
    inset: 12px 14px auto;
    border-radius: 24px;
    align-items: flex-start;
  }

  .menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid rgba(23, 20, 18, 0.1);
    border-radius: 18px;
    background: rgba(248, 244, 237, 0.96);
    color: var(--ink);
    box-shadow: 0 18px 50px rgba(23, 20, 18, 0.18);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    padding: 13px 14px;
  }

  .hero {
    min-height: 100svh;
    padding: 118px 20px 26px;
  }

  .hero-content {
    padding-bottom: 120px;
  }

  h1 {
    font-size: clamp(3.15rem, 14vw, 5.2rem);
  }

  .hero-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    right: 18px;
    bottom: 20px;
    left: 18px;
  }

  .hero-strip img {
    height: 74px;
  }

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

  .section-heading {
    display: grid;
    align-items: start;
  }

  .moments-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  section:not(.hero) {
    padding: 66px 18px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .ghost-action {
    width: 100%;
  }

  .summer-card div {
    grid-template-columns: 58px 1fr;
  }

  .summer-card dt {
    font-size: 3.1rem;
  }

  .moments-grid,
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .moment,
  .moment.tall,
  .gallery-item,
  .gallery-item.is-tall {
    min-height: 340px;
  }

  .moment.wide,
  .gallery-item.is-wide {
    grid-column: span 1;
  }

  .gallery-section .section-heading {
    gap: 22px;
  }

  .gallery-controls {
    width: 100%;
    overflow-x: auto;
  }

  .gallery-controls button {
    flex: 1 0 auto;
  }

  .footer {
    display: grid;
  }

  .lightbox-nav {
    top: auto;
    bottom: 64px;
    transform: none;
  }
}
