.wedding-announcement {
  background: #fbf5f5;
  color: #653e53;
  border-block: 1px solid #ecdfe3;
}
.wedding-trigger {
  margin-inline: auto;
  padding: 8px 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 580 .88rem/1.25 var(--font);
}
.wedding-trigger:hover { color: var(--accent); }
.wedding-trigger:focus-visible { outline-offset: -3px; }
.wedding-rings { position: relative; width: 21px; height: 16px; }
.wedding-rings::before, .wedding-rings::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.wedding-rings::before { left: 1px; top: 1px; }
.wedding-rings::after { left: 8px; top: 4px; }
.wedding-dialog:not([open]) { display: none; }
.wedding-dialog {
  width: min(720px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid #e7dce2;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 16px 70px #29202e30;
}
.wedding-dialog::backdrop { background: #231e29aa; }
.wedding-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); position: relative; }
.wedding-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #e7dce2;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  padding: 0;
  font: 400 26px/1 Arial, sans-serif;
}
.wedding-close:hover, .wedding-close:focus-visible { color: var(--accent); background: #f5f2ff; }
.wedding-photo { display: grid; place-items: center; background: #f4e9e7; }
.wedding-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.wedding-copy { align-self: center; padding: 46px clamp(22px, 3vw, 36px) 30px; }
.wedding-tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: #824e62; }
.wedding-copy h2 { margin: 8px 0 14px; font: 600 clamp(2rem, 4.1vw, 3.2rem)/1.02 var(--font); letter-spacing: -.05em; }
.wedding-copy > p:not(.wedding-tag) { font-size: .96rem; line-height: 1.5; }
#wedding-dates { margin-top: 10px; }
.wedding-signature { margin-top: 16px; font-style: italic; }
.wedding-original {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  margin-top: 5px;
  color: var(--accent);
  font-size: .83rem;
  font-weight: 600;
}
.wedding-confetti { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.wedding-confetti i {
  position: absolute;
  top: -12px;
  width: 6px;
  height: 11px;
  border-radius: 1px;
  animation: wedding-fall var(--duration) ease-in var(--delay) both;
}
@keyframes wedding-fall {
  from { transform: translate(0, 0) rotate(10deg); }
  80% { opacity: 1; }
  to { transform: translate(var(--drift), var(--fall)) rotate(var(--turn)); opacity: 0; }
}
@media (max-width: 600px) {
  .wedding-dialog { width: min(390px, calc(100% - 24px)); }
  .wedding-card { grid-template-columns: minmax(0, 1fr); }
  .wedding-photo { height: clamp(165px, 36vh, 285px); height: clamp(165px, 36dvh, 285px); }
  .wedding-photo img { object-fit: cover; object-position: 50% 32%; }
  .wedding-copy { padding: 19px 22px 14px; }
  .wedding-copy h2 { margin: 6px 0 11px; }
  .wedding-signature { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wedding-confetti { display: none; }
  .wedding-confetti i { animation: none; }
}
