/* Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.site-title {
  margin: 0 auto 0 0;
  font-family: var(--font-body-face), sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.site-title-link {
  color: var(--text);
  text-decoration: none;
}

.site-title-link:hover,
.site-title-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text-muted);
  border-radius: 999px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--accent);
  background: var(--sage);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.theme-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon::before {
  content: "☀";
  font-size: 1.1rem;
}

html.dark .theme-toggle-icon::before {
  content: "☽";
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--text-muted);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-svg {
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-blob--forest {
  fill: var(--forest);
  opacity: 0.2;
}

.hero-blob--green {
  fill: var(--green);
  opacity: 0.18;
}

.hero-blob--sage {
  fill: var(--sage-fixed);
  opacity: 0.35;
}

html.dark .hero-blob--forest {
  opacity: 0.12;
}

html.dark .hero-blob--green {
  opacity: 0.25;
}

html.dark .hero-blob--sage {
  opacity: 0.08;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-copy .hero-heading {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
