/* Font Awesome Free 5.15.4 by @fontawesome. Icons: CC BY 4.0; font: SIL OFL 1.1. */
@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../fonts/fa-solid-900.woff2") format("woff2");
}

.fa-solid {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.fa-arrow-up::before {
  content: "\f062";
}

.scroll-to-top[hidden] {
  display: none;
}

html {
  scroll-behavior: smooth;
}

html.is-scrolling-to-top {
  scroll-behavior: auto !important;
}

.scroll-to-top {
  position: fixed;
  z-index: 1000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pink, #ff8a3d);
  box-shadow: 0 6px 20px rgb(20 20 20 / 18%);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  background: var(--pink-hover, #f06a1f);
  box-shadow: 0 9px 24px rgb(20 20 20 / 22%);
}

.scroll-to-top:focus-visible {
  outline: 3px solid #1b70d1;
  outline-offset: 3px;
}

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

  .scroll-to-top {
    transition: none;
  }
}
