.page-header,
.site-footer {
  width: min(100% - 3rem, 1360px);
  margin-inline: auto;
}

.page-header {
  display: flex;
  min-height: 5rem;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  color: #a9b4b6;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.page-back {
  display: inline-flex;
  min-height: 3.5rem;
  gap: 0.55rem;
  align-items: center;
  padding: 0.75rem;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
  transition: color 180ms ease;
}

.page-back:hover,
.page-back:focus-visible {
  color: #f5f1df;
}

.page-back span {
  display: inline-block;
  transition: translate 180ms ease;
}

.page-back:hover span,
.page-back:focus-visible span {
  translate: -4px 0;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: clamp(4rem, 9vw, 8rem);
  padding: 2rem 0 3rem;
  color: #8c949b;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

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

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.site-footer a {
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.site-footer__links > a:not(.site-footer__icon-link):hover,
.site-footer__links > a:not(.site-footer__icon-link):focus-visible {
  color: #f5f1df;
}

.site-footer__icon-link {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
}

.site-footer__icon-link--linkedin {
  color: #0a66c2;
}

.site-footer__icon-link:hover,
.site-footer__icon-link:focus-visible {
  opacity: 0.76;
  transform: translateY(-1px);
}

.site-footer__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  object-fit: contain;
}

.site-footer__legal {
  grid-column: 1 / -1;
  color: rgba(240, 241, 234, 0.58);
  font-size: 0.62rem;
  line-height: 1.65;
  letter-spacing: 0.025em;
  text-transform: none;
}

.site-footer__legal a {
  text-decoration: underline;
  text-decoration-color: rgba(240, 241, 234, 0.18);
  text-underline-offset: 0.18em;
}

@media (max-width: 880px) {
  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer__tagline {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .page-header,
  .site-footer {
    width: min(100% - 1.25rem, 1360px);
  }

  .page-header {
    min-height: 4rem;
    padding: 0.375rem 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer__tagline,
  .site-footer__legal {
    grid-column: 1;
  }

  .site-footer__tagline {
    grid-row: auto;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}
