/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
}

.header-wordmark {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
}

.header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.header-links a:hover {
  text-decoration: underline;
}

.header-toggle {
  display: none;
  min-height: 44px;
  padding: var(--space-xs) var(--space-lg);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  font-weight: var(--weight-medium);
  cursor: pointer;
}

@media (max-width: 759px) {
  .header-js .header-toggle {
    display: inline-flex;
    align-items: center;
  }

  /* Keep the top row a fixed height so the toggle stays put when the menu opens. */
  .header-js .header-bar {
    align-content: flex-start;
    row-gap: 0;
  }

  .header-js .header-wordmark {
    min-height: var(--header-height);
  }

  .header-js .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: var(--space-md);
  }

  .header-js .header-nav.header-nav-open {
    display: flex;
  }

  .header-js .header-links {
    flex-direction: column;
    width: 100%;
  }
}

/* Hero */
.hero-grid {
  display: grid;
  gap: var(--space-2xl);
  padding-block: var(--space-section);
  align-items: center;
}

.hero-title {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
}

.hero-lede {
  margin-top: var(--space-lg);
  max-width: 36rem;
  font-size: var(--text-md);
  color: var(--charcoal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.hero-facts {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0 0;
  border-top: 1px solid var(--hairline-soft);
  list-style: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
}

.hero-credit {
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--mute);
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Footer */
#site-footer {
  background: var(--ink);
  color: var(--on-ink);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
  font-size: var(--text-sm);
}

.footer-wordmark {
  display: inline-block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

.footer-links {
  display: grid;
  list-style: none;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-brand a[href^='tel'] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-note {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
}

#site-footer :focus-visible {
  outline-color: var(--on-ink);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 2fr;
  }
}
