/* Site-specific overrides on top of the broadsheet design system.
   Loaded after broadsheet.css, so declarations here win on ties. */

/* — page layout — */
.section {
  margin: calc(var(--space-8) * 2) 0 var(--space-6);
}
.fold {
  display: flex;
  flex-direction: column;
  /* Best-effort: fill remaining viewport below the nav+hero so the
     scroll hint lands at the bottom of the fold, not the cards. */
  min-height: calc(100vh - 27rem);
}
.fold > .section:first-child {
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
  scroll-snap-align: start;
}
.section-end {
  margin-bottom: calc(var(--space-8) * 2);
}
.prose {
  max-width: 640px;
}
.prose-wide {
  max-width: 720px;
}
.prose-body {
  font-size: 1.05rem;
  line-height: 1.4;
}
.prose-statement {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
}
.subtitle {
  margin-bottom: var(--space-4);
}

/* — hero — */
html {
  scroll-snap-type: y proximity;
}
.nav,
.scroll-snap-start {
  scroll-snap-align: start;
}
.footer {
  scroll-snap-align: end;
}
.hero header {
  font-family: system-ui, sans-serif;
}
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  margin: 0 calc(50% - 50vw) var(--space-6);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(8, 24, 16, 0.95) 0%, rgba(20, 48, 30, 0.85) 35%, rgba(45, 90, 61, 0.7) 70%, rgba(61,
    107, 77, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.2) 100%),
    url(/city-aerial.jpg);
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center, center, center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--space-2);
}
.lede {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.6;
}
.hero-cta {
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-6);
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--color-process-yellow);
  color: #201e1d;
  border: none;
  cursor: pointer;
}
.hero-credit {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-credit:hover {
  color: rgba(255, 255, 255, 1);
}

/* — card grids — */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}
.grid-cards .card-title {
  font-family: system-ui, sans-serif;
}

/* — simple feature chips (inline, wrapping row) — */
.grid-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface);
  border-radius: 999px;
  font-family: system-ui, sans-serif;
}
.feature-chip .card-icon {
  margin-bottom: 0;
  font-size: 1.1rem;
}
.feature-chip .card-title {
  font-size: 0.9rem;
  font-family: system-ui, sans-serif;
}

/* — stories — */
.story-role {
  color: var(--color-accent-700);
  font-size: 1.1rem;
}
.story-goal {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
}
.story-body {
  font-size: 0.95rem;
}
.prose-heavy-em {
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 700;
}

/* — call to action — */
.cta {
  text-align: center;
  margin-bottom: var(--space-8);
}
.cta-title {
  margin-bottom: var(--space-4);
}
.cta-body {
  max-width: 520px;
  margin: 0 auto var(--space-4);
}
.button-row {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* — page header (about, glossary) — */
.page-header {
  margin: var(--space-8) 0 var(--space-6);
}

/* — nav — */
.nav {
  font-family: system-ui, sans-serif;
}
.nav a.nav-brand:not(.btn) {
  font-family: inherit;
  font-size: 1.25rem;
  font-style: normal;
  color: var(--color-text);
}
.nav a.nav-brand:not(.btn):hover {
  color: var(--color-accent);
}
.ext-link-icon {
  font-size: 0.7em;
  margin-left: 2px;
}

/* — footer — */
.footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-family: system-ui, sans-serif;
}

/* — theme toggle — */
.theme-toggle {
  padding: 0;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.theme-toggle-icon {
  display: flex;
  width: 20px;
  height: 20px;
}
