:root {
  --ivory: #F3EEE4;
  --card: #EAE3D6;
  --crease: #DDD4C3;
  --ink: #14231B;
  --ink-soft: rgba(20, 35, 27, .62);
  --clay: #9A4F44;
  --display: "Bellefair", "Cormorant Garamond", Georgia, serif;
  --body: "Mulish", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* faint petal wash behind everything */
.bloom {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.bloom-a {
  width: 52vmax; height: 52vmax;
  left: -18vmax; top: -22vmax;
  background: radial-gradient(circle, #E9D4C8 0%, rgba(233,212,200,0) 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.bloom-b {
  width: 46vmax; height: 46vmax;
  right: -16vmax; bottom: -20vmax;
  background: radial-gradient(circle, #D6DDCF 0%, rgba(214,221,207,0) 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(6vmax, 5vmax); } }
@keyframes drift-b { to { transform: translate(-5vmax, -6vmax); } }

/* the four corners of the table */
.corner {
  position: fixed;
  z-index: 2;
  padding: clamp(18px, 3vw, 34px);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}
.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; text-align: right; }
.corner-bl { bottom: 0; left: 0; }
.corner-br { bottom: 0; right: 0; text-align: right; }
.brand { font-weight: 600; }
.note { color: var(--ink-soft); font-weight: 400; }
.credit {
  color: var(--ink-soft);
  font-weight: 400;
  text-decoration: none;
  transition: color .3s ease;
}
.credit:hover, .credit:focus-visible { color: var(--ink); }

/* the card on the table */
.table {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(72px, 12vh, 120px) clamp(20px, 6vw, 80px);
}

.card {
  position: relative;
  width: min(100%, 640px);
  padding: clamp(56px, 9vw, 96px) clamp(28px, 7vw, 76px) clamp(48px, 7vw, 72px);
  background: var(--card);
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 18px 50px -24px rgba(20, 35, 27, .38),
    0 2px 6px -2px rgba(20, 35, 27, .16);
  animation: settle 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.crease {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 14px;
  background: linear-gradient(to bottom, var(--crease), rgba(221,212,195,0));
}

.stem {
  width: 44px;
  height: auto;
  display: block;
  margin: 0 auto clamp(10px, 2vw, 18px);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.leaf { stroke-width: .9; }
.rib { stroke-width: .55; opacity: .7; }
.draw {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 2.2s cubic-bezier(.4,0,.2,1) forwards;
}
.draw:nth-child(1) { animation-delay: .5s; }
.draw:nth-child(2), .draw:nth-child(3) { animation-delay: 1.2s; }
.draw:nth-child(4), .draw:nth-child(5) { animation-delay: 1.5s; }
.draw:nth-child(6), .draw:nth-child(7) { animation-delay: 1.8s; }

.word {
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 15vw, 132px);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--ink);
  animation: gather 1.8s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .25s;
}

.line {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 400;
  animation: rise 1.2s ease both;
  animation-delay: 1.1s;
}
.line-soft {
  margin-top: 10px;
  color: var(--ink-soft);
  font-weight: 300;
  animation-delay: 1.35s;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes gather {
  from { opacity: 0; letter-spacing: .18em; }
  to   { opacity: 1; letter-spacing: .02em; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 480px) {
  .corner { font-size: 10px; letter-spacing: .18em; }
  .word { letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bloom, .card, .word, .line, .draw { animation: none; }
  .draw { stroke-dashoffset: 0; }
}

@media (max-height: 560px) {
  .corner { position: absolute; }
}
