/*
 * Subsite typography configuration
 * -------------------------------
 * To reuse this setup, replace the three @font-face sources and change the
 * family name below. The theme then applies the configured hierarchy
 * everywhere, including the classic editor.
 */
@font-face {
    font-family: 'Soderberg Sans';
    src: url('../fonts/SoderbergSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soderberg Sans';
    src: url('../fonts/SoderbergSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soderberg Sans';
    src: url('../fonts/SoderbergSans-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --pk-heading-font-family: 'Soderberg Sans', Arial, Helvetica, sans-serif;
    --pk-heading-font-weight: 700;
    --pk-heading-strong-font-weight: 900;
    --pk-heading-line-height: 1.15;

    /* The supplied family has no separate Book cut; Regular is its 400 text cut. */
    --pk-text-font-family: 'Soderberg Sans', Arial, Helvetica, sans-serif;
    --pk-text-font-weight: 400;
    --pk-text-font-line-height: 1.5;
    --pk-text-line-height: var(--pk-text-font-line-height);

    --text-desktop-font-size: 18px;
    --text-tablet-font-size: 16px;
    --text-mobile-font-size: 16px;
    --pk-text-font-size: var(--text-desktop-font-size);
    --pk-text-desktop-font-size: var(--text-desktop-font-size);

    /*Base unit*/
    --scaling-h1: max(2.25rem, calc(3.125 * var(--su)));
    --scaling-h2: max(1.75rem, calc(2 * var(--su)));
    --scaling-h3: max(1.375rem, calc(1.5 * var(--su)));
    --scaling-h4: max(1.125rem, calc(1.25 * var(--su)));
    --scaling-h5: max(1rem, calc(1.125 * var(--su)));
    --scaling-h6: max(0.875rem, var(--su));

    /*32px in design*/
    --desktop-body-intro: max(1.75rem, calc(2 * var(--su)));
    /*24px in design*/
    --desktop-body-xl: max(1.375rem, calc(1.5 * var(--su)));
    /*20px in design*/
    --dekstop-body-lg: max(1.125rem, calc(1.25 * var(--su)));
    /*18px in design*/
    --desktop-body-md: max(1rem, calc(1.125 * var(--su)));
    /*16px in design*/
    --desktop-body-sm: max(0.875rem, var(--su));
    /*14px in design*/
    --desktop-body-xs: max(0.75rem, calc(0.875 * var(--su)));
    /*12px in design*/
    --desktop-body-xxs: max(12px, calc(0.75 * var(--su)));
}

/* Headings are Bold by default; only the two primary levels use Black. */
h1,
h2 {
    font-weight: var(--pk-heading-strong-font-weight);
}

body {
    font-size: var(--desktop-body-md);
}

body h1 {
    font-size: var(--scaling-h1);
}

body h2 {
    font-size: var(--scaling-h2);
}

body h3 {
    font-size: var(--scaling-h3);
}

body h4 {
    font-size: var(--scaling-h4);
}

body h5 {
    font-size: var(--scaling-h5);
}

body h6 {
    font-size: var(--scaling-h6);
}
