:root {
  --ink: #171119;
  --lavender: #7c69b8;
  --lavender-soft: #b5a2dc;
  --lavender-pale: #f4effb;
  --violet-wash: #eee8f8;
  --sage: #6f7f58;
  --paper: #fffefd;
  --line: rgba(124, 105, 184, 0.34);
  --shadow: 0 18px 50px rgba(72, 49, 118, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12% 8%, rgba(180, 158, 220, 0.34), transparent 26rem),
    radial-gradient(circle at 78% 32%, rgba(223, 213, 244, 0.42), transparent 20rem),
    linear-gradient(180deg, #fffefd 0%, #faf7ff 48%, #fffefd 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: clamp(16rem, 27vw, 25rem);
  height: clamp(23rem, 39vw, 36rem);
  background: url("lavender-floral.svg") center / contain no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

body::before {
  left: -6rem;
  top: 5rem;
  transform: rotate(-8deg);
}

body::after {
  right: -5rem;
  bottom: -2rem;
  transform: scaleX(-1) rotate(-10deg);
}

a {
  color: var(--lavender);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.1rem, 4vw, 4rem);
  background: rgba(255, 254, 253, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 5rem);
  padding: clamp(2rem, 6vw, 6rem) clamp(1.2rem, 5vw, 6rem) 4rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 15rem;
  height: 15rem;
  border: 2px solid rgba(124, 105, 184, 0.2);
  pointer-events: none;
}

.hero::before {
  inset: 1.2rem 1.2rem auto auto;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 2rem 0 0;
}

.hero::after {
  inset: auto auto 1.2rem 1.2rem;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 2rem;
}

.hero-copy {
  position: relative;
  width: min(64rem, 100%);
  text-align: center;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  width: clamp(7rem, 14vw, 12rem);
  height: clamp(10rem, 20vw, 17rem);
  background: url("lavender-floral.svg") center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.hero-copy::before {
  left: max(-8rem, -10vw);
  top: 8rem;
  transform: rotate(-18deg);
}

.hero-copy::after {
  right: max(-8rem, -10vw);
  bottom: 4rem;
  transform: scaleX(-1) rotate(-20deg);
}

.intro {
  max-width: 42rem;
  margin: 0 auto 1.6rem;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
}

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

h1 {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 2rem;
  color: var(--lavender);
  font-family: "Great Vibes", cursive;
  font-size: clamp(5.4rem, 13vw, 10.5rem);
  font-weight: 400;
  line-height: 0.85;
}

h1 small {
  color: var(--lavender);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-style: italic;
  line-height: 1;
}

.parents {
  margin: 0 0 0.3rem;
  color: #9988ca;
  font-size: clamp(1.45rem, 3.2vw, 2.3rem);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
}

.date-band {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.55rem;
  width: min(52rem, 100%);
  margin: 2rem auto;
  padding: 0.8rem 1.6rem;
  color: var(--lavender);
  border: 3px solid var(--lavender);
  font-size: clamp(1.35rem, 2.9vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.date-band span:not(:last-child)::after {
  content: "|";
  margin-left: 1rem;
  color: var(--lavender);
}

.verse,
.verse-ref {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--lavender);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

.verse-ref {
  margin-top: 0.35rem;
}

.section {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.soft-section {
  width: 100%;
  padding-inline: max(1rem, calc((100% - 72rem) / 2));
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(244, 239, 251, 0.92), rgba(255, 255, 255, 0));
  border-block: 1px solid rgba(124, 105, 184, 0.12);
}

.section-heading {
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading p {
  margin-bottom: 0.25rem;
  color: var(--sage);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  color: var(--lavender);
  font-family: "Great Vibes", cursive;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 0.9;
}

.section-heading::after {
  content: "";
  display: block;
  width: min(14rem, 55vw);
  height: 3.5rem;
  margin: 0.6rem auto 0;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(124, 105, 184, 0.34) 0 9%, transparent 10%),
    radial-gradient(ellipse at 82% 50%, rgba(124, 105, 184, 0.34) 0 9%, transparent 10%),
    linear-gradient(90deg, transparent, rgba(124, 105, 184, 0.38), transparent);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 2px;
  opacity: 0.95;
}

h3 {
  margin-bottom: 0.45rem;
  color: var(--lavender);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.1;
}

.detail-grid,
.registry-links {
  display: grid;
  gap: 1rem;
}

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

.registry-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid article,
.registry-copy,
.rsvp-note,
.rsvp-card,
.map-card {
  background: rgba(255, 254, 253, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(72, 49, 118, 0.08);
}

.detail-grid article {
  position: relative;
  padding: 1.4rem;
  overflow: hidden;
  text-align: center;
}

.detail-grid article::before,
.registry-copy::before,
.rsvp-note::before,
.rsvp-card::before {
  content: "";
  position: absolute;
  width: 5.5rem;
  height: 7.5rem;
  background: url("lavender-floral.svg") center / contain no-repeat;
  opacity: 0.13;
  pointer-events: none;
}

.detail-grid article::before {
  right: -1.8rem;
  bottom: -2.2rem;
  transform: scaleX(-1) rotate(-15deg);
}

.detail-grid p,
.registry-copy p,
.rsvp-note p {
  margin-bottom: 0.55rem;
}

.registry-links {
  margin-top: 1rem;
}

.registry-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--lavender);
  color: var(--lavender);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
  gap: 2rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.72rem 1.35rem;
  background: var(--lavender);
  border: 1px solid var(--lavender);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.button:hover {
  background: #6554a0;
  text-decoration: none;
}

.map-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(124, 105, 184, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(124, 105, 184, 0.13) 1px, transparent 1px),
    #fbf8ff;
  background-size: 2rem 2rem;
  color: var(--lavender);
  text-align: center;
}

.pin {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.5rem;
  background: var(--lavender);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.pin::after {
  content: "";
  position: absolute;
  inset: 0.67rem;
  background: #fff;
  border-radius: 50%;
}

.registry-copy {
  position: relative;
  max-width: 55rem;
  margin: 0 auto 1.4rem;
  padding: 1.4rem;
  overflow: hidden;
  text-align: center;
}

.registry-copy::before {
  left: -1.6rem;
  top: -2.2rem;
  transform: rotate(-18deg);
}

.rsvp-section {
  max-width: 58rem;
}

.rsvp-note {
  position: relative;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  overflow: hidden;
  text-align: center;
}

.rsvp-note::before {
  right: -1.7rem;
  top: -2rem;
  transform: scaleX(-1) rotate(-24deg);
}

.rsvp-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  overflow: hidden;
  text-align: center;
}

.rsvp-card::before {
  left: -1.6rem;
  bottom: -2rem;
  transform: rotate(-14deg);
}

.rsvp-card p {
  max-width: 42rem;
  margin-bottom: 0;
}

.rsvp-status {
  min-height: 1.6rem;
  color: var(--lavender);
  font-weight: 700;
}

.rsvp-status.success {
  color: var(--sage);
}

.rsvp-status.error {
  color: #9a3f57;
}

footer {
  padding: 2rem 1rem 3rem;
  color: var(--lavender);
  text-align: center;
}

footer p:first-child {
  margin-bottom: 0.2rem;
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .registry-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 18px;
  }

  body::before,
  body::after {
    opacity: 0.1;
  }

  .hero {
    padding-inline: 1rem;
  }

  .date-band {
    flex-wrap: wrap;
    letter-spacing: 0.07em;
  }

  .date-band span:not(:last-child)::after {
    margin-left: 0.65rem;
  }

  .guest-row {
    grid-template-columns: 1fr;
  }
}
