:root {
  color-scheme: dark;
  --navy: #08101e;
  --ink: #1a2b41;
  --paper: #f2e9d8;
  --silver: #c9d4e1;
  --line: #a59c8a;
  --muted: #586375;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Golos Text", system-ui, sans-serif;
  --script: "Great Vibes", "Cormorant Garamond", cursive;
  --display: "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.22,.72,.22,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--paper); font: 400 16px/1.55 var(--sans); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: .97; text-wrap: balance; }
a, button { color: inherit; }
button, input, textarea { font: inherit; }
a { text-underline-offset: .25em; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #478bd6; outline-offset: 4px; }
.flake {
  display: inline-block;
  flex: none;
  width: 1.35rem;
  aspect-ratio: 1;
  background: currentColor;
  mask: url("/assets/snowflake.svg") center / contain no-repeat;
}

.hero {
  --cover-base: #f3dbe4;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 49px 36px;
  background:
    radial-gradient(ellipse at 48% 43%, #fff5edc7, transparent 68%),
    repeating-linear-gradient(90deg, #fff2ed40 0 30px, transparent 30px 60px),
    var(--cover-base);
  color: var(--ink);
}
.hero-content {
  width: min(100%, 1030px);
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}
.hero-poster {
  position: relative;
  width: min(100%, 620px);
  display: grid;
  border: 1px solid #b6889c;
  background: #fbefe8;
  box-shadow: 0 22px 50px #77405724, 0 3px 7px #77405721;
  animation: cameo-in .78s both var(--ease);
}
.hero-poster.has-art {
  width: 100%;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
}
@media (min-width: 1110px) {
  .hero-poster::before, .hero-poster::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 39px;
    background: repeating-linear-gradient(180deg, #ae5e7d99 0 5px, transparent 5px 11px);
  }
  .hero-poster::before { top: 27px; left: -16px; }
  .hero-poster::after { right: -16px; bottom: 27px; }
}
.poster-copy, .poster-art {
  position: relative;
  container-type: inline-size;
  min-width: 0;
}
.poster-copy {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 32px clamp(15px, 3.2vw, 45px);
}
.poster-copy::before, .poster-art::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid #b68a9b88;
  pointer-events: none;
}
.poster-type { min-width: 0; width: 100%; transition: opacity .24s ease, translate .45s var(--ease); }
.is-open .poster-type { opacity: 0; translate: 0 10px; }
.poster-kicker {
  margin-bottom: 21px;
  font-size: clamp(10px, 2.65cqi, 13px);
  letter-spacing: .115em;
  font-weight: 600;
  text-transform: uppercase;
}
.poster-heading {
  color: #4b263b;
  font: 600 clamp(35px, 17cqi, 95px)/.95 var(--display);
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.poster-heading span { display: block; }
.poster-heading em {
  position: relative;
  display: block;
  margin: -.08em 0 -.12em .23em;
  color: #a74e70;
  font: 400 clamp(54px, 29cqi, 139px)/.91 var(--script);
  letter-spacing: normal;
  text-transform: none;
}
.poster-heading-ru { font: 400 clamp(46px, 17cqi, 95px)/.95 var(--script); text-transform: none; overflow-wrap: anywhere; }
.poster-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 25px;
  color: #713e55;
  font-size: clamp(10px, 2.6cqi, 13px);
  letter-spacing: .13em;
  font-weight: 600;
  text-transform: uppercase;
}
.poster-date .flake { width: 15px; }
.poster-art {
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 285px;
  padding: 20px;
  border-left: 1px solid #bd96a6;
  background: #fff5ee;
}
.poster-age {
  display: block;
  color: #a95073;
  font: 600 clamp(109px, 47cqi, 218px)/.82 var(--display);
  font-variant-numeric: lining-nums;
  letter-spacing: -.085em;
  margin-right: .09em;
}
.poster-embroidery {
  position: relative;
  width: min(90%, 325px);
  height: auto;
  margin-top: 10px;
  filter: drop-shadow(0 5px 4px #71344d30);
  rotate: -4deg;
  animation: ribbon-settle .75s .19s backwards var(--ease);
}
.envelope-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.is-open .envelope-stage { opacity: 1; }
.envelope {
  position: relative;
  width: min(69%, 300px);
  aspect-ratio: 1.82;
  perspective: 900px;
  transform: translateY(24%) rotate(-5deg);
  transition: transform .65s var(--ease);
}
.is-open .envelope { transform: translateY(21%) rotate(0); }
.hero-action {
  width: min(100%, 306px);
  display: grid;
  animation: cameo-in .65s .23s backwards var(--ease);
}
.cover-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px;
  align-items: stretch;
  min-height: 57px;
  padding: 0;
  border: 1px solid #713c54;
  border-radius: 6px;
  color: #fff9f5;
  background: linear-gradient(145deg, #8c4563, #602e48);
  box-shadow: inset 0 0 0 3px #ffc9d74f, 0 8px 17px #80405b35;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: scale .22s var(--ease), box-shadow .22s ease;
}
.cover-ticket::before, .cover-ticket::after {
  position: absolute;
  z-index: 1;
  content: "";
  top: 50%;
  width: 13px;
  aspect-ratio: 1;
  border: 1px solid #9e647b;
  border-radius: 50%;
  background: #f8e6e8;
  translate: 0 -50%;
}
.cover-ticket::before { left: -7px; }
.cover-ticket::after { right: -7px; }
.ticket-label, .ticket-edge { display: grid; place-items: center; padding: 8px 13px; }
.ticket-edge { border-left: 1px dashed #efb6cd; font-size: 22px; line-height: 1; }
@media (hover: hover) {
  .cover-ticket:hover { scale: 1.025; box-shadow: inset 0 0 0 3px #ffc9d768, 0 9px 20px #80405b4a; }
}
.cover-ticket:active { scale: .985; }

.envelope-back, .envelope-pocket { position: absolute; inset: 0; border-radius: 5px; }
.envelope-back {
  background:
    linear-gradient(160deg, #72344e32, #4d1b35a3),
    url("/assets/envelope-lining.webp") center 42% / cover;
  box-shadow: 0 15px 32px #75395145, 0 4px 9px #59304925;
}
.envelope-pocket {
  z-index: 2;
  overflow: hidden;
  background:
    repeating-linear-gradient(116deg, #ffedf316 0 1px, transparent 1px 4px),
    linear-gradient(132deg, #d9a0b4, #be7a96 58%, #a55f80);
  clip-path: polygon(0 0, 1% 0, 48% 55%, 50% 57%, 52% 55%, 99% 0, 100% 0, 100% 100%, 0 100%);
}
.envelope-pocket::before, .envelope-pocket::after {
  content: "";
  position: absolute;
  inset: 0;
}
.envelope-pocket::before {
  background:
    repeating-linear-gradient(72deg, #fff1f414 0 1px, transparent 1px 4px),
    linear-gradient(224deg, #eed0db, #c28ca3 66%);
  clip-path: polygon(100% 0, 100% 100%, 33% 100%);
}
.envelope-pocket::after {
  background:
    repeating-linear-gradient(128deg, #f9e7ed1a 0 1px, transparent 1px 4px),
    linear-gradient(170deg, #eac0d0 6%, #dbacc0 85%);
  clip-path: polygon(50% 50%, 100% 100%, 0 100%);
}
.envelope-band {
  position: absolute;
  z-index: 1;
  inset: 70% 0 13%;
  background:
    linear-gradient(180deg, #a85c7d86, #f4b7d058 46%, #70344e70),
    url("/assets/envelope-lining.webp") 50% 30% / 100% auto;
  border-block: 1px solid #f4d6e3a8;
  box-shadow: 0 1px 4px #73435d43;
}
.envelope-medallion {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 78.5%;
  translate: -50% -50%;
  width: 13%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #9b586f;
  color: #713650;
  background: radial-gradient(circle at 32% 23%, #ffe7ef, #e0a5bc 56%, #bf7897);
  box-shadow: inset 0 0 0 3px #f2ccdaa3, 0 3px 6px #60304742;
  font: 400 clamp(19px, 6vw, 28px)/1 var(--script);
}
.envelope-flap {
  z-index: 3;
  position: absolute;
  inset: 0 0 auto;
  height: 66%;
  transform-origin: top center;
  transition: transform .65s cubic-bezier(.25,.78,.25,1), z-index 0s .27s;
  background:
    linear-gradient(170deg, #f3b9d561, #a4537b2e 52%, #7a3b5a91),
    url("/assets/envelope-lining.webp") center 35% / cover;
  clip-path: polygon(0 0, 100% 0, 100% 2%, 56% 88%, 53% 94%, 50% 96%, 47% 94%, 44% 88%, 0 2%);
}
.is-open .envelope-flap { transform: rotateX(178deg); z-index: 0; }
.seal {
  width: 15%;
  aspect-ratio: 1;
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  border-radius: 43% 48% 45% 49% / 49% 45% 49% 44%;
  display: grid;
  place-items: center;
  color: #603447;
  font: 400 clamp(22px, 4vw, 38px)/1 var(--script);
  background: linear-gradient(135deg, #f4d8df 3%, #d39eaf 44%, #eec2cf 65%, #aa677d);
  border: 1px solid #cc91a6;
  box-shadow: inset 2px 3px 5px #fff8, inset -3px -3px 5px #6f334944, 0 4px 8px #52343d55;
  transition: opacity .24s ease, scale .24s ease;
}
.seal::before { content: ""; position: absolute; inset: 11%; border: 1px solid #783f557a; border-radius: 50%; }
.is-open .seal { opacity: 0; scale: .84; }
.envelope-letter {
  position: absolute;
  z-index: 1;
  inset: 6% 5% auto;
  min-height: 95%;
  padding: 6% 7% 10%;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  border: 1px solid #e6c6ca;
  border-radius: 18px 18px 4px 4px;
  color: #4d253a;
  background:
    repeating-linear-gradient(35deg, #c888970a 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 25%, #fffdf1, #fbeee4 76%, #ebd1d4);
  box-shadow: 0 5px 14px #6e34533c;
  animation: pull-letter .82s .14s both var(--ease);
  translate: 0 var(--lift, 0%);
}
.envelope-letter::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 3px double #a86c859e;
  border-radius: 12px 12px 2px 2px;
  pointer-events: none;
}
.letter-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #9c5676;
  font: 500 22px/.85 var(--serif);
}
.letter-ornament::before, .letter-ornament::after {
  content: "";
  width: clamp(19px, 6vw, 30px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #b17791);
}
.letter-ornament::after { rotate: 180deg; }
.letter-kicker {
  font: 600 10px/1.35 var(--serif);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.letter-title {
  max-width: 100%;
  color: #733c58;
  font: 400 clamp(25px, 7.5vw, 35px)/1.12 var(--script);
  text-wrap: balance;
}
@keyframes pull-letter {
  from { transform: translateY(7%) rotate(-2deg); }
  to { transform: translateY(-72%) rotate(0); }
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: background-color .2s ease, color .2s ease;
}
.noscript { margin: 1rem; }

.guest {
  --ink: #4e293b;
  --paper: #f9efe9;
  --line: #b58b97;
  --muted: #754f5e;
  color-scheme: light;
  background: #eacbd3;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
}
.guest :is(input, textarea) {
  -webkit-user-select: text;
  user-select: text;
}
.guest img:not(.telegram-card img) {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.guest :focus-visible { outline-color: #8d4160; }
.guest .flake {
  mask: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.invitation {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background: #faeee7;
  box-shadow: 0 0 56px #652a401f;
}
.invitation:focus { outline: none; }
.content-section { width: min(100% - 46px, 580px); margin: 0 auto; padding: clamp(45px, 8vw, 83px) 0; }
.content-section + .content-section { border-top: 1px solid #b487975e; }
.content-section h2 {
  padding-inline: .13em;
  font: 400 clamp(53px, 8.1vw, 83px)/.96 var(--script);
}
.note { width: 100%; }
.note-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  width: min(100% - 54px, 840px);
  margin-inline: auto;
}
.note-text {
  flex: 1 1 308px;
  min-width: 0;
  text-align: center;
  padding: clamp(20px, 4vw, 34px) clamp(15px, 3vw, 26px);
  border: 1px solid #bc92a2;
  background: repeating-linear-gradient(90deg, #f8e8e886 0 15px, #fff7f08c 15px 30px), #fff5ed;
  box-shadow: inset 0 0 0 5px #fff7f0, inset 0 0 0 6px #ceabb680;
}
.note-brooch { display: block; width: 82px; height: auto; margin: -2px auto 14px; }
.note h2 { white-space: pre-line; font-size: clamp(47px, 6vw, 70px); }
.note-copy { margin: 22px auto 0; max-width: 420px; font: 600 clamp(21px, 3.7vw, 27px)/1.35 var(--serif); white-space: pre-line; }
.signature { margin-top: 15px; font: 400 48px/1 var(--script); }
.portrait {
  flex: 0 1 380px;
  margin: 0;
}
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: auto 1095 / 1087; }
.invitation-band { width: 100%; padding-inline: 23px; }
.band-inner { width: min(100%, 580px); margin-inline: auto; }
.details { position: relative; background: linear-gradient(120deg, #f5e2e5, #f9eaf0 47%, #eed3de); text-align: center; }
.note + .details { border-top: 0; }
.note + .details::before {
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  content: "";
  background: #faeee7;
  clip-path: polygon(0 0, 100% 0, 100% 52%, 96% 69%, 92% 33%, 86% 60%, 79% 24%, 73% 51%, 65% 30%, 59% 63%, 51% 33%, 46% 56%, 38% 25%, 32% 63%, 26% 39%, 19% 60%, 14% 30%, 8% 58%, 4% 27%, 0 43%);
}
.date-card { position: relative; isolation: isolate; max-width: 485px; margin-inline: auto; }
.paper-star {
  position: absolute;
  z-index: -1;
  top: -3px;
  right: min(2.5vw, 24px);
  width: clamp(41px, 10vw, 82px);
  aspect-ratio: 1;
  rotate: 17deg;
  background: repeating-linear-gradient(120deg, #bd7d9c66 0 6px, #ffe4ecb0 6px 12px);
  clip-path: polygon(49% 1%, 61% 35%, 96% 23%, 72% 51%, 97% 74%, 62% 68%, 50% 98%, 39% 67%, 4% 82%, 28% 51%, 3% 26%, 38% 34%);
}
.date-stars { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 21px; color: #906072; }
.date-stars .flake { width: 10px; }
.date-stars .flake:nth-child(2) { width: 20px; }
.date-card h2 { margin-bottom: .45em; }
.event-date { display: block; font: 400 clamp(38px, 7vw, 63px)/1.05 var(--script); color: #653347; }
.event-day { margin-top: 10px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.details dl { margin: 24px 0 0; }
.details dl div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; text-align: left; }
.details dt { font-size: 14px; color: var(--muted); }
.details dd { font-size: clamp(18px, 4vw, 24px); font-weight: 500; overflow-wrap: anywhere; }
.details small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.timing-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin-top: 26px;
  text-align: left;
}
.timing-note {
  padding: 18px 19px 20px;
  border: 1px solid #b98b9d;
  background: #fff7ef;
  box-shadow: inset 0 0 0 4px #fff7ef, inset 0 0 0 5px #bd8da33d, 0 7px 18px #76445a13;
}
.timing-note--overnight {
  background: #faedf0;
  box-shadow: inset 0 0 0 4px #faedf0, inset 0 0 0 5px #bd8da34d, 0 7px 18px #76445a13;
}
.timing-note-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.timing-note-heading h3 { font-size: 28px; }
.timing-note-icon {
  display: grid;
  flex: 0 0 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #b98b9d;
  border-radius: 50%;
  background: #f6e2e9;
  color: #784458;
  font-size: 22px;
  line-height: 1;
}
.timing-note--location .timing-note-icon::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle, currentColor 1px, transparent 1.8px);
  rotate: -45deg;
}
.timing-note p { font-size: 14px; color: var(--muted); }
.timing-note .timing-note-lead { margin-bottom: 5px; color: var(--ink); font-weight: 600; }
.details.is-seen .timing-note { animation: rise-in .55s .12s backwards var(--ease); }
.details.is-seen .timing-note + .timing-note { animation-delay: .22s; }
.contribution-note {
  position: relative;
  margin-top: 24px;
  padding: 32px clamp(20px, 6vw, 42px) 43px;
  border: 1px solid #b98b9d;
  background: linear-gradient(115deg, #fff9f1, #f9edf0);
  box-shadow: inset 0 0 0 5px #fff6f1, inset 0 0 0 6px #d7b2bf, 0 9px 20px #76445a18;
}
.contribution-ribbon {
  position: absolute;
  top: -7px;
  left: 24px;
  width: 73px;
  height: 15px;
  rotate: -8deg;
  background: repeating-linear-gradient(90deg, #ecc0cf80 0 6px, #fff4ed80 6px 12px), #d68da8;
  clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%, 7% 50%);
}
.contribution-note h3 {
  margin-bottom: 12px;
  font: 400 clamp(37px, 7vw, 55px)/1.06 var(--script);
}
.contribution-note p { font-size: 14px; }
.contribution-note .contribution-amount { margin-top: 11px; }
.contribution-amount strong {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid #d7a8ba;
  border-radius: 999px;
  background: #f3d9e4;
  color: #653347;
  font-size: 16px;
  white-space: nowrap;
}
.contribution-purpose { margin-top: 9px; color: var(--muted); }
.contribution-seal {
  position: absolute;
  bottom: -13px;
  left: calc(50% - 17px);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #ae6e87;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f7dce5, #d297ae);
  box-shadow: inset 0 0 0 3px #ffe9ee65, 0 2px 6px #76445a35;
  color: #653347;
  font: 22px/1 var(--serif);
  rotate: 9deg;
}
.details.is-seen .contribution-note { animation: rise-in .6s .31s backwards var(--ease); }
.outline { border-color: var(--line); margin-top: 22px; }
.outline:hover { background: #f5d8e2; }
.extras p, .extras ol { margin: 22px 0 0; white-space: pre-line; }
.extras ol { list-style: none; padding: 0; }
.extras li { display: flex; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.extras time { color: var(--muted); }

.dress {
  background: radial-gradient(ellipse at 25% 50%, #fce9ef 0%, #f2d6e1 53%, #ecc9d6 100%);
  text-align: center;
}
.dress-layout { display: grid; justify-items: center; gap: 25px; }
.dress-art {
  display: block;
  width: clamp(158px, 32vw, 216px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 10px #66334d2e);
}
.dress-copy h2 { font-size: clamp(48px, 7vw, 71px); white-space: nowrap; }
.dress-copy p { margin: 16px auto 0; max-width: 365px; white-space: pre-line; }
.dress-copy .dress-example { margin-top: 8px; color: var(--muted); font-size: 14px; }
.dress-example strong { color: var(--ink); font-weight: 600; }
.dress-palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 3vw, 25px);
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
}
.dress-palette li { min-width: 67px; }
.dress-palette li::before {
  display: block;
  content: "";
  width: 35px;
  aspect-ratio: 1;
  margin: 0 auto 7px;
  border: 1px solid #6f334b44;
  border-radius: 50%;
  background: var(--swatch);
}
.dress-palette li:nth-child(1) { --swatch: #fff; }
.dress-palette li:nth-child(2) { --swatch: #e9a6bd; }
.dress-palette li:nth-child(3) { --swatch: #e1c5a9; }

.rsvp { background: linear-gradient(145deg, #f9eee7, #fff7ef 62%, #f2dfe3); text-align: center; }
.rsvp-heading p { margin: 16px auto 29px; }
.paper-tag {
  position: relative;
  display: inline-block;
  margin: 0 auto 25px;
  padding: 8px 28px 8px 15px;
  background: #fffaf2;
  border: 1px solid #dbc1be;
  box-shadow: 0 5px 12px #6d2a471a;
  color: #794c60;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(-9deg);
}
.paper-tag::before {
  content: "";
  position: absolute;
  right: 10px; top: 13px;
  width: 6px; height: 6px;
  border: 1px solid #b18490;
  border-radius: 50%;
}
.paper-tag::after {
  content: "";
  position: absolute;
  right: -25px; top: 6px;
  width: 38px; height: 13px;
  border-top: 2px solid #b87892;
  border-radius: 50%;
  transform: rotate(-29deg);
}
form { margin: 0; }
.rsvp form, .login form { display: grid; gap: 20px; text-align: left; }
.field { display: block; font-weight: 500; font-size: 14px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fffbf2;
  border: 1px solid #a49883;
  border-radius: 3px;
  font-size: 16px;
}
textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .muted { color: #5a6170; font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0 0 8px; font-size: 14px; font-weight: 500; }
.attendance-fields, .partner-fields, .menu-fields { display: grid; gap: 16px; }
.response-fields { display: grid; gap: 20px; }
.partner-fields, .menu-fields { border-top: 1px solid var(--line); padding-top: 10px; }
.partner-fields legend, .menu-fields > legend { padding-inline-end: 8px; }
.menu-fields > p { font-size: 13px; }
.menu-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.menu-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 6px 14px 16px;
  border: 1px solid #c89cac;
  border-radius: 12px;
  background: linear-gradient(145deg, #fffaf4, #f7e1e9);
  box-shadow: inset 0 0 0 3px #fff7efe0;
}
.menu-card legend {
  padding: 0 8px;
  color: #753f59;
  font: 400 35px/1 var(--script);
}
.guest .menu-card textarea { border-radius: 7px; }
@media (max-width: 550px) {
  .menu-groups { grid-template-columns: minmax(0, 1fr); gap: 15px; }
}
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; margin: 0; width: 1px; height: 1px; opacity: 0; }
.choice-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 55px;
  height: 100%;
  padding: 9px 8px;
  border: 1px solid #c18fa2;
  border-radius: 28px;
  background: linear-gradient(155deg, #fffbf5, #f7e0e7);
  box-shadow: inset 0 0 0 3px #fff9f3a8, 0 4px 9px #76475b14;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.28;
  text-align: center;
}
.choice-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 17px;
  height: 17px;
  border: 1px solid #b77c94;
  border-radius: 46% 51% 48% 45%;
  background: #f5dfe8;
  box-shadow: inset 0 0 0 2px #fff9f3ad;
}
.choice input:checked + .choice-label {
  color: #fff9f4;
  background: linear-gradient(145deg, #964f6e, #613148);
  border-color: #803f5a;
  box-shadow: inset 0 0 0 3px #f6c6d25c, 0 5px 12px #7f3b542e;
}
.choice input:checked + .choice-label .choice-mark::after {
  content: "";
  width: 5px;
  height: 8px;
  margin-top: -2px;
  border-right: 1.5px solid #6e354f;
  border-bottom: 1.5px solid #6e354f;
  transform: rotate(45deg);
}
.choice input:focus-visible + .choice-label { outline: 2px solid #8d4160; outline-offset: 3px; }
@media (hover: hover) {
  .choice:hover input:not(:checked) + .choice-label { border-color: #9f5f79; }
}
.dark { background: var(--ink); color: #fff5e4; }
.dark:hover { background: #344e6a; }
.dark:disabled { cursor: wait; opacity: .75; }
.form-status { font-size: 14px; color: #852d27; }
.form-status:empty { display: none; }
.success { padding: 32px 20px; border: 1px solid #8393a5; background: #fff7e7; }
.success h3 { font-size: clamp(32px, 6vw, 49px); }
.guest-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  border-top: 1px solid #dbb6bf;
  padding: 32px 12px 30px;
  background:
    linear-gradient(154deg, #fff8ef 47%, #f1d8da 48%, transparent 49%) top left / 50% 72% no-repeat,
    linear-gradient(206deg, #fff8ef 47%, #f1d8da 48%, transparent 49%) top right / 50% 72% no-repeat,
    #f4dfe1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.closing-seal {
  display: grid;
  place-items: center;
  width: 49px;
  aspect-ratio: 1;
  background: linear-gradient(140deg, #f0c9d5, #d799af 63%, #b26586);
  border: 1px solid #be8298;
  border-radius: 45% 49% 46% 44%;
  box-shadow: inset 0 0 0 4px #efbbcd9e, 0 3px 6px #733c5334;
  color: #653347;
  font: 400 29px/1 var(--script);
}
.footer-signoff { font: 400 33px/.95 var(--script); color: #6f3b51; }
.telegram { margin: 0; display: grid; gap: 12px; }
.rsvp .telegram { margin-top: 20px; text-align: left; }
.telegram-card { display: flex; align-items: center; gap: 15px; padding: 12px; border: 1px solid #a7a397; border-radius: 3px; background: #f8f4e9; }
.telegram-card img { width: clamp(84px, 24vw, 112px); height: auto; flex: none; display: block; border-radius: 2px; }
.telegram-card strong { display: block; font-size: 14px; }
.telegram-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 7px;
  padding: 6px 11px;
  border: 1px solid #b88298;
  border-radius: 100px;
  background: linear-gradient(135deg, #fff9f2, #f4dce6);
  color: #713d55;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.telegram-action:hover { background: #f3d7e2; }

.guest .field input, .guest .field textarea { background: #fff9f5; border-color: var(--line); }
.guest .muted, .guest .field input::placeholder, .guest .field textarea::placeholder { color: var(--muted); }
.guest .dark { background-color: #713d55; color: #fff9f5; }
.guest .dark:hover { background-color: #894864; }
.guest .rsvp-submit {
  min-height: 58px;
  gap: 13px;
  border: 1px solid #69394f;
  border-radius: 100px;
  background: linear-gradient(140deg, #9b5873, #6b354e 75%);
  box-shadow: inset 0 0 0 3px #fac9da59, 0 6px 15px #73364e30;
}
.guest .rsvp-submit:not(:disabled):hover { background: linear-gradient(140deg, #aa6381, #713951 75%); }
.rsvp-submit span {
  display: grid;
  place-items: center;
  width: 25px;
  aspect-ratio: 1;
  border: 1px solid #ffecf3a3;
  border-radius: 50%;
}
.guest .success, .guest .telegram-card { background: #fff9f4; border-color: var(--line); }

.admin { width: min(1140px, 100% - 36px); margin: 42px auto; }
.login { max-width: 465px; margin-top: clamp(32px, 12vh, 115px); }
.admin-top { display: flex; justify-content: space-between; align-items: center; }
.back, .text-button { color: var(--silver); font-size: 14px; }
.text-button { background: transparent; border: 0; text-decoration: underline; min-height: 44px; cursor: pointer; }
.admin-box {
  color-scheme: light;
  margin-top: 12px;
  padding: clamp(20px, 5vw, 52px);
  background: var(--paper);
  color: var(--ink);
}
.admin-box .flake { color: #52657f; margin-bottom: 12px; }
.admin-box h1 { font-size: clamp(45px, 7vw, 72px); letter-spacing: -.034em; }
.admin-box > p { margin-top: 12px; }
.login form { margin-top: 24px; }
.admin-box .admin-event { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border-block: 1px solid var(--line); }
.counts div { display: grid; align-content: start; padding: 8px clamp(5px, 2vw, 18px); }
.counts div + div { border-left: 1px solid var(--line); }
.counts dt { font-size: clamp(11px, 2.7vw, 15px); }
.counts dd { font: 600 clamp(38px, 7vw, 58px)/1 var(--serif); }
.table-head { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.table-head p { font-size: 13px; color: var(--muted); }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 660px; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 12px 8px; border-bottom: 1px solid #bbb19e; vertical-align: top; }
thead th { color: var(--muted); font-weight: 500; white-space: nowrap; }
tbody td, tbody th { overflow-wrap: anywhere; white-space: pre-wrap; }
.table-menu { min-width: 160px; }
.table-menu div + div { margin-top: 9px; }
td:last-child { white-space: nowrap; }
.empty { padding: 12px 0; }

.decorated { position: relative; isolation: isolate; }
.decorated > :is(.note-inner, .band-inner) { position: relative; z-index: 1; }
.ornaments { position: absolute; z-index: 0; inset: 0; overflow: hidden; overflow: clip; pointer-events: none; }
.ornament {
  position: absolute;
  display: block;
  height: auto;
  width: var(--ornament-width);
  rotate: var(--tilt, 0deg);
}
img.ornament { filter: drop-shadow(1px 4px 5px #61354b25); }
.has-reveals .ornament:not(.is-seen) { opacity: 0; }
.ornament.is-seen { animation: var(--entrance, ornament-pin) .8s var(--delay, .05s) backwards var(--ease); }

.ornament-rose-stamp { --ornament-width: 72px; --tilt: -13deg; top: 24px; left: 53%; aspect-ratio: auto 262 / 337; }
.ornament-satin-ribbon {
  --ornament-width: 170px;
  --tilt: -69deg;
  --entrance: ornament-sweep;
  --delay: .11s;
  top: -46px;
  right: -19px;
  aspect-ratio: auto 321 / 350;
}
.ornament-paper-gingham {
  --ornament-width: 179px;
  --entrance: ornament-paper;
  --tilt: 12deg;
  left: -26px;
  bottom: -25px;
  aspect-ratio: 1.38;
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, #c984a84d 9px 18px),
    repeating-linear-gradient(90deg, #f9e3e5 0 9px, #eac0d0 9px 18px);
  clip-path: polygon(0 0, 44% 6%, 56% 24%, 66% 31%, 67% 41%, 82% 49%, 86% 62%, 96% 72%, 100% 100%, 0 100%);
}
.ornament-pearl-heart { --ornament-width: 63px; --tilt: 12deg; --delay: .1s; bottom: 26px; left: 51%; aspect-ratio: auto 349 / 329; }
.ornament-embroidered-butterfly {
  --ornament-width: 86px;
  --tilt: 11deg;
  --entrance: ornament-flutter;
  --delay: .16s;
  right: 6.4%;
  bottom: 32px;
  aspect-ratio: auto 350 / 269;
}
.ornament-pocket-watch {
  --ornament-width: 88px;
  --tilt: -14deg;
  --entrance: ornament-swing;
  transform-origin: 50% 11%;
  left: 8%;
  top: 45px;
  aspect-ratio: auto 229 / 350;
}
.ornament-paper-ticket {
  --ornament-width: 222px;
  --tilt: 19deg;
  --entrance: ornament-paper;
  top: -45px;
  right: -36px;
  aspect-ratio: 1.6;
  border: 1px solid #cd9bad;
  background: repeating-linear-gradient(0deg, #e7bcc533 0 1px, transparent 1px 9px), #fff2e9;
  box-shadow: inset 0 0 0 6px #fff6ec, inset 0 0 0 7px #d6aaba;
  clip-path: polygon(9% 0, 100% 0, 100% 97%, 0 97%, 0 83%, 4% 80%, 0 69%, 0 52%, 4% 45%, 0 36%, 0 18%, 4% 10%);
}
.ornament-pearl-moon {
  --ornament-width: 66px;
  --tilt: -24deg;
  --entrance: ornament-swing;
  --delay: .14s;
  left: 6%;
  bottom: 13%;
  aspect-ratio: auto 320 / 328;
}
.ornament-mini-disco-ball {
  --ornament-width: 82px;
  --tilt: 13deg;
  --entrance: ornament-shine;
  --delay: .08s;
  right: 7.5%;
  bottom: 19%;
  aspect-ratio: auto 282 / 350;
}
.ornament-rose-hairclip {
  --ornament-width: 130px;
  --tilt: -33deg;
  --entrance: ornament-paper;
  left: 8%;
  top: 12%;
  aspect-ratio: auto 350 / 244;
}
.ornament-paper-lace {
  --ornament-width: 235px;
  --tilt: 44deg;
  --entrance: ornament-sweep;
  top: -108px;
  right: -55px;
  aspect-ratio: 1;
  background: url("/assets/ornaments/lace-corner.webp") center / contain no-repeat;
}
.ornament-paper-foil {
  --ornament-width: 223px;
  --tilt: 11deg;
  --entrance: ornament-paper;
  left: -64px;
  bottom: -27px;
  aspect-ratio: 1.08;
  background:
    repeating-linear-gradient(121deg, transparent 0 18px, #fff1e641 18px 20px, transparent 20px 27px),
    linear-gradient(133deg, #b783a0, #eabae0 27%, #f7e8ee 43%, #cc88aa 68%, #efd6e2 90%);
  clip-path: polygon(0 0, 47% 4%, 56% 21%, 68% 22%, 69% 47%, 79% 51%, 89% 70%, 90% 83%, 100% 94%, 100% 100%, 0 100%);
}
.ornament-satin-clutch {
  --ornament-width: 151px;
  --tilt: 10deg;
  --delay: .12s;
  right: 6%;
  bottom: 16%;
  aspect-ratio: auto 350 / 308;
}

@keyframes ornament-pin {
  from { opacity: 0; translate: 0 15px; scale: .81; }
  70% { scale: 1.045; }
  to { opacity: 1; translate: none; scale: 1; }
}
@keyframes ornament-sweep {
  from { opacity: 0; translate: 30px -17px; rotate: calc(var(--tilt, 0deg) + 13deg); }
  to { opacity: 1; translate: none; rotate: var(--tilt, 0deg); }
}
@keyframes ornament-paper {
  from { opacity: 0; translate: -16px 14px; }
  to { opacity: 1; translate: none; }
}
@keyframes ornament-flutter {
  from { opacity: 0; translate: -10px 13px; scale: .68 1; }
  55% { scale: 1.07 .95; }
  to { opacity: 1; translate: none; scale: 1; }
}
@keyframes ornament-swing {
  from { opacity: 0; rotate: calc(var(--tilt, 0deg) - 25deg); }
  64% { rotate: calc(var(--tilt, 0deg) + 9deg); }
  to { opacity: 1; rotate: var(--tilt, 0deg); }
}
@keyframes ornament-shine {
  from { opacity: 0; filter: brightness(.78); scale: .88; }
  66% { filter: brightness(1.24) drop-shadow(0 4px 5px #61354b24); }
  to { opacity: 1; filter: drop-shadow(1px 4px 5px #61354b25); scale: 1; }
}

@media (max-width: 850px) {
  .note.decorated { padding-block: 82px 88px; }
  .details.decorated { padding-block: 75px 94px; }
  .dress.decorated { padding-block: 64px 104px; }
  .ornament-rose-stamp { --ornament-width: 42px; top: 23px; left: 23%; }
  .ornament-satin-ribbon { --ornament-width: 105px; top: -26px; right: 3px; }
  .ornament-paper-gingham { --ornament-width: 116px; left: -22px; bottom: -20px; }
  .ornament-pearl-heart { --ornament-width: 43px; bottom: 20px; left: 47%; }
  .ornament-embroidered-butterfly { --ornament-width: 57px; right: 8%; bottom: 24px; }
  .ornament-pocket-watch { --ornament-width: 39px; top: 16px; left: 7%; }
  .ornament-paper-ticket { --ornament-width: 129px; top: -30px; right: -24px; }
  .ornament-pearl-moon { --ornament-width: 47px; bottom: 20px; left: 9%; }
  .ornament-mini-disco-ball { --ornament-width: 48px; right: 9%; bottom: 19px; }
  .ornament-rose-hairclip { --ornament-width: 56px; left: 7%; top: 30px; }
  .ornament-paper-lace { --ornament-width: 123px; top: -55px; right: -38px; }
  .ornament-paper-foil { --ornament-width: 139px; left: -49px; bottom: -24px; }
  .ornament-satin-clutch { --ornament-width: 70px; right: 7%; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .has-reveals .ornament:not(.is-seen) { opacity: 1; }
  .ornament.is-seen { animation: none; }
}

@keyframes cameo-in {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: none; }
}
@keyframes print-in {
  from { opacity: .1; transform: translateY(24px) rotate(-4deg) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes glint {
  from { opacity: .25; transform: scale(.5) rotate(-24deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes rise-in {
  from { opacity: .45; translate: 0 9px; }
  to { opacity: 1; translate: none; }
}
@keyframes ribbon-settle {
  from { opacity: .15; translate: 0 18px; rotate: -9deg; }
  to { opacity: 1; translate: none; rotate: none; }
}
.has-reveals :is(.content-section, .guest-footer) {
  transition: opacity .55s ease-out, translate .66s var(--ease);
}
.has-reveals :is(.content-section, .guest-footer):not(.is-seen):not(:focus-within) {
  opacity: 0;
  translate: 0 27px;
}
.note.is-seen .portrait { animation: print-in .8s .08s backwards var(--ease); }
.note.is-seen .note-brooch, .details.is-seen .paper-star { animation: ribbon-settle .68s .15s backwards var(--ease); }
.content-section.is-seen .flake, .guest-footer.is-seen .flake { animation: glint .65s .15s both var(--ease); }
.date-stars .flake:nth-child(2) { animation-delay: .26s; }
.date-stars .flake:nth-child(3) { animation-delay: .35s; }
.dress.is-seen .dress-art, .guest-footer.is-seen .closing-seal { animation: ribbon-settle .85s .12s backwards var(--ease); }
.dress.is-seen .dress-palette li { animation: rise-in .55s backwards var(--ease); }
.dress.is-seen .dress-palette li:nth-child(1) { animation-delay: .16s; }
.dress.is-seen .dress-palette li:nth-child(2) { animation-delay: .25s; }
.dress.is-seen .dress-palette li:nth-child(3) { animation-delay: .34s; }
.rsvp.is-seen .paper-tag { animation: rise-in .6s .13s backwards var(--ease); }
.guest :is(.response-fields, .attendance-fields, .partner-fields, .success, .telegram-card, .continue):not([hidden]) {
  animation: rise-in .33s both var(--ease);
}
.guest :is(.button, .choice-label, .telegram-action) { transition: background-color .25s ease, border-color .25s ease, color .25s ease, scale .2s var(--ease); }
@media (hover: hover) { .guest .button:not(:disabled):hover { scale: 1.035; } }
.guest :is(.button:not(:disabled), .choice-label, .telegram-action):active { scale: .98; }

@media (max-width: 740px) {
  .hero { padding: 27px 19px 32px; }
  .hero-content { width: min(100%, 440px); gap: 20px; }
  .hero-poster.has-art { grid-template-columns: minmax(0, 1fr); }
  .poster-copy { min-height: 0; padding: 24px 18px 23px; }
  .poster-copy::before, .poster-art::before { inset: 7px; }
  .poster-art {
    min-height: 0;
    padding: 21px 16px 20px;
    border-left: 0;
    border-top: 1px solid #bd96a6;
  }
  .poster-age { font-size: clamp(103px, 38cqi, 148px); }
  .poster-embroidery { width: min(78%, 247px); margin-top: 1px; }
  .poster-kicker { margin-bottom: 14px; }
  .poster-date { margin-top: 18px; }
  .envelope { width: min(75%, 245px); }
  .cover-ticket { min-height: 53px; }
  .details dl div { grid-template-columns: 66px 1fr; }
  .admin { margin-top: 22px; }
}

@media (max-width: 365px) {
  .hero-content { gap: 17px; }
  .poster-copy { padding-block: 22px 20px; }
  .poster-art { padding-block: 16px; }
  .poster-kicker { margin-bottom: 11px; }
  .poster-date { margin-top: 15px; }
  .poster-embroidery { width: min(75%, 210px); }
}
@media (max-width: 500px) {
  .dress-copy p { margin-top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .envelope-letter { translate: none; }
  .has-reveals :is(.content-section, .guest-footer):not(.is-seen) { opacity: 1; translate: none; }
  .guest .button:not(:disabled):hover, .cover-ticket:hover, .cover-ticket:active { scale: none; }
  .guest :is(.button:not(:disabled), .choice-label, .telegram-action):active { scale: none; }
}
