@font-face {
  font-family: "SB Sans Display Extended";
  src: url("./assets/sb-sans-display-extended-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --section-title-size: clamp(1.95rem, 3.1vw, 3.05rem);
  --font-display: "SB Sans Display Extended", Arial, sans-serif;
}

.hero-copy .hero-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-synthesis: none;
  font-size: clamp(24px, 2.4vw, 40px);
}

@media (min-width: 801px) {
  .hero-copy {
    max-width: max(35.625rem, 650px);
  }
}

.origin-manifesto .origin-copy h2 {
  max-width: 20ch;
  margin: clamp(18px, 2.4vw, 32px) auto clamp(20px, 2.6vw, 36px);
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.07;
  font-weight: 400;
}

.origin-manifesto .manifesto-text {
  max-width: 60ch;
  margin-inline: auto;
  font-size: clamp(17px, 1.4vw, 21px);
}

.origin-manifesto .manifesto-text p {
  margin: 0;
  font-size: inherit;
  line-height: 1.55;
  text-wrap: pretty;
}

.origin-manifesto .manifesto-text p + p {
  margin-top: .92em;
}

.origin-manifesto .join-team {
  margin-top: clamp(24px, 2.4vw, 36px);
}

@media (max-width: 600px) {
  .hero-copy .hero-line {
    font-size: clamp(17px, 5.25vw, 24px);
  }
}

/* Apply the same tracking to semantic headings and visible card titles. */
#top :is(
  h1, h2, h3, h4, h5, h6, [role="heading"], .hero-line, .eval-name,
  .bench-picker-heading strong, .bench-tests [role="tab"] > span,
  .release-links li strong
) {
  letter-spacing: 0;
}

@media (max-width: 600px) {
  #top :is(h2, h3, h4, [role="heading"], .hero-line, .eval-name) {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }
}

/* A common title scale links the metrics, release resources and archive. */
#benchmarks #bench-title, #resources #resources-title, #training #training-title {
  font-size: var(--section-title-size);
  font-weight: 400;
  line-height: 1.07;
}

.release-footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "logo motto blog language";
  gap: .5rem clamp(1.25rem, 3vw, 3rem);
}
.release-footer > .brand { grid-area: logo; justify-self: start; }
.release-footer .footer-motto { grid-area: motto; }
.footer-blog {
  grid-area: blog;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9rem;
  color: #b1c4b7;
}
.footer-language {
  grid-area: language;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  color: #607a68;
  font: .8rem/1 var(--mono);
}
.footer-language button {
  min-width: 38px;
  min-height: 44px;
  padding: .4rem;
  border: 0;
  background: transparent;
  font: inherit;
  color: #aabbb0;
}
.footer-language button[aria-pressed="true"] {
  color: #e7f4eb;
  text-decoration: underline;
  text-underline-offset: .35em;
}
@media (hover:hover) {
  .footer-blog:hover, .footer-language button:hover { color: var(--green); }
}
@media (max-width: 670px) {
  .release-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo language" "motto blog";
    gap: .2rem .8rem;
  }
  .release-footer .footer-motto { max-width: none; text-align: left; }
  .footer-blog { justify-self: end; padding-right: .4rem; }
}
