@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow/Barlow-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow/Barlow-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow/Barlow-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow/Barlow-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow/Barlow-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Serif Display";
    src: url("../fonts/dm-serif-display/DMSerifDisplay-Regular.ttf")
        format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --grail-color-velvet: #631e76;
    --grail-color-gold: #d29a22;
    --grail-color-teal: #3698b0;
    --grail-color-dark-purple: #330066;
    --grail-color-dark-purple-20: rgba(51, 0, 102, 0.2);
    --grail-color-dark-purple-40: rgba(51, 0, 102, 0.4);
    --grail-color-dark-purple-80: rgba(51, 0, 102, 0.8);
    --grail-color-gold-35: rgba(210, 154, 34, 0.35);
    --grail-color-linen: #f8e9d6;
    --grail-color-dark-grey: #272727;
    --grail-color-light-grey: #f7f7f7;
    --grail-color-dark-magenta: #a21263;
    --grail-color-white: #ffffff;

    --grail-font-sans: "Barlow", sans-serif;
    --grail-font-serif: "DM Serif Display", serif;
}

/*
 * Astra exposes one typography weight for the primary menu but the
 * GRAIL Web typography contract distinguishes normal and current
 * navigation states.
 */
.ast-desktop .main-header-menu .current-menu-item > .menu-link,
.ast-desktop .main-header-menu .current-menu-ancestor > .menu-link {
    font-weight: 700;
}

/*
 * Elementor Heading widgets use H2 by default, but Astra's Elementor
 * compatibility layer does not explicitly carry the canonical H2
 * family, weight, and color into that widget selector.
 *
 * Preserve Astra's responsive heading sizing while guaranteeing the
 * GRAIL H2 brand role through the Elementor presentation layer.
 */
.elementor-widget-heading h2.elementor-heading-title {
    color: var(--grail-color-velvet);
    font-family: var(--grail-font-serif);
    font-weight: 400;
}
