/* Page shell: floating nav, content column, footer. */

.page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 16px 24px;
}

.nav {
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.nav__list {
  position: relative;
  display: flex;
  align-items: center;
}

/* Sliding pill that trails the hovered link and rests on the current page. */
.nav__highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--fg);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: left 0.34s var(--ease-inout), width 0.34s var(--ease-inout), opacity 0.22s ease;
}

.nav__link {
  position: relative;
  z-index: 1;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 18px;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-current {
  color: var(--bg);
}

/* Pages that start with a title rather than the hero need to clear the nav. */
.page-main {
  padding: 130px 0 40px;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.footer-card {
  background: var(--card);
  border-radius: 30px;
}

.footer-aside {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.footer-aside__text {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.footer-aside__link {
  color: var(--accent);
}

.footer-aside img {
  width: 148px;
}

.footer-main {
  padding: 34px 36px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-cols h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.footer-base a {
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px;
  }

  .page {
    padding: 0 14px 36px;
  }
}

@media (max-width: 700px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

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

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
