:root {
  --ink: #42332a;
  --soft-ink: #6f6259;
  --paper: #fbf7ee;
  --paper-deep: #f2eadb;
  --sage: #99a387;
  --sage-deep: #6f7c61;
  --brown: #533c2f;
  --taupe: #dbcdbd;
  --cream: #fef0be;
  --blush: #f9dae0;
  --white: #fffdf8;
  --line: rgba(83, 60, 47, 0.18);
  --shadow: 0 18px 50px rgba(83, 60, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(249, 218, 224, 0.45), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, var(--paper) 42%, #f6efe3 100%);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(83, 60, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 60, 47, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

a {
  color: inherit;
}

.hero,
.section {
  position: relative;
}

.hero::marker,
.section::marker {
  content: "";
}

.hero .hero-inner::before,
.intro::before,
.rsvp::before,
.schedule::after,
.dresscode::before,
.gifts::after,
.locations::before,
.final::after {
  position: absolute;
  z-index: 1;
  color: rgba(153, 163, 135, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.hero .hero-inner::before {
  top: 28%;
  left: 8%;
  content: "♡";
  color: rgba(249, 218, 224, 0.9);
  font-size: 42px;
  transform: rotate(-14deg);
}

.intro::before {
  right: 7%;
  bottom: 18%;
  content: "✦";
  font-size: 36px;
  transform: rotate(12deg);
}

.rsvp::before {
  right: 26px;
  top: -18px;
  content: "♡";
  color: rgba(83, 60, 47, 0.28);
  font-size: 34px;
  transform: rotate(14deg);
}

.schedule::after {
  left: 4%;
  top: 24%;
  content: "✧";
  color: rgba(249, 218, 224, 0.9);
  font-size: 34px;
  transform: rotate(-9deg);
}

.dresscode::before {
  right: 1%;
  top: 16%;
  content: "♡";
  color: rgba(153, 163, 135, 0.46);
  font-size: 40px;
  transform: rotate(10deg);
}

.gifts::after {
  right: 8%;
  bottom: 18%;
  content: "✦";
  color: rgba(249, 218, 224, 0.95);
  font-size: 38px;
  transform: rotate(18deg);
}

.locations::before {
  left: 1%;
  bottom: 12%;
  content: "♡";
  color: rgba(83, 60, 47, 0.2);
  font-size: 34px;
  transform: rotate(-15deg);
}

.final::after {
  right: 16%;
  top: 20%;
  content: "✧";
  color: rgba(153, 163, 135, 0.52);
  font-size: 42px;
  transform: rotate(13deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 96vh;
  overflow: hidden;
  padding: 26px clamp(18px, 4vw, 58px) 42px;
  border-bottom: 1px solid var(--line);
  place-items: center;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(153, 163, 135, 0.5);
  border-radius: 999px;
}

.hero::before {
  width: 52vw;
  height: 52vw;
  min-width: 360px;
  min-height: 360px;
  top: 8%;
  left: -18%;
  opacity: 0.32;
}

.hero::after {
  width: 32vw;
  height: 32vw;
  right: -10%;
  bottom: 4%;
  opacity: 0.24;
}

.nav {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 3;
  display: flex;
  width: min(920px, calc(100% - 32px));
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(83, 60, 47, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 28px rgba(83, 60, 47, 0.08);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav-cta {
  background: rgba(153, 163, 135, 0.18);
  color: var(--brown);
}

.nav.is-scrolled {
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 14px 34px rgba(83, 60, 47, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-top: 82px;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.final-script {
  font-family: "Cormorant Garamond", Georgia, serif;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(62px, 11.7vw, 126px);
  font-weight: 500;
  line-height: 0.78;
}

.hero-title {
  display: grid;
  gap: 4px;
  justify-items: center;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.9;
}

.hero-title span {
  display: block;
  width: max-content;
}

.hero-title .ampersand {
  font-size: 0.55em;
  line-height: 0.72;
  transform: translate(-0.02em, 0.16em);
}

.hero-eyebrow {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3.5vw, 27px);
  font-weight: 600;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 500;
  line-height: 0.95;
}

h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.25;
}

.date {
  margin-bottom: 32px;
  color: var(--soft-ink);
  font-size: clamp(18px, 3vw, 28px);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: var(--white);
  background: var(--brown);
  box-shadow: 0 16px 34px rgba(83, 60, 47, 0.18);
}

.secondary {
  color: var(--brown);
  background: var(--cream);
  box-shadow: 0 14px 30px rgba(83, 60, 47, 0.12);
}

.photo-garland {
  position: relative;
  left: 50%;
  z-index: 2;
  width: min(1040px, calc(100% - 40px));
  height: 250px;
  margin-top: clamp(16px, 2vw, 26px);
  pointer-events: none;
  transform: translateX(-50%);
}

.garland-rope {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px;
  overflow: visible;
}

.garland-rope path {
  fill: none;
  stroke: rgba(83, 60, 47, 0.4);
  stroke-linecap: round;
  stroke-width: 3px;
}

.garland-item {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 112px;
  transform: translateX(-50%);
}

.garland-clip {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 3;
  width: 18px;
  height: 28px;
  border-radius: 10px 10px 4px 4px;
  background: var(--taupe);
  box-shadow: inset 0 -7px 0 rgba(83, 60, 47, 0.12);
  transform: translateX(-50%) rotate(calc(var(--rotate) * -0.35));
}

.photo-card {
  position: absolute;
  top: 14px;
  left: 50%;
  display: grid;
  width: 108px;
  height: 128px;
  padding: 8px;
  border: 1px solid rgba(83, 60, 47, 0.14);
  background: var(--white);
  box-shadow: var(--shadow);
  color: rgba(83, 60, 47, 0.5);
  font-size: 12px;
  font-weight: 800;
  place-items: center;
  transform: translateX(-50%) rotate(var(--rotate));
  transform-origin: 50% 0;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) 0;
}

.intro {
  display: block;
  width: min(880px, calc(100% - 36px));
}

.letter {
  position: relative;
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid rgba(83, 60, 47, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.95), rgba(249, 242, 230, 0.78)),
    var(--white);
  box-shadow: 0 18px 48px rgba(83, 60, 47, 0.09);
}

.letter::before {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(249, 218, 224, 0.95);
  content: "♡";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  transform: rotate(12deg);
}

.intro-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.65vw, 30px);
  line-height: 1.35;
  text-align: center;
}

.intro-text p {
  margin-bottom: 18px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro .section-label {
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17.87px;
  font-weight: 600;
  text-align: center;
}

.letter-sign {
  margin: 28px 0 0;
  color: var(--sage-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  text-align: right;
}

.letter-sign::before,
.letter-sign::after {
  display: inline-block;
  color: rgba(153, 163, 135, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}

.letter-sign::before {
  margin-right: 10px;
  content: "♡";
  font-size: 0.86em;
  transform: rotate(-12deg);
}

.letter-sign::after {
  margin-left: 10px;
  content: "✦";
  font-size: 0.72em;
  transform: rotate(14deg);
}

.rsvp {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(1020px, calc(100% - 36px));
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid rgba(83, 60, 47, 0.13);
  border-radius: 8px;
  background: rgba(153, 163, 135, 0.2);
  box-shadow: var(--shadow);
}

.rsvp::after {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  color: rgba(249, 218, 224, 0.72);
  content: "♡";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-16deg);
}

.rsvp h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 58px);
}

.rsvp .section-label {
  font-size: 16px;
}

.rsvp p:last-child,
.gifts p,
.location-card p,
.timeline-item p {
  color: var(--soft-ink);
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.schedule .section-label {
  font-size: 17px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-item time,
.location-time {
  color: var(--brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
}

.palette {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(83, 60, 47, 0.15);
  border-radius: 8px;
  box-shadow: var(--shadow);
  grid-template-columns: minmax(320px, 1.55fr) repeat(5, minmax(76px, 1fr));
}

.palette-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 48px);
  color: var(--white);
  background: var(--brown);
}

.palette-note p {
  font-size: clamp(17px, 2.05vw, 23px);
  line-height: 1.5;
}

.palette-note span {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.82;
}

.swatch {
  min-height: 220px;
}

.swatch.dark {
  background: #533c2f;
}

.swatch.taupe {
  background: #dbcdbd;
}

.swatch.cream {
  background: #fef0be;
}

.swatch.sage {
  background: #99a387;
}

.swatch.blush {
  background: #f9dae0;
}

.gifts {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  gap: clamp(32px, 8vw, 90px);
  align-items: center;
}

.gift-illustration {
  position: relative;
  display: grid;
  height: 220px;
  place-items: center;
}

.gift-image {
  display: block;
  width: min(260px, 100%);
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.gift-box {
  position: absolute;
  right: 28px;
  bottom: 0;
  width: 170px;
  height: 138px;
  border: 2px solid var(--brown);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 43%, rgba(83, 60, 47, 0.18) 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, rgba(83, 60, 47, 0.14) 43% 57%, transparent 57%),
    var(--cream);
}

.gift-box::before {
  position: absolute;
  top: -28px;
  left: -16px;
  width: 202px;
  height: 34px;
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: var(--blush);
  content: "";
}

.gift-bow {
  position: absolute;
  right: 58px;
  top: 0;
  z-index: 2;
  width: 120px;
  height: 88px;
  background: none;
}

.gift-bow::before,
.gift-bow::after {
  position: absolute;
  top: 22px;
  width: 54px;
  height: 42px;
  border: 2px solid var(--brown);
  border-radius: 58% 42% 58% 42%;
  background: rgba(153, 163, 135, 0.78);
  content: "";
}

.gift-bow::before {
  left: 4px;
  transform: rotate(18deg);
}

.gift-bow::after {
  right: 4px;
  transform: scaleX(-1) rotate(18deg);
}

.gift-knot {
  position: absolute;
  top: 39px;
  left: 50%;
  z-index: 2;
  width: 22px;
  height: 20px;
  border: 2px solid var(--brown);
  border-radius: 50%;
  background: var(--blush);
  transform: translateX(-50%);
}

.gift-tail {
  position: absolute;
  top: 60px;
  z-index: 1;
  width: 34px;
  height: 45px;
  border: 2px solid var(--brown);
  background: rgba(153, 163, 135, 0.72);
}

.tail-left {
  left: 38px;
  border-radius: 6px 6px 18px 6px;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 50% 78%, 14% 100%);
  transform: rotate(15deg);
}

.tail-right {
  right: 38px;
  border-radius: 6px 6px 6px 18px;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 50% 78%, 14% 100%);
  transform: rotate(-15deg);
}

.gifts .gift-label {
  color: var(--sage-deep);
  font-size: 23px;
  padding-left: clamp(18px, 4vw, 46px);
}

.gifts h2 {
  font-size: clamp(32px, 4.4vw, 46px);
}

.locations {
  width: min(1180px, calc(100% - 36px));
}

.locations .section-label {
  margin: 18px 0 16px;
  font-size: 17px;
}

.locations h2 {
  font-size: clamp(36px, 5.65vw, 41.05px);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.location-card {
  min-height: 310px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(83, 60, 47, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 14px 34px rgba(83, 60, 47, 0.08);
}

.location-card h3 {
  margin-top: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brown);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.final {
  display: grid;
  justify-items: center;
  padding-bottom: 92px;
  text-align: center;
}

.final-script {
  margin-bottom: 20px;
  color: var(--sage-deep);
  font-size: clamp(72px, 13vw, 150px);
  line-height: 0.85;
}

.final-details {
  margin-bottom: 28px;
}

.final-details p {
  margin-bottom: 8px;
  font-size: 18px;
}

.final-details strong {
  display: block;
  color: var(--brown);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
}

.final-details span {
  display: block;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    min-height: 860px;
    align-items: start;
  }

  .hero-inner {
    padding-top: 116px;
  }

  .photo-garland {
    width: min(760px, calc(100% - 28px));
    height: 230px;
    margin-top: 20px;
  }

  .intro,
  .rsvp,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .rsvp {
    justify-items: start;
  }

  .palette {
    grid-template-columns: repeat(5, 1fr);
  }

  .palette-note {
    min-height: 280px;
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .intro::before {
    display: none;
  }

  .schedule::after {
    display: none;
  }

  .final::after {
    display: none;
  }

  .hero {
    min-height: 780px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .nav {
    gap: 2px;
    padding: 6px;
  }

  .nav a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .photo-garland {
    width: min(520px, calc(100% - 22px));
    height: 210px;
    margin-top: 18px;
  }

  .photo-card {
    width: 72px;
    height: 96px;
  }

  .garland-item {
    width: 80px;
  }

  .item-one {
    --x: 11% !important;
    --y: 53px !important;
  }

  .item-two {
    --x: 35% !important;
    --y: 75px !important;
  }

  .item-three {
    --x: 65% !important;
    --y: 75px !important;
  }

  .item-four {
    --x: 89% !important;
    --y: 53px !important;
  }

  .section {
    width: min(100% - 28px, 1120px);
  }

  .intro-text {
    padding-left: 20px;
  }

  .letter-sign::before {
    margin-right: 6px;
    font-size: 0.72em;
  }

  .letter-sign::after {
    margin-left: 6px;
    font-size: 0.62em;
  }

  .rsvp::after {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .palette {
    min-height: auto;
  }

  .swatch {
    min-height: 145px;
  }

  .gifts {
    grid-template-columns: minmax(86px, 112px) 1fr;
    gap: 18px;
    align-items: start;
  }

  .gift-illustration {
    height: auto;
    min-height: 116px;
    align-self: start;
    padding-top: 6px;
  }

  .gift-image {
    width: min(108px, 100%);
    max-height: 128px;
  }

  .gift-box {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .gift-bow {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}
