/* Course title iridescence — same spirit as CreationSpace «ЦВЕТ» / КОМПОЗИЦИЯ hero.
   Soft oil-slick wash over ink letterforms. Scoped to course shell headings only. */

@keyframes lfm-irid-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.lfm-course h1.lfm-iridescent,
body.lfm-course .lfm-iridescent {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background-image: linear-gradient(
    105deg,
    #2c2a28 0%,
    #2c2a28 22%,
    #6b5cff 30%,
    #ff7eb3 38%,
    #4ec9d4 46%,
    #ffc45a 54%,
    #8fb7ff 62%,
    #2c2a28 72%,
    #2c2a28 100%
  );
  background-size: 240% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: lfm-irid-flow 8s ease-in-out infinite;
}

/* Quest step titles — quieter shimmer */
body.lfm-course .quest-panel h2.lfm-iridescent {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  animation-duration: 10s;
}

@media (prefers-reduced-motion: reduce) {
  body.lfm-course h1.lfm-iridescent,
  body.lfm-course .lfm-iridescent,
  body.lfm-course .quest-panel h2.lfm-iridescent {
    animation: none;
    background: none;
    color: var(--ink, #2c2a28);
    -webkit-text-fill-color: var(--ink, #2c2a28);
  }
}
