/* Original HONESTMIX progressive typography enhancement. No font/assets import. */

/* No JavaScript marker, initialization failure, or unsupported media: readable. */
p[data-hm-prose-reveal] {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html[data-hm-typography-reveal="active"] p[data-hm-prose-reveal] {
    transition: opacity 520ms cubic-bezier(.2, 0, .2, 1);
  }

  html[data-hm-typography-reveal="active"] p[data-hm-prose-reveal="pending"] {
    opacity: 0;
  }

  html[data-hm-typography-reveal="active"] p[data-hm-prose-reveal="shown"],
  html[data-hm-typography-reveal="active"] p[data-hm-prose-reveal]:hover {
    opacity: 1;
  }
}

/* Focus never waits for a fade. JavaScript latches this state before blur. */
html[data-hm-typography-reveal="active"] .hm-prose-reveal-region:focus-within p[data-hm-prose-reveal] {
  opacity: 1 !important;
  transition: none !important;
}

/* These CSS fallbacks work independently of the media-change JavaScript. */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce), (forced-colors: active) {
  html[data-hm-typography-reveal] p[data-hm-prose-reveal] {
    opacity: 1 !important;
    transition: none !important;
  }
}

@media print {
  html[data-hm-typography-reveal] p[data-hm-prose-reveal] {
    opacity: 1 !important;
    transition: none !important;
  }
}
