/* Public-site typography and surfaces. Existing palette and layouts own the brand. */
:root {
  --awexa-display-font: "Segoe UI", system-ui, sans-serif;
  --awexa-heading-size: clamp(2.2rem, 5vw, 4.8rem);
  --awexa-section-size: clamp(1.7rem, 3.1vw, 2.85rem);
}

#main :is(h1, h2, h3), #main legend {
  font-family: var(--awexa-display-font);
}

#main h1 {
  font-size: var(--awexa-heading-size);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
  text-wrap: balance;
}

#main :is(.section-head, .mh-section-head, .awx-discovery, .closing, .team-quote-intro) h2,
#main :is(.section, .article) > h2 {
  font-size: var(--awexa-section-size);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-wrap: balance;
}

#main :is(.article, .page-intro, .team-quote-intro, .rfq-layout) p {
  line-height: 1.65;
}

#main :is(.page-intro, .team-quote-intro) > p:not(.eyebrow) {
  max-inline-size: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

#main :is(.awx-card, .portfolio-project, .featured-manufacturing-grid article) {
  min-inline-size: 0;
}

#main .article-card {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

#main .article-card img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

#main :is(.awx-card, .portfolio-project, .advantage-card, .production-card) :is(h2, h3) {
  font-weight: 650;
  text-wrap: balance;
}

#main :is(.awx-card, .portfolio-project, .featured-manufacturing-grid article) img {
  border-radius: 6px;
}

#main :is(.rfq-layout, .team-quote) label {
  font-weight: 600;
}

#main .button {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, filter 180ms ease;
}

#main .button:active {
  filter: brightness(.9);
}

.brand-hero-copy #hero-title,
.jersey-intro h1 {
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.brand-hero-copy #hero-title {
  font-size: clamp(2.35rem, 4.6vw, 4.5rem);
  max-width: 23ch;
}

.jersey-intro h1 {
  font-size: clamp(2.35rem, 5.6vw, 5rem);
  max-width: 22ch;
}

.jersey-intro > p:last-child {
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.jersey-proof #jersey-proof-title,
.restored-collections h2 {
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.jersey-proof .project-proof-photos {
  gap: clamp(.5rem, 1.2vw, .9rem);
}

@media (max-width: 760px) {
  #main h1 {
    font-size: clamp(1.95rem, 8.5vw, 2.65rem);
  }

  .brand-hero-copy #hero-title {
    font-size: clamp(1.95rem, 8.8vw, 2.65rem);
    line-height: 1.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #main .button { transition: none; }
}
