.back-to-top {
  position: fixed;
  z-index: 1000;
  bottom: 1.25rem;
  right: 1.25rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  color: #c5a543;
  background: #111;
  border: 1px solid #c5a543;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(.5rem);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #111;
  background: #c5a543;
}

.back-to-top:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

@media (max-width: 575px) {
  .back-to-top {
    right: .75rem;
    bottom: .75rem;
  }
}
