:root {
  --ivory: #F5F1E8;
  --espresso: #211B19;
  --charcoal: #373330;
  --champagne: #B59A70;
  --olive: #777A65;
  --olive-ink: #5A5D4A;
  --bronze-ink: #7A5E39;
  --rosewood: #7B3F36;
  --display: "Cormorant Garamond", Baskerville, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", "URW Chancery L", cursive;
  --foil: linear-gradient(100deg, #B98F58 0%, #F3DDB0 24%, #FFF4D8 38%, #D3AC72 55%, #F8E6BF 74%, #AD8350 100%);
  --text: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 5vw, 4rem);
  --gutter: clamp(0.75rem, 4vw, 2.5rem);
  --folio: 54rem;
  --rule: 1px solid rgb(181 154 112 / 55%);
  --foil-corner: url("../assets/foil-corner.svg");
  --corner-size: clamp(2.6rem, 11vw, 5.2rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath d='M0 0h160v160H0z' filter='url(%23grain)' opacity='.075'/%3E%3C/svg%3E");
  --open: 680ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable both-edges;
}

html.cover-active {
  overflow: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0, rgb(181 154 112 / 16%), transparent 58rem),
    var(--espresso);
  color: var(--charcoal);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-variant-numeric: lining-nums;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
a {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.6rem 0.9rem;
  background: var(--ivory);
  color: var(--espresso);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0;
  font-family: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  padding-block: max(var(--gutter), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-bottom));
  padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
  background:
    var(--grain),
    radial-gradient(ellipse at 50% 35%, #4B3E35, var(--espresso) 72%);
  color: var(--ivory);
  perspective: 1300px;
  transition: transform var(--open) var(--ease), opacity var(--open) var(--ease);
}

.cover[hidden] {
  display: none;
}

.cover-opening .cover {
  transform: translateY(-104%) scale(1.05);
  opacity: 0.22;
  transition-delay: 105ms;
}

.cover .cover__sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  width: min(100%, 60rem);
  height: 100%;
  min-block-size: 0;
  margin-inline: auto;
  overflow: hidden auto;
  gap: clamp(0.4rem, 2svh, 1.2rem);
  padding: clamp(1.1rem, 5svh, 3.2rem) clamp(0.75rem, 5vw, 4rem);
  text-align: center;
  border: var(--rule);
  background:
    var(--grain),
    radial-gradient(ellipse at 42% 26%, #604534, transparent 58%),
    linear-gradient(154deg, #3B2A25, #211B19 72%);
  box-shadow: 0 2px 0 #82684B, 0 4px 0 #594435, 0 7px 0 #241C18, 0 1.7rem 3.8rem rgb(15 9 7 / 55%);
  transform-origin: center top;
  transition: transform var(--open) var(--ease);
}

.paper-card::before {
  content: "";
  position: absolute;
  inset: clamp(5px, 1.5vw, 10px);
  z-index: -1;
  border: var(--rule);
  pointer-events: none;
  background:
    var(--foil-corner) 0 0 / var(--corner-size) no-repeat,
    linear-gradient(111deg, transparent 39%, rgb(240 206 151 / 32%) 50%, transparent 61%) 130% 0 / 300% 100% no-repeat;
}

.paper-card::after {
  content: "";
  position: absolute;
  right: clamp(5px, 1.5vw, 10px);
  bottom: clamp(5px, 1.5vw, 10px);
  z-index: -1;
  width: var(--corner-size);
  aspect-ratio: 1;
  background: var(--foil-corner) center / contain no-repeat;
  rotate: 180deg;
  pointer-events: none;
}

.cover-opening .cover__sheet {
  transform: translateY(-2.2rem) rotateX(41deg) scale(0.93);
}

.cover__flowers {
  position: relative;
  isolation: isolate;
  height: min(100%, 25rem, 68vw);
  max-width: 78%;
  aspect-ratio: 420 / 500;
  min-height: 0;
}

.cover__halo {
  position: absolute;
  z-index: -1;
  inset: 3% 2% 12%;
  border: 1px solid rgb(235 203 151 / 52%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 55% 42%, rgb(230 182 117 / 19%), transparent 72%);
  box-shadow: 0 0 0 7px rgb(235 203 151 / 7%), inset 0 0 30px rgb(235 203 151 / 8%);
}

.cover__halo::after {
  content: "";
  position: absolute;
  inset: -5%;
  border: 1px dashed rgb(235 203 151 / 36%);
  border-radius: inherit;
}

.cover__bouquet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 9px 15px rgb(12 8 6 / 42%));
}

.cover__spray {
  position: absolute;
  bottom: 11%;
  right: -25%;
  width: 63%;
  opacity: 0.67;
  rotate: 28deg;
}

.cover__spray--left {
  right: auto;
  left: -21%;
  bottom: 17%;
  opacity: 0.54;
  rotate: -22deg;
  scale: -1 1;
}

.cover__greeting {
  width: 100%;
}

.cover__label {
  color: #D8BC8E;
}

.cover__occasion {
  margin: clamp(0.4rem, 1.6svh, 0.9rem) 0 0;
  color: var(--ivory);
  font: italic clamp(1.05rem, min(4.4vw, 3.4svh), 1.6rem) / 1.3 var(--display);
}

.cover__names {
  display: grid;
  justify-items: center;
  margin: clamp(0.2rem, 1svh, 0.6rem) 0 0;
  font-size: clamp(2.6rem, min(17vw, 10.5svh), 6.4rem);
  line-height: 1.02;
}

.cover__names span {
  margin: -0.14em -0.32em;
  padding: 0.14em 0.32em;
  font-family: var(--script);
  font-weight: 400;
  background: var(--foil) 0 0 / 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 9px rgb(12 8 6 / 45%));
}

.cover__names span:last-child {
  margin-inline: -0.48em;
  padding-inline: 0.48em;
}

.cover__names em {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin: -0.08em 0 -0.02em;
  font: italic 500 0.46em/1 var(--display);
  color: #EBD0A2;
}

.cover__names em::before,
.cover__names em::after {
  content: "";
  width: 1.7em;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D9BA86);
}

.cover__names em::after {
  scale: -1 1;
}

.open-invitation {
  margin-top: clamp(0.8rem, 3svh, 1.6rem);
}

.open-invitation,
.directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--champagne);
  background: transparent;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.open-invitation {
  border-color: #F1DEB4;
  background: linear-gradient(115deg, #D0AA78, #EBD7AF 52%, #B99260);
  color: #211B19;
  box-shadow: 0 1px 0 #906B45, 0 4px 12px rgb(12 8 6 / 32%);
}

.open-invitation:hover,
.open-invitation:focus-visible,
.directions:hover,
.directions:focus-visible {
  background: var(--ivory);
  color: var(--espresso);
}

.open-invitation > span,
.directions > span {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 280ms var(--ease);
}

.open-invitation:hover > span {
  transform: translateY(3px);
}

.directions:hover > span {
  transform: translate(2px, -2px);
}

:focus-visible {
  outline: 2px solid var(--bronze-ink);
  outline-offset: 4px;
}

.cover :focus-visible,
.venue:focus-visible,
.venue :focus-visible {
  outline-color: var(--champagne);
}

main {
  display: grid;
  justify-items: center;
  padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
}

.paper-card {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--folio));
  min-width: 0;
  border: 1px solid rgb(181 154 112 / 66%);
  background:
    var(--grain),
    radial-gradient(ellipse at 100% 0%, #E9DABF, transparent 60%),
    var(--ivory);
  box-shadow: 0 2px 0 #CBB995, 0 4px 0 #A19176, 0 1.1rem 2.8rem rgb(10 6 4 / 46%);
}

main > .paper-card {
  --card-pad: clamp(1.125rem, 4svh, 3rem);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(0.75rem, 2.5svh, 1.5rem);
  min-block-size: 100vh;
  min-block-size: 100dvh;
  padding: max(var(--card-pad), env(safe-area-inset-top)) var(--space)
    max(var(--card-pad), env(safe-area-inset-bottom));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

main > .paper-card:focus-visible {
  outline-offset: -5px;
}

.card-body {
  align-self: center;
  min-inline-size: 0;
}

.card-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  color: var(--bronze-ink);
}

.venue .card-nav {
  color: #EBD0A2;
}

.card-nav__arrow {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
}

.card-nav__arrow::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
}

.card-nav__arrow--up::before {
  transform: translateY(2px) rotate(225deg);
}

.card-nav__arrow--down::before {
  transform: translateY(-2px) rotate(45deg);
}

.card-nav__arrow:is(:hover, :focus-visible) {
  color: var(--ivory);
  background-color: var(--bronze-ink);
  border-color: var(--bronze-ink);
}

.venue .card-nav__arrow:is(:hover, :focus-visible) {
  color: var(--espresso);
  background-color: #EBD0A2;
  border-color: #EBD0A2;
}

.card-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
}

.card-art img {
  position: absolute;
  will-change: transform;
  transform: translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0) rotate(var(--drift-turn, 0deg));
}

.invitation__art .card-art__bouquet {
  top: 3%;
  right: -18%;
  width: min(57%, 25rem);
  opacity: 0.24;
}

.invitation__art .card-art__spray {
  bottom: -6%;
  left: -9%;
  width: min(42%, 16rem);
  opacity: 0.52;
  scale: -1 1;
}

.invitation__kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font: italic 400 clamp(1.45rem, 4.6vw, 2.1rem) / 1.15 var(--display);
  color: var(--bronze-ink);
}

.invitation__kicker::after {
  content: "";
  flex: 0 1 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--champagne), transparent);
}

.invitation__sub {
  margin: 0.55rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.17em;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--olive-ink);
}

h1 {
  position: relative;
  margin: 1rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: min(14.5vw, 7.1rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--espresso);
}

h1:focus-visible {
  outline: none;
}

h1:focus-visible::before {
  content: "";
  position: absolute;
  inset: 0.1em auto 0.05em -0.15em;
  width: 2px;
  background: var(--bronze-ink);
}

.name,
.ampersand {
  display: block;
}

.name {
  color: var(--rosewood);
  text-transform: uppercase;
}

.ampersand {
  margin: 0.08em 0 0.06em 1.3em;
  font-style: italic;
  font-size: 0.68em;
  color: var(--bronze-ink);
}

.name--second {
  margin-left: 0.72em;
}

.invitation__letter {
  margin-top: clamp(1.6rem, 5vw, 3rem);
  padding-top: clamp(1.1rem, 3vw, 2rem);
  border-top: var(--rule);
}

.invitation__joy {
  margin: 0;
  max-width: 37ch;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.invitation__message {
  max-width: 46ch;
  margin: 0.75rem 0 0;
  font-size: clamp(0.94rem, 2vw, 1.06rem);
  line-height: 1.68;
}

.invitation__when {
  margin-top: clamp(1.25rem, 4vw, 2.65rem);
  padding-top: 0.85rem;
  border-top: var(--rule);
}

.when__day,
.when__date,
.when__time,
.when__zone {
  display: block;
}

.when__day {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

.when__date {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  color: var(--espresso);
}

.when__number {
  color: var(--bronze-ink);
  font-family: var(--text);
  font-size: clamp(2.7rem, 7.5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.when__month {
  display: grid;
  gap: 0.2rem;
  font-family: var(--text);
  font-size: clamp(0.7rem, 1.55vw, 0.9rem);
  letter-spacing: 0.14em;
}

.when__month > span {
  color: var(--olive-ink);
  letter-spacing: 0.24em;
}

.when__time {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.when__zone {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

.venue {
  border-color: var(--champagne);
  background: var(--grain), radial-gradient(ellipse at 93% 32%, #52533B, #292C23 56%, #211B19 100%);
  box-shadow: 0 2px 0 #655142, 0 4px 0 #30251F, 0 1.2rem 2.8rem rgb(10 6 4 / 45%);
  color: var(--ivory);
}

.venue__art .card-art__bouquet {
  top: 10%;
  right: -19%;
  width: min(63%, 26rem);
  opacity: 0.23;
}

.venue__art .card-art__spray {
  bottom: -6%;
  right: -4%;
  width: min(54%, 17rem);
  opacity: 0.58;
}

.venue__inner {
  position: relative;
}

.venue__eyebrow {
  color: #D5B98B;
}

h2 {
  margin: 0.8rem 0 0;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.venue__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 0;
}

.venue__facts div {
  padding-top: 0.8rem;
  border-top: var(--rule);
}

.venue__facts div:last-child {
  grid-column: 1 / -1;
}

dt {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #D5B98B;
}

dd {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.1;
}

.venue__country {
  display: block;
  margin-top: 0.4rem;
  font: 0.85rem var(--text);
}

.directions {
  margin-top: 2rem;
}

.closing {
  text-align: center;
  background: var(--grain), radial-gradient(ellipse at 70% 20%, #FBF3DF, #EADABF);
}

.closing__art .card-art__bouquet {
  right: -19%;
  top: -1%;
  width: min(62%, 27rem);
  opacity: 0.25;
}

.closing__art .card-art__spray {
  left: -8%;
  bottom: -1%;
  width: min(57%, 23rem);
  opacity: 0.35;
  scale: -1 1;
}

.closing__note {
  max-width: 18ch;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--espresso);
  text-wrap: balance;
}

.closing__ornament {
  width: min(16rem, 70%);
  margin: clamp(1.5rem, 4vw, 2.4rem) auto clamp(1.2rem, 3vw, 1.8rem);
}

.closing__signoff {
  margin: 0 0 0.35em;
  color: var(--olive-ink);
  font: italic 1.4rem var(--display);
}

.closing__names {
  margin: 0;
  font: 400 clamp(2.2rem, 8vw, 3.2rem) / 1.15 var(--script);
  color: var(--bronze-ink);
}

@media (min-width: 680px), (orientation: landscape) and (min-width: 540px) {
  .cover .cover__sheet {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(1.4rem, 5vw, 4rem);
    text-align: left;
  }

  .cover__flowers {
    height: min(100%, 30rem);
    max-width: 100%;
  }

  .cover__names {
    justify-items: start;
    font-size: clamp(2.6rem, min(7.4vw, 13svh), 6.6rem);
  }

  .cover__names span:last-child {
    margin-inline: -0.32em;
    padding-inline: 0.32em;
    padding-left: 0.62em;
  }

  .cover__names em {
    margin-left: 1.3em;
  }

  .cover__greeting {
    padding-left: clamp(1rem, 2.5vw, 1.8rem);
    border-left: var(--rule);
  }
}

@media (min-width: 680px) {
  .venue__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .venue__facts div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 719px) {
  .invitation {
    text-align: center;
  }

  .invitation__kicker {
    display: block;
    text-wrap: balance;
  }

  .invitation__kicker::after {
    display: none;
  }

  .invitation .ampersand,
  .invitation .name--second {
    margin-inline: 0;
  }

  .invitation__joy,
  .invitation__message {
    margin-inline: auto;
  }

  .invitation__when time {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem 0.9rem;
    margin-top: 0.3rem;
  }

  .when__date {
    margin: 0;
  }

  .when__time {
    margin: 0;
    font-size: 0.82rem;
  }
}

@media (max-width: 719px) and (max-height: 650px) {
  .invitation h1 {
    margin-top: 0.65rem;
  }

  .invitation__when,
  .invitation__letter {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
  }
}

@media (min-width: 720px) {
  .invitation__spread {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 31%);
    gap: clamp(1.65rem, 4vw, 3.35rem);
    align-items: end;
  }

  h1 {
    font-size: clamp(4.2rem, 7.7vw, 5.85rem);
  }

  .name--second {
    margin-left: 1em;
  }

  .invitation__when {
    margin: 0 0 0.3rem;
    padding: 1.5rem 0 0.35rem 1.5rem;
    border-left: var(--rule);
  }

  .invitation__art .card-art__bouquet {
    top: -14%;
    right: -2%;
  }

  .venue__inner {
    padding-right: 32%;
  }

  .venue__art .card-art__bouquet {
    top: 12%;
    right: -1%;
    width: 40%;
    opacity: 0.73;
  }

  .closing__art .card-art__bouquet {
    right: -15%;
    top: auto;
    bottom: -19%;
    opacity: 0.58;
  }

  .closing__art .card-art__spray {
    opacity: 0.55;
  }

  .closing__note {
    max-width: 16ch;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.cover-active) {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
  }

  html.card-scrolling:not(.cover-active) {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .card-body {
    opacity: calc(1 - var(--card-distance, 0) * 0.32);
    transform: perspective(900px)
      translateY(calc(var(--card-travel, 0) * 2.8rem))
      rotateX(calc(var(--card-travel, 0) * -10deg))
      scale(calc(1 - var(--card-distance, 0) * 0.075));
  }

  .card-nav__arrow {
    transition: background-color 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
  }

  .cover-active:not(.cover-opening) .cover__sheet {
    animation: cover-arrival 720ms var(--ease);
  }

  .cover-active:not(.cover-opening) .cover__flowers {
    animation: flowers-arrive 1050ms 100ms var(--ease) both;
  }

  .cover-active:not(.cover-opening) .cover__greeting {
    animation: print-arrive 760ms 180ms var(--ease) both;
  }

  .cover-active .cover__sheet::before {
    animation: foil-pass 1450ms 180ms var(--ease) both;
  }

  .cover-active:not(.cover-opening) .cover__halo {
    animation: halo-unfurl 1100ms 75ms var(--ease) both;
  }

  .cover-active:not(.cover-opening) .cover__names em {
    animation: name-arrive 720ms 320ms var(--ease) both;
  }

  .cover-active:not(.cover-opening) .cover__names span {
    animation:
      name-arrive 720ms 210ms var(--ease) both,
      foil-shimmer 2600ms 900ms ease-in-out both;
  }

  .cover-active:not(.cover-opening) .cover__names span:last-child {
    animation-delay: 395ms, 1080ms;
  }

  .cover-opening .invitation {
    transform-origin: center top;
    animation: paper-rise var(--open) var(--ease) both;
  }

  .paper-card.is-in-view .card-art {
    animation: ink-reveal 960ms var(--ease) both;
  }

  .paper-card.is-in-view::before {
    animation: frame-arrive 920ms var(--ease) both, foil-pass 1400ms 120ms var(--ease) both;
  }

  .paper-card.is-in-view [data-enter],
  .invitation.is-in-view .name,
  .invitation.is-in-view .ampersand {
    animation: print-arrive 690ms var(--entrance-delay, 0ms) var(--ease) both;
  }

  [data-enter="1"],
  .invitation .name {
    --entrance-delay: 80ms;
  }

  [data-enter="2"],
  .invitation .ampersand {
    --entrance-delay: 150ms;
  }

  [data-enter="3"],
  .invitation .name--second {
    --entrance-delay: 225ms;
  }
}

@keyframes cover-arrival {
  from {
    translate: 0 1.1rem;
    opacity: 0;
  }
}

@keyframes foil-pass {
  from {
    background-position: 0 0, 130% 0;
  }

  to {
    background-position: 0 0, -30% 0;
  }
}

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

  to {
    background-position: 0 0;
  }
}

@keyframes halo-unfurl {
  from {
    clip-path: inset(0 100% 0 0);
    scale: 0.92;
    opacity: 0.36;
  }
}

@keyframes name-arrive {
  from {
    clip-path: inset(0 0 28% 0);
    translate: 0 0.28em;
    opacity: 0.57;
  }
}

@keyframes ink-reveal {
  from {
    clip-path: inset(0 0 38% 0);
    opacity: 0.25;
  }

  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

@keyframes flowers-arrive {
  from {
    translate: 0 1.2rem;
    rotate: -5deg;
    scale: 0.88;
    opacity: 0.25;
  }
}

@keyframes print-arrive {
  from {
    translate: 0 0.7rem;
    opacity: 0.62;
  }
}

@keyframes frame-arrive {
  from {
    scale: 0.975;
    opacity: 0.3;
  }
}

@keyframes paper-rise {
  from {
    transform: perspective(1100px) translateY(4.2rem) rotateX(-12deg) scale(0.965);
  }

  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover,
  .cover__sheet,
  .open-invitation,
  .directions,
  .open-invitation > span,
  .directions > span {
    transition: none;
  }

  .card-art img,
  .open-invitation:hover > span,
  .directions:hover > span {
    transform: none;
    will-change: auto;
  }
}
