/* Layout primitives */

/* ================= Nav ================= */
.nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__inner {
  width: min(920px, calc(100% - 48px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
}
.nav__logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.nav__logo img { width: 28px; height: 28px; }
.nav__links {
  justify-self: center;
  background: #fff;
  border-radius: 999px;
  padding: 12px 28px;
  display: flex;
  gap: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  font-weight: 500;
  font-size: 15px;
}
.nav__cta {
  background: var(--accent);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .2s ease;
}
.nav__cta:hover { transform: translateY(-1px); }

@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: auto 1fr; }
  .nav__cta { justify-self: end; padding: 10px 18px; }
}

/* ================= Section base ================= */
section { position: relative; }
.section {
  padding: clamp(60px, 9vw, 140px) 0;
}
.section--tight { padding: clamp(40px, 6vw, 90px) 0; }
.section--dark { background: var(--bg-dark); color: #fff; }

/* ================= Footer ================= */
.site-footer {
  padding: 40px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  max-width: var(--container);
  margin: 0 auto;
}
.site-footer a:hover { color: var(--ink); }
