/* public/app/css/typography.css
 * Synopsis: Module typography.
 * Objectif: Rôle de public/app/css/typography.css.
 */

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  letter-spacing: -.055em;
  line-height: .94;
}

h1 {
  font-size: clamp(3.2rem, 9vw, 8.8rem);
  margin-bottom: 1rem;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 5rem);
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
