/* ── METALLIC ROSE GOLD ───────────────────────────────────────────────────
   The flat --cream accent still does the small work: labels, bullets, hair
   rules, borders, body links. A gradient on nine-pixel type is invisible,
   and clipping one to the glyphs risks more than it gains.

   Display type, prices and the filled buttons get the real thing. The ramp
   is sampled off a sheet of rose gold foil: shadows at #B37972, the body of
   the metal at #DAA0A1, the catch-light at #FCD8E1, a sweep of about 68
   points of luminance with two highlight passes rather than one, because a
   single pass reads as a fade and metal does not.

   Two layers. Underneath, the ramp sized so a whole dark-to-light-to-dark
   pass fits across one word: at 230% a short word samples a sliver of the
   gradient and comes out flat, which is what the first attempt did. Over
   it, a narrow specular highlight that travels. The keyframes move only the
   top layer and hold the ramp still, since background-position would
   otherwise drag both and the metal itself would slide.

   One copy, loaded by every page after its own <style>, so it wins on
   document order without having to out-specify anything. */

:root{
  --rose-shadow:#B37972;
  --rose-mid:#DAA0A1;
  --rose-light:#FCD8E1;
  --metal:linear-gradient(100deg,
    #B37972 0%,  #CF9493 11%, #FCD8E1 25%, #E8B1B6 37%,
    #C78C8A 49%, #F5C6CE 64%, #EBB8BC 78%, #B37972 100%);
  --sheen:linear-gradient(100deg,
    rgba(255,248,250,0) 38%, rgba(255,250,252,.55) 50%, rgba(255,248,250,0) 62%);
}

/* Without background-clip the text keeps its solid colour rather than
   turning transparent over nothing. */
@supports ((-webkit-background-clip: text) or (background-clip: text)){
  .hero-headline em,
  .philosophy-statement em,
  .about-name em,
  .cta-heading em,
  .prog-title em,
  .pp-foot h2 em,
  .free-bar h3 em,
  .newsletter-heading em,
  .w-wrap h1 em,
  .price-amount{
    background:var(--sheen), var(--metal);
    background-size:300% 100%, 118% 100%;
    background-position:140% 0, 50% 0;
    background-repeat:no-repeat;
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
    animation:rose-sheen 9s ease-in-out infinite;
  }
  /* so the whole page does not flash in unison */
  .price-amount{ animation-delay:-3.2s }
  .philosophy-statement em, .about-name em{ animation-delay:-5.6s }
}

/* The two filled buttons are solid metal rather than metal-shaped type. */
.ebook-buy:hover,
.newsletter-submit{
  background:var(--sheen), var(--metal);
  background-size:300% 100%, 118% 100%;
  background-position:140% 0, 50% 0;
  background-repeat:no-repeat;
  animation:rose-sheen 9s ease-in-out infinite;
}

@keyframes rose-sheen{
  0%   { background-position:140% 0, 50% 0 }
  100% { background-position:-60% 0, 50% 0 }
}

/* A shimmer nobody asked to watch should stop when they say so. */
@media (prefers-reduced-motion: reduce){
  .hero-headline em, .philosophy-statement em, .about-name em, .cta-heading em,
  .prog-title em, .pp-foot h2 em, .free-bar h3 em, .newsletter-heading em,
  .w-wrap h1 em, .price-amount, .ebook-buy:hover, .newsletter-submit{
    animation:none;
    background-position:50% 0, 50% 0;
  }
}
