/* System-wide layout hardening. Grid children must be allowed to shrink. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.hero > *,
.workflow > *,
.specialists > *,
.start > *,
.ways > div > *,
.ways-grid > * {
  min-width: 0;
}

.hero h1,
.manifesto,
.section-intro h2,
.ways h2,
.start h2 {
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(3.4rem, 6.4vw, 6rem);
}

.manifesto {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
}

.section-intro h2,
.ways h2,
.start h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
}

.steps li {
  grid-template-columns: 6.5rem minmax(0, 1fr);
}

.steps li > span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal {
  min-width: 0;
  max-width: 100%;
}

.terminal div,
.terminal code {
  min-width: 0;
  max-width: 100%;
}

.terminal code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hero-compact {
  grid-template-columns: minmax(0, 48rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-compact h1 {
  max-width: 10ch;
}

.quickstart-page .start {
  background: transparent;
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.quickstart-page .start:nth-of-type(3) {
  background: var(--mint);
}

.quickstart-page .start-links {
  align-self: center;
}

@media (max-width: 800px) {
  .masthead,
  footer {
    padding-inline: 1.25rem;
  }

  .hero,
  .workflow,
  .specialists,
  .start,
  .ways {
    padding-inline: 1.25rem;
  }

  .hero {
    gap: 2.75rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
    line-height: 0.92;
  }

  .manifesto {
    padding-inline: 1.25rem;
    font-size: clamp(2.75rem, 13vw, 4.25rem);
    line-height: 0.92;
  }

  .section-intro h2,
  .ways h2,
  .start h2 {
    font-size: clamp(2.4rem, 11vw, 3.75rem);
    line-height: 0.96;
  }

  .evidence {
    width: calc(100% - 0.625rem);
    margin-right: 0.625rem;
  }

  .specialist {
    grid-template-columns: minmax(5.25rem, auto) minmax(0, 1fr);
  }

  .terminal div {
    overflow: visible;
  }

  .start-links a {
    width: fit-content;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 16px;
  }

  .masthead nav {
    gap: 1rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13.5vw, 3.6rem);
  }

  .lede {
    font-size: 1.08rem;
    margin-block: 1.5rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .evidence {
    padding: 0.75rem;
  }

  .evidence-top,
  .evidence figcaption {
    font-size: 0.68rem;
  }

  .mini-page {
    padding: 2rem 1.5rem;
  }

  .mini-page strong {
    font-size: 1.9rem;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .ways,
  .workflow,
  .specialists,
  .start {
    padding-block: 4rem;
  }

  .specialist {
    gap: 0.25rem 0.75rem;
  }

  footer {
    gap: 0.75rem;
  }
}
