:root {
  --paper: #fbf1e8;
  --paper-deep: #ffffff;
  --ink: #4d3f39;
  --ink-soft: #7a6a63;
  --rose: #c98a8a;
  --rose-dark: #b07a7a;
  --sage: #9fb2a3;
  --line: #eadad2;
  --shadow: 0 10px 24px rgba(93, 78, 70, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"), linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url("assets/paper-texture.png");
  background-repeat: repeat, no-repeat, repeat;
  background-size: 180px 180px, 100% 100%, 520px 520px;
  line-height: 1.75;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/floral-wash.png") no-repeat left bottom;
  background-size: 56% auto;
  pointer-events: none;
  opacity: 0.8;
  mix-blend-mode: multiply;
  z-index: 1;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/floral-wash.png") no-repeat left bottom;
  background-size: 56% auto;
  pointer-events: none;
  opacity: 0.8;
  mix-blend-mode: multiply;
  z-index: 1;
  transform: rotate(180deg);
}

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

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

.page {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 22px 180px;
  text-align: center;
  display: grid;
  gap: 70px;
  width: 100%;
  overflow-x: hidden;
}

.hero {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.hero__figure {
  max-width: 360px;
  width: 100%;
  margin: 30px 0 0 0;
  padding: 0 0 0 30px;
}

.hero__image {
  width: 100%;
  display: block;
  mix-blend-mode: multiply;
}

.hero__subtitle {
  font-family: "League Script", cursive;
  font-size: 2.2rem;
  margin: 0 0 40px 0;
  color: var(--rose-dark);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  opacity: 0.85;
}

.hero__names {
  font-family: "League Script", cursive;
  font-size: 3.2rem;
  margin: 0 0 20px 0;
  color: var(--rose-dark);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.05em;
}

.quote {
  display: grid;
  gap: 18px;
  justify-items: center;
  position: relative;
  overflow: visible;
}

.quote-accent {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  mix-blend-mode: multiply;
  animation: morphShape 15s infinite alternate ease-in-out;
  opacity: 0.3;
}

.quote-accent--1 {
  width: 200px;
  height: 200px;
  background-color: var(--sage);
  top: -50px;
  right: 50px;
  animation-delay: -5s;
}

.quote-accent--2 {
  width: 150px;
  height: 150px;
  background-color: var(--rose);
  bottom: 30px;
  left: 20px;
  animation-delay: -10s;
}

.quote-accent--3 {
  width: 180px;
  height: 180px;
  background-color: var(--sage);
  top: 50%;
  right: -50px;
  animation-delay: -7s;
}

.quote blockquote {
  margin: 0;
  max-width: 680px;
  font-family: "Tangerine", cursive;
  color: var(--ink-soft);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.quote-wrapper {
  position: relative;
  padding: 20px;
}

.quote-wrapper::before {
  content: '"';
  position: absolute;
  left: -40px;
  top: -20px;
  font-size: 5rem;
  color: var(--rose);
  opacity: 0.3;
  z-index: 0;
  font-family: "League Script", cursive;
}

.quote-wrapper--large {
  position: relative;
  padding: 20px;
}

.quote-wrapper--large::before {
  content: '"';
  position: absolute;
  left: -40px;
  top: -20px;
  font-size: 5rem;
  color: var(--rose);
  opacity: 0.3;
  z-index: 0;
  font-family: "League Script", cursive;
}

.masked-text {
  position: relative;
  overflow: hidden;
  display: block;
  margin: 0;
}

.masked-text span {
  display: block;
  transform: translateY(100%);
  animation: revealText 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.masked-text:nth-child(2) span {
  animation-delay: 0.15s;
}

.masked-text:nth-child(3) span {
  animation-delay: 0.3s;
}

.masked-text:nth-child(4) span {
  animation-delay: 0.45s;
}

.reveal {
  position: relative;
  transform: translateY(40px);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.6s;
}

.quote-content-large {
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.quote-content-large span {
  transform: translateY(100%);
  animation: revealText 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards 0.3s;
}

.quote--opening {
  position: relative;
}

.quote-content {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.quote-line {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.quote-text {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--rose-dark);
  line-height: 1.2;
  text-align: center;
}

.quote-decoration {
  width: clamp(110px, 20vw, 170px);
  height: auto;
  flex: 0 0 auto;
  mix-blend-mode: multiply;
}

.quote-text--secondary {
  margin: 0;
  font-weight: 400;
  font-size: 2rem;
  color: var(--rose-dark);
  max-width: 560px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 640px) {
  .quote-line {
    flex-direction: column;
    gap: 12px;
  }

  .quote-text {
    font-size: 2.4rem;
  }

  .quote-text--secondary {
    font-size: 1.8rem;
  }
}

.quote--closing {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

.quote-wrapper--closing {
  margin-bottom: 30px;
}

.quote-text--emphasis {
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.quote-text--cta {
  margin: 8px 0 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--rose-dark);
}

.cta-container {
  display: grid;
  justify-items: center;
  margin-top: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.emphasis {
  color: var(--rose-dark);
  font-weight: 700;
}

.event-details {
  margin: 0;
}

.event-card {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  display: grid;
  gap: 6px;
  text-align: center;
}

.event-label {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--rose-dark);
  margin: 0;
}

.event-date {
  margin: 0;
  font-weight: 500;
  color: var(--rose-dark);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.event-venue {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
}

.event-address {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  color: var(--rose-dark);
  font-size: 1.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.dress-code {
  display: grid;
  gap: 14px;
  text-align: center;
}

.dress-code__subtitle {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.1rem;
}

.dress-code__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dress-code__item {
  margin: 0;
  padding: 0;
}

.dress-code__image {
  width: 100%;
  display: block;
}

.gift-registry {
  margin: 0;
}

.gift-registry__content {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  display: grid;
  gap: 6px;
  text-align: center;
}

.registry-item p {
  margin: 0;
  font-size: 1.05rem;
}

.registry-store {
  font-weight: 600;
  color: var(--ink);
}

.registry-divider {
  height: 1px;
  background: var(--line);
  margin: 10px auto;
  width: 60%;
}

.registry-note {
  color: var(--rose-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.cta {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: transparent;
  color: var(--rose-dark);
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1.5px solid var(--rose-dark);
  cursor: pointer;
  box-shadow: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.button:hover {
  background: var(--rose-dark);
  color: var(--paper);
}

@media (min-width: 720px) {
  .page {
    padding: 96px 20px 200px;
    gap: 52px;
  }

  .hero__headline {
    font-size: 3.6rem;
  }

  .hero__names {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .quote-headline {
    font-size: 3.2rem;
  }

  .quote-text {
    font-size: 3rem;
  }

  .quote-text--secondary {
    font-size: 2.4rem;
    max-width: 640px;
  }

  .quote-text--cta {
    font-size: 2.4rem;
  }


  .dress-code__grid {
    gap: 18px;
  }

  body::before {
    background-size: 38% auto;
  }

  body::after {
    background-size: 38% auto;
  }
}

@keyframes morphShape {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%;
  }
}

@keyframes revealText {
  to {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

