:root {
  --mist: #dfe3df;
  --paper: #f7f5ed;
  --paper-soft: #eceee7;
  --sage: #9fa795;
  --olive: #6f7965;
  --stone: #686d67;
  --ink: #4d514d;
  --white: #fffaf2;
  --line: rgba(77, 81, 77, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(225, 230, 225, 0.74), rgba(225, 230, 225, 0.88)),
    url("images/photo-1523438885200-e635ba2c371e.jpg") center / cover fixed;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 40px));
  translate: -50% 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 999px;
  color: var(--white);
  background: rgba(78, 88, 78, 0.22);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 52px rgba(72, 79, 70, 0.1);
}

.brand {
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.92);
  white-space: nowrap;
}

.nav-links a:last-child {
  color: var(--stone);
  background: rgba(255, 250, 242, 0.82);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #7c8575;
}

.video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #7c8575;
}

.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78svh);
  height: max(56.25vw, 100svh);
  border: 0;
  translate: -50% -50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(80, 88, 78, 0.06),
      rgba(80, 88, 78, 0.08) 42%,
      rgba(74, 78, 69, 0.64) 86%,
      rgba(74, 78, 69, 0.8)
    ),
    linear-gradient(
      90deg,
      rgba(74, 78, 69, 0.3),
      transparent 44%,
      rgba(74, 78, 69, 0.1)
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 88px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: rgba(255, 250, 242, 0.82);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 54px;
  height: 1px;
  background: rgba(255, 250, 242, 0.72);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(76px, 10vw, 144px);
  line-height: 0.82;
  text-shadow: 0 20px 54px rgba(70, 74, 66, 0.32);
}

.amp {
  display: block;
  margin-left: 0.68em;
  color: #ded4c2;
  font-size: 0.7em;
  font-style: italic;
}

.hero-copy {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 250, 242, 0.88);
  font-family: Georgia, serif;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
}

.date-line {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  margin-top: 36px;
  color: rgba(255, 250, 242, 0.9);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.date-line::before,
.date-line::after {
  content: "";
  width: 46px;
  height: 1px;
  background: rgba(255, 250, 242, 0.5);
}

main {
  background: rgba(247, 245, 237, 0.94);
}

.editorial {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 8vw, 118px) 0;
}

.intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(430px, 0.9fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  width: min(1040px, calc(100% - 48px));
  padding-bottom: clamp(44px, 5vw, 76px);
}

.headline {
  max-width: 520px;
  justify-self: end;
}

.postcard-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0 0;
}

.postcard {
  position: relative;
  z-index: 5;
  width: min(900px, 100%);
  min-height: clamp(390px, 38vw, 500px);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 84px);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(216, 180, 170, 0.14),
      transparent 9rem
    ),
    radial-gradient(
      circle at 88% 84%,
      rgba(159, 167, 149, 0.14),
      transparent 10rem
    ),
    linear-gradient(135deg, #fbf7ef, #f8f5ed);
  box-shadow: 0 24px 60px rgba(92, 98, 89, 0.12);
  backdrop-filter: blur(10px);
  transform: rotate(-0.6deg);
}

.postcard::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(157, 163, 148, 0.28);
  border-radius: 5px;
  pointer-events: none;
}

.postcard::after {
  content: "";
  position: absolute;
  left: clamp(54px, 7vw, 104px);
  bottom: clamp(34px, 5vw, 68px);
  width: min(320px, 38%);
  height: 18px;
  pointer-events: none;
  opacity: 0.78;
  background:
    linear-gradient(90deg, transparent, rgba(157, 163, 148, 0.58), transparent)
      left top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(157, 163, 148, 0.38), transparent)
      left bottom / 58% 1px no-repeat;
}

.postcard-stamp {
  position: absolute;
  right: clamp(34px, 5vw, 70px);
  top: clamp(32px, 5vw, 58px);
  width: 54px;
  height: 66px;
  border: 1px dashed rgba(157, 163, 148, 0.42);
  border-radius: 4px;
  background: rgba(255, 250, 242, 0.2);
  z-index: 1;
}

.postcard-title {
  margin: 0;
  color: rgba(101, 107, 99, 0.54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.7vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.postcard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 28px;
  margin-top: clamp(58px, 7vw, 88px);
}

.postcard-name {
  align-self: end;
  color: rgba(77, 81, 77, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.postcard-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(77, 81, 77, 0.5);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guest-name {
  display: block;
  color: rgba(77, 81, 77, 0.8);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1;
  text-wrap: balance;
}

.postcard-lines {
  display: grid;
  gap: 17px;
  align-self: end;
  padding-top: 58px;
  border-left: 1px solid rgba(107, 111, 101, 0.2);
  padding-left: 26px;
}

.postcard-lines i {
  display: block;
  height: 1px;
  background: rgba(107, 111, 101, 0.22);
}

.postcard-floral {
  position: absolute;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.postcard-floral.lily {
  right: clamp(24px, 4vw, 62px);
  bottom: clamp(12px, 3vw, 34px);
  width: clamp(190px, 24vw, 330px);
  opacity: 0.54;
  transform: rotate(7deg);
}

.postcard-floral.lavender {
  left: clamp(26px, 4vw, 54px);
  bottom: clamp(26px, 4vw, 58px);
  width: clamp(72px, 9vw, 128px);
  opacity: 0.22;
  filter: saturate(0.85) brightness(1.08);
  transform: rotate(-8deg);
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--olive);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2 {
  color: var(--stone);
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.02;
  text-wrap: balance;
}

.copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(77, 81, 77, 0.74);
  font-size: 16px;
  line-height: 1.75;
}

.photo-card {
  position: relative;
  overflow: hidden;
  height: clamp(520px, 58vw, 690px);
  min-height: 0;
  border-radius: 280px 280px 28px 28px;
  background: var(--mist);
  box-shadow: 0 30px 80px rgba(92, 98, 89, 0.18);
}

.calendar-stack {
  position: relative;
  width: min(520px, 100%);
  padding-bottom: 34px;
}

.photo-card img,
.photo-tile img,
.wide-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.92);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 78, 69, 0.32), transparent 55%);
  pointer-events: none;
}

.date-card {
  width: min(430px, calc(100% - 44px));
  margin: -88px auto 0;
  position: relative;
  z-index: 2;
  padding: 58px 38px 66px;
  border: 1px solid rgba(255, 250, 242, 0.78);
  border-radius: 220px 220px 24px 24px;
  background: rgba(236, 238, 231, 0.94);
  text-align: center;
  box-shadow: 0 24px 70px rgba(92, 98, 89, 0.14);
}

.date-card h3 {
  color: var(--stone);
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
}

.calendar {
  margin-top: 28px;
  color: rgba(77, 81, 77, 0.62);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px 8px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0;
}

.days span {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 999px;
}

.days .muted-day {
  color: rgba(77, 81, 77, 0.78);
  font-weight: 400;
  font-size: 12px;
}

.days .active {
  border: 1px solid rgba(111, 121, 101, 0.34);
  background: rgba(255, 250, 242, 0.74);
  box-shadow: 0 8px 18px rgba(92, 98, 89, 0.1);
  color: var(--stone);
  font-weight: 600;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  padding-top: clamp(34px, 5vw, 74px);
}

.soft-panel {
  display: grid;
  align-content: center;
  min-height: 560px;
  padding: clamp(34px, 5vw, 72px);
  border-radius: 0 0 260px 260px;
  background: var(--white);
  text-align: center;
}

.soft-panel p {
  margin-inline: auto;
}

.photo-stack {
  display: grid;
  gap: 24px;
  align-content: center;
}

.photo-tile {
  min-height: 330px;
  overflow: hidden;
  border-radius: 12px 12px 180px 180px;
  background: var(--mist);
}

.photo-tile:nth-child(2) {
  border-radius: 180px 180px 12px 12px;
}

.program {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 20px;
  padding-top: 8px;
}

.event {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.event time {
  color: var(--olive);
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
}

.event h3 {
  color: var(--stone);
  font-size: 28px;
  line-height: 1.05;
}

.event p {
  margin: 8px 0 0;
  color: rgba(77, 81, 77, 0.68);
  line-height: 1.6;
}

.wide-photo {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--mist);
}

.wide-photo img {
  position: absolute;
  inset: 0;
}

.wide-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(83, 89, 78, 0.48), transparent 58%);
}

.wide-caption {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 1;
  width: min(920px, calc(100% - 48px));
  translate: -50% 0;
  color: var(--white);
}

.wide-caption h2 {
  color: var(--white);
  font-size: clamp(44px, 7vw, 96px);
}

.dress-rsvp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--paper);
}

.dress,
.rsvp {
  min-height: 560px;
  padding: clamp(42px, 7vw, 86px);
}

.dress {
  background: var(--paper-soft);
}

.dress .copy {
  max-width: 620px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 250, 242, 0.82);
  box-shadow: 0 10px 22px rgba(92, 98, 89, 0.16);
}

.dress-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 26px);
  max-width: 620px;
  margin-top: clamp(34px, 5vw, 58px);
}

.dress-look {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 10px;
  min-height: 0;
  border: 1px solid rgba(77, 81, 77, 0.1);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.56);
  box-shadow: 0 18px 38px rgba(92, 98, 89, 0.1);
  cursor: zoom-in;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.dress-look:focus-visible {
  outline: 2px solid rgba(104, 109, 103, 0.42);
  outline-offset: 5px;
}

.dress-look img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.86) contrast(0.96) brightness(1.04);
}

.dress-look:first-child {
  height: clamp(300px, 34vw, 430px);
  transform: translateY(16px) rotate(-1.2deg);
}

.dress-look:first-child:hover {
  transform: translateY(10px) rotate(-1.2deg);
  box-shadow: 0 22px 44px rgba(92, 98, 89, 0.16);
}

.dress-look:last-child {
  height: clamp(300px, 34vw, 430px);
  transform: rotate(1.1deg);
}

.dress-look:last-child:hover {
  transform: translateY(-6px) rotate(1.1deg);
  box-shadow: 0 22px 44px rgba(92, 98, 89, 0.16);
}

.rsvp {
  display: grid;
  align-content: center;
  background: var(--white);
  text-align: center;
}

.rsvp .copy {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 30px auto 0;
  padding: 13px 26px;
  border: 1px solid rgba(77, 81, 77, 0.28);
  border-radius: 999px;
  color: var(--stone);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 54px);
  overflow: auto;
  background: rgba(38, 43, 38, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.image-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-image {
  box-sizing: border-box;
  display: block;
  max-width: min(96vw, 1180px);
  max-height: 86vh;
  object-fit: contain;
  border: 10px solid rgba(255, 250, 242, 0.92);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: fixed;
  top: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 34px);
  z-index: 81;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 250, 242, 0.72);
  border-radius: 50%;
  color: var(--white);
  background: rgba(77, 81, 77, 0.46);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

footer {
  padding: 34px 18px 42px;
  color: rgba(77, 81, 77, 0.6);
  background: var(--paper);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .intro-grid,
  .story,
  .program,
  .dress-rsvp {
    grid-template-columns: 1fr;
  }

  .editorial {
    width: min(680px, calc(100% - 32px));
  }

  .intro-grid {
    gap: 48px;
  }

  .headline {
    justify-self: stretch;
    max-width: none;
  }

  .calendar-stack {
    width: min(560px, 100%);
    justify-self: center;
  }

  .photo-card {
    min-height: 540px;
  }

  .soft-panel {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  .nav {
    top: 12px;
    width: calc(100% - 22px);
    padding: 8px 9px 8px 14px;
  }

  .brand {
    font-size: 13px;
  }

  .nav-links {
    gap: 1px;
    font-size: 11px;
  }

  .nav-links a {
    padding: 8px 6px;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 88px);
  }

  .hero-copy {
    font-size: 18px;
  }

  .date-line {
    width: 100%;
    justify-content: center;
    font-size: 12px;
  }

  .editorial {
    width: calc(100% - 28px);
    padding: 64px 0;
  }

  .intro-grid {
    width: calc(100% - 28px);
    gap: 36px;
    padding-bottom: 36px;
  }

  .headline .copy {
    max-width: none;
  }

  .postcard-section {
    width: calc(100% - 28px);
    padding-top: 64px;
  }

  .photo-card {
    height: min(520px, 118vw);
    min-height: 0;
  }

  .calendar-stack {
    width: 100%;
    padding-bottom: 0;
  }

  .postcard {
    width: min(420px, 100%);
    min-height: 310px;
    transform: rotate(-0.6deg);
  }

  .postcard-grid {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 14px;
    margin-top: 46px;
  }

  .postcard-title {
    font-size: 24px;
  }

  .postcard-name {
    font-size: 22px;
  }

  .guest-name {
    max-width: 9.6em;
    font-size: clamp(24px, 6.7vw, 32px);
    line-height: 1.04;
    text-wrap: auto;
  }

  .postcard-floral.lily {
    width: 170px;
    right: 8px;
    bottom: 4px;
    opacity: 0.48;
  }

  .postcard-floral.lavender {
    width: 76px;
    left: 22px;
    bottom: 24px;
    opacity: 0.18;
  }

  .date-card {
    width: calc(100% - 32px);
    margin-top: -74px;
    padding: 52px 24px 58px;
  }

  .photo-tile {
    min-height: 430px;
  }

  .event {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  .event h3 {
    font-size: 24px;
  }

  .wide-photo {
    display: grid;
    min-height: 0;
    overflow: visible;
    color: var(--stone);
    background: var(--paper);
  }

  .wide-photo img {
    position: relative;
    aspect-ratio: 4 / 3;
    height: auto;
    object-position: center 42%;
  }

  .wide-photo::after {
    display: none;
  }

  .wide-caption {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    translate: none;
    padding: 48px 28px 58px;
    color: var(--stone);
    background: linear-gradient(
      to bottom,
      rgba(236, 238, 231, 0.95),
      var(--paper)
    );
  }

  .wide-caption h2 {
    color: var(--stone);
    font-size: clamp(38px, 12vw, 56px);
  }

  .dress,
  .rsvp {
    min-height: auto;
    padding: 62px 24px;
  }

  .dress-gallery {
    grid-template-columns: 1fr 1fr;
    max-width: 560px;
  }

  .dress-look:first-child,
  .dress-look:last-child {
    height: clamp(220px, 58vw, 330px);
    transform: none;
  }

  .image-modal {
    padding: 18px 10px;
  }

  .modal-image {
    width: 100%;
    max-width: calc(100vw - 20px);
    max-height: 82vh;
    border-width: 7px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }
}
