:root {
  --lilac: #e9d8fd;
  --lilac-deep: #c7a6ee;
  --ivory: #fffaf6;
  --cream: #fff4e0;
  --gold: #dfae3f;
  --gold-deep: #7d5a0c;
  --plum: #6a2c91;
  --plum-deep: #4a1a6b;
  --pink: #c2185b;
  --blush: #fbd3e6;
  --mint: #d5f1de;
  --sky: #dbe8ff;
  --ink: #41294f;
  --ink-soft: #503d60;
  --rose: #b8667f;
  --card: #fffdfa;
  --script: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Quicksand", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

[hidden] {
  display: none !important
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55rem 30rem at 8% -5%, var(--lilac) 0, transparent 62%),
    radial-gradient(45rem 28rem at 100% 25%, var(--blush) 0, transparent 60%),
    radial-gradient(45rem 28rem at 0% 55%, var(--sky) 0, transparent 58%),
    radial-gradient(45rem 28rem at 100% 80%, var(--lilac) 0, transparent 58%),
    radial-gradient(40rem 25rem at 10% 105%, var(--mint) 0, transparent 60%);
  opacity: .9;
}

main {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto
}

h1,
h2,
h3,
p {
  margin: 0
}

h1,
h2,
h3 {
  text-wrap: balance
}

p {
  text-wrap: pretty
}

a {
  color: inherit
}

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  border-radius: 6px
}

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.1;
  color: var(--plum)
}

.eyebrow {
  font-size: .82rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

/* ornaments */
.pearls {
  height: 10px;
  width: min(14rem, 60%);
  margin: 1.1rem auto;
  background: radial-gradient(circle, #fff 3px, var(--gold) 3.4px, transparent 4px) 0 50%/16px 10px repeat-x;
}

.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  color: var(--gold)
}

.flourish::before,
.flourish::after {
  content: "";
  height: 1px;
  width: min(5rem, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}

.flourish::after {
  transform: scaleX(-1)
}

.flourish svg {
  width: 2.6rem;
  height: 1.5rem
}

.tw {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  fill: #f5c84c;
  opacity: .8;
  animation: twinkle 3s ease-in-out infinite;
  animation-delay: var(--l)
}

.w1 {
  fill: var(--c1, #c084fc);
  opacity: .92
}

.w2 {
  fill: var(--c2, #f472b6);
  opacity: .8
}

/* floating butterflies + falling sparkles */
.flutter {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden
}

.bf {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  animation: drift var(--d) ease-in-out infinite alternate;
  animation-delay: var(--l);
}

.bf svg {
  width: 100%;
  height: auto;
  animation: flap 1.1s ease-in-out infinite alternate;
  transform-origin: 50% 50%
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(-8deg)
  }

  50% {
    transform: translate(30px, -46px) rotate(10deg)
  }

  100% {
    transform: translate(-20px, -90px) rotate(-6deg)
  }
}

@keyframes flap {
  from {
    transform: scaleX(1)
  }

  to {
    transform: scaleX(.6)
  }
}

.spk {
  position: absolute;
  top: -24px;
  left: var(--px);
  width: var(--sz);
  height: var(--sz);
  background: linear-gradient(135deg, #fff6c9, #f5c84c);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: .85;
  animation: fall var(--d) linear infinite;
  animation-delay: var(--l);
}

@keyframes fall {
  0% {
    transform: translate(0, -30px) rotate(0)
  }

  50% {
    transform: translate(var(--sw), 55vh) rotate(180deg)
  }

  100% {
    transform: translate(calc(var(--sw) * -1), 115vh) rotate(360deg)
  }
}

/* hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 3rem 5rem;
  position: relative;
  gap: .2rem;
  overflow-x: clip;
}

.castle {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  width: min(30rem, 115%);
  height: auto;
  transform: translateX(-50%);
  opacity: .85;
  pointer-events: none;
  z-index: -1;
}

.hero .meadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(38rem, 135%);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

.hero .corner {
  position: absolute;
  width: 5rem;
  height: 5rem;
  opacity: .9;
  z-index: -1
}

.hero .c1 {
  top: 1rem;
  left: .2rem;
  transform: rotate(-12deg)
}

.hero .c2 {
  bottom: 7rem;
  right: .4rem;
  width: 5.5rem;
  height: 5.5rem;
  transform: rotate(8deg)
}

.hero .c3 {
  top: 24%;
  right: -.5rem;
  width: 4rem;
  height: 3.2rem;
  transform: rotate(18deg);
  opacity: .9
}

.kicker {
  font-size: clamp(2rem, 9vw, 2.8rem);
  line-height: 1.3;
  color: var(--plum)
}

.hero-art {
  position: relative;
  width: min(15rem, 62vw);
  margin: .8rem auto 1.2rem
}

.hero-wings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  overflow: visible;
}

.wing ellipse {
  fill: rgba(255, 255, 255, .78);
  stroke: var(--lilac-deep);
  stroke-width: 2
}

.wing g:first-child ellipse:nth-child(2),
.wing g:last-child ellipse:nth-child(2) {
  fill: rgba(251, 211, 230, .8)
}

.hero-wings {
  animation: flutterwings 3.6s ease-in-out infinite alternate
}

@keyframes flutterwings {
  from {
    transform: translate(-50%, -50%) scaleX(1)
  }

  to {
    transform: translate(-50%, -50%) scaleX(.94)
  }
}

.hero-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
  border-radius: 999px 999px 1.4rem 1.4rem;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 9px rgba(233, 216, 253, .9), 0 0 0 10px var(--lilac-deep), 0 22px 40px -14px rgba(74, 26, 107, .5);
  background: var(--blush);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.pf {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(74, 26, 107, .3));
  animation: bob 4s ease-in-out infinite alternate
}

.pf.star {
  fill: #f5c84c;
  animation: twinkle 2.6s ease-in-out infinite
}

.pf-a {
  top: 1.2rem;
  left: -1.4rem;
  width: 3.2rem;
  height: 3.2rem
}

.pf-b {
  top: -.2rem;
  right: -1.3rem;
  width: 2.6rem;
  height: 2.6rem
}

.pf-c {
  bottom: 2.4rem;
  left: -1.5rem;
  width: 2rem;
  height: 2rem;
  animation-delay: -1.2s
}

.pf-d {
  bottom: -.8rem;
  right: -.8rem;
  width: 3rem;
  height: 3rem;
  animation-delay: -2s
}

.pf-e {
  top: -2.9rem;
  left: 50%;
  margin-left: -2.2rem;
  width: 4.4rem;
  height: 2.5rem;
  animation: none;
  filter: drop-shadow(0 4px 6px rgba(74, 26, 107, .35))
}

@keyframes bob {
  from {
    transform: translateY(0)
  }

  to {
    transform: translateY(-6px)
  }
}

@keyframes spin {
  to {
    rotate: 360deg
  }
}

.baby {
  font-size: clamp(4rem, 19vw, 6.4rem);
  line-height: 1.05;
  color: var(--pink);
  text-shadow: 0 3px 0 #fff, 0 0 18px rgba(255, 255, 255, .9);
}

.seven {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(5rem, 28vw, 9rem);
  line-height: .95;
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: -.2rem;
}

.seven span {
  background: linear-gradient(110deg, #5a2380 30%, #b57ae6 43%, #fff4c2 50%, #b57ae6 57%, #5a2380 70%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(223, 174, 63, .6));
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0
  }

  60%,
  100% {
    background-position: 0 0
  }
}

.seven i {
  font-family: var(--script);
  font-style: normal;
  font-size: .4em;
  color: var(--plum-deep);
  margin-left: .05em
}

.birthday-word {
  font-size: clamp(2.6rem, 12vw, 4rem);
  color: var(--plum-deep);
  margin-top: -.3rem
}

.hero .sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 4.6vw, 1.5rem);
  max-width: 26rem;
  margin: 1rem auto 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.2rem;
  padding: .7rem 2rem;
  border-radius: 999px;
  font: 700 .84rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--plum);
  background: linear-gradient(135deg, var(--plum), var(--plum-deep));
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(74, 26, 107, .8);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -10px rgba(74, 26, 107, .8)
}

.btn.ghost {
  background: rgba(255, 255, 255, .75);
  color: var(--plum-deep);
  box-shadow: none
}

.btn.ghost:hover {
  background: var(--lilac)
}

.scroll-hint {
  margin-top: 1.2rem;
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(var(--gold), transparent);
  animation: hint 2s ease-in-out infinite
}

@keyframes hint {

  0%,
  100% {
    opacity: .3;
    transform: scaleY(.7)
  }

  50% {
    opacity: 1;
    transform: scaleY(1)
  }
}

.in {
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * .16s + .1s)
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

html.locked .in {
  animation-play-state: paused
}

/* sections */
.sec {
  padding-block: 4.2rem;
  text-align: center;
  position: relative
}

.sec h2 {
  font-size: clamp(2.6rem, 11vw, 3.7rem);
  margin: .5rem 0 .2rem;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .8)
}

html.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1)
}

html.js .rv.seen {
  opacity: 1;
  transform: none
}

.message .rv,
.closing .rv {
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--gold);
  border-radius: 2rem;
  padding: 2.6rem 1.4rem 2.2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 24px 50px -30px rgba(74, 26, 107, .5), inset 0 0 0 6px rgba(255, 255, 255, .7), inset 0 0 0 7px rgba(199, 166, 238, .5);
}

.closing .rv {
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(233, 216, 253, .65))
}

.lead,
.closing .msg {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 5.4vw, 1.7rem);
  line-height: 1.5;
  max-width: 30rem;
  margin: 1.2rem auto 0;
}

.plain {
  max-width: 28rem;
  margin: 1.1rem auto 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 4.8vw, 1.5rem);
  line-height: 1.5
}

.parents {
  margin-top: 1.6rem
}

.parents .names {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: .15rem
}

/* event card */
.card {
  background: linear-gradient(180deg, rgba(233, 216, 253, .8), var(--card) 62%);
  border: 1px solid var(--gold);
  border-radius: 1.4rem;
  padding: 2.4rem 1.5rem 1.8rem;
  margin-top: 1.4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(74, 26, 107, .55);
}

.card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--lilac-deep);
  border-radius: 1.05rem;
  opacity: .7;
  pointer-events: none
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: .55rem;
  background: linear-gradient(90deg, var(--blush), var(--lilac-deep), var(--mint))
}

.card .ico {
  width: 3rem;
  height: 2.4rem;
  margin: 0 auto .5rem;
  display: block
}

.card h3 {
  font-family: var(--script);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--plum);
  line-height: 1.1;
  padding-bottom: .9rem;
  border-bottom: 1px dashed rgba(223, 174, 63, .8)
}

.card dl {
  margin: 1rem 0 1.4rem;
  display: grid;
  gap: .9rem
}

.card dt {
  font-size: .76rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700
}

.card dd {
  margin: .1rem 0 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere
}

.card .btn {
  width: 100%;
  max-width: 15rem
}

.cal-row {
  margin-top: 1.8rem
}

/* countdown */
.count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  max-width: 26rem;
  margin: 1.8rem auto 0
}

.unit {
  border: 1px solid var(--gold);
  border-radius: 1rem;
  padding: 1.1rem .2rem .9rem;
  min-width: 0;
  box-shadow: 0 14px 24px -16px rgba(74, 26, 107, .55), inset 0 0 0 3px rgba(255, 255, 255, .6);
}

.unit:nth-child(1) {
  background: var(--lilac)
}

.unit:nth-child(2) {
  background: var(--blush)
}

.unit:nth-child(3) {
  background: var(--mint)
}

.unit:nth-child(4) {
  background: var(--sky)
}

.unit b {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 9vw, 2.7rem);
  line-height: 1;
  color: var(--plum-deep);
  font-variant-numeric: tabular-nums
}

.unit span {
  display: block;
  margin-top: .35rem;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600
}

.count-done {
  font-family: var(--script);
  font-size: 2.6rem;
  color: var(--plum);
  margin-top: 1.2rem
}

/* court of seven */
.court-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.8rem;
  text-align: center
}

.court-card {
  background: linear-gradient(180deg, #7b4fb0, #603896);
  border: 3px solid var(--gold);
  border-radius: 1.4rem;
  padding: 1.3rem 1.2rem 1.2rem;
  box-shadow: 0 18px 30px -18px rgba(74, 26, 107, .7);
  color: #fff;
}

.court-card h3 {
  font-family: var(--script);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.1;
  color: #fbe7a1
}

.court-card .rule {
  display: block;
  width: 7rem;
  height: 12px;
  margin: .4rem auto .5rem
}

.court-card ol {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: .1rem;
  text-align: center;
  width: 100%
}

.court-card li {
  display: flex;
  justify-content: center;
  gap: .5rem;
  align-items: baseline;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.25
}

.court-card li i {
  font-style: normal;
  flex: none;
  width: auto;
  color: #fbe7a1;
  font-weight: 600;
  font-size: 1.2rem
}

/* dress code */
.dress .theme {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 600;
  margin-top: .8rem
}

.dress .note {
  max-width: 24rem;
  margin: .6rem auto 0;
  color: var(--ink-soft)
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem .6rem;
  margin-top: 1.8rem
}

.sw {
  display: grid;
  justify-items: center;
  gap: .55rem;
  width: calc((100% - 2.4rem) / 5);
  max-width: 4.8rem;
  min-width: 3.6rem
}

.sw i {
  width: 100%;
  max-width: 4rem;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--ivory), 0 8px 16px -8px rgba(74, 26, 107, .5);
  transition: transform .3s ease
}

.sw:hover i {
  transform: scale(1.08)
}

.sw span {
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600
}

/* gifts + rsvp */
.gift-list {
  display: grid;
  gap: .8rem;
  max-width: 20rem;
  margin: 1.6rem auto 0
}

.gift-item {
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--gold);
  border-radius: 1.1rem;
  padding: .8rem 1rem;
  min-width: 0
}

.gift-item small,
.contact small {
  display: block;
  font-size: .78rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700
}

.gift-item p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
  user-select: all
}

.greet .btn {
  margin-top: 1.6rem
}

.contact {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem
}

.contact span {
  user-select: all
}

/* closing */
.closing {
  padding-bottom: 5rem
}

.closing .love {
  margin-top: 2rem;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600
}

.closing .family {
  font-size: clamp(3rem, 14vw, 4.4rem);
  margin-top: .2rem;
  color: var(--pink)
}

.shrooms {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: .5rem;
  margin-top: 1.4rem
}

.shrooms .m1 {
  width: 4.2rem;
  height: 4.2rem
}

.shrooms .m2 {
  width: 2.8rem;
  height: 2.8rem
}

/* slideshow */
.show {
  max-width: 22rem;
  margin: 1.8rem auto 0
}

.show-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 999px 999px 1.4rem 1.4rem;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  background: var(--blush);
  touch-action: pan-y;
  box-shadow: 0 0 0 7px #fff, 0 0 0 8px var(--lilac-deep), 0 0 0 14px rgba(233, 216, 253, .7), 0 28px 44px -22px rgba(74, 26, 107, .6);
}

.show-track {
  position: absolute;
  inset: 0
}

.show-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease
}

.show-slide.on {
  opacity: 1
}

.show-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%
}

.show-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.7rem;
  height: 2.7rem;
  padding: 0 0 .2rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(255, 251, 246, .9);
  color: var(--plum-deep);
  font: 400 1.7rem/1 var(--serif);
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

.show-nav:hover {
  background: var(--lilac)
}

.show-nav.prev {
  left: .6rem
}

.show-nav.next {
  right: .6rem
}

.show-cap {
  font-family: var(--script);
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--plum);
  margin-top: 1.3rem;
  min-height: 2.5rem
}

.show-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: .7rem
}

.show-dots button {
  position: relative;
  width: .7rem;
  height: .7rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--plum);
  background: transparent;
  cursor: pointer
}

.show-dots button::after {
  content: "";
  position: absolute;
  inset: -.6rem
}

.show-dots button[aria-current="true"] {
  background: var(--plum)
}

/* cover / envelope */
html.locked,
html.locked body {
  overflow: hidden
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  text-align: center;
  background:
    radial-gradient(32rem 24rem at 50% 44%, rgba(255, 255, 255, .95) 0, rgba(255, 240, 250, .7) 45%, transparent 76%),
    radial-gradient(40rem 30rem at 0% 100%, var(--mint) 0, transparent 65%),
    radial-gradient(40rem 30rem at 100% 100%, var(--sky) 0, transparent 65%),
    linear-gradient(180deg, #e0c7f8 0, #f6d0ea 45%, #fde6dc 100%);
  padding: 1.5rem max(16px, env(safe-area-inset-right, 0px)) 1.5rem max(16px, env(safe-area-inset-left, 0px));
  transition: opacity .9s ease, visibility .9s;
}

html.js .cover {
  display: flex
}

.cover.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.cover>*:not(.cv-frame) {
  position: relative;
  z-index: 1
}

.cover-top {
  font-family: var(--script);
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  line-height: 1;
  color: var(--plum);
  text-shadow: 0 2px 0 #fff
}

.cover-hint {
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.5rem);
  color: var(--pink);
  animation: hintPulse 2.4s ease-in-out infinite
}

@keyframes hintPulse {

  0%,
  100% {
    opacity: .5
  }

  50% {
    opacity: 1
  }
}

.cover.opening .cover-hint {
  opacity: 0;
  animation: none;
  transition: opacity .3s
}

.env {
  position: relative;
  display: block;
  width: min(23rem, 88vw, calc(44svh * 1.45));
  aspect-ratio: 1.45;
  perspective: 1100px;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 24px 22px rgba(74, 26, 107, .35));
}

.env>* {
  position: absolute;
  display: block
}

.env-back {
  inset: 0;
  background: #d9bff2;
  border: 1px solid var(--plum);
  border-radius: .5rem
}

.env-card {
  left: 7%;
  right: 7%;
  top: 10%;
  height: 78%;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: .4rem;
  display: grid;
  place-content: center;
  gap: .25rem;
  padding: .4rem;
  text-align: center;
  transition: transform 1.05s cubic-bezier(.3, .7, .2, 1) .6s;
}

.env-card .script {
  font-size: clamp(2.4rem, 11vw, 3.2rem);
  color: var(--pink)
}

.env-card .eyebrow {
  font-size: .7rem
}

.env-front {
  inset: 0;
  z-index: 3;
  pointer-events: none
}

.env-front i {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f1e3ff, #e3ccf8)
}

.env-front .l {
  clip-path: polygon(0 0, 52% 56%, 0 100%)
}

.env-front .r {
  clip-path: polygon(100% 0, 48% 56%, 100% 100%)
}

.env-front .b {
  clip-path: polygon(0 100%, 50% 50%, 100% 100%);
  filter: brightness(.95)
}

.env-flap {
  left: 0;
  right: 0;
  top: 0;
  height: 62%;
  z-index: 4;
  background: linear-gradient(180deg, #f6ebff, #dcc2f5);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform .85s cubic-bezier(.5, 0, .2, 1), z-index 0s .42s;
}

.env-seal {
  left: 50%;
  top: 62%;
  z-index: 5;
  width: 4.2rem;
  height: 4.2rem;
  margin: -2.1rem 0 0 -2.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, var(--gold) 55%, #b98418);
  box-shadow: 0 8px 16px rgba(74, 26, 107, .35), inset 0 0 0 3px rgba(255, 255, 255, .45);
  display: grid;
  place-items: center;
  transition: opacity .3s, transform .4s;
}

.env-seal svg {
  width: 2.3rem;
  height: 2.3rem;
  fill: #fff
}

.env:not(.open) .env-seal {
  animation: pulse 2.2s ease-in-out infinite
}

.env:not(.open) .env-seal::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: ring 2.2s ease-out infinite
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.1)
  }
}

@keyframes ring {
  0% {
    transform: scale(.9);
    opacity: .9
  }

  100% {
    transform: scale(1.6);
    opacity: 0
  }
}

.env.open .env-flap {
  transform: rotateX(180deg);
  z-index: 0
}

.env.open .env-card {
  transform: translateY(-64%)
}

.env.open .env-seal {
  opacity: 0;
  transform: scale(.5);
  animation: none
}

.env:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 8px;
  border-radius: .6rem
}

.cv-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden
}

.cv {
  position: absolute;
  width: 4rem;
  height: 4rem;
  opacity: .9
}

.cv-a {
  top: 6rem;
  left: .9rem;
  width: 4.2rem;
  height: 4.2rem;
  opacity: .9
}

.cv-c {
  bottom: 1.6rem;
  left: 50%;
  width: min(26rem, 105%, 52svh);
  height: auto;
  transform: translateX(-50%);
  opacity: .95
}

.cv-meadow {
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  opacity: 1
}

.cv-flora {
  width: 8.4rem;
  height: 8.4rem;
  opacity: 1
}

.cv-flora.tl {
  top: 0;
  left: 0
}

.cv-flora.tr {
  top: 0;
  right: 0;
  transform: scaleX(-1)
}

.cv-fairy {
  top: 11.5svh;
  right: 3%;
  width: 5.4rem;
  height: 5.8rem;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 236, 160, .95)) drop-shadow(0 6px 8px rgba(74, 26, 107, .25));
  animation: hover 5s ease-in-out infinite alternate;
}

@keyframes hover {
  from {
    transform: translateY(0) rotate(6deg)
  }

  to {
    transform: translateY(-9px) rotate(-2deg)
  }
}

.cv.star {
  fill: var(--gold);
  animation: twinkle 2.6s ease-in-out infinite
}

.cv-s {
  width: .9rem;
  height: .9rem
}

.cv-s.s1 {
  top: calc(11.5svh + 3.2rem);
  right: 27%;
  animation-delay: -.4s
}

.cv-s.s2 {
  top: calc(11.5svh + 1.6rem);
  right: 34%;
  width: .65rem;
  height: .65rem;
  animation-delay: -1.3s
}

.cv-s.s3 {
  top: calc(11.5svh + 4.4rem);
  right: 20%;
  width: .7rem;
  height: .7rem;
  animation-delay: -2s
}

.cv-e {
  top: 21%;
  left: 3.5%;
  width: 2.8rem;
  height: 2.2rem;
  transform: rotate(-16deg)
}

.cv-f {
  bottom: 24%;
  right: 9%;
  width: 2.6rem;
  height: 2.1rem;
  transform: rotate(18deg) scaleX(-1)
}

.cv-j {
  bottom: 27%;
  left: 8%;
  width: 2.2rem;
  height: 1.8rem;
  transform: rotate(-10deg)
}

.cv-g {
  top: 31%;
  right: 6%;
  width: 1.2rem;
  height: 1.2rem
}

.cv-h {
  bottom: 34%;
  left: 5%;
  width: 1.1rem;
  height: 1.1rem;
  animation-delay: -1s
}

.cv-i {
  top: 9%;
  left: 46%;
  width: .9rem;
  height: .9rem;
  animation-delay: -1.8s
}

.cover {
  padding-bottom: calc(1.5rem + 7svh)
}

.cover-hint {
  text-shadow: 0 1px 0 #fff, 0 0 12px rgba(255, 255, 255, .9)
}

@keyframes twinkle {

  0%,
  100% {
    opacity: .3;
    transform: scale(.7)
  }

  50% {
    opacity: 1;
    transform: scale(1.2)
  }
}

.burst {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #fff6c9, #f5c84c);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: burst 1.3s ease-out forwards
}

@keyframes burst {
  0% {
    transform: translate(0, 0) scale(.4) rotate(0);
    opacity: 1
  }

  100% {
    transform: translate(var(--bx), var(--by)) scale(1.4) rotate(220deg);
    opacity: 0
  }
}

/* music button + progress */
.music-btn {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(255, 253, 250, .92);
  color: var(--plum-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -8px rgba(74, 26, 107, .6);
}

.music-btn.off {
  color: var(--ink-soft);
  opacity: .75
}

.music-btn.off::after {
  content: "";
  position: absolute;
  width: 1.7rem;
  height: 2px;
  background: var(--plum-deep);
  transform: rotate(-45deg)
}

.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blush), var(--rose), var(--lilac-deep), var(--mint));
  pointer-events: none
}

@media (min-width: 760px) {
  main {
    max-width: 52rem
  }

  .sec {
    padding-block: 5.5rem
  }

  .message .rv {
    padding: 3.2rem 3rem 2.8rem
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 17px
  }

  main {
    max-width: 56rem
  }
}

@media (max-width: 359px) {
  .eyebrow {
    letter-spacing: .18em
  }

  .btn {
    padding-inline: 1.2rem;
    letter-spacing: .12em
  }

  .count {
    gap: .35rem
  }

  .unit span {
    letter-spacing: .08em;
    font-size: .68rem
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: 2rem 4rem
  }

  .cover {
    gap: .6rem
  }

  .cv-e,
  .cv-f,
  .cv-j,
  .cv-s {
    display: none
  }

  .cv-fairy {
    width: 4rem;
    height: 4.3rem;
    top: 3.4rem
  }
}

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

  .cover,
  .env-card,
  .env-flap,
  .env-seal {
    transition-duration: .01s;
    transition-delay: 0s
  }

  .cover-hint,
  .env:not(.open) .env-seal,
  .env:not(.open) .env-seal::after,
  .scroll-hint,
  .bf,
  .bf svg,
  .pf,
  .pf.star,
  .hero-wings,
  .cv,
  .cv.star,
  .seven span,
  .tw {
    animation: none
  }

  .in {
    animation: none;
    opacity: 1
  }

  html.js .rv {
    opacity: 1;
    transform: none;
    transition: none
  }

  .sw i {
    transition: none
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-fairy {
    animation: none
  }
}

/* ---------- polish: court tones, garlands, wreath, closing fairy, dress, calendar ---------- */
.flutter {
  z-index: 2
}

/* butterflies and sparkles float above the boxes/cards */

.court-card.tone-0 {
  background: linear-gradient(180deg, #8a5fc0, #6a3fa3)
}

.court-card.tone-1 {
  background: linear-gradient(180deg, #c8629c, #a2467d)
}

.court-card.tone-2 {
  background: linear-gradient(180deg, #4aa38f, #34806f)
}

.court-card.tone-3 {
  background: linear-gradient(180deg, #6e84d8, #5367b5)
}

.court-card h3 {
  color: #fff3c4
}

.court-ico {
  display: block;
  width: 2.8rem;
  height: 2.1rem;
  margin: 0 auto .1rem;
  fill: #fbe7a1;
  color: #fbd3e6;
  --c1: #fbd3e6;
  --c2: #fff3b8;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25))
}

.garland {
  position: relative;
  z-index: 1;
  width: min(22rem, 92%);
  margin: -1.2rem auto;
  pointer-events: none
}

.garland svg {
  display: block;
  width: 100%;
  height: auto
}

.hero-wreath {
  position: absolute;
  left: -10%;
  top: -8%;
  width: 120%;
  height: auto;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(74, 26, 107, .25))
}

.close-fairy {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: .5rem;
  margin-top: 1.4rem
}

.cf-fairy {
  width: 5.6rem;
  height: 6rem;
  filter: drop-shadow(0 0 10px rgba(255, 236, 160, .9));
  animation: hover 5s ease-in-out infinite alternate
}

.cf-bloom {
  width: 2.4rem;
  height: 2.4rem
}

.cf-bloom.l {
  transform: rotate(-12deg)
}

.cf-bloom.r {
  transform: rotate(14deg)
}

.sw i.light {
  border-color: var(--lilac-deep);
  box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 4.5px rgba(167, 139, 214, .6), 0 8px 16px -8px rgba(74, 26, 107, .5)
}

.avoid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 1.8rem auto 0;
  max-width: 24rem;
  color: var(--ink-soft)
}

.avoid p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  margin-left: .3rem
}

.chip {
  position: relative;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold)
}

.chip.black {
  background: #1d1d1f
}

.chip.neon {
  background: #39ff14
}

.chip::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--pink);
  transform: rotate(-45deg)
}

.cal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem
}

.cal-row .btn {
  flex: 1 1 11rem;
  max-width: 15rem;
  padding-inline: 1rem
}

@media (prefers-reduced-motion: reduce) {
  .cf-fairy {
    animation: none
  }
}

/* ================= responsive tuning (small phones -> large screens) ================= */

/* phones */
@media (max-width: 759px) {
  .hero {
    padding-bottom: 10rem
  }

  .castle {
    width: min(24rem, 108%)
  }

  .hero .meadow {
    width: min(28rem, 118%)
  }
}

/* very small phones (320-380px) */
@media (max-width: 380px) {
  body {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px))
  }

  .sec {
    padding-block: 3.4rem
  }

  .sec h2 {
    font-size: clamp(2.3rem, 11vw, 3rem)
  }

  .message .rv,
  .closing .rv {
    padding: 2.2rem 1rem 1.8rem
  }

  .lead,
  .closing .msg {
    font-size: 1.25rem
  }

  .card {
    padding: 2.2rem 1rem 1.6rem
  }

  .card h3 {
    font-size: 2.2rem
  }

  .card dd {
    font-size: 1.2rem
  }

  .court-card {
    padding: 1.1rem .8rem
  }

  .court-card h3 {
    font-size: 1.9rem
  }

  .court-card li {
    font-size: 1.3rem
  }

  .swatches {
    gap: 1.2rem .35rem
  }

  .sw {
    width: calc((100% - 1.4rem) / 5);
    min-width: 0
  }

  .sw span {
    font-size: .66rem;
    letter-spacing: .02em
  }

  .avoid p {
    font-size: 1.05rem
  }

  .hero {
    padding-bottom: 11rem
  }

  .hero-art {
    width: min(13rem, 58vw)
  }

  .kicker {
    font-size: 1.9rem
  }

  .hero .c1 {
    width: 3.4rem;
    height: 3.4rem
  }
}

/* short phones: keep the cover from crowding */
@media (max-height: 700px) and (max-width: 759px) {
  .cover {
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: calc(1.5rem + 3svh)
  }

  .cover-top {
    font-size: 2.3rem
  }

  .env {
    width: min(21rem, 86vw, calc(38svh * 1.45))
  }

  .cv-flora {
    width: 6rem;
    height: 6rem
  }

  .cv-a {
    top: 2.6rem;
    left: 4.8rem;
    width: 3rem;
    height: 3rem
  }

  .cv-fairy {
    top: 2.8rem;
    right: 1%;
    width: 4rem;
    height: 4.3rem
  }

  .cv-s,
  .cv-e {
    display: none
  }
}

/* tablets and up */
@media (min-width: 760px) {
  .cv-frame {
    --fr: max(3%, calc(50% - 27rem))
  }

  .cover-top {
    font-size: clamp(3.4rem, 5vw, 4.6rem)
  }

  .cover-hint {
    font-size: 2.6rem
  }

  .cover {
    padding-bottom: calc(1.5rem + 16svh)
  }

  .env {
    width: min(26rem, calc(36svh * 1.45))
  }

  .cv-c {
    width: min(46rem, 76vw, calc(28svh * 2.1))
  }

  .cv-meadow,
  .hero .meadow {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }

  .cv-meadow {
    left: 50%;
    width: min(100%, 90svh);
    transform: translateX(-50%)
  }

  .cv-flora {
    width: 11rem;
    height: 11rem
  }

  .cv-fairy {
    width: 8rem;
    height: 8.6rem;
    top: 12svh;
    right: var(--fr)
  }

  .cv-a {
    top: 12svh;
    left: var(--fr);
    width: 5.4rem;
    height: 5.4rem
  }

  .cv-s.s1 {
    top: calc(12svh + 5rem);
    right: calc(var(--fr) + 8rem)
  }

  .cv-s.s2 {
    top: calc(12svh + 2.4rem);
    right: calc(var(--fr) + 10.5rem)
  }

  .cv-s.s3 {
    top: calc(12svh + 6.6rem);
    right: calc(var(--fr) + 6rem)
  }

  .hero {
    padding-bottom: 12rem
  }

  .hero-art {
    width: 17rem
  }

  .kicker {
    font-size: 3rem
  }

  .castle {
    width: min(40rem, 86%);
    bottom: 1.8rem
  }

  .hero .meadow {
    width: min(52rem, 100%)
  }

  .message .rv,
  .closing .rv {
    max-width: 42rem;
    margin-inline: auto
  }

  .lead,
  .closing .msg {
    font-size: 1.75rem;
    max-width: 34rem
  }

  .card {
    max-width: 36rem;
    margin-inline: auto
  }

  .cal-row {
    margin-top: 2.2rem
  }

  .count {
    max-width: 34rem;
    gap: .9rem
  }

  .unit b {
    font-size: 3rem
  }

  .court-grid {
    gap: 1.6rem;
    max-width: 48rem;
    margin-inline: auto
  }

  .show {
    max-width: 25rem
  }

  .dress .theme {
    font-size: 2rem
  }

  .swatches {
    gap: 1.6rem 1.4rem
  }

  .sw {
    width: 5.4rem;
    max-width: none;
    min-width: 0
  }

  .sw i {
    max-width: 4.6rem
  }

  .garland {
    width: min(30rem, 70%)
  }
}

/* desktops */
@media (min-width: 1024px) {
  .hero-art {
    width: 19rem
  }

  .castle {
    width: min(46rem, 90%)
  }

  .hero {
    padding-bottom: 14rem
  }
}

/* large monitors */
@media (min-width: 1600px) {
  html {
    font-size: 19px
  }
}

/* wide screens: scale the hero by screen height so the first view fits without scrolling */
@media (min-width: 760px) and (min-height: 600px) {
  .hero-art {
    width: min(19rem, 33svh)
  }

  .baby {
    font-size: clamp(3.2rem, 9svh, 6.4rem)
  }

  .seven {
    font-size: clamp(4rem, 14svh, 9rem)
  }

  .birthday-word {
    font-size: clamp(2.4rem, 7svh, 4rem)
  }

  .kicker {
    font-size: clamp(2rem, 5svh, 3rem)
  }
}


/* ---------- v2: guest greeting, date/time, directions, program, notes, RSVP ---------- */
.cover-to {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  color: var(--rose);
  margin-bottom: -.8rem;
  max-width: 90vw;
  overflow-wrap: anywhere
}

/* the date is easier to read in the serif than in the script face */
#dateTitle.script {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  line-height: 1.15;
  color: var(--plum-deep)
}

.card dd small.tz,
.card small.tz {
  display: block;
  margin-top: .15rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600
}

.dir-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem
}

.dir-row .btn {
  flex: 1 1 9rem;
  width: auto;
  max-width: 12rem;
  padding-inline: .8rem;
  letter-spacing: .1em;
  white-space: nowrap
}

.info-box {
  max-width: 36rem;
  margin: 1.4rem auto 0;
  padding: 1.5rem 1.3rem 1.4rem;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--gold);
  border-radius: 1.4rem;
  box-shadow: 0 14px 30px -22px rgba(74, 26, 107, .55), inset 0 0 0 4px rgba(255, 255, 255, .7)
}

.info-box h3 {
  font-family: var(--script);
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--plum);
  padding-bottom: .6rem;
  margin-bottom: .8rem;
  border-bottom: 1px dashed rgba(223, 174, 63, .8)
}

.program ol,
.notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem
}

.program li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: .9rem;
  align-items: baseline;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3
}

.program li b {
  color: var(--gold-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums
}

.notes li {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4
}

.notes li::before {
  content: "\2726";
  color: var(--gold);
  margin-right: .55rem
}

.cal-tip {
  max-width: 22rem;
  margin: 1rem auto 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-soft)
}

.court-note {
  max-width: 28rem;
  margin: .9rem auto 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--rose)
}

.court-card .attire {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff3c4;
  font-weight: 600;
  margin-top: .1rem
}

.rsvp-by {
  margin-top: .9rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--rose)
}

.contact a {
  color: var(--plum-deep);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: .25em;
  text-decoration-thickness: 2px
}

.greet .btn.ghost {
  margin-top: 1rem
}

/* soft vignette so every slideshow photo sits in the same pastel frame */
.show-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .65), inset 0 -70px 60px -50px rgba(233, 216, 253, .6)
}

.card::after {
  background: linear-gradient(90deg, var(--blush), var(--rose), var(--lilac-deep), var(--mint))
}

@media (max-width: 380px) {
  .program li {
    grid-template-columns: 5rem 1fr;
    font-size: 1.2rem
  }

  .info-box {
    padding-inline: 1rem
  }
}

/* six dress-code colors: two even rows of three on phones */
@media (max-width: 759px) {
  .swatches:has(.sw:nth-child(6):last-child) {
    gap: 1.2rem .6rem
  }

  .swatches:has(.sw:nth-child(6):last-child) .sw {
    width: calc((100% - 1.2rem) / 3);
    max-width: none;
    min-width: 0
  }

  .swatches:has(.sw:nth-child(6):last-child) .sw i {
    max-width: 4.2rem
  }
}


/* ---------- the fairy is Orianna herself: real portrait with fairy wings ---------- */
.real-fairy {
  display: grid;
  place-items: center;
  aspect-ratio: 1
}

.real-fairy.cv-fairy {
  width: 5.2rem;
  right: 7%;
  height: auto
}

.real-fairy.cf-fairy {
  width: 6.6rem;
  height: auto
}

.rf-wings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: auto;
  transform: translate(-50%, -50%);
  overflow: visible;
  z-index: 0
}

.rf-photo {
  position: relative;
  z-index: 1;
  width: 82%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(255, 255, 255, .55), 0 8px 16px -4px rgba(74, 26, 107, .45)
}

@media (max-height: 700px) and (max-width: 759px) {
  .real-fairy.cv-fairy {
    width: 4.8rem
  }
}

@media (min-width: 760px) {
  .real-fairy.cv-fairy {
    width: 8rem;
    height: auto
  }
}

.close-fairy {
  margin-top: 2.8rem
}

/* fairyStyle: "cutout" shows a transparent-background fairy photo as is, without the round frame or drawn wings */
.real-fairy.cutout .rf-wings {
  display: none
}

.real-fairy.cutout .rf-photo {
  width: 100%;
  aspect-ratio: auto;
  height: auto;
  max-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 236, 160, .9)) drop-shadow(0 6px 8px rgba(74, 26, 107, .25))
}

.real-fairy.cutout.cv-fairy {
  width: 6.5rem
}

.real-fairy.cutout.cf-fairy {
  width: 7.5rem
}

@media (min-width: 760px) {
  .real-fairy.cutout.cv-fairy {
    width: 9rem
  }
}

/* crown above the photo frame must not touch the "A Fairytale Celebration for" line */
.kicker {
  margin-bottom: 1.1rem
}

.hero-art {
  margin-top: 2.2rem
}

/* watercolor fairy: a little larger, softer glow */
.real-fairy.cutout.cv-fairy {
  width: 7.4rem;
  top: 8.5svh;
  right: 3%;
  filter: drop-shadow(0 0 8px rgba(255, 244, 200, .8)) drop-shadow(0 6px 8px rgba(74, 26, 107, .2))
}

.real-fairy.cutout .rf-photo {
  filter: drop-shadow(0 0 6px rgba(255, 244, 200, .7)) drop-shadow(0 5px 7px rgba(74, 26, 107, .2))
}

.real-fairy.cutout.cf-fairy {
  width: 8.4rem
}

@media (max-height: 700px) and (max-width: 759px) {
  .real-fairy.cutout.cv-fairy {
    width: 6rem;
    top: 6svh
  }
}

@media (min-width: 760px) {
  .real-fairy.cutout.cv-fairy {
    width: 10rem;
    top: 10svh
  }
}


/* ---------- extra watercolor fairies standing on the garland dividers ---------- */
.fairy-break {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: .6rem 0 -.2rem;
  pointer-events: none
}

.fairy-break.l {
  justify-content: flex-start;
  padding-left: 10%
}

.fairy-break.r {
  justify-content: flex-end;
  padding-right: 10%
}

.fairy-break img {
  display: block;
  width: 6.4rem;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(255, 244, 200, .6)) drop-shadow(0 5px 6px rgba(74, 26, 107, .18));
  animation: fbob 4.5s ease-in-out infinite alternate
}

.fairy-break.r img {
  animation-delay: -1.5s
}

.fairy-break.c img {
  animation-delay: -3s
}

.fairy-break.sit img {
  width: 7rem
}

@keyframes fbob {
  from {
    transform: translateY(0)
  }

  to {
    transform: translateY(-7px)
  }
}

@media (min-width: 760px) {
  .fairy-break img {
    width: 8rem
  }

  .fairy-break.sit img {
    width: 9rem
  }
}

@media (prefers-reduced-motion: reduce) {
  .fairy-break img {
    animation: none
  }
}


/* ---------- Court of Seven: one column on phones, two even columns on wide screens ---------- */
.court-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
  gap: 1.2rem
}

.court-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center
}

.court-card h3 {
  width: 100%;
  overflow-wrap: normal;
  text-wrap: balance
}

.court-card ol {
  width: auto;
  max-width: 100%
}

.court-card li {
  white-space: nowrap
}

@media (min-width: 640px) {
  .court-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 40rem;
    gap: 1.4rem
  }

  /* titles can wrap to two lines: reserve the space so both columns line up */
  .court-card h3 {
    min-height: 4.9rem;
    display: flex;
    align-items: center;
    justify-content: center
  }
}

@media (min-width: 1024px) {
  .court-grid {
    max-width: 44rem;
    gap: 1.6rem
  }
}

/* ---------- Court of Seven: ornate plaques (notched corners, cream flourishes) ---------- */
.court-grid {
  gap: 2.4rem 1.4rem;
  padding: .6rem .5rem .4rem;
  filter: drop-shadow(0 16px 12px rgba(74, 26, 107, .32))
}

.court-card,
.court-card.tone-0,
.court-card.tone-1,
.court-card.tone-2,
.court-card.tone-3 {
  --r: 2rem;
  --pa: #7a52b3;
  --pb: #5b3a92;
  position: relative;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 3.6rem 2rem 3.4rem;
  color: #fbf3ee;
}

.court-card.tone-1 {
  --pa: #b4568f;
  --pb: #8e3a6f
}

.court-card.tone-2 {
  --pa: #3f9a86;
  --pb: #2f7767
}

.court-card.tone-3 {
  --pa: #5f78cf;
  --pb: #4558ab
}

/* the plaque body: a rounded panel with a quarter-circle notch cut from every corner */
.court-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 1.1rem;
  background:
    radial-gradient(120% 70% at 50% 0, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(180deg, var(--pa), var(--pb));
  box-shadow: inset 0 0 0 2px rgba(243, 217, 198, .55), inset 0 0 0 5px transparent, inset 0 0 0 6px rgba(243, 217, 198, .25);
  -webkit-mask:
    radial-gradient(circle var(--r) at 0 0, #0000 96%, #000 100%) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 100% 0, #0000 96%, #000 100%) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 0 100%, #0000 96%, #000 100%) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 100% 100%, #0000 96%, #000 100%) 100% 100% / 51% 51% no-repeat;
  mask:
    radial-gradient(circle var(--r) at 0 0, #0000 96%, #000 100%) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 100% 0, #0000 96%, #000 100%) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 0 100%, #0000 96%, #000 100%) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle var(--r) at 100% 100%, #0000 96%, #000 100%) 100% 100% / 51% 51% no-repeat;
}

.court-card::after {
  content: none
}

.court-card>* {
  position: relative;
  z-index: 1
}

.court-card>.orn {
  position: absolute;
  z-index: 2;
  width: 5rem;
  height: 5rem;
  fill: none;
  pointer-events: none
}

.court-card>.orn.tl {
  top: 0;
  left: 0
}

.court-card>.orn.tr {
  top: 0;
  right: 0;
  transform: scaleX(-1)
}

.court-card>.orn.bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1)
}

.court-card>.orn.br {
  bottom: 0;
  right: 0;
  transform: scale(-1, -1)
}

.court-card>.crest {
  position: absolute;
  z-index: 2;
  left: 50%;
  width: 5.2rem;
  height: 2.1rem;
  margin-left: -2.6rem;
  pointer-events: none
}

.court-card>.crest.top {
  top: -.7rem
}

.court-card>.crest.bot {
  bottom: -.7rem;
  transform: scaleY(-1)
}

.court-ico {
  display: none
}

.court-card h3 {
  color: #f8e6cc;
  text-shadow: 0 2px 6px rgba(40, 10, 70, .35)
}

.court-card .attire {
  color: #f3d9c6
}

.court-card li {
  color: #fbf3ee;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.35
}

.court-card li i {
  display: none
}

@media (max-width: 380px) {

  .court-card,
  .court-card.tone-0,
  .court-card.tone-1,
  .court-card.tone-2,
  .court-card.tone-3 {
    padding-inline: 1.5rem
  }

  .court-card li {
    font-size: 1.12rem;
    letter-spacing: .05em
  }
}

/* =====================================================================
   UPDATE: realistic sealed envelope, lighter plaques, more glitter,
   fairy position
   ===================================================================== */

/* ---------- clean cream paper envelope with a red wax seal ---------- */
.env {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .25  0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  filter: drop-shadow(0 18px 16px rgba(74, 40, 20, .28)) drop-shadow(0 2px 2px rgba(74, 40, 20, .2));
}

/* inside of the envelope: plain soft lilac lining */
.env-back {
  background: linear-gradient(180deg, #e6d3ea, #efe2f0);
  border: 0;
  border-radius: .25rem;
}

.env-card {
  background: var(--grain), linear-gradient(180deg, #fffdf8, #fbf4e8);
  border: 1px solid rgba(223, 174, 63, .7);
  box-shadow: 0 1px 3px rgba(74, 40, 20, .22);
}

/* front folds: side and bottom pieces, only soft shading, no lines */
.env-front i {
  background: var(--grain), #f3ecda;
}

.env-front .l {
  clip-path: polygon(0 0, 51% 56%, 0 100%);
  background: var(--grain), linear-gradient(90deg, #f1e9d5 0, #e9dfc7 70%, #ddd0b3 100%);
}

.env-front .r {
  clip-path: polygon(100% 0, 49% 56%, 100% 100%);
  background: var(--grain), linear-gradient(270deg, #f1e9d5 0, #e9dfc7 70%, #ddd0b3 100%);
}

.env-front .b {
  clip-path: polygon(0 100%, 50% 52%, 100% 100%);
  filter: none;
  background: var(--grain), linear-gradient(0deg, #f8f2e3 0, #f0e8d3 100%);
}

.env-front::before {
  content: none
}

/* flap: slightly lighter paper with a soft shadow under the edge */
.env-flap {
  height: 58%;
  background: var(--grain), linear-gradient(180deg, #f7f1e1 0, #f3ecda 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 3px 3px rgba(90, 60, 30, .42)) drop-shadow(0 0 .5px rgba(120, 90, 50, .6));
  transition: transform .85s cubic-bezier(.5, 0, .2, 1), z-index 0s .42s, background .01s .42s;
}

.env-flap::after {
  content: none
}

/* flap flips over: show the lilac lining */
.env.open .env-flap {
  background: linear-gradient(180deg, #e3cde8, #efe2f0);
  filter: none;
}

/* the letter slides well clear of the pocket so the text stays readable */
.env.open .env-card {
  transform: translateY(-92%)
}

/* wax seal sitting on the flap tip */
.env-seal {
  top: 58%;
  width: 4.6rem;
  height: 4.6rem;
  margin: -2.3rem 0 0 -2.3rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
  display: block;
  filter: drop-shadow(0 4px 4px rgba(60, 10, 20, .4));
}

.wax {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50% 52% 49% 51% / 52% 49% 51% 48%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 50% 52%, #b3182a 0, #a0131f 60%, #85101b 100%);
  box-shadow:
    inset 0 -3px 5px rgba(60, 0, 8, .4),
    inset 0 2px 3px rgba(255, 140, 150, .35);
}

.wax::before,
.wax::after {
  content: "";
  position: absolute;
  background: #a0131f;
  border-radius: 50%;
  z-index: -1
}

.wax::before {
  width: 20%;
  height: 16%;
  left: -3%;
  bottom: 18%
}

.wax::after {
  width: 16%;
  height: 20%;
  right: -2%;
  top: 16%
}

.wax-ring {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 2px solid rgba(255, 170, 178, .35);
  box-shadow: inset 0 2px 3px rgba(50, 0, 8, .45), 0 1px 0 rgba(255, 160, 170, .3);
}

.env-seal svg {
  position: relative;
  width: 1.8rem;
  height: 1.8rem;
  fill: #f6b9c0;
  fill-opacity: .85;
  filter: drop-shadow(0 -1px 0 rgba(50, 0, 8, .55)) drop-shadow(0 1px 0 rgba(255, 180, 190, .4));
}

.env:not(.open) .env-seal {
  animation: pulse 2.6s ease-in-out infinite
}

.env:not(.open) .env-seal::after {
  inset: -3px;
  border: 1.5px solid rgba(190, 40, 60, .6);
}

.env.open .env-seal {
  opacity: 0;
  transform: scale(.6) rotate(12deg);
  transition: opacity .35s, transform .45s;
}

/* ---------- the cover fairy: nudged a little ---------- */
.real-fairy.cutout.cv-fairy {
  top: 9.8svh;
  right: 5%;
}

@media (max-height: 700px) and (max-width: 759px) {
  .real-fairy.cutout.cv-fairy {
    top: 7.5svh;
  }
}

@media (min-width: 760px) {
  .real-fairy.cutout.cv-fairy {
    top: 11.5svh;
    right: 4.5%;
  }
}

/* ---------- Court of Seven plaques: a touch lighter ---------- */
.court-card,
.court-card.tone-0 {
  --pa: #9373cc;
  --pb: #7656b4;
}

.court-card.tone-1 {
  --pa: #cb77ab;
  --pb: #aa5890
}

.court-card.tone-2 {
  --pa: #5db9a2;
  --pb: #439a86
}

.court-card.tone-3 {
  --pa: #7f95e0;
  --pb: #627acb
}

.court-grid {
  filter: drop-shadow(0 12px 10px rgba(74, 26, 107, .22))
}

.court-card::before {
  background:
    radial-gradient(120% 70% at 50% 0, rgba(255, 255, 255, .26), transparent 60%),
    linear-gradient(180deg, var(--pa), var(--pb));
}

.court-card h3,
.court-card li {
  text-shadow: 0 1px 4px rgba(40, 10, 70, .38)
}

/* glitter sparkling inside each plaque */
.court-card .glit {
  position: absolute;
  inset: 1.2rem;
  z-index: 1;
  pointer-events: none
}

.court-card .glit i {
  position: absolute;
  left: var(--gx);
  top: var(--gy);
  width: var(--gs);
  height: var(--gs);
  background: linear-gradient(135deg, #fffdf0, #ffe38a);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  animation: glint var(--gd) ease-in-out infinite;
  animation-delay: var(--gl);
}

@keyframes glint {

  0%,
  100% {
    opacity: 0;
    transform: scale(.3) rotate(0)
  }

  50% {
    opacity: .95;
    transform: scale(1) rotate(90deg)
  }
}

/* ---------- more floating glitter ---------- */
.spk {
  filter: drop-shadow(0 0 3px rgba(255, 236, 150, .9));
  opacity: .9
}

.spk.pink {
  background: linear-gradient(135deg, #fff0f8, #f6a6d0);
  filter: drop-shadow(0 0 3px rgba(249, 168, 212, .9))
}

.spk.white {
  background: linear-gradient(135deg, #ffffff, #e9d8fd);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .95))
}

.tw {
  filter: drop-shadow(0 0 2px rgba(255, 220, 110, .9));
  opacity: .9
}

@media (prefers-reduced-motion: reduce) {
  .court-card .glit i {
    animation: none;
    opacity: .7
  }
}

/* ---------- optional "tap for details" on Court plaques (only when a group has info in config.js) ---------- */
.court-card .court-tap {
  position: relative;
  z-index: 3;
  margin: 1.1rem auto 0;
  display: block;
  font: 600 .85rem/1 var(--sans, inherit);
  letter-spacing: .06em;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 99px;
  padding: .55rem 1.1rem;
  cursor: pointer;
  animation: tapPulse 2.4s ease-in-out infinite;
}

.court-card .court-tap:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px
}

.court-card .court-info {
  margin: 1rem auto 0;
  max-width: 17rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #fbf3ee;
  text-align: center
}

@keyframes tapPulse {

  0%,
  100% {
    opacity: .75
  }

  50% {
    opacity: 1
  }
}

@media (prefers-reduced-motion: reduce) {
  .court-card .court-tap {
    animation: none
  }
}