/* Final public typography and content-alignment system.
   Loaded last to resolve legacy stylesheet conflicts without affecting the portal. */
:root{
  /* One editorial serif for the whole landing page. The hero introduced Instrument
     Serif and the rest of the page was still on Fraunces, so two display faces were
     rendering side by side. --font-display is redeclared here too because
     african-brand.css and typography-and-about.css each define it as Fraunces and
     several component stylesheets draw their headings from it.
     Instrument Serif ships a single weight (400); anything asking for 600 would be
     synthetically emboldened, so heading weights below are set to 400. */
  --content-display:"Instrument Serif",Georgia,"Times New Roman",serif;
  --font-display:"Instrument Serif",Georgia,"Times New Roman",serif;
  --content-body:"DM Sans",Arial,sans-serif;
  --content-ink:#111a2d;
  --content-muted:#626b78;
  --content-measure:650px;
  --content-side-measure:510px;
}

body:not(:has(.admin-portal)){font-family:var(--content-body);font-size:16px;line-height:1.7}
body:not(:has(.admin-portal)) h1,
body:not(:has(.admin-portal)) h2,
body:not(:has(.admin-portal)) h3{font-family:var(--content-display);color:var(--content-ink);font-weight:400;text-wrap:balance}
body:not(:has(.admin-portal)) p{overflow-wrap:break-word}

/* Consistent section labels */
body:not(:has(.admin-portal)) .eyebrow{
  display:inline-flex;align-items:center;gap:13px;
  margin:0;color:#956015;font-family:var(--content-body);
  font-size:11px;font-weight:800;line-height:1.3;
  letter-spacing:.16em;text-align:left;text-transform:uppercase;
}
body:not(:has(.admin-portal)) .eyebrow:before{content:"";display:block;width:38px;height:1px;background:#c99334}
.brand-hero .hero-copy:before{display:none}

/* One heading rhythm for every landing-page section */
.about-layout>header h2,
.services-intro h2,
.reasons-intro h2,
.team-heading h2,
.testimonial-section .section-heading h2,
.insights-heading h2,
.faq-grid>div:first-child h2{
  max-width:var(--content-measure);margin:14px 0 20px;
  font:400 clamp(42px,4.25vw,60px)/1.07 var(--content-display);
  letter-spacing:-.038em;text-align:left;text-wrap:balance;
}

/* Supporting and side copy now shares the same visual weight */
.about-lead,
.services-intro>p,
.reasons-intro>p,
.team-heading p,
.testimonial-section .section-heading>div>p,
.insights-heading>div>p,
.faq-grid>div:first-child>p{
  max-width:var(--content-side-measure);margin:0;
  color:var(--content-muted);font:400 17px/1.75 var(--content-body);
  letter-spacing:-.005em;text-align:left;
}

/* Align headers and companion content to a common left edge */
.about-layout>header,.services-intro,.reasons-intro,
.team-heading>div:first-child,.testimonial-section .section-heading>div:first-child,
.insights-heading>div:first-child,.faq-grid>div:first-child{text-align:left}
.team-heading{justify-content:space-between;text-align:left}
.team-heading>div:first-child{max-width:var(--content-measure)}
.team-heading p{margin-inline:0}
.testimonial-section .section-heading,.insights-heading{align-items:flex-end}

/* Body content and card typography */
.about-story>p{max-width:620px;color:#263344;font:400 18px/1.82 var(--content-body)}
.service-row h3,.reason-list h3,.team-profile h3,
.insight-lead h3,.insight-item h3{
  font-family:var(--content-display);font-weight:400;line-height:1.18;letter-spacing:-.025em;
}
.service-row p,.reason-list p,.team-profile .rich-content,
.insight-copy>p,.insight-item>div>p,.faq-list .rich-content{
  color:var(--content-muted);font-family:var(--content-body);font-size:15px;line-height:1.72;
}
.service-row small,.team-profile small,.insight-meta,.firm-facts span{
  font-family:var(--content-body);font-size:11px;font-weight:800;line-height:1.45;letter-spacing:.1em;text-transform:uppercase;
}

/* Hero retains emphasis but follows the same font pairing */
.brand-hero h1{font-family:var(--content-display);font-weight:400;line-height:.99;letter-spacing:-.048em;text-align:left}
.brand-hero p{font-family:var(--content-body);font-size:18px;line-height:1.78;text-align:left}
.hero-proof h2{color:#fff;text-align:left}

/* Instrument Serif has no bold to fall back on, so the two smallest card headings
   lost their place in the hierarchy at the sizes that suited Fraunces 600 — the 20px
   one read lighter than the 15px copy beneath it. A little more size restores the
   step, and collapses a 20/22px near-duplicate into a single value. */
.insight-item h3,.team-profile h3{font-size:23px}

/* Remaining display-serif text that still asked for 600 and so rendered as synthetic
   bold: the header and footer wordmarks and the pull-quotes. */
body:not(:has(.admin-portal)) .brand,
body:not(:has(.admin-portal)) .footer-brand,
.testimonial-track blockquote>p{font-weight:400}

/* Inner pages */
.page-hero h1,.article-detail h1{font-family:var(--content-display);font-weight:400;line-height:1.05;letter-spacing:-.04em;text-align:left}
.page-hero p,.article-detail header p{max-width:var(--content-measure);font-family:var(--content-body);font-size:18px;line-height:1.75;text-align:left}
.contact-main h2,.blog-page h2{font-family:var(--content-display);font-weight:400;letter-spacing:-.025em}

@media(max-width:900px){
  .about-layout>header h2,.services-intro h2,.reasons-intro h2,.team-heading h2,
  .testimonial-section .section-heading h2,.insights-heading h2,.faq-grid>div:first-child h2{max-width:700px}
  .about-lead,.services-intro>p,.reasons-intro>p,.team-heading p,
  .testimonial-section .section-heading>div>p,.insights-heading>div>p,.faq-grid>div:first-child>p{max-width:650px}
}
@media(max-width:620px){
  body:not(:has(.admin-portal)){font-size:15px}
  body:not(:has(.admin-portal)) .eyebrow{gap:10px;font-size:10px}
  body:not(:has(.admin-portal)) .eyebrow:before{width:28px}
  .about-layout>header h2,.services-intro h2,.reasons-intro h2,.team-heading h2,
  .testimonial-section .section-heading h2,.insights-heading h2,.faq-grid>div:first-child h2{
    margin:12px 0 16px;font-size:clamp(36px,10.5vw,44px);line-height:1.08
  }
  .about-lead,.services-intro>p,.reasons-intro>p,.team-heading p,
  .testimonial-section .section-heading>div>p,.insights-heading>div>p,.faq-grid>div:first-child>p,
  .brand-hero p,.page-hero p{font-size:16px;line-height:1.7}
  .team-heading,.testimonial-section .section-heading,.insights-heading{align-items:flex-start;text-align:left}
  .service-row p,.reason-list p,.team-profile .rich-content,.insight-copy>p,
  .insight-item>div>p,.faq-list .rich-content{font-size:14px}
}
