@layer layout {
/* Global CSS Classes */
@font-face {
    font-family: "Messapia";
    src: url('fonts/Messapia-Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:is([class*="has-heading-"], #important),
:is([class*="has-paragraph-"], #important),
:where(.editor-styles-wrapper, #wrapper) :is(h1, h2, h3, h4, h5, h6),
:where(.editor-styles-wrapper, #wrapper) :is(p, li, a) {
    font-family: var(--ff);
    font-weight: var(--fw);
    font-size: var(--fs);
    line-height: var(--lh);
    letter-spacing: var(--ls);
    -webkit-text-size-adjust: 100%;
}

:where(.editor-styles-wrapper, #wrapper) :is(p, li, a),
:where(.editor-styles-wrapper, #wrapper) [class*="has-paragprah-"],
:where(.editor-styles-wrapper, #wrapper) :is(h2.has-paragraph-details)  {
    --ff: var(--textFont);
}

:where(.editor-styles-wrapper, #wrapper) :is(h1, h2, h3, h4),
:where(.editor-styles-wrapper, #wrapper) [class*="has-heading-"] {
    --ff: var(--titleFont);
}

/* @end */

/* Paragraph Values */



:is(p, li, strong) :is(.is-bold, b, strong),
:is(p, li, strong):has(b, strong) {
    --fw: 500;
}

:is(p, li, strong):is(.is-bold, b, strong) {
    --fw: 500;
}

h1:not([class*="has-heading-"]),
.has-heading-h-1 {
    --fw: 700;
    text-transform: uppercase;
}

h2:not([class*="has-heading-"]),
.has-heading-h-2 {
    --fw: 700;
}

.has-heading-subhead,
.has-heading-eyebrow {
    text-transform: uppercase;
}

.has-paragraph-details {
    --lh: 120%;
    --ls: 0.1em;
    --fs-details: var(--fs);
    text-transform: uppercase;
}
h2.has-paragraph-details {
    --fw: 500;
}

/* Heading Values */
@media only screen and (min-width: 961px) {

    h1:not([class*="has-"]),
    .has-heading-h-1-font-size,
    .has-heading-h-1 {
        --fs: 5.1rem;
        --fs-h1: var(--fs);
        --lh: 110%;
        --ls: 0.03em;
    }

    h2:not([class*="has-"]),
    .has-heading-h-2-font-size,
    .has-heading-h-2 {
        --fs: 4rem;
        --fs-h2: var(--fs);
        --lh: 100%;
        --ls: 0.03em;
    }

    .has-heading-subhead-font-size,
    .has-heading-subhead {
        --fs: 2rem;
        --fw: 700;
        --fs-subhead: var(--fs);
        --lh: 1.45em;
        --ls: 0.02em;
    }

    .has-heading-eyebrow {
        --fs: 1.6rem;
        --fw: 700;
        --fs-eyebrow: var(--fs);
        --lh: 145%;
        --ls: 0.02em;
    }

    .has-paragraph-body,
    .has-paragraph-body-font-size,
    :is(p, li):not([class*="has-"]) {
        --fw: 400;
        --fs: 1.6rem;
        --fs-body: var(--fs);
        --lh: 170%;
        --ls: 0.02em;
    }

    .site-footer .has-paragraph-body,
    .site-footer .has-paragraph-body-font-size,
    .site-footer :is(p, li):not([class*="has-"]) {
        --fs: 1.4rem;
    }
    

    .has-paragraph-captions {
        --fw: 400;
        --fs: 1.4rem;
        --fs-caption: var(--fs);
        --lh: 170%;
        --ls: 0.02em;
    }

    .has-paragraph-details {
        --fw: 500;
        --fs: 1.6rem;
    }
}

@media only screen and (max-width: 960px) {

    h1:not([class*="has-"]),
    .has-heading-h-1-font-size,
    .has-heading-h-1 {
        --fs: 2rem;
        --fs-h1: var(--fs);
        --lh: 150%;
        --ls: 0.03em;
    }

    h2:not([class*="has-"]),
    .has-heading-h-2-font-size,
    .has-heading-h-2 {
        --fs: 1.5rem;
        --fs-h2: var(--fs);
        --lh: 150%;
        --ls: 0.02em;
    }

    .has-heading-subhead-font-size,
    .has-heading-subhead {
        --fw: 400;
        --fs: 1.5rem;
        --fs-subhead: var(--fs);
        --lh: 145%;
        --ls: 0.02em;
    }

    .has-paragraph-eyebrow,
    .has-mobile-cta {
        --fw: 700;
        --fs: 1.5rem;
        --fs-eyebrow: var(--fs);
        --lh: 145%;
        --ls: 0.02em;
    }

    .has-paragraph-body-font-size,
    .has-paragraph-body,
    :is(p, li) {
        --fw: 400;
        --fs: 1.6rem;
        --fs-body: var(--fs);
        --lh: 170%;
        --ls: 0.02em;
    }

    .has-paragraph-captions {
        --fw: 400;
        --fs: 1.4rem;
        --fs-caption: var(--fs);
        --lh: 145%;
        --ls: 0.02em;
    }

    .has-paragraph-details {
        --fw: 500;
        --fs: 1.05rem;
    }

}

/* Buttons/Labels Values */

:where(.editor-styles-wrapper, #wrapper) .bp-button p,
:where(.editor-styles-wrapper, #wrapper) .has-label-button-font-size {
    --ff: var(--textFont);
    --fw: 600;
    --fs: 1.2rem;
    --fs-label-button: var(--fs);
    --lh: 1.7em;
    --ls: 0.2em;
    text-transform: uppercase;
}

:where(.editor-styles-wrapper, #wrapper) .has-label-font-size {
    --ff: var(--textFont);
    --fw: 600;
    --fs: 1.2rem;
    --fs-label: var(--fs);
    --lh: 1.7em;
    --ls: 0.2em;
    text-transform: uppercase;
}
}
