/* Manrope — via fontshare */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope/manrope-200-800-normal-1d26b3f6.woff2') format('woff2');
}

.portfolio-page {
  --v2-font-family: 'Manrope', sans-serif, system-ui;
  --homepage-display-weight: 400;
}
#case-study-password-modal :is(h2, p, label, input) { font-family: var(--v2-font-family); }
#case-study-password-modal label[for="case-study-password"] { letter-spacing: 0; }

/* Homepage weight and leading overrides stay outside the dialogs. */
:is(#site-header, #hero-outer, .v2-main, #contact) {
  --font-sans: var(--v2-font-family);
  --so-font-family: var(--font-sans);
  --font-weight-normal: 300;
  --font-weight-medium: 400;
  --font-weight-semibold: 500;
  --font-weight-bold: 500;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
  line-height: normal;

  & :is(h1, .section-title), & #hero-s2 h2 {
    font-weight: var(--homepage-display-weight);
  }

  & :is(.gh-copy p, .approach-copy p, .section-intro p, .process-stages p,
        .quote-grid blockquote p, .contact-name p + p) {
    font-weight: 400;
  }

  & :is(button, button span, .study-link, strong, b):where(:not(.v2-text-link, .v2-text-link > span)) {
    font-weight: 500;
  }
}

@media (min-width: 1280px) {
  :is(#hero-outer, .v2-main, #contact, .case-study-modal) { --homepage-display-weight: 300; }
}

/* Preserve the original display and navigation leading independently of body copy. */
@layer base {
  :where(#site-header *, #hero-outer h1, #hero-outer h2,
    .v2-main :is(h2, h3, h4, h5, .process-index, .company-period, .project-period), #contact h2) {
    line-height: normal !important;
  }
  :where(#site-header, #hero-outer, .v2-main, #contact),
  :where(#site-header, #hero-outer, .v2-main, #contact) * {
    letter-spacing: normal !important;
  }
}
