/* Self-hosted Estedad 8.5. See static/fonts/estedad/OFL.txt for the font licence. */
@font-face {
    font-family: "Shop Estedad";
    src: url("../fonts/estedad/Estedad-VF.woff2?v=8.5-0dbe6897") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --shop-font-family: "Shop Estedad", Tahoma, Arial, sans-serif;
    --shop-code-font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    --font-family-primary: var(--shop-font-family);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--shop-font-family) !important;
    font-weight: 400;
    font-kerning: normal;
    /* The font's named Latin-to-Farsi-digits feature affects display, not values. */
    font-feature-settings: "ss20" 1;
}

/* Override the legacy page/component families, while retaining icon glyph fonts. */
body :where(
    main, section, article, aside, header, footer, nav, div,
    h1, h2, h3, h4, h5, h6, p, a, span, small, strong, b, em,
    label, legend, fieldset, form, button, input, select, textarea, option, optgroup,
    ul, ol, li, dl, dt, dd, table, caption, thead, tbody, tfoot, tr, th, td,
    details, summary, blockquote, figcaption, time, output, ins, del, mark,
    text, tspan
):not(:where(
    .fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands,
    .now-ui-icons, .glyphicon, .material-icons, .material-symbols-outlined,
    .material-symbols-rounded, .icon, .iconfont,
    [class^="icon-"], [class*=" icon-"], [data-icon], [style*="font-family"], [style*="font-family"] *
)) {
    font-family: var(--shop-font-family) !important;
}

/* Keep literal identifiers and gateway/debug payloads easy to read and copy. */
body :where(pre, code, kbd, samp),
body :where(pre, code, kbd, samp) * {
    font-family: var(--shop-code-font-family) !important;
    font-feature-settings: normal;
}

body :where([dir="ltr"], input[type="email"], input[type="url"]) {
    font-feature-settings: normal;
}

/* Storefront baseline; component headings and controls keep their hierarchy. */
body.index-page { font-size: 15px; line-height: 1.9; }
