/* Gleam of Hope — Typewriter component styles (OPTIONAL / removable)
   Paired with js/typewriter.js. Remove both tags from index.html to revert to
   the default fade/rise reveal. */

/* Hide the real title text until typing begins, but keep it in layout
   (visibility, not display) so pagination still measures the true height. */
.slide-title.tw-pending {
  visibility: hidden;
}

/* Blinking caret — uses currentColor so it matches each card's text colour
   (white on the Romantic card, dark elsewhere). */
.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: text-bottom;
  animation: tw-blink 1s steps(1) infinite;
}
@keyframes tw-blink {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Once a title finishes, fade the caret out so it doesn't linger. */
.slide-title.tw-done .tw-cursor {
  animation: none;
  opacity: 0;
}
