/*
 * ArchiveBio v2 site-wide typography foundation.
 * Intentionally lightweight: component styling remains conditional to ArchiveBio views.
 */
:root {
    --ab-font: "Vazirmatn", Tahoma, Arial, sans-serif;
    --ab-font-size-base: 17px;
    --ab-reading-width: 760px;
    --ab-container: 1240px;
    --ab-leading-body: 1.85;
    --ab-leading-copy: 2;
    --ab-primary: #047857;
    --ab-primary-hover: #065f46;
    --ab-primary-light: #ecfdf5;
    --ab-text: #0f172a;
    --ab-muted: #64748b;
    --ab-border: #e2e8f0;
    --ab-surface: #ffffff;
    --ab-background: #f8fafc;
    --ab-logo-width: 300px;
    --ab-logo-height: 100px;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    scroll-padding-top: 5rem;
}

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

body {
    font-size: var(--ab-font-size-base);
    line-height: var(--ab-leading-body);
    font-weight: 400;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    font-family: var(--ab-font);
    text-wrap: balance;
}

body p,
body li,
body dd {
    text-wrap: pretty;
}

body button,
body input,
body select,
body textarea {
    font-size: inherit;
}

@media (max-width: 600px) {
    body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Elementor can declare widget-level font families; v2 keeps the site typeface consistent. */
body .elementor-widget,
body .elementor-widget-container,
body .elementor-heading-title,
body .elementor-button,
body .elementor-field,
body .elementor-field-textual {
    font-family: var(--ab-font) !important;
}
