:root {
  --wine: #5c1118;
  --wine-deep: #43090f;
  --wine-light: #7a1b25;
  --paper: #fbf9f6;
  --cream: #f1e9df;
  --envelope: #f2efea;
  --blush: #f1cfcf;
  --line: #ecbcbc;
  --text-light: #f6e8e4;
  --gold: #c9a45c;

  --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='5' seed='3' stitchTiles='stitch' result='n'/%3E%3CfeDiffuseLighting in='n' surfaceScale='1.5' lighting-color='%23fff' result='l'%3E%3CfeDistantLight azimuth='235' elevation='58'/%3E%3C/feDiffuseLighting%3E%3CfeComponentTransfer in='l' result='lt'%3E%3CfeFuncR type='linear' slope='.55' intercept='.58'/%3E%3CfeFuncG type='linear' slope='.55' intercept='.58'/%3E%3CfeFuncB type='linear' slope='.55' intercept='.58'/%3E%3C/feComponentTransfer%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='9' stitchTiles='stitch' result='g'/%3E%3CfeColorMatrix in='g' type='saturate' values='0' result='gs'/%3E%3CfeComponentTransfer in='gs' result='gg'%3E%3CfeFuncR type='linear' slope='.3' intercept='.83'/%3E%3CfeFuncG type='linear' slope='.3' intercept='.83'/%3E%3CfeFuncB type='linear' slope='.3' intercept='.83'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='5' stitchTiles='stitch' result='c'/%3E%3CfeColorMatrix in='c' type='saturate' values='0' result='cs'/%3E%3CfeComponentTransfer in='cs' result='cc'%3E%3CfeFuncR type='linear' slope='.14' intercept='.92'/%3E%3CfeFuncG type='linear' slope='.14' intercept='.92'/%3E%3CfeFuncB type='linear' slope='.14' intercept='.92'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeBlend in='lt' in2='gg' mode='multiply' result='m'/%3E%3CfeBlend in='m' in2='cc' mode='multiply'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");


  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;

  --fade: .6s;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--wine);
  color: var(--text-light);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 1px dashed currentColor;
  outline-offset: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.screen {
  opacity: 0;
  transition: opacity var(--fade) var(--ease);
}

.screen.is-shown {
  opacity: 1;
}

.screen[hidden] {
  display: none;
}

.intro {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  background: var(--wine-deep);
  background: radial-gradient(120% 80% at 50% 40%, var(--wine) 0%, var(--wine-deep) 100%);
  overflow: hidden;
}

.intro__inner {
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 16px;
  animation: rise 1.4s var(--ease) both;
}

.intro__caps {
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
}

.intro__script {
  margin-top: -.18em;
  font-size: clamp(42px, 12.5vw, 60px);
  line-height: 1;
}

.intro__hint {
  margin-top: 22px;
  padding: 0 16px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
  animation: rise 1.2s var(--ease) 1.4s both;
}

.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 1.36;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1400px;
  animation: rise 1.2s var(--ease) .7s both;
  transition: scale .5s var(--ease);
}

.envelope:hover {
  scale: 1.015;
}

.envelope > * {
  position: absolute;
}

.paper {
  position: absolute;
  inset: 0;
  background-size: 320px 320px, auto;
  background-blend-mode: multiply;
}

.envelope__back {
  inset: 0;
  background:
    var(--paper-texture) 0 0 / 320px 320px,
    linear-gradient(180deg, #ddd6cc, #ece6de);
  background-blend-mode: multiply;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
}

.envelope__part {
  inset: 0;
}

.envelope__letter {
  left: 6%;
  right: 6%;
  top: 5%;
  bottom: 6%;
  z-index: 1;
  display: grid;
  place-items: start center;
  padding-top: 7%;
  background:
    var(--paper-texture) 40px 60px / 320px 320px,
    radial-gradient(120% 90% at 30% 10%, #fffdf9, #f1ece4);
  background-blend-mode: multiply;
  color: var(--wine);
  font-size: clamp(28px, 8vw, 38px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .5);
  transition: translate 1s var(--ease) .55s;
}

.envelope__part--sides {
  z-index: 2;
  filter: drop-shadow(0 0 3px rgba(60, 40, 30, .28));
}

.envelope__side--left {
  background-image:
    var(--paper-texture),
    linear-gradient(90deg, #f7f4ef 0%, #ece7df 85%, #e2dcd2 100%);
  clip-path: polygon(0 0, 53% 57%, 0 100%);
}

.envelope__side--right {
  background-image:
    var(--paper-texture),
    linear-gradient(270deg, #f5f2ec 0%, #e9e4db 85%, #ddd6cb 100%);
  background-position: 120px 40px, 0 0;
  clip-path: polygon(100% 0, 47% 57%, 100% 100%);
}

.envelope__part--bottom {
  z-index: 3;
  filter: drop-shadow(0 -2px 3px rgba(60, 40, 30, .22));
}

.envelope__bottom {
  background-image:
    var(--paper-texture),
    linear-gradient(0deg, #faf8f4 0%, #efeae3 80%, #e6e0d6 100%);
  background-position: 70px 150px, 0 0;
  clip-path: polygon(0 100%, 50% 52%, 100% 100%);
}

.envelope__flap {
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  z-index: 4;
  filter: drop-shadow(0 3px 4px rgba(60, 40, 30, .3));
  transform-origin: 50% 0;
  transition: transform .8s var(--ease), z-index 0s linear .4s;
}

.envelope__flap-paper {
  background-image:
    var(--paper-texture),
    linear-gradient(180deg, #fcfbf8 0%, #f1ede6 80%, #e8e2d9 100%);
  background-position: 200px 10px, 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.envelope__ribbon {
  left: 50%;
  top: 60%;
  z-index: 5;
  width: 40%;
  aspect-ratio: 120 / 84;
  translate: -50% -38%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
  transition: opacity .4s, scale .4s;
}

.seal {
  position: absolute;
  left: 50%;
  top: 60%;
  z-index: 6;
  width: 21%;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 47% 53% 50% 50% / 52% 48% 53% 47%;
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(90, 60, 15, .35) 54%, transparent 58%),
    radial-gradient(circle at 35% 30%, #f3dc9a 0%, #d2ad5e 35%, #a77e32 70%, #7d5a1e 100%);
  box-shadow:
    inset 0 0 0 2px rgba(120, 85, 25, .35),
    inset 0 -3px 6px rgba(80, 50, 10, .35),
    0 3px 6px rgba(0, 0, 0, .35);
  transition: opacity .4s, scale .4s;
}

.seal__mark {
  font-family: var(--font-serif);
  font-size: clamp(12px, 4vw, 20px);
  font-weight: 600;
  letter-spacing: .02em;
  color: #8a6523;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .7), 0 -1px 0 rgba(80, 50, 10, .4);
}

.seal__mark i {
  font-style: italic;
  font-weight: 400;
  margin: 0 .05em;
}

.envelope.is-open {
  cursor: default;
}

.envelope.is-open .seal,
.envelope.is-open .envelope__ribbon {
  opacity: 0;
  scale: .6;
}

.envelope.is-open .envelope__flap {
  z-index: 0;
  transform: rotateX(180deg);
}

.envelope.is-open .envelope__letter {
  translate: 0 -42%;
}

.envelope.is-pulled .envelope__back,
.envelope.is-pulled .envelope__part {
  opacity: 0;
  translate: 0 45%;
  transition: translate .8s var(--ease), opacity .6s var(--ease) .1s;
}

.envelope.is-pulled .envelope__letter {
  translate: 0 -30%;
  scale: 1.04;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .5);
  transition: translate .8s var(--ease), scale .8s var(--ease), box-shadow .8s var(--ease);
}

.envelope.is-pulled .envelope__letter > * {
  opacity: 0;
  transition: opacity .4s var(--ease) .35s;
}

.intro.is-leaving .intro__title,
.intro.is-leaving .intro__hint {
  filter: opacity(0);
  transition: filter .5s var(--ease);
}

.screen.is-unfolding {
  position: fixed;
  inset: 0;
  z-index: 20;
  transition: clip-path 1s cubic-bezier(.65, 0, .25, 1);
}

.screen.is-unfolding::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    var(--paper-texture) 40px 60px / 320px 320px,
    radial-gradient(120% 90% at 30% 10%, #fffdf9, #f1ece4);
  background-blend-mode: multiply;
  transition: opacity .8s var(--ease) .45s;
}

.screen.is-unfolding.is-unfolded::after {
  opacity: 0;
}

.menu.is-from-letter .c-item {
  animation-delay: calc(var(--i, 0) * 90ms + 650ms);
}

.menu {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 12px 0;
  background: var(--wine);
  background: radial-gradient(120% 90% at 50% 35%, #651620 0%, var(--wine) 55%, var(--wine-deep) 100%);
  overflow: hidden;
}

.collage {
  position: relative;
  width: min(100vw, calc((100vh - 24px) * .477), 460px);
  width: min(100vw, calc((100svh - 24px) * .477), 460px);
  aspect-ratio: 41 / 86;
  container-type: inline-size;
}

.c-item {
  position: absolute;
}

.menu.is-shown .c-item {
  animation: pop .9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}

.c-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: scale .45s var(--ease), filter .45s var(--ease);
}

.c-link:hover,
.c-link:focus-visible {
  scale: 1.05;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
}

.c-envelope {
  left: 10%;
  top: 8%;
  width: 67%;
  height: 38%;
  z-index: 1;
  background:
    var(--paper-texture) 0 0 / 240px 240px,
    linear-gradient(180deg, #f6f2eb, #e9e3d9);
  background-blend-mode: multiply;
  clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%);
}

.c-envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--paper-texture) 90px 30px / 240px 240px,
    linear-gradient(0deg, #f5f0e8, #e5ded3);
  background-blend-mode: multiply;
  clip-path: polygon(0 46%, 50% 76%, 100% 46%, 100% 100%, 0 100%);
}

.c-envelope__liner {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 3.5%;
  height: 72%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 13%;
  color: var(--text-light);
  text-align: center;
  background: radial-gradient(90% 80% at 50% 35%, #8a1a24 0%, #5c0f17 70%, #45090f 100%);
  clip-path: polygon(0 26%, 50% 0, 100% 26%, 100% 66%, 50% 100%, 0 66%);
}

.c-envelope__day {
  font-size: 11cqw;
  line-height: .9;
}

.c-envelope__month,
.c-envelope__year {
  font-size: 4.6cqw;
  line-height: 1.05;
  text-transform: uppercase;
}

.c-envelope__city {
  margin-top: 2.2cqw;
  font-size: 2.4cqw;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.c-envelope__bells {
  width: 11cqw;
  aspect-ratio: 64 / 56;
  margin-top: 1.5cqw;
  color: var(--line);
}

.c-sparkle {
  color: #f6e3e0;
  aspect-ratio: 1;
}

.c-sparkle--1 {
  left: 79%;
  top: 16.5%;
  width: 8%;
}

.c-sparkle--2 {
  left: 88%;
  top: 66%;
  width: 4.5%;
}

.c-sparkle--3 {
  left: 6%;
  top: 66%;
  width: 3.5%;
}

.c-tag {
  left: 51%;
  top: 27%;
  width: 43%;
  aspect-ratio: 200 / 280;
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3));
}

.c-tag__shape {
  width: 100%;
  height: 100%;
}

.c-tag__outer {
  fill: #f6ece6;
  stroke: #8c2a33;
  stroke-width: 3;
}

.c-tag__inner {
  fill: none;
  stroke: #b9555c;
  stroke-width: 1.2;
}

.c-tag__bow {
  position: absolute;
  left: 50%;
  top: -7%;
  width: 52%;
  aspect-ratio: 120 / 84;
  translate: -50% 0;
}

.c-tag__text {
  position: absolute;
  inset: 25% 8% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--wine);
  text-align: center;
}

.c-tag__lead {
  margin-bottom: 2cqw;
  font-size: 2.6cqw;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.c-tag__name {
  font-size: 8cqw;
  line-height: 1.1;
}

.c-tag__amp {
  font-size: 7cqw;
  line-height: .8;
}

.c-flower {
  aspect-ratio: 1;
  z-index: 4;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3));
}

.c-flower--1 {
  left: 18%;
  top: 36.5%;
  width: 28%;
  rotate: 12deg;
}

.c-flower--2 {
  left: 5%;
  top: 43%;
  width: 24%;
  rotate: -18deg;
}

.c-tree {
  left: 4%;
  top: 59%;
  width: 22%;
  aspect-ratio: 64 / 78;
  color: rgba(236, 188, 188, .45);
}

.c-polaroid {
  left: 25%;
  top: 50.5%;
  width: 36%;
  z-index: 5;
  padding: 2.6cqw 2.6cqw 0;
  background: var(--paper-texture) 0 0 / 240px 240px, #f6f3ee;
  background-blend-mode: multiply;
  rotate: -6deg;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.c-polaroid .photo {
  aspect-ratio: 1.1;
}

.c-polaroid__label {
  display: block;
  padding: 2.4cqw 0 2.2cqw;
  font-size: 3cqw;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  color: #3b2a26;
}

.c-coupe {
  left: 62%;
  top: 58%;
  width: 30%;
  aspect-ratio: 80 / 92;
  z-index: 4;
  color: var(--cream);
  --fill: #f4ebe4;
}

.c-coupe svg {
  width: 100%;
  height: 100%;
}

.c-coupe__label {
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;
  font-size: 2.7cqw;
  line-height: 1.1;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--wine);
}

.c-frame {
  left: 7%;
  top: 71%;
  width: 47%;
  aspect-ratio: 200 / 160;
  z-index: 2;
}

.c-frame__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--line);
  stroke-width: 1.4;
}

.c-frame__bow {
  position: absolute;
  left: 50%;
  top: 2%;
  width: 34%;
  aspect-ratio: 100 / 72;
  translate: -50% -35%;
  color: var(--line);
}

.c-frame .photo {
  position: absolute;
  left: 22%;
  top: 22%;
  width: 54%;
  height: 62%;
  rotate: 5deg;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}

.c-gift {
  left: 53%;
  top: 75.5%;
  width: 37%;
  aspect-ratio: 1.45;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  background:
    var(--paper-texture) 0 0 / 240px 240px,
    linear-gradient(180deg, #f3e9e5, #e3d3cd);
  background-blend-mode: multiply;
  rotate: 3deg;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.c-gift__flap {
  position: absolute;
  inset: 0 0 auto;
  height: 52%;
  background:
    var(--paper-texture) 60px 20px / 240px 240px,
    linear-gradient(180deg, #f9f2ef, #eadcd6);
  background-blend-mode: multiply;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.c-gift__text {
  position: relative;
  margin-top: -18%;
  font-size: 8.5cqw;
  color: var(--wine);
}

.c-gift .seal {
  top: 70%;
  width: 22%;
}

.c-gift .seal__mark {
  font-size: 2.2cqw;
}

.c-back {
  position: absolute;
  left: 50%;
  bottom: 2.5%;
  translate: -50% 0;
  font-size: 2.6cqw;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .7;
}

.c-back:hover {
  opacity: 1;
}

.photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: #b98e7a;
}

.photo--warm {
  background:
    radial-gradient(60% 50% at 35% 40%, rgba(255, 228, 200, .9), transparent 70%),
    radial-gradient(50% 60% at 70% 65%, rgba(120, 70, 50, .6), transparent 70%),
    linear-gradient(140deg, #d8b49b, #8c5d4b 60%, #4b2f28);
}

.photo--rose {
  background:
    radial-gradient(50% 45% at 40% 45%, rgba(255, 240, 235, .9), transparent 70%),
    radial-gradient(40% 50% at 75% 70%, rgba(130, 40, 50, .6), transparent 70%),
    linear-gradient(160deg, #e7c9bf, #b07c75 55%, #6b3b3c);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page {
  min-height: 100vh;
}

.hero-silk {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 28px 16px;
  color: var(--wine);
  text-align: center;
  background:
    radial-gradient(60% 90% at 18% 20%, rgba(255, 255, 255, .95), transparent 60%),
    radial-gradient(50% 80% at 82% 75%, rgba(205, 196, 183, .8), transparent 70%),
    radial-gradient(40% 70% at 60% 10%, rgba(255, 255, 255, .8), transparent 70%),
    linear-gradient(112deg, #f3f0eb 0%, #d9d1c5 16%, #fbf9f6 30%, #d5ccbf 46%, #f8f5f1 60%, #cfc5b7 78%, #f2eee8 100%);
}

.hero-silk__names {
  font-size: clamp(44px, 12vw, 72px);
  line-height: 1.1;
}

.block {
  padding: 56px 16px 64px;
  text-align: center;
}

.block > * {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.block p + p {
  margin-top: 1em;
}

.block--wine {
  background: var(--wine);
  color: var(--text-light);
}

.block--paper {
  background: var(--paper);
  color: var(--wine);
}

.block--velvet {
  background: radial-gradient(90% 70% at 50% 45%, #6e1420 0%, var(--wine-deep) 100%);
  color: var(--text-light);
}

.block--bokeh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #3b1a17;
  background: linear-gradient(165deg, #eadfcc 0%, #cbb393 40%, #e6d9c4 65%, #b8a07f 100%);
}

.block--bokeh::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  max-width: none;
  margin: 0;
  filter: blur(6px);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 250, 238, .95) 0 14px, transparent 26px),
    radial-gradient(circle at 78% 6%, rgba(255, 250, 238, .85) 0 22px, transparent 36px),
    radial-gradient(circle at 92% 30%, rgba(255, 248, 230, .8) 0 12px, transparent 24px),
    radial-gradient(circle at 30% 26%, rgba(255, 250, 238, .7) 0 8px, transparent 18px),
    radial-gradient(circle at 60% 40%, rgba(255, 250, 238, .6) 0 18px, transparent 32px),
    radial-gradient(circle at 8% 52%, rgba(255, 248, 230, .85) 0 20px, transparent 34px),
    radial-gradient(circle at 86% 62%, rgba(255, 250, 238, .75) 0 16px, transparent 30px),
    radial-gradient(circle at 40% 74%, rgba(255, 250, 238, .6) 0 10px, transparent 22px),
    radial-gradient(circle at 18% 90%, rgba(255, 248, 230, .8) 0 18px, transparent 32px),
    radial-gradient(circle at 70% 92%, rgba(255, 250, 238, .8) 0 24px, transparent 40px),
    linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .2));
}

.title {
  font-size: clamp(40px, 11vw, 60px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.title + .date,
.block .date {
  margin-top: 0;
  font-size: 24px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.block .date + p {
  margin-top: .8em;
}


.art {
  margin: 28px auto 36px;
  color: currentColor;
}

.block--wine .art,
.block--velvet .art {
  color: var(--line);
}

.art--doves {
  width: 170px;
  aspect-ratio: 150 / 72;
}




.timeline {
  list-style: none;
  max-width: 320px;
  margin-top: 18px;
  padding: 0;
}

.tl {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 14px;
  padding-bottom: 38px;
}

.tl:last-child {
  padding-bottom: 0;
}

.tl:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 44px;
  height: 30px;
  translate: -50% 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 30'%3E%3Cpath d='M6 2C18 4 32 8 32 16S22 26 14 27' fill='none' stroke='%235c1118' stroke-width='1.2' stroke-dasharray='2 3' stroke-linecap='round'/%3E%3Cpath d='M18 23L13 27L18 30' fill='none' stroke='%235c1118' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tl:nth-child(even)::after {
  scale: -1 1;
}

.tl__icon {
  width: 68px;
  height: 68px;
  justify-self: end;
}

.tl__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.tl:nth-child(even) .tl__icon {
  order: 2;
  justify-self: start;
}

.tl:nth-child(even) .tl__text {
  align-items: flex-end;
  text-align: right;
}

.tl__label {
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tl__time {
  font-size: 30px;
  font-style: italic;
  line-height: 1.05;
}

.tl__place {
  margin-top: 2px;
  font-size: 13px;
  font-style: italic;
  line-height: 1.2;
  opacity: .8;
}


.venue {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 320 / 660;
  margin-top: 64px;
}

.venue__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}

.venue__outer {
  fill: url(#g-venue);
  stroke: var(--line);
  stroke-width: 1.6;
}

.venue__inner {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  opacity: .75;
}

.venue__bow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 46%;
  aspect-ratio: 100 / 72;
  translate: -50% -45%;
  color: var(--line);
}

.venue__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 17%;
}

.venue__stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.block .venue__time {
  font-size: 30px;
  font-style: italic;
  line-height: 1;
}

.venue__divider {
  width: 14px;
  height: 14px;
  margin: 22px 0;
  color: var(--line);
}

.venue__name {
  font-size: 24px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.venue__name + p {
  margin-top: 2px;
}

.venue__note {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.5;
}

.link-italic {
  font-size: 15px;
  font-style: italic;
  text-decoration: none;
  opacity: .85;
}

.link-italic:hover {
  text-decoration: underline;
  opacity: 1;
}








.btn {
  display: inline-block;
  min-width: min(100%, 260px);
  margin-top: 22px;
  padding: 14px 24px;
  border: 1px solid currentColor;
  font-size: 13px;
  letter-spacing: .3em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}



.btn--cream {
  border-color: #6e5a4c;
  background: rgba(250, 245, 238, .9);
  color: #3b1a17;
}

.btn--cream:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--text-light);
}


.palette {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.palette li {
  width: 56px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.dress-tree {
  width: min(100%, 320px);
  margin-top: 26px;
  margin-bottom: 10px;
  overflow: visible;
}

.dress-tree__tiers path,
.dress-tree__trunk path {
  fill: var(--paper);
  stroke: var(--wine);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.dress-tree__star {
  fill: #e3c78d;
  stroke: var(--wine);
  stroke-width: 1.2;
  stroke-linejoin: round;
}


.dress-tree__baubles rect {
  fill: #e3c78d;
  stroke: var(--wine);
  stroke-width: .6;
}

.dress-tree__baubles circle {
  stroke: rgba(92, 17, 24, .3);
  stroke-width: .8;
}

.dress-tree__baubles > g {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 0;
}

.dress-tree.is-decorated .dress-tree__baubles > g {
  animation: hang .9s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + 250ms);
}

.dress-tree__baubles .dress-tree__shine {
  fill: url(#g-bauble);
  stroke: none;
}

.block .dress-avoid {
  margin-top: 8px;
}

.palette--avoid {
  gap: 30px;
  margin-bottom: 34px;
}

.palette--avoid li {
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(92, 17, 24, .3);
}

.palette--avoid li::before,
.palette--avoid li::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 50%;
  height: 1.5px;
  background: var(--wine);
  box-shadow: 0 0 0 1px rgba(251, 249, 246, .85);
  rotate: -45deg;
}

.palette--avoid li::before {
  rotate: 45deg;
}

.palette--avoid span {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signoff {
  margin-top: 36px;
  font-size: 26px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.block .signoff__names {
  margin-top: 14px;
  font-size: clamp(44px, 12vw, 64px);
  line-height: .95;
}

.link-back {
  display: block;
  width: fit-content;
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.story-photos {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}

.polaroid {
  display: block;
  width: min(42%, 180px);
  padding: 10px 10px 0;
  background: var(--paper-texture) 0 0 / 240px 240px, #f6f3ee;
  background-blend-mode: multiply;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}

.polaroid:first-child {
  rotate: -5deg;
}

.polaroid:last-child {
  rotate: 4deg;
  translate: 0 14px;
}

.polaroid .photo {
  aspect-ratio: 1;
}

.polaroid__label {
  display: block;
  padding: 8px 0 10px;
  font-size: 22px;
  font-style: italic;
  color: #3b2a26;
}

.milestones {
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

.milestones li + li {
  margin-top: 14px;
}

.milestones__year {
  display: block;
  font-size: 30px;
  font-style: italic;
  line-height: 1.1;
  color: var(--blush);
}

.block--screen {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 40px;
}

.rsvp-form {
  margin-top: 28px;
  padding: 28px 22px 30px;
  border: 1px solid var(--line);
  background: var(--wine-deep);
  text-align: left;
}

.field {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blush);
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(236, 188, 188, .5);
  border-radius: 0;
  background: rgba(255, 255, 255, .06);
  font-size: 18px;
}

.field select option {
  color: #222;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blush);
  background: rgba(255, 255, 255, .1);
}

.field select:disabled {
  opacity: .4;
}

.field--choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
}

.field--choice input {
  accent-color: var(--blush);
  width: 16px;
  height: 16px;
  margin: 0;
}

.rsvp-form .btn {
  width: 100%;
  margin-top: 8px;
}

.rsvp-thanks {
  margin-top: 40px;
}

.gift-dialog {
  width: min(100% - 32px, 420px);
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  color: #3b1a17;
}

.gift-dialog::backdrop {
  background: rgba(30, 4, 8, .6);
  backdrop-filter: blur(3px);
}

.gift-dialog[open] .gift-dialog__card {
  animation: gift-in .5s var(--ease) both;
}

.gift-dialog__card {
  position: relative;
  padding: 56px 28px 40px;
  text-align: center;
  background:
    var(--paper-texture) 40px 60px / 320px 320px,
    radial-gradient(120% 90% at 30% 10%, #fffdf9, #f1ece4);
  background-blend-mode: multiply;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.gift-dialog__card:focus {
  outline: none;
}

.gift-dialog__bow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 120px;
  aspect-ratio: 120 / 84;
  translate: -50% -42%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3));
}

.gift-dialog__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  color: var(--wine);
  cursor: pointer;
}

.gift-dialog .title {
  color: var(--wine);
}

.gift-dialog__body p + p {
  margin-top: 1em;
}

.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 1s var(--ease), translate 1s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes hang {
  0% {
    opacity: 0;
    translate: 0 -28px;
    rotate: 0deg;
  }
  45% {
    opacity: 1;
    translate: 0 2px;
    rotate: 9deg;
  }
  65% {
    translate: 0 -1px;
    rotate: -6deg;
  }
  82% {
    translate: 0 0;
    rotate: 3deg;
  }
  100% {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}

@keyframes gift-in {
  from {
    opacity: 0;
    translate: 0 24px;
    scale: .96;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    translate: 0 4cqw;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (min-width: 900px) {
  .block {
    padding-top: 80px;
    padding-bottom: 88px;
  }

  .hero-silk {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --fade: 0s;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    translate: none;
  }
}
