.container {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  padding: 0.6rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--accent-ink); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-cta { flex: none; }

/* Page rhythm */

main { padding-bottom: 3rem; }

.hero { padding: 4.5rem 0 3.5rem; }

section { padding: 2.75rem 0; }

.section-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: 1.6rem;
  flex: none;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-intro {
  color: var(--muted);
  margin: -0.75rem 0 1.75rem;
}

/* Footer */

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}
