/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}
/* A solid tint instead of backdrop-filter: blurring a canvas that repaints every frame costs a full-screen pass. */
.nav.is-scrolled {
  background: #05090c;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.nav-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}
.nav-inner > .brand {
  justify-self: start;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Geist', var(--font);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: 1rem;
}
.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.75);
}
.nav-links a:hover {
  color: #fff;
}
.nav-actions {
  justify-self: end;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.btn--primary {
  background: #fff;
  color: #000;
}
.btn--primary:hover {
  background: #e6e6e6;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn--lg {
  padding: 0.8rem 1.35rem;
  font-size: 0.95rem;
}
.nav-actions .btn {
  min-height: 36px;
}
.nav-actions .btn--ghost {
  background: transparent;
  color: var(--muted);
}
.nav-actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg);
}
@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }
  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 420px) {
  .nav-actions .btn--ghost {
    display: none;
  }
}

.mobile-menu {
  display: none;
}
@media (max-width: 980px) {
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.65rem 0.7rem;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu nav {
    position: absolute;
    top: calc(var(--header-h) - 0.3rem);
    right: var(--gutter);
    min-width: 13rem;
    padding: 0.5rem;
    background: #0c141a;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 35px #0008;
  }
  .mobile-menu nav a {
    display: block;
    padding: 0.75rem;
    font-size: 0.9375rem;
  }
  .mobile-menu nav a:hover {
    background: #ffffff0a;
    border-radius: 8px;
  }
}
@media (max-width: 420px) {
  .nav .brand {
    font-size: 0.875rem;
  }
  .nav .brand-mark {
    width: 26px;
    height: 26px;
  }
  .nav-inner {
    gap: 0.5rem;
  }
  .nav-actions .btn {
    padding-inline: 0.75rem;
    font-size: 0.75rem;
  }
}

/* footer */
.footer {
  position: relative;
  z-index: 10;
  background: #000;
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--gutter) 3rem;
}
.footer .inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer .brand {
  margin-bottom: 0.75rem;
}
.footer .inner p {
  margin: 0;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}
.footer a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .footer .inner {
    align-items: stretch;
    flex-direction: column;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1.5rem;
  }
  .footer-links a {
    display: flex;
    align-items: center;
    min-height: 32px;
  }
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
