.page {
  position: relative;
  min-height: 100vh;
}

.site-main {
  display: block;
}

/* Vertical rhythm between the last section of a page and the footer. */
.site-main > :last-child {
  margin-bottom: 160px;
}

/* Full-width coloured band behind a section. */
.band {
  background: var(--color-band);
  border-block: 1px solid var(--white-05);
}

/* Back to top: appears after one screen of scrolling, bottom-right, 48px (44px on phones) — clear of content. */
.back-to-top {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--white-28);
  border-radius: 50%;
  background: rgba(17, 26, 51, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--dur-hover) var(--ease-out),
    transform var(--dur-hover) var(--ease-out),
    background-color var(--dur-hover) var(--ease-out);
}
.back-to-top img {
  transform: rotate(-90deg);
}
.back-to-top:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
}
.back-to-top[hidden] {
  display: grid;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  visibility: hidden;
}
@media (max-width: 599px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}
