/* Small, first-party motion layer. The unenhanced page stays fully visible. */
[hidden] {
  display: none !important;
}
.motion-ready .hero-copy > * {
  animation: arrive 850ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.motion-ready .hero-copy h1 {
  animation-delay: 100ms;
}
.motion-ready .hero-copy .intro {
  animation-delay: 190ms;
}
.motion-ready .hero-copy .button {
  animation-delay: 280ms;
}
.motion-ready .hero-copy .launch-note {
  animation-delay: 340ms;
}
.motion-ready .hero-image > img {
  animation: photo-in 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.motion-ready .gift-note {
  animation: note-in 1050ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes photo-in {
  from {
    opacity: 0.25;
    transform: scale(1.075);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-45px) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: rotate(7deg);
  }
}
.note-toggle {
  margin-top: 18px;
  padding: 8px 0;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font:
    700 12px 'DM Sans',
    sans-serif;
  cursor: pointer;
}
.gift-note {
  transition: box-shadow 300ms;
}
.gift-note:hover {
  box-shadow: 0 16px 30px #25282335;
}
.personal-note {
  font:
    italic 25px/1.25 Lora,
    serif;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #25282344;
  animation: arrive 350ms ease both;
}
.personal-note em {
  color: var(--red);
}
.occasion-ribbon {
  display: flex;
  background: var(--red);
  color: var(--paper);
  align-items: stretch;
}
.occasion-window {
  overflow: hidden;
  flex: 1;
}
.occasion-track {
  display: flex;
  width: max-content;
}
.occasion-track p {
  flex: none;
  margin: 0;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.occasion-track i {
  font-style: normal;
  display: inline-block;
  margin: 0 38px;
  color: var(--yellow);
}
.motion-ready .occasion-track {
  animation: ribbon 32s linear infinite;
}
@keyframes ribbon {
  to {
    transform: translateX(-50%);
  }
}
.motion-toggle {
  flex: none;
  padding: 0 20px;
  border: 0;
  border-left: 1px solid #ffffff66;
  background: var(--red);
  color: white;
  font:
    700 11px 'DM Sans',
    sans-serif;
  cursor: pointer;
}
.gift-edit {
  padding-top: 84px;
  padding-bottom: 80px;
}
.gift-edit h2 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -2.8px;
  margin: 22px 0 42px;
}
.gift-edit h2 em {
  font-family: Lora, serif;
  font-weight: 400;
  color: var(--red);
}
.gift-edit .section-top a {
  font-size: 13px;
  text-underline-offset: 5px;
}
.edit-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 8px 0;
}
.edit-card {
  color: var(--ink);
  background: #efdcca;
  padding: 25px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 370px;
  transform: rotate(-2deg);
  transition:
    transform 300ms,
    box-shadow 300ms;
  border: 1px solid #25282318;
  box-shadow: 0 3px 0 #2528230a;
}
.edit-card:nth-child(2) {
  background: #e3e8d6;
  transform: translateY(15px) rotate(1.5deg);
}
.edit-card:nth-child(3) {
  background: #f5d66c;
  transform: rotate(-1deg);
}
.edit-card:hover,
.edit-card:focus-visible {
  transform: translateY(-9px) rotate(0);
  box-shadow: 0 18px 25px #25282314;
}
.card-index {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
}
.card-doodle {
  font:
    65px/1 Lora,
    serif;
  color: var(--red);
  margin: 18px 0 10px;
  align-self: flex-start;
  transition: transform 400ms;
}
.edit-card:hover .card-doodle {
  transform: rotate(20deg);
}
.edit-card h3 {
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 8px 0 12px;
}
.edit-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.card-link {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #25282344;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}
.card-link b {
  font-size: 20px;
}
.reveal-item {
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-pending {
  opacity: 0;
  transform: translateY(25px);
}
.guide-row,
.feature-list article {
  transition: background-color 250ms;
}
.guide-row:hover,
.feature-list article:hover {
  background-color: #f5d66c24;
}
.guide-arrow,
.button span {
  display: inline-block;
  transition: transform 250ms;
}
.guide-row:hover .guide-arrow,
.button:hover span {
  transform: translate(3px, -3px);
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation: none !important;
  transition: none !important;
}
:where(.note-toggle, .motion-toggle, .edit-card):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
@media (max-width: 680px) {
  .gift-edit {
    padding-top: 48px;
    padding-bottom: 35px;
  }
  .gift-edit .section-top {
    align-items: flex-start;
    gap: 15px;
  }
  .gift-edit .section-top a {
    white-space: nowrap;
  }
  .gift-edit h2 {
    margin-bottom: 28px;
  }
  .edit-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 6px;
  }
  .edit-card,
  .edit-card:nth-child(2),
  .edit-card:nth-child(3) {
    min-height: 290px;
    transform: rotate(-1deg);
  }
  .edit-card:nth-child(2) {
    transform: rotate(1deg);
  }
  .card-doodle {
    margin: 12px 0 4px;
    font-size: 48px;
  }
  .edit-card h3 {
    font-size: 28px;
  }
  .occasion-track p {
    font-size: 15px;
    padding: 20px 0;
  }
  .occasion-track i {
    margin: 0 24px;
  }
  .motion-toggle {
    padding: 0 12px;
    font-size: 10px;
  }
  .personal-note {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
  .motion-toggle,
  .note-toggle {
    display: none;
  }
}
