:root {
  --ivory: #fbf7ef;
  --cream: #f1eadf;
  --paper: #eee4d6;
  --taupe: #8f8373;
  --olive: #6f7659;
  --moss: #343b2f;
  --ink: #3d3932;
  --soft-ink: #6f675d;
  --white: #fffdf8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: var(--white);
  mix-blend-mode: difference;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.menu-toggle {
  position: relative;
  z-index: 22;
  display: grid;
  gap: 7px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(42deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-42deg);
}

.main-nav {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 48px;
  background: rgba(45, 50, 39, 0.94);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 34px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.main-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  width: 100%;
  height: 94svh;
  object-fit: cover;
  object-position: center;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(27, 31, 22, 0.1), rgba(27, 31, 22, 0.18) 42%, rgba(27, 31, 22, 0.46)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.2), transparent 42%);
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 96px 26px 124px;
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.attention h2,
.location h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(62px, 17vw, 98px);
}

.hero__names {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: clamp(29px, 8vw, 48px);
  line-height: 1;
}

.hero__date {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(25px, 7vw, 42px);
  line-height: 1;
}

.paper-divider {
  position: absolute;
  z-index: 2;
  left: 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.paper-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-divider--after-hero {
  --paper-height: 230px;
  --paper-overlap: 142px;
  top: calc(var(--paper-overlap) * -1);
  height: var(--paper-height);
      transform: translateY(50px);
}

.paper-divider--after-hero img {
  object-position: center top;
  transform: rotate(180deg);
}

.paper-divider--before-attention {
  --paper-height: 96px;
  bottom: -1px;
  height: var(--paper-height);
}

.paper-divider--before-attention img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(100%, 1600px);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.section {
  position: relative;
  padding: 86px 22px;
}

.section__inner {
  position: relative;
  z-index: 5;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.invitation {
  margin-top: 0;
  padding-top: 118px;
  padding-bottom: 142px;
  background: var(--ivory);
  text-align: center;
}

.invitation__inner {
  z-index: 12;
  max-width: 620px;
}

.section h2,
.attention h2,
.location h2 {
  font-size: clamp(46px, 13vw, 78px);
}

.section p,
.attention p,
.location p {
  color: var(--soft-ink);
}

.invitation p:last-child {
  max-width: 520px;
  margin: 28px auto 0;
}

.flower-bridge {
  position: relative;
  z-index: 7;
  width: min(58vw, 260px);
  margin: -86px auto -62px;
  pointer-events: none;
}

.flower-bridge img {
  mix-blend-mode: screen;
  filter: drop-shadow(0 18px 28px rgba(65, 55, 42, 0.18));
}

.attention {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  margin-top: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--moss);
}

.attention::after,
.location::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 31, 22, 0.72), rgba(27, 31, 22, 0.2) 55%, rgba(27, 31, 22, 0.05));
}

.attention__image,
.location__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attention__content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  padding: 150px 24px 72px;
}

.attention p {
  max-width: 520px;
  color: rgba(255, 253, 248, 0.84);
}

.dress-code {
  background:
    linear-gradient(rgba(251, 247, 239, 0.88), rgba(251, 247, 239, 0.9)),
    url("assets/paper-texture.png") center / cover;
}

.split,
.rsvp__grid {
  display: grid;
  gap: 38px;
}

.palette {
  display: flex;
  gap: 12px;
  margin: 28px 0 34px;
}

.palette span {
  width: 36px;
  aspect-ratio: 1;
  border: 1px solid rgba(61, 57, 50, 0.16);
  border-radius: 50%;
  background: var(--swatch);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--moss);
  background: var(--moss);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover {
  background: transparent;
  color: var(--moss);
}

.button--light {
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--moss);
}

.button--light:hover {
  background: transparent;
  color: var(--ivory);
}

.soft-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 999px 999px 8px 8px;
  aspect-ratio: 4 / 5;
}

.soft-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program {
  background: var(--paper);
}

.program__heading {
  max-width: 680px;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid rgba(61, 57, 50, 0.18);
}

.timeline article {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(61, 57, 50, 0.18);
}

.timeline time {
  color: var(--olive);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.timeline h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.timeline p {
  margin: 8px 0 0;
}

.location {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ivory);
}

.location__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  padding: 72px 24px;
}

.location p {
  color: rgba(255, 253, 248, 0.82);
}

.rsvp {
  background:
    linear-gradient(rgba(251, 247, 239, 0.9), rgba(251, 247, 239, 0.96)),
    url("assets/paper-texture.png") center / cover;
}

.rsvp-form {
  display: grid;
  gap: 18px;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(61, 57, 50, 0.32);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.62);
  color: var(--ink);
  padding: 13px 12px;
  outline: none;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 1px 0 var(--moss);
}

.form-note {
  min-height: 26px;
  margin: 0;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(61, 57, 50, 0.18);
  border-radius: 50%;
  background: rgba(251, 247, 239, 0.88);
  color: var(--moss);
  box-shadow: 0 16px 38px rgba(53, 47, 39, 0.18);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.music-toggle.is-playing {
  background: var(--moss);
  color: var(--ivory);
}

.music-toggle__icon {
  font-family: var(--serif);
  font-size: 25px;
}
@media (min-width: 560px) {

   .paper-divider--after-hero {
    --paper-height: 280px;
    --paper-overlap: 176px;
    transform: translateY(50px);
  }

  .paper-divider--before-attention {
    --paper-height: 124px;
  }
}
@media (min-width: 760px) {
  .site-header {
    padding: 24px 40px;
    mix-blend-mode: normal;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    gap: 26px;
    padding: 0;
    background: transparent;
    color: currentColor;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__image {
    height: 100svh;
    object-position: center;
  }

  .hero__content {
    align-content: center;
    justify-items: start;
    width: min(100%, 1180px);
    margin: 0 auto;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(92px, 10vw, 156px);
  }

  .hero__names,
  .hero__date {
    margin-left: 6px;
  }

  .paper-divider--after-hero {
    --paper-height: 300px;
    --paper-overlap: 176px;
    transform: translateY(50px);
  }

  .paper-divider--before-attention {
    --paper-height: 124px;
  }

  .section {
    padding: 126px 48px;
  }

  .invitation {
    padding-top: 150px;
    padding-bottom: 170px;
  }

  .flower-bridge {
    width: min(28vw, 330px);
    margin-top: -128px;
    margin-bottom: -70px;
  }

  .attention {
    min-height: 720px;
    align-items: center;
  }

  .attention__content {
    margin-left: max(48px, calc((100vw - 1120px) / 2));
    padding: 180px 48px 130px 0;
  }

  .split,
  .rsvp__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
    align-items: center;
    gap: 76px;
  }

  .soft-photo {
    aspect-ratio: 5 / 4;
    border-radius: 180px 8px 8px 8px;
  }

  .program .section__inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
    width: min(100%, 1040px);
  }

  .program__heading {
    justify-self: end;
    max-width: 430px;
    padding-top: 6px;
  }

  .program__heading h2 {
    font-size: clamp(62px, 6vw, 86px);
    text-align: left;
  }

  .program__heading .section-kicker {
    text-align: left;
  }

  .timeline {
    width: 100%;
    margin-top: 0;
  }

  .timeline article {
    grid-template-columns: 96px 1fr;
    gap: 28px;
  }

  .location {
    min-height: 760px;
    align-items: center;
  }

  .location__panel {
    margin-left: max(48px, calc((100vw - 1120px) / 2));
    padding: 92px 54px;
    background: rgba(45, 50, 39, 0.48);
    backdrop-filter: blur(8px);
  }
}

@media (min-width: 760px) and (max-width: 999px) {
  .program .section__inner {
    display: block;
    width: min(100%, 720px);
  }

  .program__heading {
    max-width: 620px;
    padding-top: 0;
  }

  .program__heading h2 {
    font-size: clamp(52px, 10vw, 76px);
    text-align: left;
  }

  .program__heading .section-kicker {
    text-align: left;
  }

  .timeline {
    margin-top: 42px;
  }

  .timeline article {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1000px) {

 .paper-divider--after-hero {
    --paper-height: 400px;
    --paper-overlap: 176px;
    transform: translateY(20px);
  }

  .paper-divider--before-attention {
    --paper-height: 124px;
  }

  }

@media (min-width: 1200px) {
  .hero__content {
    padding-left: 56px;
  }

  .paper-divider--after-hero {
    --paper-height: 450px;
    --paper-overlap: 200px;
    transform: translateY(90px);
  }

  .paper-divider--before-attention {
    --paper-height: 160px;
  }

  .section h2,
  .attention h2,
  .location h2 {
    font-size: 86px;
  }

  .section {
    padding-top: 150px;
    padding-bottom: 150px;
  }

  .invitation {
    padding-top: 72px;
  }

  .invitation__inner {
    transform: translateY(-42px);
  }
}
