/* ==========================================================================
   Font tokens
   ========================================================================== */
:root {
    --font-heading: "Cormorant Garamond", serif;
    --font-body: "Lora", serif;
    --font-accent: "Cinzel", serif;
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    --font-meta: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
}

/* Base */
body {
    font-family: var(--font-body);
}

/* Headings — Cormorant Garamond */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title,
.product_title,
.woocommerce-loop-product__title,
.elementor-heading-title,
.elementor-widget-theme-post-title .elementor-heading-title {
    font-family: var(--font-heading);
}

/* Body copy — Lora */
p,
li,
blockquote,
.entry-content,
.woocommerce-Tabs-panel,
.woocommerce-product-details__short-description,
.summary .woocommerce-product-details__short-description,
.elementor-widget-text-editor {
    font-family: var(--font-body);
}

/* Accent — Cinzel (badges, sale flags, eyebrows, decorative labels) */
.onsale,
.m-badge,
.m-chip,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.m-eyebrow,
.section-eyebrow,
.stock {
    font-family: var(--font-accent);
}

/* UI — Inter (buttons, form controls, navigation) */
button,
input,
select,
textarea,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.elementor-button,
.elementor-button .elementor-button-text,
.main-navigation,
.main-navigation a,
.woocommerce-tabs ul.tabs li,
.woocommerce-ordering select,
.woocommerce-result-count {
    font-family: var(--font-ui);
}

/* Meta — Roboto (dates, byline, product meta, small print) */
.product_meta,
.posted_on,
.entry-meta,
.woocommerce-review__author,
.woocommerce-review__published-date,
time,
small,
.m-meta,
.woocommerce-breadcrumb {
    font-family: var(--font-meta);
}

/* ==========================================================================
   Selection contrast fix — Blocksy's default ::selection pairing
   (moss #007f5f bg / cream text) sits under WCAG AA for normal text.
   Darker bg keeps the brand green family while restoring contrast.
   ========================================================================== */
::selection {
    background-color: #0f3d2a;
    color: var(--m-cream, #F7F1E6);
}
::-moz-selection {
    background-color: #0f3d2a;
    color: var(--m-cream, #F7F1E6);
}
