@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

/* The wordmark stays unchanged. Round, geometric headlines carry its
   light / bold contrast through the page without changing the body font. */
:root {
  --font-headline: "Outfit", "Montserrat", Arial, sans-serif;
}

#siteContent :is(h1, h2, h3) {
  font-family: var(--font-headline);
  font-kerning: normal;
  font-weight: 300;
  text-wrap: balance;
}

#siteContent :is(h1, h2) {
  letter-spacing: -.025em;
}

#siteContent :is(h1, h2) :is(strong, b) {
  font-weight: 600;
}

/* A consistent heading scale; the existing editor size controls still work. */
.manifesto h2,
.markets h2,
.systems h2,
.process h2 {
  font-size: clamp(3.125rem, 6vw, 5.5rem);
}

.hero .eyebrow,
.section-label {
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.6;
}

.hero .eyebrow > span {
  flex-shrink: 0;
}

.site-header nav {
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .12em;
  gap: clamp(1rem, 2vw, 2.125rem);
}

.button {
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.system-list h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -.015em;
  line-height: 1.2;
}

.system-list h3 :is(strong, b) {
  font-weight: 500;
}

.system-list article > span,
.process li > b {
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}

#siteContent .market-grid h3 {
  font-size: clamp(2.5rem, 3.1vw, 3rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.market-grid p {
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.5;
}

.process li strong {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.lead-dialog > h2 {
  font-family: var(--font-headline);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* Let longer words and labels wrap inside their existing grid columns. */
.manifesto > div,
.systems-head > h2,
.markets-head > h2,
.process-copy,
.system-list h3 {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 850px) {
  /* Keep service details visible on phones and tablets. */
  .system-list article {
    row-gap: 16px;
    align-items: start;
  }

  .system-list article > span {
    grid-column: 1;
    grid-row: 1;
  }

  .system-list article > h3 {
    grid-column: 2;
    grid-row: 1;
  }

  .system-list article > b {
    grid-column: 3;
    grid-row: 1;
    margin-top: 3px;
  }

  .system-list article > p {
    display: block;
    grid-column: 2 / -1;
    grid-row: 2;
    min-width: 0;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
  }

  .system-list article > p span {
    color: inherit;
    font-size: inherit;
  }

  .hero .eyebrow {
    font-size: .75rem;
    letter-spacing: .14em;
  }
}

@media (max-width: 520px) {
  .button-small {
    font-size: .75rem;
    letter-spacing: .1em;
  }

  .hero-bottom p {
    font-size: 1rem;
  }

  .system-list h3 {
    font-size: 1.5rem;
  }
}
