html {
  --header-height: 90px;
  font-size: 16px;
  scroll-behavior: smooth;
}

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

section[id] {
  scroll-margin-top: var(--header-height);
}

@media (max-width: 640px) {
  section[id] {
    scroll-margin-top: 0;
  }
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: darkslategray;
}

.title-main {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.title-medium {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: .75rem;
}

.title-small {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.subtitle {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.8rem;
}

.text-medium {
  font-size: .9rem;
  line-height: 1.5rem;
}

.footnote {
  font-size: .75rem;
  font-style: italic;
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Двойное кольцо видно на любом фоне: и на светлых секциях, и на синих карточках, и на тёмном интро */
:focus-visible {
  outline: 2px solid black;
  outline-offset: 0;
  box-shadow: 0 0 0 5px #ffd34d;
}

.joke {
  display: inline-block;
  vertical-align: top;
  padding: 0;
  border: 0;
  background: none;
  cursor: url('../img/cursor-sound.svg?v=8a3fc70') 16 16, pointer;
}

.joke img {
  display: block;
}
