:root {
    --lm-font-latin: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --lm-font-arabic: "IBM Plex Sans Arabic", Tahoma, sans-serif;
    --lm-type-body: clamp(0.98rem, 0.25vw + 0.92rem, 1.125rem);
    --lm-type-label: clamp(0.6875rem, 0.15vw + 0.65rem, 0.8125rem);
    --lm-type-heading: clamp(2.35rem, 4.5vw, 4.75rem);
    --lm-type-display: clamp(3.5rem, 8.6vw, 9.5rem);
}

html[lang^="en"] body {
    font-family: var(--lm-font-latin);
}

html[lang^="ar"] body,
html[dir="rtl"] body {
    font-family: var(--lm-font-arabic);
}

.lm-copy,
.lm-insights__grid p,
.lm-article__content {
    font-size: var(--lm-type-body);
}

.lm-kicker,
.lm-menu-panel small,
.lm-growth-lab__instructions,
.lm-insights__grid small {
    font-size: var(--lm-type-label);
}

.lm-display {
    font-size: var(--lm-type-display);
}

.lm-heading {
    font-size: var(--lm-type-heading);
}

html[dir="rtl"] {
    --lm-type-body: clamp(1rem, 0.3vw + 0.94rem, 1.18rem);
    --lm-type-label: clamp(0.72rem, 0.16vw + 0.68rem, 0.86rem);
    --lm-type-heading: clamp(2.25rem, 4.1vw, 4.35rem);
    --lm-type-display: clamp(3.2rem, 7.4vw, 8.1rem);
}

html[dir="rtl"] body {
    font-weight: 400;
    line-height: 1.75;
}

html[dir="rtl"] .lm-display,
html[dir="rtl"] .lm-heading,
html[dir="rtl"] .lm-contact h2,
html[dir="rtl"] .lm-menu-panel__nav a {
    font-family: var(--lm-font-arabic);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] .lm-hero__title {
    font-size: clamp(3.1rem, 7.2vw, 7.7rem);
    line-height: 1.02;
}

html[dir="rtl"] .lm-heading {
    line-height: 1.14;
}

html[dir="rtl"] .lm-contact h2 {
    font-size: clamp(3.2rem, 6.6vw, 6.8rem);
    line-height: 1.08;
}

html[dir="rtl"] .lm-menu-panel__nav a {
    font-size: clamp(2.4rem, 4.7vw, 4.2rem);
    line-height: 1.08;
}

html[dir="rtl"] .lm-insights__grid h3,
html[dir="rtl"] .lm-journal .lm-insights__grid h2 {
    font-size: clamp(1.75rem, 2.35vw, 2.7rem);
    line-height: 1.35;
}

html[dir="rtl"] .lm-article__header h1,
html[dir="rtl"] .lm-journal > div > h1 {
    font-size: clamp(2.75rem, 5.8vw, 6rem);
    line-height: 1.15;
    letter-spacing: 0;
}

@media (max-width: 600px) {
    html[dir="rtl"] {
        --lm-type-heading: clamp(2.1rem, 10vw, 3.15rem);
        --lm-type-display: clamp(3rem, 14vw, 4.9rem);
    }

    html[dir="rtl"] .lm-hero__title {
        font-size: clamp(2.9rem, 13.5vw, 4.7rem);
    }

    html[dir="rtl"] .lm-menu-panel__nav a {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }
}
