/*
 * Sungroup & PH — one restrained, approachable B2B type system.
 * Existing Manrope family; real Regular/Bold faces, not invented weight ranges.
 * Role-based sizing follows jakubkrehel/skills/better-typography.
 * Layout, company copy, colours and the approved SVG identity are unchanged.
 */
@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --type-family: Manrope, Arial, sans-serif;
  --type-caption-size: 0.8125rem;
  --type-ui-size: 0.875rem;
  --type-body-size: 1rem;
  --type-lead-size: clamp(1.125rem, 0.975rem + 0.5vw, 1.375rem);
  --type-heading-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem);
  --type-title-size: clamp(1.875rem, 1.3rem + 1.5vw, 2.625rem);
  --type-display-size: clamp(2.625rem, 1.3rem + 3vw, 4.25rem);
  --type-caption-leading: 1.5;
  --type-ui-leading: 1.5;
  --type-body-leading: 1.6;
  --type-lead-leading: 1.5;
  --type-heading-leading: 1.3;
  --type-title-leading: 1.25;
  --type-display-leading: 1.1;
  --type-prose-measure: 58ch;
}
html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--type-family);
  font-size: var(--type-body-size);
  font-weight: 400;
  line-height: var(--type-body-leading);
  letter-spacing: 0;
}
p, dd, address, li {
  text-wrap: pretty;
  overflow-wrap: break-word;
}
h1, h2, h3 {
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1, .hero h1, .error-page h1 {
  font-size: var(--type-display-size);
  line-height: var(--type-display-leading);
  letter-spacing: -0.02em;
}
h2,
.about-section h2,
.heading-row h2,
.development-copy h2,
.quality-introduction h2,
.manufacturing-copy h2,
.resources-section .heading-row h2,
.contact-copy h2,
.partners-section h2 {
  font-size: var(--type-title-size);
  line-height: var(--type-title-leading);
  letter-spacing: -0.02em;
}
h3,
.relationship-heading h3,
.capability h3,
.process-steps h3,
.product-briefs > h3,
.resource-text h3,
.enquiry-form h3 {
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-leading);
  letter-spacing: -0.015em;
}
.capability h3 { min-block-size: 2.6em; }

/* Comfortable reading copy, including the technical/order coordination sections. */
.hero-description,
.about-copy > p:not(.large-copy),
.heading-row > p,
.resources-section .heading-row > p,
.capability > p,
.development-copy > p:not(.section-label),
.product-briefs > p,
.development-priorities dd,
.product-briefs dd,
.relationship-flow li > p,
.process-steps p,
.quality-introduction > p:not(.section-label),
.quality-checkpoints dd,
.manufacturing-copy > p:not(.section-label),
.manufacturing-copy .manufacturing-detail p,
.resource-text > p:not(.resource-meta),
.contact-copy > p:not(.section-label),
.contact-service p,
#email-fallback > p {
  font-size: var(--type-body-size);
  font-weight: 400;
  line-height: var(--type-body-leading);
  letter-spacing: 0;
  max-inline-size: var(--type-prose-measure);
}
.large-copy {
  font-size: var(--type-lead-size);
  font-weight: 400;
  line-height: var(--type-lead-leading);
  letter-spacing: 0;
  max-inline-size: 45ch;
}
.development-priorities dt,
.product-briefs dt,
.quality-checkpoints dt,
.relationship-flow li > strong {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* An overline is a navigation aid, not miniature marketing copy. */
.section-label,
.partners-section .section-label,
.manufacturing-copy .section-label {
  font-size: var(--type-caption-size);
  font-weight: 700;
  line-height: var(--type-caption-leading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-intro {
  font-size: var(--type-caption-size);
  font-weight: 700;
  line-height: var(--type-caption-leading);
  letter-spacing: 0;
}
.hero-footnote {
  font-size: var(--type-caption-size);
  font-weight: 400;
  line-height: var(--type-caption-leading);
  flex-wrap: wrap;
}
.hero-photo-caption span:first-child {
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-leading);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-photo-caption span:last-child,
.hero-footnote span,
.network-inner > p,
.network-inner > div span,
.relationship-flow li > span,
.relationship-heading > p,
.relationship-note,
.process-note,
.quality-introduction > p.quality-caption,
.quality-scope,
.product-briefs > p.development-note,
.manufacturing-gallery figcaption,
.resource-meta,
.resource-bottom,
.resource-bottom > span,
.resource-bottom strong,
.resource-note,
.field-help,
.form-privacy,
.email-explanation,
#form-status,
.footer-top > p,
.footer-top .back-top,
.footer-bottom,
.footer-bottom p,
.footer-bottom p span,
.footer-bottom nav a {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  letter-spacing: 0;
}
.network-inner > div strong,
.network-inner > p strong,
.manufacturing-detail strong,
.contact-service strong {
  font-size: var(--type-body-size);
  font-weight: 700;
  line-height: var(--type-ui-leading);
}
.network-inner > div span { max-inline-size: none; }
.resource-bottom { flex-wrap: wrap; row-gap: 0.5rem; }
.capability li,
.enquiry-form label,
.enquiry-form label span,
.contact-copy address,
.contact-copy address strong {
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-leading);
  letter-spacing: 0;
}
.contact-copy address { font-style: normal; }
.step-number,
.capability-image > span,
.pdf-label {
  font-size: var(--type-caption-size);
  font-weight: 700;
  line-height: var(--type-ui-leading);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.button,
.button-small,
.site-header nav .button,
.hero-actions .button,
.enquiry-form > .button,
.manufacturing-copy .button,
.text-link,
.about-copy .text-link,
#email-fallback .text-link,
.hero-actions .text-link,
.legal-main > .text-link,
.site-header nav > a:not(.button) {
  font-size: var(--type-ui-size);
  font-weight: 700;
  line-height: var(--type-ui-leading);
  letter-spacing: 0;
}
.hero-actions .button {
  white-space: normal;
  text-align: start;
  max-inline-size: 100%;
}
.button span { font-size: 1.25rem; line-height: 1; }
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  font-size: var(--type-body-size);
  font-weight: 400;
  line-height: var(--type-body-leading);
}
a {
  text-underline-position: from-font;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.16em;
}
.contact-email {
  font-size: var(--type-heading-size);
  font-weight: 700;
  line-height: var(--type-heading-leading);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  max-inline-size: 100%;
}

/* The approved mark is untouched; its supporting stamp text can now be read. */
.play-seal span {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  max-inline-size: 6.25rem;
  text-align: center;
  text-wrap: balance;
}
.play-seal img { width: 3.5rem; height: 3.5rem; }
.partner-wordmark strong { font-weight: 700; }
.partner-wordmark strong span,
.partner-wordmark > p {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
  letter-spacing: 0.05em;
}

/* Legal reading uses the same body role, with a measured desktop line length. */
.legal-heading h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  line-height: var(--type-title-leading);
  letter-spacing: -0.02em;
}
.legal-heading > p:last-child {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-leading);
}
.legal-body {
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  max-inline-size: var(--type-prose-measure);
  letter-spacing: 0;
}
.legal-body h2 {
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-leading);
  letter-spacing: -0.015em;
}

/* Allow larger browser text to reflow inside the existing grid/flex layout. */
.hero > *,
.section > *,
.quality-layout > *,
.capability-grid > *,
.process-steps > *,
.resource-grid > *,
.resource-card > *,
.form-row > *,
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  min-inline-size: 0;
}
.button {
  max-inline-size: 100%;
  white-space: normal;
  text-align: start;
}

@supports (text-box: trim-both cap alphabetic) {
  .button, .pdf-label { text-box: trim-both cap alphabetic; }
}
@media (max-width: 1100px) {
  .site-header nav > a:not(.button) { font-size: var(--type-caption-size); }
}
@media (max-width: 800px) {
  .site-header nav > a:not(.button) {
    font-size: var(--type-heading-size);
    line-height: var(--type-heading-leading);
    letter-spacing: -0.015em;
  }
  .play-seal img { width: 2.5rem; height: 2.5rem; }
}
@media (max-width: 580px) {
  .capability h3 { min-block-size: 0; }
  .hero-actions .text-link { max-inline-size: none; }
  .hero-footnote { display: grid; gap: 0.375rem; }
  .hero-footnote span + span { padding-inline-start: 0; border-inline-start: 0; }
  .hero-photo-caption span:first-child { font-size: 1.125rem; }
  .play-seal img { width: 2.75rem; height: 2.75rem; }
}
@media print {
  body { font-size: 0.75rem; }
  .legal-body { max-inline-size: none; }
}
