/* =========================================================
   WIL THE PHOTOGRAPHER
   APPLE-STYLE SITE-WIDE TYPOGRAPHY
   ========================================================= */

:root {
    --wilat-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Main site typography */
html,
body {
    font-family: var(--wilat-font-family);
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Standard text elements */
body,
p,
span,
div,
li,
ul,
ol,
table,
th,
td,
label,
legend,
blockquote,
figcaption {
    font-family: var(--wilat-font-family);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--wilat-font-family);
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 {
    font-weight: 700;
    letter-spacing: -0.035em;
}

h2 {
    font-weight: 650;
    letter-spacing: -0.03em;
}

/* Links */
a {
    font-family: var(--wilat-font-family);
}

/* Form fields */
input,
textarea,
select,
option {
    font-family: var(--wilat-font-family);
    font-weight: 400;
}

/* Buttons */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
.wp-element-button,
.ast-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    font-family: var(--wilat-font-family);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Astra navigation */
.main-header-menu,
.main-header-menu a,
.ast-header-navigation,
.ast-header-navigation a,
.ast-builder-menu,
.ast-builder-menu a {
    font-family: var(--wilat-font-family);
}

/* Mobile navigation */
.ast-mobile-popup-drawer,
.ast-mobile-popup-drawer a,
.ast-mobile-menu-trigger-minimal,
.ast-mobile-header-wrap {
    font-family: var(--wilat-font-family);
}

/* WooCommerce */
.woocommerce,
.woocommerce-page,
.woocommerce p,
.woocommerce span,
.woocommerce label,
.woocommerce table,
.woocommerce th,
.woocommerce td {
    font-family: var(--wilat-font-family);
}

/* WooCommerce product titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title,
.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
    font-family: var(--wilat-font-family);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* WooCommerce prices */
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: var(--wilat-font-family);
    font-weight: 600;
}

/* WooCommerce cart and checkout */
.woocommerce-cart,
.woocommerce-checkout,
.woocommerce-cart-form,
.woocommerce-checkout-review-order,
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-account {
    font-family: var(--wilat-font-family);
}

/* WooCommerce My Account */
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation a,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-content p,
.woocommerce-MyAccount-content table,
.woocommerce-MyAccount-content th,
.woocommerce-MyAccount-content td {
    font-family: var(--wilat-font-family);
}

/* Gutenberg / WordPress content */
.entry-content,
.entry-content p,
.entry-content li,
.entry-content table,
.entry-content th,
.entry-content td,
.wp-block-heading,
.wp-block-button,
.wp-block-button__link {
    font-family: var(--wilat-font-family);
}

/* Footer */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer li,
.ast-footer-copyright {
    font-family: var(--wilat-font-family);
}

/* Small text */
small,
.small,
.woocommerce small,
.entry-meta,
.entry-meta a {
    font-family: var(--wilat-font-family);
    letter-spacing: -0.005em;
}

/* Wil custom plugin form controls and buttons. */
[class*="wil-"] button,
[class*="wil_"] button,
[class*="wtp-"] button,
[class*="wil-"] input,
[class*="wil_"] input,
[class*="wtp-"] input,
[class*="wil-"] select,
[class*="wil_"] select,
[class*="wtp-"] select,
[class*="wil-"] textarea,
[class*="wil_"] textarea,
[class*="wtp-"] textarea {
    font-family: var(--wilat-font-family);
}

/* Apple-style text rendering */
body {
    text-rendering: optimizeLegibility;
}

/*
 * Avoid using a global universal selector (*) for fonts.
 * Icon fonts from Astra, WooCommerce, Font Awesome, and custom plugins
 * can continue using their own font-family declarations.
 */
