/* La Marque shared typography system */
:root {
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;
  --type-label: 11px;
  --type-nav: 12px;
  --type-body: 16px;
  --type-lead: 18px;
  --type-h1: clamp(40px, 5vw, 68px);
  --type-h2: clamp(30px, 3.3vw, 44px);
  --type-h3: clamp(22px, 2vw, 27px);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body) !important;
}

body {
  font-size: var(--type-body) !important;
  line-height: 1.7 !important;
}

h1,
h2,
h3,
.logo,
.signature,
.email {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
}

h1 {
  font-size: var(--type-h1) !important;
  letter-spacing: -0.03em !important;
}

h2 {
  font-size: var(--type-h2) !important;
  letter-spacing: -0.025em !important;
}

h3 {
  font-size: var(--type-h3) !important;
  letter-spacing: -0.02em !important;
}

p {
  font-size: var(--type-body) !important;
  line-height: 1.7 !important;
}

.intro,
.detail-copy,
.lead,
.founder-lead,
.contact-invitation,
.section-heading p:not(.eyebrow),
.statement-copy {
  font-size: var(--type-lead) !important;
  line-height: 1.7 !important;
}

.mandate-lead {
  font-size: 28px !important;
  line-height: 1.5 !important;
}

.eyebrow,
.photo-label,
.proof-label,
.mandate-work-item__label,
.tags {
  font-family: var(--font-body) !important;
  font-size: var(--type-label) !important;
  letter-spacing: 0.14em !important;
  line-height: 1.5 !important;
}

header nav {
  font-family: var(--font-body) !important;
  font-size: var(--type-nav) !important;
}

.text-link,
.back-to-expertise {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

footer {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

@media (max-width: 800px) {
  :root {
    --type-nav: 10px;
    --type-lead: 17px;
    --type-h1: 40px;
    --type-h2: 30px;
    --type-h3: 22px;
  }

  .logo {
    font-size: clamp(14px, 4.6vw, 18px) !important;
    letter-spacing: clamp(0.2px, 0.25vw, 1px) !important;
    white-space: nowrap !important;
  }

  .logo small {
    font-size: clamp(4px, 1.27vw, 5px) !important;
    letter-spacing: clamp(0.2px, 0.08vw, 0.3px) !important;
    white-space: nowrap !important;
  }

  .mandate-lead {
    font-size: 22px !important;
    line-height: 1.5 !important;
  }

  footer {
    font-size: 12px !important;
  }
}

/* Mobile expertise detail pages: place the image between the heading and existing copy. */
@media (max-width: 800px) {
  .expertise-detail-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    align-items: start !important;
  }

  .expertise-detail-copy {
    display: contents;
  }

  .expertise-detail-copy > .eyebrow {
    order: 1;
    margin: 0 0 16px !important;
  }

  .expertise-detail-copy > h1 {
    order: 2;
    margin: 0 0 24px !important;
  }

  .expertise-detail-visual {
    order: 3;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    margin: 0 0 26px !important;
  }

  .expertise-detail-visual img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: initial !important;
  }

  .expertise-detail-copy > .detail-copy {
    order: 4;
    margin-bottom: 14px;
  }

  .expertise-detail-copy > .service-tags {
    order: 5;
    margin: 10px 0 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100%;
  }

  .expertise-detail-copy > .service-tags li {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 5px;
    font-size: clamp(8px, 2.25vw, 9px);
    letter-spacing: 0.35px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .expertise-related {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .expertise-related a {
    display: inline-block !important;
    width: fit-content;
    max-width: 100%;
    margin: 0 !important;
  }
}

/* Keep mobile header social and language controls above adjacent header layers. */
@media (max-width: 800px) {
  header .header-social,
  header .language-menu {
    position: relative;
    z-index: 15;
    pointer-events: auto;
  }

  header .header-social a,
  header .language-menu summary {
    position: relative;
    z-index: 16;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  header .language-menu[open] .language-panel {
    z-index: 20;
  }
}

/* Match eyebrow labels to the homepage accent. */
.eyebrow,
.founder-page__eyebrow {
  color: #786644 !important;
}

/* Match the homepage eyebrow while improving contrast for small labels. */
body.about-page main .hero-copy > .eyebrow,
body main .expertise-index-intro .eyebrow,
body main .expertise-detail-copy > .eyebrow,
body .contact-info > .eyebrow {
  color: #786644 !important;
}

@media (max-width: 800px) {
  .header-actions nav[aria-label="Main navigation"] {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: .35rem;
  }
  .header-actions nav[aria-label="Main navigation"] a {
    font-size: 12px !important;
    min-height: 24px;
    align-content: center;
    white-space: nowrap;
  }
  .about-footer nav[aria-label="Legal links"] a {
    display: inline-grid;
    align-items: center;
    min-height: 24px;
    font-size: 12px;
  }
}

.nav-label-mobile {
  display: none;
}

@media (max-width: 800px) {
  .header-actions .nav-label-full {
    display: none;
  }

  .header-actions .nav-label-mobile {
    display: inline;
  }
}

/* Display the supplied wordmark at the existing header logo dimensions. */
header .logo {
  position: relative;
}

header .logo-spacing {
  display: block;
  visibility: hidden;
}

header .logo-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

header .logo-art img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 123%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -46.4%);
}

header .logo-art img {
  width: calc(123% - 21.86px);
  left: calc(50% - 0.15px);
  filter: url(#wordmark-ink);
}
