:root {
  color-scheme: light;
  --wine: #572127;
  --wine-deep: #351217;
  --rose: #8f4850;
  --sage: #7f8c72;
  --ink: #3d2a2b;
  --paper: #fbfaf6;
  --paper-soft: #f4f0ea;
  --line: rgba(87, 33, 39, 0.18);
  --shadow: rgba(54, 28, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--wine);
  overflow: hidden;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  background:
    linear-gradient(90deg, rgba(87, 33, 39, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(87, 33, 39, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 18px 18px;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  height: 100svh;
  padding: clamp(0.75rem, 2vw, 1.4rem);
  overflow: hidden;
  isolation: isolate;
}

.page-shell::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.82), transparent 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(244, 240, 234, 0.76));
}

.page-shell::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: clamp(3rem, 9vw, 6rem);
  content: "";
  background: var(--wine);
  box-shadow: 0 -0.5rem 2rem rgba(87, 33, 39, 0.12) inset;
}

.floral {
  position: absolute;
  z-index: -1;
  width: min(100%, 80rem);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.floral-top {
  top: 0;
  height: clamp(5.4rem, 14vw, 8rem);
  object-fit: cover;
  object-position: top center;
  opacity: 0.88;
  mask-image: linear-gradient(180deg, #000 54%, transparent 100%);
}

.floral-bottom {
  bottom: clamp(2.2rem, 6vw, 4rem);
  height: clamp(5.3rem, 14vw, 8.5rem);
  object-fit: cover;
  object-position: bottom center;
  opacity: 0.92;
  mask-image: linear-gradient(0deg, #000 62%, transparent 100%);
}

.gift-panel {
  align-self: center;
  justify-self: center;
  width: min(100%, 34rem);
  margin: clamp(3.4rem, 7vw, 4.4rem) 0 clamp(5rem, 10vw, 6.3rem);
  padding: clamp(0.45rem, 2vw, 1rem);
  text-align: center;
}

.monogram {
  width: clamp(5.3rem, 18vw, 7.2rem);
  aspect-ratio: 497 / 606;
  margin: 0 auto clamp(0.85rem, 3vw, 1.25rem);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--rose);
  font-size: clamp(0.98rem, 2.3vw, 1.2rem);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--wine);
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(2.45rem, 8vw, 3.45rem);
  font-weight: 400;
  line-height: 0.92;
}

.intro {
  max-width: 30rem;
  margin: clamp(0.55rem, 1.6vw, 0.75rem) auto clamp(0.7rem, 2vw, 0.95rem);
  color: rgba(61, 42, 43, 0.78);
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  line-height: 1.28;
}

.details {
  display: grid;
  gap: 0.42rem;
  text-align: left;
}

.detail-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.45rem 0.72rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 0.65rem 1.6rem rgba(88, 54, 56, 0.08);
  backdrop-filter: blur(3px);
}

.label {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--rose);
  font-size: 0.72rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-row strong {
  display: block;
  color: var(--wine-deep);
  font-size: clamp(0.98rem, 3.2vw, 1.22rem);
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.copy-row button {
  flex: 0 0 auto;
  min-width: 4.85rem;
  min-height: 2.2rem;
  padding: 0.42rem 0.78rem;
  color: #fffaf8;
  background: var(--wine);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0.35rem 0.9rem var(--shadow);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.copy-row button:focus-visible {
  outline: 3px solid rgba(127, 140, 114, 0.55);
  outline-offset: 3px;
}

.copy-row button[data-copied="true"] {
  background: var(--sage);
}

.closing {
  margin: clamp(0.45rem, 1.4vw, 0.6rem) auto 0;
  color: rgba(61, 42, 43, 0.72);
  font-size: clamp(0.96rem, 2.5vw, 1.08rem);
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0.65rem;
  }

  .gift-panel {
    margin-top: 4.35rem;
    margin-bottom: 5.7rem;
    padding-inline: 0;
  }

  .detail-row {
    align-items: stretch;
    min-height: 0;
  }

  .copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .copy-row button {
    align-self: center;
  }
}

@media (min-width: 700px) {
  .gift-panel {
    width: min(92vw, 46rem);
    margin-top: clamp(4rem, 8vh, 5.5rem);
    margin-bottom: clamp(4.8rem, 9vh, 6.4rem);
  }

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

  .detail-row:nth-child(1),
  .detail-row:nth-child(2) {
    grid-column: 1 / -1;
  }

  .detail-row {
    min-height: 3.05rem;
  }

  .floral-bottom {
    opacity: 0.72;
  }
}

@media (min-width: 1100px) and (max-height: 780px) {
  .gift-panel {
    width: min(88vw, 44rem);
    margin-top: 4.1rem;
    margin-bottom: 4.7rem;
  }

  .monogram {
    width: 6rem;
  }

  .intro {
    max-width: 34rem;
  }

  .floral-bottom {
    height: 7.1rem;
  }
}

@media (max-width: 360px) {
  .copy-row {
    grid-template-columns: 1fr;
  }

  .copy-row button {
    justify-self: start;
  }
}
