@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,600;6..96,800&family=DM+Sans:wght@400;500;600;700&family=Mrs+Saint+Delafield&display=swap");

:root {
  --blue: #092f73;
  --blue-deep: #031a42;
  --blue-bright: #174f9f;
  --blue-pale: #b7caec;
  --silver: #d9dde2;
  --paper: #f2f1ec;
  --ink: #071a3d;
  --white: #fff;
  --serif: "Bodoni Moda", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.invitation-locked,
html.invitation-locked body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--blue-deep);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.button {
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.cover {
  align-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgb(129 162 217 / 45%), transparent 24%),
    radial-gradient(circle at 80% 70%, rgb(255 255 255 / 12%), transparent 26%),
    linear-gradient(145deg, var(--blue), var(--blue-deep));
  display: flex;
  flex-direction: column;
  height: 100svh;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
  position: relative;
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 20;
}

.cover__noise,
.paper-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
}

.cover__kicker {
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  margin: 0 0 2.75rem;
  position: relative;
}

.cover--opened .cover__kicker {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.envelope-wrap {
  height: min(64vw, 25rem);
  max-width: 40rem;
  position: relative;
  width: min(88vw, 40rem);
}

.letter {
  background:
    linear-gradient(rgb(255 255 255 / 84%), rgb(255 255 255 / 84%)),
    repeating-linear-gradient(0deg, transparent 0 4px, rgb(0 0 0 / 3%) 5px);
  border: 1px solid rgb(0 0 0 / 8%);
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 24%);
  height: 66%;
  left: 8%;
  padding: 8% 8%;
  position: absolute;
  text-align: center;
  top: 32%;
  transform: rotate(-2deg);
  transition:
    height 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  width: 84%;
  z-index: 1;
}

.cover--opened .letter {
  height: 85%;
  top: -24%;
  transform: rotate(-2deg) translateY(-8%);
  z-index: 3;
}

.letter::after {
  border: 1px solid var(--blue);
  content: "";
  inset: 1rem;
  opacity: 0.28;
  position: absolute;
}

.letter span {
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(0.65rem, 2vw, 0.9rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.letter h1 {
  color: var(--blue);
  font-family: var(--script);
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 400;
  line-height: 0.8;
  margin: 0.5rem 0 0.4rem;
}

.letter strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(0.75rem, 2.4vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.letter p {
  font-size: clamp(0.55rem, 1.8vw, 0.75rem);
  letter-spacing: 0.15em;
}

.letter .letter__recipient {
  color: var(--blue);
  font-family: var(--sans);
  font-size: clamp(0.6rem, 1.8vw, 0.8rem);
  letter-spacing: 0.04em;
  margin: 0.45rem 0;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
}

.letter__recipient strong {
  display: inline;
  font-family: var(--serif);
  font-size: 1.15em;
  text-transform: none;
}

.envelope {
  bottom: 0;
  height: 70%;
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.envelope__back,
.envelope__front,
.envelope__left,
.envelope__right,
.envelope__flap {
  position: absolute;
}

.envelope__back {
  background: #ced3da;
  height: 100%;
  inset: 0;
}

.envelope__front {
  background: linear-gradient(158deg, #e2e4e7 0%, #b8bec7 100%);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  inset: 0;
  z-index: 3;
}

.envelope__left {
  background: linear-gradient(35deg, #b9bec5, #eceeef);
  clip-path: polygon(0 0, 56% 52%, 0 100%);
  inset: 0;
  z-index: 4;
}

.envelope__right {
  background: linear-gradient(-35deg, #aeb5be, #e8e9eb);
  clip-path: polygon(100% 0, 44% 52%, 100% 100%);
  inset: 0;
  z-index: 4;
}

.envelope__flap {
  background: linear-gradient(170deg, #e8eaeb, #aeb4bd);
  clip-path: polygon(0 0, 50% 82%, 100% 0);
  height: 78%;
  inset: 0;
  transform-origin: top;
  transition: transform 0.65s ease;
  z-index: 5;
}

.cover--opened .envelope__flap {
  transform: rotateX(180deg);
}

.envelope__recipient {
  background: rgb(255 255 255 / 82%);
  border: 1px solid rgb(9 47 115 / 24%);
  color: var(--blue);
  font-family: var(--sans);
  font-size: clamp(0.62rem, 1.7vw, 0.82rem);
  left: 50%;
  letter-spacing: 0.04em;
  max-width: 72%;
  overflow-wrap: anywhere;
  padding: 0.35rem 0.75rem;
  position: absolute;
  text-align: center;
  top: 82%;
  transform: translateX(-50%);
  z-index: 7;
}

.envelope__recipient strong {
  font-family: var(--serif);
  font-size: 1.1em;
  font-weight: 600;
}

.seal {
  background:
    radial-gradient(circle at 34% 27%, #3766ad 0 9%, transparent 10%),
    radial-gradient(circle, #16458b 0 48%, #0b2d68 50% 66%, #5275aa 67% 70%, #102e63 72%);
  border-radius: 50%;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 35%);
  color: var(--white);
  height: 4.7rem;
  left: calc(50% - 2.35rem);
  position: absolute;
  top: 39%;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  width: 4.7rem;
  z-index: 8;
}

.seal:hover {
  transform: scale(1.08) rotate(-4deg);
}

.cover--opened .seal {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.cover--opened {
  opacity: calc(1 - var(--scroll-progress, 0));
  transform: translateY(var(--scroll-offset, 0px));
}

.seal span {
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.75rem;
  height: 3.4rem;
  line-height: 3.1rem;
  width: 3.4rem;
}

.cover__hint {
  color: rgb(255 255 255 / 68%);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin: 2.2rem 0 0;
  max-width: min(100%, 32rem);
  text-align: center;
}

.invitation {
  background: var(--paper);
  overflow: hidden;
}

.hero {
  background:
    linear-gradient(rgb(255 255 255 / 82%), rgb(255 255 255 / 82%)),
    repeating-linear-gradient(90deg, transparent 0 2px, rgb(8 47 115 / 8%) 3px);
  min-height: 58rem;
  overflow: hidden;
  padding: 5rem max(1.4rem, calc((100vw - 74rem) / 2));
  position: relative;
}

.hero__copy {
  margin-left: auto;
  position: relative;
  text-align: center;
  width: 47%;
  z-index: 3;
}

.hero__chrome {
  color: #7a818a;
  font-size: clamp(1.4rem, 3.7vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0;
  text-shadow:
    -1px -1px 0 #fff,
    1px 1px 0 #3e464f,
    3px 3px 0 #c9cdd1;
  transform: rotate(-3deg);
}

.hero__copy h1 {
  color: var(--blue);
  font-family: var(--script);
  font-size: clamp(5rem, 11vw, 10rem);
  font-weight: 400;
  line-height: 0.65;
  margin: 1rem 0 2rem;
  transform: rotate(-6deg);
}

.hero__intro {
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.7vw, 1.25rem);
  font-weight: 700;
}

.hero__portrait {
  filter: grayscale(1) contrast(1.08);
  height: 31rem;
  left: max(1rem, calc((100vw - 70rem) / 2));
  position: absolute;
  top: 11rem;
  transform: rotate(-3deg);
  width: min(38vw, 25rem);
  z-index: 2;
}

.hero__portrait img {
  clip-path: polygon(13% 2%, 88% 0, 100% 82%, 82% 100%, 7% 93%, 0 25%);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.party-hat {
  background: repeating-linear-gradient(90deg, #0a347a 0 6px, #4e75bb 7px 11px);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  height: 8rem;
  left: 28%;
  position: absolute;
  top: -6rem;
  transform: rotate(-10deg);
  width: 8rem;
  z-index: 2;
}

.chrome-number {
  background: linear-gradient(165deg, #282d32 5%, #fff 22%, #6a7078 40%, #f9fafb 52%, #3e444b 72%, #dfe3e7 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0.3rem 0.5rem 0 #273241);
  font-family: var(--sans);
  font-size: clamp(11rem, 25vw, 22rem);
  font-weight: 800;
  letter-spacing: -0.15em;
  line-height: 0.8;
  position: absolute;
  right: 6%;
  top: 22rem;
  z-index: 2;
}

.hero__headline {
  bottom: 6.5rem;
  color: var(--blue);
  left: max(1.4rem, calc((100vw - 74rem) / 2));
  line-height: 0.8;
  position: absolute;
  z-index: 4;
}

.hero__headline span,
.hero__headline strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8.7vw, 8rem);
  font-weight: 800;
}

.hero__headline strong {
  letter-spacing: -0.08em;
}

.hero__date {
  bottom: 3rem;
  position: absolute;
  right: max(1.4rem, calc((100vw - 74rem) / 2));
  text-align: right;
  z-index: 4;
}

.hero__date strong,
.hero__date span {
  display: block;
}

.hero__date strong {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.hero__date span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-top: 0.4rem;
}

.disco-ball {
  background:
    repeating-linear-gradient(0deg, transparent 0 10%, rgb(0 0 0 / 36%) 11%, transparent 12%),
    repeating-linear-gradient(90deg, transparent 0 10%, rgb(0 0 0 / 36%) 11%, transparent 12%),
    radial-gradient(circle at 30% 27%, #fff, #bfc4ca 20%, #262c34 48%, #e4e6e8 68%, #3d4650);
  border: 1px solid #717780;
  border-radius: 50%;
  box-shadow: inset -1rem -1rem 2rem rgb(0 0 0 / 34%), 0 1rem 2rem rgb(0 0 0 / 18%);
  display: block;
  position: absolute;
}

.hero__disco--large {
  height: 23rem;
  left: -8rem;
  top: -8rem;
  transform: rotate(12deg);
  width: 23rem;
}

.hero__disco--small {
  height: 10rem;
  right: -2rem;
  top: 8rem;
  transform: rotate(-10deg);
  width: 10rem;
}

.chrome-star {
  background: linear-gradient(135deg, #fff 5%, #646b74 32%, #f8f8f8 52%, #555c64 78%, #fff);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 36%);
  filter: drop-shadow(0.2rem 0.35rem 0.2rem rgb(0 0 0 / 28%));
  height: 5rem;
  position: absolute;
  width: 5rem;
}

.hero__star--one {
  left: 42%;
  top: 5rem;
  transform: rotate(14deg);
}

.hero__star--two {
  height: 3rem;
  left: 5%;
  top: 35rem;
  transform: rotate(25deg);
  width: 3rem;
}

.hero__star--three {
  bottom: 3rem;
  height: 6rem;
  right: 32%;
  transform: rotate(-16deg);
  width: 6rem;
}

.flower {
  display: block;
  height: 8rem;
  position: absolute;
  width: 8rem;
}

.flower i {
  background: radial-gradient(ellipse at 60% 20%, #dce7fa, #6e90ce 42%, #143f85 78%);
  border-radius: 90% 10% 90% 10%;
  height: 3.6rem;
  left: 2.2rem;
  position: absolute;
  top: 0.3rem;
  transform-origin: 1.8rem 3.7rem;
  width: 3.5rem;
}

.flower i:nth-child(2) { transform: rotate(45deg); }
.flower i:nth-child(3) { transform: rotate(90deg); }
.flower i:nth-child(4) { transform: rotate(135deg); }
.flower i:nth-child(5) { transform: rotate(180deg); }
.flower i:nth-child(6) { transform: rotate(225deg); }
.flower i:nth-child(7) { transform: rotate(270deg); }
.flower i:nth-child(8) { transform: rotate(315deg); }

.flower b {
  background: radial-gradient(circle, #fff 0 8%, #1c3d70 10% 30%, #dce5f4 32% 36%, #183669 38%);
  border-radius: 50%;
  height: 2.2rem;
  left: 2.9rem;
  position: absolute;
  top: 2.9rem;
  width: 2.2rem;
  z-index: 2;
}

.hero__flower {
  left: 26%;
  top: 4rem;
  transform: rotate(-12deg);
  z-index: 4;
}

.butterfly {
  color: #8197b7;
  font-family: var(--serif);
  font-size: 4rem;
  left: 46%;
  position: absolute;
  top: 17rem;
  transform: rotate(-12deg);
}

.kiss {
  filter: grayscale(0.4) hue-rotate(175deg) saturate(2);
  font-size: 2.7rem;
  position: absolute;
  z-index: 4;
}

.kiss--one { right: 37%; top: 18rem; transform: rotate(15deg); }
.kiss--two { right: 32%; top: 21rem; transform: rotate(-10deg); }

.countdown-section,
.album-section {
  margin: auto;
  max-width: 74rem;
  padding: 8rem 2rem;
  position: relative;
}

.script-note {
  color: var(--blue);
  font-family: var(--script);
  font-size: 3.6rem;
  line-height: 0.5;
  margin: 0 0 2rem;
  text-align: center;
  transform: rotate(-5deg);
}

.section-heading {
  position: relative;
  text-align: center;
  z-index: 2;
}

.section-heading > span {
  color: var(--blue-bright);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 1rem auto;
  max-width: 48rem;
}

.section-heading h2 em {
  color: var(--blue);
  font-family: var(--script);
  font-size: 1.25em;
  font-weight: 400;
}

.countdown {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin: 4rem auto 0;
  max-width: 48rem;
}

.countdown__item {
  border-left: 1px solid #c6c7c8;
  padding: 1rem;
  text-align: center;
}

.countdown__item:last-child {
  border-right: 1px solid #c6c7c8;
}

.countdown__item strong,
.countdown__item span {
  display: block;
}

.countdown__item strong {
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 400;
}

.countdown__item span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 0.7rem;
  text-transform: uppercase;
}

.details-section {
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  padding: 9rem max(2rem, calc((100vw - 72rem) / 2)) 8rem;
  position: relative;
}

.section-heading--light > span,
.section-heading--light h2 em {
  color: var(--blue-pale);
}

.details-ticker {
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  border-top: 1px solid rgb(255 255 255 / 14%);
  left: 0;
  overflow: hidden;
  padding: 0.85rem 0;
  position: absolute;
  top: 1.4rem;
  transform: rotate(-1.3deg) scale(1.02);
  white-space: nowrap;
  width: 100%;
}

.details-ticker div {
  animation: detail-ticker 24s linear infinite;
  display: inline-flex;
  min-width: max-content;
}

.details-ticker span {
  color: rgb(255 255 255 / 64%);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  padding: 0 2rem;
}

.details-ticker i {
  color: var(--blue-pale);
  font-style: normal;
}

.details-heading {
  margin: 0 auto 5rem;
  max-width: 48rem;
  position: relative;
  text-align: center;
  z-index: 2;
}

.details-heading__index {
  color: rgb(255 255 255 / 38%);
  font-family: var(--serif);
  font-size: 0.68rem;
  left: -4rem;
  letter-spacing: 0.15em;
  position: absolute;
  top: 0;
  transform: rotate(-90deg);
}

.details-heading__note {
  color: rgb(255 255 255 / 58%);
  font-size: 0.76rem;
  line-height: 1.7;
  margin: 1.4rem auto 0;
  max-width: 25rem;
}

.details-layout {
  min-height: 48rem;
  position: relative;
  z-index: 2;
}

.details-date-stamp {
  align-items: center;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 15%), rgb(255 255 255 / 2%)),
    var(--blue-deep);
  border: 1px solid rgb(255 255 255 / 24%);
  display: flex;
  flex-direction: column;
  height: 22rem;
  justify-content: center;
  left: calc(50% - 8rem);
  min-height: 0;
  overflow: hidden;
  position: absolute;
  text-align: center;
  top: 11rem;
  transform: rotate(7deg);
  width: 16rem;
  z-index: 5;
}

.details-date-stamp::before,
.details-date-stamp::after {
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 50%;
  content: "";
  height: 19rem;
  position: absolute;
  width: 19rem;
}

.details-date-stamp::before {
  left: -10rem;
  top: -8rem;
}

.details-date-stamp::after {
  bottom: -8rem;
  right: -10rem;
}

.details-date-stamp span,
.details-date-stamp small {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  position: relative;
  z-index: 1;
}

.details-date-stamp strong {
  background: linear-gradient(165deg, #fff, #747d8a 38%, #fff 52%, #636d79 72%, #e9edf2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(7rem, 11vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.12em;
  line-height: 0.86;
  margin: 1.4rem 0;
  padding-right: 0.12em;
  position: relative;
  text-shadow: 0.25rem 0.3rem 0 rgb(0 0 0 / 18%);
  z-index: 1;
}

.details-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, 4rem);
  inset: 0;
  position: absolute;
}

.details-grid article {
  align-items: center;
  backdrop-filter: blur(0.5rem);
  background: linear-gradient(105deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 4%));
  border: 1px solid rgb(255 255 255 / 18%);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: auto auto 1fr;
  min-height: 0;
  overflow: hidden;
  padding: 1.5rem 2rem;
  position: relative;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

.details-grid article::after {
  border: 1px solid rgb(255 255 255 / 12%);
  content: "";
  inset: 0.45rem;
  pointer-events: none;
  position: absolute;
}

.details-grid article:nth-child(1) {
  --card-angle: -4deg;
  background: linear-gradient(115deg, rgb(255 255 255 / 17%), rgb(255 255 255 / 5%));
  grid-column: 1 / span 6;
  grid-row: 1 / span 4;
  transform: rotate(var(--card-angle));
}

.details-grid article:nth-child(2) {
  --card-angle: 5deg;
  background:
    linear-gradient(115deg, rgb(3 26 66 / 74%), rgb(255 255 255 / 7%)),
    var(--blue);
  grid-column: 8 / span 5;
  grid-row: 2 / span 5;
  margin: 0;
  transform: rotate(var(--card-angle));
}

.details-grid article:nth-child(3) {
  --card-angle: -2deg;
  background: linear-gradient(115deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 4%));
  grid-column: 2 / span 9;
  grid-row: 8 / span 3;
  transform: rotate(var(--card-angle));
  z-index: 6;
}

.details-grid article:nth-child(1):hover {
  background: linear-gradient(105deg, rgb(255 255 255 / 17%), rgb(255 255 255 / 6%));
  border-color: rgb(255 255 255 / 46%);
  transform: rotate(-2deg) translateY(-0.7rem);
}

.details-grid article:nth-child(2):hover {
  border-color: rgb(255 255 255 / 46%);
  transform: rotate(3deg) translateY(-0.7rem);
}

.details-grid article:nth-child(3):hover {
  border-color: rgb(255 255 255 / 46%);
  transform: rotate(0deg) translateY(-0.7rem);
}

.detail-number {
  color: rgb(255 255 255 / 18%);
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 600;
  letter-spacing: -0.12em;
  line-height: 1;
  position: absolute;
  right: 1.2rem;
  top: -0.5rem;
}

.detail-icon {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  display: inline-flex;
  height: 3.8rem;
  justify-content: center;
  width: 3.8rem;
}

.details-grid article:nth-child(1) .detail-icon {
  border-radius: 50% 50% 8% 50%;
  transform: rotate(-8deg);
}

.details-grid article:nth-child(2) .detail-icon {
  border-radius: 8%;
  transform: rotate(45deg);
}

.details-grid article:nth-child(2) .detail-icon svg {
  transform: rotate(-45deg);
}

.details-grid article:nth-child(3) .detail-icon {
  border-radius: 50% 8% 50% 50%;
}

.details-grid article:hover .detail-icon {
  animation: detail-icon-pulse 0.8s ease;
  background: var(--white);
  color: var(--blue);
}

.detail-icon svg,
.button svg {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.details-grid article p {
  color: var(--blue-pale);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.details-grid article strong,
.details-grid article div > span {
  display: block;
}

.details-grid article strong {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.details-grid article div > span {
  color: rgb(255 255 255 / 68%);
  font-size: 0.77rem;
  line-height: 1.7;
  margin: 0.45rem 0 0;
  max-width: 22rem;
}

.detail-tape {
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgb(255 255 255 / 8%) 7px),
    rgb(191 207 234 / 48%);
  height: 1.7rem;
  left: calc(50% - 3.5rem);
  position: absolute;
  top: -0.65rem;
  transform: rotate(2deg);
  width: 7rem;
}

.details-grid article:nth-child(2) .detail-tape {
  left: auto;
  right: -1.5rem;
  top: 2rem;
  transform: rotate(90deg);
}

.details-grid article:nth-child(3) .detail-tape {
  left: 10%;
  transform: rotate(-3deg);
}

.details-floating-label {
  color: rgb(255 255 255 / 25%);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
}

.details-floating-label--when {
  left: -3rem;
  top: 14rem;
  transform: rotate(-90deg);
}

.details-floating-label--where {
  right: -2rem;
  top: 23rem;
  transform: rotate(90deg);
}

.details-floating-label--wear {
  bottom: -1.2rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  left: 34%;
  transform: rotate(2deg);
}

.details-connector {
  border-top: 1px dashed rgb(255 255 255 / 30%);
  position: absolute;
  transform-origin: left;
  z-index: 1;
}

.details-connector::after {
  background: var(--blue-pale);
  border-radius: 50%;
  content: "";
  height: 0.4rem;
  position: absolute;
  right: 0;
  top: -0.22rem;
  width: 0.4rem;
}

.details-connector--one {
  left: 40%;
  top: 8rem;
  transform: rotate(22deg);
  width: 19rem;
}

.details-connector--two {
  left: 28%;
  top: 30rem;
  transform: rotate(-14deg);
  width: 24rem;
}

.button--outline {
  border: 1px solid rgb(255 255 255 / 55%);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  gap: 1rem;
  letter-spacing: 0.12em;
  padding: 1rem 1.6rem;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.details-action {
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.details-action p {
  color: rgb(255 255 255 / 56%);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-style: italic;
  margin: 0;
}

.details-action p span {
  color: var(--blue-pale);
  margin-right: 0.8rem;
}

.details-section__orb {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgb(255 255 255 / 2%),
    0 0 0 6rem rgb(255 255 255 / 2%);
  position: absolute;
}

.details-section__orb--one {
  height: 25rem;
  left: -8rem;
  top: -12rem;
  width: 25rem;
}

.details-section__orb--two {
  bottom: -14rem;
  height: 31rem;
  right: -12rem;
  width: 31rem;
}

.details-section__star {
  animation: detail-star-float 5s ease-in-out infinite;
  height: 7rem;
  opacity: 0.28;
  right: 3%;
  top: 8rem;
  transform: rotate(18deg);
  width: 7rem;
}

.details-section__spark {
  animation: detail-spark 3.5s ease-in-out infinite;
  color: var(--blue-pale);
  font-size: 2.5rem;
  left: 7%;
  position: absolute;
  top: 16rem;
}

[data-reveal]:not([data-reveal="fade"]) {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal]:not([data-reveal="fade"]).is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade"] {
  opacity: 0;
  transition: opacity 0.8s ease;
}

[data-reveal="fade"].is-visible {
  opacity: 1;
}

.details-date-stamp[data-reveal] {
  transform: rotate(7deg) translateY(2rem);
}

.details-date-stamp[data-reveal].is-visible {
  transform: rotate(7deg) translateY(0);
}

.details-grid article[data-reveal] {
  transform: rotate(var(--card-angle)) translateY(2rem);
}

.details-grid article[data-reveal].is-visible {
  transform: rotate(var(--card-angle)) translateY(0);
}

.details-grid article:nth-child(1)[data-reveal].is-visible:hover {
  transform: rotate(-2deg) translateY(-0.7rem);
}

.details-grid article:nth-child(2)[data-reveal].is-visible:hover {
  transform: rotate(3deg) translateY(-0.7rem);
}

.details-grid article:nth-child(3)[data-reveal].is-visible:hover {
  transform: rotate(0deg) translateY(-0.7rem);
}

.details-grid article:nth-child(1) {
  transition-delay: 0.08s;
}

.details-grid article:nth-child(2) {
  transition-delay: 0.18s;
}

.details-grid article:nth-child(3) {
  transition-delay: 0.28s;
}

.hero__copy[data-reveal] { transition-delay: 0.12s; }
.hero__portrait[data-reveal] { transition-delay: 0.24s; }
.chrome-number[data-reveal] { transition-delay: 0.36s; }
.hero__headline[data-reveal] { transition-delay: 0.48s; }
.hero__date[data-reveal] { transition-delay: 0.6s; }
.hero__disco--large[data-reveal] { transition-delay: 0.08s; }
.hero__flower[data-reveal] { transition-delay: 0.2s; }
.hero__disco--small[data-reveal] { transition-delay: 0.28s; }
.hero__star--one[data-reveal] { transition-delay: 0.36s; }
.hero__star--two[data-reveal] { transition-delay: 0.44s; }
.hero__star--three[data-reveal] { transition-delay: 0.52s; }
.butterfly[data-reveal] { transition-delay: 0.32s; }
.paper-noise[data-reveal] { transition-delay: 0.1s; }

.hero__portrait[data-reveal] {
  transform: rotate(-3deg) translateY(2rem);
}

.hero__portrait[data-reveal].is-visible {
  transform: rotate(-3deg) translateY(0);
}

@keyframes detail-ticker {
  to { transform: translateX(-50%); }
}

@keyframes detail-star-float {
  0%, 100% { transform: rotate(18deg) translateY(0); }
  50% { transform: rotate(28deg) translateY(-1rem); }
}

@keyframes detail-spark {
  0%, 100% { opacity: 0.35; transform: rotate(0deg) scale(0.8); }
  50% { opacity: 1; transform: rotate(90deg) scale(1.15); }
}

@keyframes detail-icon-pulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.12) rotate(-8deg); }
}

.album-section__flower {
  right: -1rem;
  top: 3rem;
  transform: rotate(20deg) scale(0.85);
}

.album-grid {
  display: grid;
  gap: 1rem;
  grid-auto-rows: 13rem;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 4rem;
  position: relative;
}

.album-photo {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.album-photo--tall {
  grid-row: span 2;
}

.album-photo--wide {
  grid-column: span 8;
}

.album-photo img {
  filter: saturate(0.5) contrast(1.04);
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.5s ease;
  width: 100%;
}

.album-photo:hover img {
  filter: saturate(0.9);
  transform: scale(1.035);
}

.album-photo figcaption {
  background: var(--paper);
  bottom: 0.6rem;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 0.7rem;
  left: 0.6rem;
  padding: 0.35rem 0.5rem;
  position: absolute;
}

.album-sticker {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 9rem;
  justify-content: center;
  left: calc(66.66% - 4.5rem);
  position: absolute;
  top: calc(50% - 4.5rem);
  transform: rotate(-12deg);
  width: 9rem;
  z-index: 3;
}

.album-sticker span {
  font-family: var(--script);
  font-size: 2.4rem;
  line-height: 0.7;
}

.album-sticker strong {
  font-family: var(--serif);
  font-size: 0.7rem;
  margin-top: 0.7rem;
  text-transform: uppercase;
}

.rsvp-section {
  background:
    radial-gradient(circle at 15% 80%, #335f9e 0, transparent 25%),
    linear-gradient(145deg, var(--blue-deep), var(--blue));
  overflow: hidden;
  padding: 8rem 1.5rem;
  position: relative;
}

.rsvp-card {
  background: var(--paper);
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 30%);
  margin: auto;
  max-width: 44rem;
  min-height: 36rem;
  padding: clamp(2rem, 7vw, 5rem);
  position: relative;
  z-index: 2;
}

.rsvp-card::before {
  border: 1px solid rgb(9 47 115 / 22%);
  content: "";
  inset: 1rem;
  pointer-events: none;
  position: absolute;
}

.rsvp-card__intro {
  color: #687181;
  font-size: 0.8rem;
  margin: 1.5rem 0 3rem;
  position: relative;
  text-align: center;
}

.rsvp-card form {
  position: relative;
}

.field {
  display: block;
  margin-bottom: 1.5rem;
}

.field > span,
.attendance legend {
  color: var(--blue);
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.field input,
.field textarea {
  background: transparent;
  border: 1px solid #b7bcc5;
  border-radius: 0;
  color: var(--ink);
  outline: none;
  padding: 0.95rem 1rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgb(9 47 115 / 12%);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #999fa8;
  font-size: 0.8rem;
}

.attendance {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}

.attendance label {
  display: inline-flex;
  margin: 0.5rem 1.4rem 0.5rem 0;
}

.attendance input {
  accent-color: var(--blue);
}

.attendance label span {
  font-size: 0.78rem;
  margin-left: 0.5rem;
}

.button--primary {
  background: var(--blue);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  gap: 1rem;
  letter-spacing: 0.12em;
  padding: 1.1rem 1.5rem;
  text-transform: uppercase;
  width: 100%;
}

.button--primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.rsvp-error {
  color: #a32232;
  font-size: 0.85rem;
  margin: 0 0 1rem;
  position: relative;
}

.rsvp-section__disco {
  height: 18rem;
  left: -6rem;
  top: -5rem;
  transform: rotate(-14deg);
  width: 18rem;
}

.rsvp-section__star {
  bottom: 4rem;
  right: 3%;
  transform: rotate(20deg);
}

.success-message {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 28rem;
  position: relative;
  text-align: center;
}

.success-message[hidden] {
  display: none;
}

.rsvp-unavailable {
  min-height: 28rem;
  position: relative;
  text-align: center;
}

.rsvp-unavailable[hidden] {
  display: none;
}

.rsvp-unavailable h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1.1;
}

.rsvp-unavailable p {
  color: #687181;
  font-size: 0.85rem;
}

.success-message__icon {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  height: 5rem;
  justify-content: center;
  margin-bottom: 3rem;
  width: 5rem;
}

.success-message__icon svg {
  stroke: currentColor;
  stroke-width: 1.5;
}

.success-message h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 1rem 0;
}

.success-message > p:not(.script-note) {
  color: #687181;
  font-size: 0.85rem;
  margin: 0 0 2rem;
}

footer {
  background: #020b19;
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}

footer p {
  color: var(--blue-pale);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

footer strong {
  display: block;
  font-family: var(--script);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  margin: 1rem 0 2rem;
}

footer span {
  color: rgb(255 255 255 / 40%);
  font-size: 0.6rem;
}

.cover__disco--one {
  height: 18rem;
  left: -7rem;
  top: -5rem;
  transform: rotate(12deg);
  width: 18rem;
}

.cover__disco--two {
  bottom: -5rem;
  height: 12rem;
  right: -3rem;
  transform: rotate(-12deg);
  width: 12rem;
}

.cover__star--one { right: 9%; top: 13%; transform: rotate(15deg); }
.cover__star--two { bottom: 12%; height: 3rem; left: 8%; transform: rotate(-12deg); width: 3rem; }
.cover__flower { right: 15%; top: 2%; transform: scale(0.75) rotate(20deg); }

@media (min-width: 701px) and (max-width: 1024px) {
  .hero {
    min-height: 55rem;
    padding-inline: 2.5rem;
  }

  .hero__copy {
    width: 52%;
  }

  .hero__portrait {
    left: 2rem;
    width: 36vw;
  }

  .chrome-number {
    right: 3%;
  }

  .details-section {
    padding-inline: 3rem;
  }

  .details-layout {
    min-height: 46rem;
  }

  .details-date-stamp {
    height: 20rem;
    left: calc(50% - 7rem);
    width: 14rem;
  }

  .details-grid {
    grid-template-rows: repeat(10, 3.8rem);
  }

  .details-grid article {
    gap: 1rem;
    padding: 1.35rem;
  }

  .details-grid article:nth-child(1) {
    grid-column: 1 / span 7;
  }

  .details-grid article:nth-child(2) {
    grid-column: 7 / span 6;
  }

  .details-grid article:nth-child(3) {
    grid-column: 2 / span 10;
  }

  .details-floating-label--when {
    left: -4.5rem;
  }

  .details-floating-label--where {
    right: -4rem;
  }

  .album-grid {
    grid-auto-rows: 11rem;
  }
}

@media (max-width: 700px) {
  .cover__disco--one {
    height: 11rem;
    left: -5rem;
    top: -3rem;
    width: 11rem;
  }

  .cover__flower {
    right: -1rem;
    top: 2%;
    transform: scale(0.55);
  }

  .cover__star--one {
    height: 3rem;
    right: 5%;
    top: 22%;
    width: 3rem;
  }

  .envelope-wrap {
    height: 15rem;
  }

  .letter {
    top: 32%;
  }

  .cover--opened .letter {
    top: -36%;
  }

  .seal {
    height: 4rem;
    left: calc(50% - 2rem);
    top: 35%;
    width: 4rem;
  }

  .seal span {
    font-size: 1.4rem;
    height: 2.9rem;
    line-height: 2.7rem;
    width: 2.9rem;
  }

  .hero {
    min-height: 52rem;
    padding-top: 4rem;
  }

  .hero__disco--large {
    height: 14rem;
    left: -6rem;
    top: -5rem;
    width: 14rem;
  }

  .hero__disco--small {
    height: 7rem;
    right: -2rem;
    top: 10rem;
    width: 7rem;
  }

  .hero__copy {
    margin-left: 28%;
    width: 70%;
  }

  .hero__copy h1 {
    font-size: 5.5rem;
    margin: 0.8rem 0 1.4rem;
  }

  .hero__flower {
    left: 3%;
    top: 8rem;
    transform: scale(0.7);
  }

  .hero__star--one {
    height: 3rem;
    left: 45%;
    width: 3rem;
  }

  .butterfly {
    display: none;
  }

  .hero__portrait {
    height: 24rem;
    left: 0.8rem;
    top: 18rem;
    width: 52vw;
  }

  .party-hat {
    height: 5.5rem;
    top: -4rem;
    width: 5.5rem;
  }

  .chrome-number {
    font-size: 9rem;
    right: 4%;
    top: 24rem;
  }

  .hero__headline {
    bottom: 7rem;
  }

  .hero__headline span,
  .hero__headline strong {
    font-size: 3.7rem;
  }

  .hero__date {
    bottom: 2.2rem;
    left: 1.5rem;
    right: auto;
    text-align: left;
  }

  .hero__date strong {
    font-size: 1.1rem;
  }

  .kiss {
    display: none;
  }

  .hero__star--three {
    bottom: 2rem;
    right: 5%;
  }

  .countdown-section,
  .album-section {
    padding: 6rem 1.25rem;
  }

  .countdown {
    gap: 0;
    margin-top: 3rem;
  }

  .countdown__item {
    padding: 0.5rem;
  }

  .details-section {
    padding: 6rem 1.25rem;
  }

  .details-heading {
    margin-bottom: 3rem;
  }

  .details-heading__index,
  .details-section__spark {
    display: none;
  }

  .details-layout {
    min-height: 0;
  }

  .details-date-stamp {
    height: auto;
    left: auto;
    min-height: 15rem;
    position: relative;
    top: auto;
    transform: rotate(-2deg);
    width: 100%;
    z-index: 2;
  }

  .details-date-stamp[data-reveal],
  .details-date-stamp[data-reveal].is-visible {
    transform: rotate(-2deg) translateY(0);
  }

  .details-date-stamp::before,
  .details-date-stamp::after {
    height: 13rem;
    width: 13rem;
  }

  .details-date-stamp strong {
    font-size: 6.5rem;
    margin: 0.5rem 0;
  }

  .details-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    inset: auto;
    margin-top: 1rem;
    position: relative;
  }

  .details-grid article {
    gap: 1rem;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-template-columns: auto 1fr;
    min-height: 0;
    padding: 1.5rem 1.2rem;
    transform: none !important;
  }

  .details-grid article:nth-child(2) {
    margin-left: 0;
    margin-right: 0;
  }

  .details-grid article:hover {
    transform: translateY(-0.25rem);
  }

  .detail-number {
    font-size: 3.5rem;
    right: 1rem;
    top: 0;
  }

  .details-floating-label,
  .details-connector {
    display: none;
  }

  .detail-tape {
    display: block;
  }

  .details-action {
    align-items: stretch;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .details-section__star {
    height: 4rem;
    right: -1rem;
    top: 9rem;
    width: 4rem;
  }

  .album-grid {
    gap: 0.6rem;
    grid-auto-rows: 9rem;
  }

  .album-photo {
    grid-column: span 6;
  }

  .album-photo--wide {
    grid-column: span 12;
  }

  .album-sticker {
    height: 7rem;
    left: calc(50% - 3.5rem);
    top: calc(53% - 3.5rem);
    width: 7rem;
  }

  .album-sticker span {
    font-size: 1.9rem;
  }

  .rsvp-section {
    padding: 5rem 1rem;
  }

  .rsvp-card {
    padding: 4rem 2rem;
  }
}

@media (max-width: 420px) {
  .cover {
    padding-inline: 1rem;
  }

  .cover__kicker {
    letter-spacing: 0.25em;
    margin-bottom: 2.25rem;
  }

  .envelope-wrap {
    width: 94vw;
  }

  .letter {
    padding-inline: 5%;
  }

  .letter h1 {
    font-size: 3.9rem;
  }

  .hero {
    min-height: 49rem;
    padding-inline: 1rem;
  }

  .hero__copy h1 {
    font-size: 4.7rem;
  }

  .hero__portrait {
    height: 21rem;
    top: 18rem;
    width: 55vw;
  }

  .chrome-number {
    font-size: 7.5rem;
    top: 24.5rem;
  }

  .hero__headline {
    bottom: 7.5rem;
  }

  .hero__headline span,
  .hero__headline strong {
    font-size: 3.1rem;
  }

  .countdown-section,
  .album-section {
    padding-inline: 1rem;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .countdown__item strong {
    font-size: 1.85rem;
  }

  .countdown__item span {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .details-section {
    padding-inline: 1rem;
  }

  .details-grid article {
    padding-inline: 1rem;
  }

  .detail-icon {
    height: 3.2rem;
    width: 3.2rem;
  }

  .details-grid article strong {
    font-size: 1.1rem;
  }

  .rsvp-card {
    padding: 3.5rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .details-ticker div,
  .details-section__star,
  .details-section__spark {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
  }

  [data-reveal]:not([data-reveal="fade"]) {
    transform: none !important;
  }
}
