/* ==================== Header and navigation ==================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: var(--theme-header-background);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover {
  opacity: 0.6;
  transform: translateY(-1px);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--theme-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--theme-text);
  border-radius: 999px;
}

.nav-social {
  width: 28px;
  flex-shrink: 0;
}

.nav-social svg {
  width: 24px;
  height: 24px;
}

/* ==================== Shared layout and decoration ==================== */

main {
  position: relative;
  isolation: isolate;
}

.section {
  position: relative;
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.squiggle-wrap {
  position: absolute;
  inset: 0;
  left: 50%;
  width: min(100vw, 1450px);
  height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.squiggle {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#squiggleLine {
  color: var(--theme-squiggle);
  transition: color 500ms ease;
}

.squiggle-track,
.squiggle-progress {
  fill: none;
  stroke: currentColor;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.squiggle-track {
  opacity: 0.35;
  transition: opacity 700ms ease;
}

.squiggle-progress {
  opacity: 0;
  stroke-dasharray: var(--fundraising-progress, 0) 100;
  transition: opacity 700ms ease, stroke-dasharray 1000ms ease;
}

.squiggle-wrap.has-fundraising-data .squiggle-track {
  opacity: 0.12;
}

.squiggle-wrap.has-fundraising-data .squiggle-progress {
  opacity: 0.55;
}

/* ==================== Footer ==================== */

.footer {
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(23, 23, 23, 0.18);
  font-size: 0.86rem;
}

.footer strong {
  margin-right: 14px;
}

.footer span {
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
