/* Shared type scale across Home, Work, Writing, About, and case studies. */
:root {
    --type-title: clamp(2.5rem, 3.8vw, 3.6rem);
    --type-section: clamp(2rem, 3.1vw, 2.75rem);
    --type-card: 1.5rem;
    --type-body: 1.05rem;
    --type-card-body: .9rem;
    --type-label: .75rem;
}
body { font-family: var(--sans); color: var(--ink); background: var(--paper); }
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .about-main { background: var(--paper); }
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-intro h1,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .portfolio-title,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-intro h1,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .about-copy h1,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .case-study-hero h1 {
    font-family: var(--serif);
    font-size: var(--type-title);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 0 0 1.7rem;
}
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-intro h1, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .portfolio-title, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-intro h1, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .about-copy h1 { color: var(--ink); }
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-intro-lede, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-intro-detail,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-intro > p:not(.eyebrow), body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .about-prose p,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .section-header > p:not(.eyebrow), body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-section-lede,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .credential-rows p {
    font-family: var(--sans);
    font-size: var(--type-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-soft);
}
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-built .home-section-lede { color: var(--linen-deep); }
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-recognition, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-audience .writing-recognition,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-audience .writing-audience-total,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-audience .writing-audience-total strong {
    font-family: var(--sans);
    font-size: var(--type-body);
    line-height: 1.6;
    color: var(--rust);
}
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .section-header h2, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-toolbar h2,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .about-credentials-simple h2, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-built h2, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-approach h2 {
    font-family: var(--serif);
    font-size: var(--type-section);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--ink);
}
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-built h2 { color: var(--linen); }
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .eyebrow, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-eyebrow, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .portfolio-heading h2 {
    font-family: var(--sans);
    font-size: var(--type-label);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: var(--rust);
}
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-project h3, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .portfolio-card h2,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .work-feature-overlay h2, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .work-card-list .work-item h2,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-feature-card h3, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-list-item h4 {
    font-family: var(--serif);
    font-size: var(--type-card);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.015em;
}
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .portfolio-card h2, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .work-card-list .work-item h2,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-feature-card h3, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-list-item h4 { color: var(--ink); }
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-project h3, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .work-feature-overlay h2 { color: var(--linen); }
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .portfolio-card p:not(.portfolio-methods), body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .work-card-list .work-item p:not(.card-kicker),
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-feature-card p, body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .writing-list-item p,
body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .work-feature-overlay p:not(.card-kicker), body:is(.editorial-home, .portfolio-page, .writing-page, .about-page, :not([class])) .home-project > p:not(.home-project-type) {
    font-family: var(--sans);
    font-size: var(--type-card-body);
    font-weight: 400;
    line-height: 1.55;
}
@media (max-width: 650px) {
    :root { --type-title: clamp(2.2rem, 8.2vw, 3rem); }
    /* Preserve the requested three-column compact cards on Work and Writing. */
    body.portfolio-page, body.writing-page { --type-card: 1rem; --type-card-body: .7rem; }
}
