:root {
  --bg: #fbf7f6;
  --bg-alt: #f3ecea;
  --text: #1f2328;
  --muted: rgba(31, 35, 40, 0.72);
  --line: rgba(31, 35, 40, 0.12);
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 14px 44px rgba(31, 35, 40, 0.12);
  --radius: 18px;
  --accent: #b57c6f;
  --accent2: #e0b7aa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(800px 520px at 10% 10%, rgba(224, 183, 170, 0.26), transparent 60%),
    radial-gradient(720px 520px at 90% 30%, rgba(181, 124, 111, 0.18), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, rgba(181, 124, 111, 0.035) 0 2px, transparent 2px 14px),
    radial-gradient(900px 520px at 20% 10%, rgba(224, 183, 170, 0.34), transparent 60%),
    radial-gradient(760px 560px at 80% 30%, rgba(181, 124, 111, 0.22), transparent 60%),
    radial-gradient(520px 420px at 50% 75%, rgba(224, 183, 170, 0.22), transparent 60%),
    linear-gradient(180deg, #fbf7f6, #f3ecea);
  padding: 24px;
  transition: opacity 260ms ease, transform 260ms ease;
}

.cover::before,
.cover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(240px, 34vw);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.4;
  mix-blend-mode: multiply;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  z-index: 0;
  animation: floralFloat 8.2s ease-in-out infinite;
}

.cover::before {
  left: -10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='900' viewBox='0 0 260 900'%3E%3Cg fill='none' stroke='rgba(181,124,111,0.45)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M160 40c-44 36-62 92-48 150 10 42 0 78-26 110-28 34-40 84-26 128 16 52 4 90-28 132-38 50-40 118-6 170 30 46 26 96-12 146'/%3E%3Cpath d='M118 130c-18-8-30-22-34-42 20 0 38 10 50 26'/%3E%3Cpath d='M96 250c-20-6-34-20-42-40 22 2 42 14 54 30'/%3E%3Cpath d='M92 392c-18-8-30-22-34-42 20 0 38 10 50 26'/%3E%3Cpath d='M92 538c-20-6-34-20-42-40 22 2 42 14 54 30'/%3E%3Cpath d='M108 690c-18-8-30-22-34-42 20 0 38 10 50 26'/%3E%3Cpath d='M94 810c-20-6-34-20-42-40 22 2 42 14 54 30'/%3E%3C/g%3E%3Cg fill='rgba(224,183,170,0.25)'%3E%3Ccircle cx='126' cy='128' r='5'/%3E%3Ccircle cx='102' cy='248' r='5'/%3E%3Ccircle cx='98' cy='390' r='5'/%3E%3Ccircle cx='100' cy='536' r='5'/%3E%3Ccircle cx='110' cy='688' r='5'/%3E%3Ccircle cx='96' cy='808' r='5'/%3E%3C/g%3E%3C/svg%3E");
  transform-origin: left center;
}

.cover::after {
  right: -10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='900' viewBox='0 0 260 900'%3E%3Cg fill='none' stroke='rgba(181,124,111,0.45)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M100 40c44 36 62 92 48 150-10 42 0 78 26 110 28 34 40 84 26 128-16 52-4 90 28 132 38 50 40 118 6 170-30 46-26 96 12 146'/%3E%3Cpath d='M142 130c18-8 30-22 34-42-20 0-38 10-50 26'/%3E%3Cpath d='M164 250c20-6 34-20 42-40-22 2-42 14-54 30'/%3E%3Cpath d='M168 392c18-8 30-22 34-42-20 0-38 10-50 26'/%3E%3Cpath d='M168 538c20-6 34-20 42-40-22 2-42 14-54 30'/%3E%3Cpath d='M152 690c18-8 30-22 34-42-20 0-38 10-50 26'/%3E%3Cpath d='M166 810c20-6 34-20 42-40-22 2-42 14-54 30'/%3E%3C/g%3E%3Cg fill='rgba(224,183,170,0.25)'%3E%3Ccircle cx='134' cy='128' r='5'/%3E%3Ccircle cx='158' cy='248' r='5'/%3E%3Ccircle cx='162' cy='390' r='5'/%3E%3Ccircle cx='160' cy='536' r='5'/%3E%3Ccircle cx='150' cy='688' r='5'/%3E%3Ccircle cx='164' cy='808' r='5'/%3E%3C/g%3E%3C/svg%3E");
  transform-origin: right center;
  animation-duration: 8.8s;
  animation-delay: -1.8s;
}

.cover--hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.cover--gone {
  display: none;
}

.cover__inner {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 10px 16px;
  text-align: center;
  backdrop-filter: none;
}

.cover__heading {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(31, 35, 40, 0.62);
}

.monogram {
  margin-top: 16px;
  display: grid;
  place-items: center;
}

.monogram__wrap {
  position: relative;
  width: 210px;
  height: 210px;
}

.monogram__hex {
  position: absolute;
  inset: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(181, 124, 111, 0.3);
  box-shadow: 0 18px 44px rgba(31, 35, 40, 0.1);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  display: grid;
  place-items: center;
}

.monogram__letters {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-family: "Playfair Display", serif;
  color: rgba(31, 35, 40, 0.78);
}

.monogram__letter {
  font-size: 44px;
  font-weight: 600;
}

.monogram__amp {
  font-size: 28px;
  color: rgba(181, 124, 111, 0.9);
  font-weight: 500;
}

.monogram__floral {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: monogramFloat 6.6s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.cover__divider {
  width: min(260px, 70%);
  height: 2px;
  margin: 14px auto 14px;
  background: linear-gradient(90deg, transparent, rgba(181, 124, 111, 0.55), transparent);
  border-radius: 999px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.cover__title {
  margin: 18px 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 6.4vw, 56px);
  font-weight: 600;
  line-height: 1.02;
}

.amp {
  color: var(--accent);
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.cover__to {
  margin: 14px 0 18px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(181, 124, 111, 0.38);
  background: rgba(255, 255, 255, 0.64);
}

.cover__toLabel,
.cover__toPlace {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover__toName {
  margin: 8px 0;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
}

.cover__toName--plain {
  margin: 6px 0 2px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cover__note {
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(31, 35, 40, 0.62);
}

@keyframes floralFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, 16px, 0) rotate(0.4deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes monogramFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.hero {
  padding: 54px 20px 26px;
}

.hero__inner {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero__tag {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(31, 35, 40, 0.62);
}

.hero__title {
  margin: 12px 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 600;
  line-height: 1.05;
}

.hero__subtitle {
  margin: 0 0 18px;
  color: var(--muted);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(520px, 100%);
  margin: 0 auto 18px;
}

.countdown__item {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 30px rgba(31, 35, 40, 0.08);
  padding: 12px 8px 10px;
}

.countdown__num {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.countdown__label {
  font-size: 12px;
  color: rgba(31, 35, 40, 0.64);
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 124, 111, 0.36);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  border-color: rgba(181, 124, 111, 0.4);
  background: linear-gradient(180deg, rgba(181, 124, 111, 0.16), rgba(224, 183, 170, 0.16));
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.5);
}

.btn--full {
  width: 100%;
}

.main {
  padding: 6px 20px 26px;
}

.reveal {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0px), var(--reveal-y, 34px), 0) scale(var(--reveal-scale, 0.97));
  filter: blur(10px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal--in {
  opacity: 1;
  transform: none;
  filter: none;
}

.pushup {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.98);
  will-change: transform, opacity;
}

.section {
  padding: 22px 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  border-top: 1px solid rgba(31, 35, 40, 0.04);
  border-bottom: 1px solid rgba(31, 35, 40, 0.04);
}

.section__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.section__title {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

.section__text {
  margin: 0 auto;
  max-width: 780px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.couple {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
}

.couple__separator {
  font-size: 44px;
  margin-top: 22px;
}

.person {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(31, 35, 40, 0.08);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.person__role {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 35, 40, 0.62);
}

.person__name {
  margin-top: 10px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
}

.person__meta {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.person__ig {
  margin-top: 10px;
  display: inline-block;
  color: rgba(181, 124, 111, 0.92);
  text-decoration: none;
  font-weight: 600;
}

.quote {
  margin: 18px auto 0;
  max-width: 820px;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(181, 124, 111, 0.24);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.quote__text {
  color: rgba(31, 35, 40, 0.78);
  line-height: 1.7;
}

.quote__ref {
  margin-top: 10px;
  font-weight: 700;
  color: rgba(181, 124, 111, 0.92);
}

.cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(31, 35, 40, 0.08);
  padding: 18px 16px;
  backdrop-filter: blur(10px);
}

.card__title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid rgba(31, 35, 40, 0.06);
}

.card__row:first-of-type {
  border-top: none;
}

.card__label {
  font-weight: 700;
  color: rgba(31, 35, 40, 0.72);
  font-size: 13px;
}

.card__value {
  color: var(--muted);
  line-height: 1.55;
}

.timeline {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.timeline__item {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(31, 35, 40, 0.09);
  border-radius: var(--radius);
  padding: 14px 14px;
}

.timeline__title {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(181, 124, 111, 0.92);
}

.timeline__text {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.gift {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gift__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(31, 35, 40, 0.08);
  padding: 18px 16px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.gift__bank {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 35, 40, 0.62);
  font-size: 12px;
}

.gift__number {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gift__name,
.gift__address {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.gift__copied {
  margin-top: 10px;
  min-height: 18px;
  color: rgba(181, 124, 111, 0.92);
  font-weight: 700;
  font-size: 13px;
}

.form {
  margin: 14px auto 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 13px;
  color: rgba(31, 35, 40, 0.72);
  font-weight: 700;
}

.field__input {
  border: 1px solid rgba(31, 35, 40, 0.14);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.66);
  outline: none;
}

.field__input:focus {
  border-color: rgba(181, 124, 111, 0.44);
  box-shadow: 0 0 0 4px rgba(224, 183, 170, 0.22);
}

.field__textarea {
  resize: vertical;
  min-height: 110px;
}

.wishes {
  margin: 16px auto 0;
  max-width: 760px;
  display: grid;
  gap: 10px;
}

.wish {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(31, 35, 40, 0.1);
  border-radius: var(--radius);
  padding: 12px 12px;
}

.wish__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.wish__name {
  font-weight: 800;
}

.wish__badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(181, 124, 111, 0.92);
}

.wish__message {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

.footer {
  padding: 26px 20px 44px;
}

.footer__inner {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(31, 35, 40, 0.08);
  padding-top: 20px;
}

.footer__title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 600;
}

.footer__text {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.footer__names {
  margin-top: 12px;
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 600;
}

.footer__top {
  margin-top: 14px;
  display: inline-block;
  text-decoration: none;
  color: rgba(181, 124, 111, 0.92);
  font-weight: 800;
}

@media (max-width: 760px) {
  .cover {
    padding: 18px;
  }

  .cover__inner {
    padding: 22px 16px 18px;
    border-radius: 0;
  }

  .monogram__wrap {
    width: 190px;
    height: 190px;
  }

  .monogram__hex {
    inset: 42px;
  }

  .monogram__letter {
    font-size: 40px;
  }

  .monogram__amp {
    font-size: 26px;
  }

  .hero {
    padding: 42px 16px 18px;
  }

  .hero__subtitle {
    margin-bottom: 14px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown__item {
    padding: 10px 6px 8px;
    border-radius: 16px;
  }

  .countdown__num {
    font-size: 24px;
  }

  .main {
    padding: 6px 16px 22px;
  }

  .section {
    padding: 18px 0;
  }

  .section__title {
    font-size: 24px;
  }

  .person,
  .card,
  .gift__card,
  .timeline__item {
    padding: 16px 14px;
  }

  .card__title {
    font-size: 20px;
  }

  .gift__number {
    font-size: 20px;
    letter-spacing: 0.06em;
  }

  .actions {
    width: min(420px, 100%);
    margin: 0 auto;
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .reveal {
    --reveal-x: 0px;
    --reveal-y: 56px;
    --reveal-scale: 0.97;
    transform: translate3d(var(--reveal-x, 0px), var(--reveal-y, 56px), 0) scale(var(--reveal-scale, 0.97));
    filter: none;
    transition: opacity 780ms ease, transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .couple {
    grid-template-columns: 1fr;
  }

  .couple__separator {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    line-height: 1;
    font-size: 40px;
    padding: 6px 0 2px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .gift {
    grid-template-columns: 1fr;
  }

  .form {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  .reveal {
    filter: none;
    transition: opacity 780ms ease, transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: 38px;
  }

  .cover__title {
    font-size: 40px;
  }

  .btn {
    padding: 12px 14px;
  }

  .card__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .wish__header {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .pushup {
    opacity: 1;
    transform: none;
  }
}
