/* Président Professionnel typography — Hurme Geometric Sans (Thin for light title parts and
   subtitles, Regular for text and the strong part of titles, SemiBold for emphasis), Montserrat for
   a few labels. The live site uses Hurme Geometric Sans 4; these are the Sans 1 files already in
   assets/template/fonts until the Sans 4 files are delivered (then only the src below change).
   The font families themselves come from the brand tokens (--font-family, --font-family-body). */

@font-face {
    font-family: 'Hurme Geometric Sans';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url("../../fonts/HurmeGeometricSans1-Thin-f04baa1f4f47a902c48b69ee6f50fc4a.ttf") format('truetype');
}

@font-face {
    font-family: 'Hurme Geometric Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../fonts/HurmeGeometricSans1-Regular-6e1ed099f4388be8249f58aec611052c.ttf") format('truetype');
}

@font-face {
    font-family: 'Hurme Geometric Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../../fonts/HurmeGeometricSans1-SemiBold-4b2da80c241b43fd40fe1a9e7f540591.ttf") format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../fonts/Montserrat-Regular-d2bb5179b57e9422b84b0002d7d78195.woff2") format('woff2'),
         url("../../fonts/Montserrat-Regular-ad4a585bda8bf14623569a42e1e4c49e.woff") format('woff');
}

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

:root {
    --base-font-size: 16;

    --h1-family: var(--font-family);
    --h1-size: 2.9375rem;
    --h1-line-height: 2.3125rem;
    --h1-weight: 400;

    --h2-family: var(--font-family);
    --h2-size: 1.75rem;
    --h2-line-height: 2.1875rem;
    --h2-weight: 400;

    --h3-family: var(--font-family);
    --h3-size: 1.5rem;
    --h3-line-height: 1.2em;
    --h3-weight: 400;

    --h4-family: var(--font-family);
    --h4-size: 1.25rem;
    --h4-line-height: 1.2em;
    --h4-weight: 400;

    --p-family: var(--font-family-body);
    --p-size: 1rem;
    --p-line-height: 1.5em;
    --p-weight: 400;
}

@media (min-width: 1024px) {
    :root {
        --h1-size: 4.0625rem;
        --h1-line-height: 4.0625rem;
        --h2-size: 2rem;
    }
}

body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

h1, .h1 { font-family: var(--h1-family); font-size: var(--h1-size); font-weight: var(--h1-weight); line-height: var(--h1-line-height); }
h2, .h2 { font-family: var(--h2-family); font-size: var(--h2-size); font-weight: var(--h2-weight); line-height: var(--h2-line-height); }
h3, .h3 { font-family: var(--h3-family); font-size: var(--h3-size); font-weight: var(--h3-weight); line-height: var(--h3-line-height); }
h4, .h4 { font-family: var(--h4-family); font-size: var(--h4-size); font-weight: var(--h4-weight); line-height: var(--h4-line-height); }

p {
    font-family: var(--p-family);
    font-size: var(--p-size);
    font-weight: var(--p-weight);
    line-height: var(--p-line-height);
}

/* Bold text: the live site has no bold weight — its <strong> / <b> are set in the Regular face (in a Thin title too),
   the emphasis coming from colour only. */
strong, b {
    font-weight: 400;
}
