@font-face {
    font-family: "Borna";
    src: url("../fonts/Borna-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Borna";
    src: url("../fonts/Borna-RegularItalic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Borna";
    src: url("../fonts/Borna-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Borna";
    src: url("../fonts/Borna-MediumItalic.otf") format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Borna";
    src: url("../fonts/Borna-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Borna";
    src: url("../fonts/Borna-SemiBoldItalic.otf") format("opentype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Borna";
    src: url("../fonts/Borna-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Borna";
    src: url("../fonts/Borna-BoldItalic.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --pk-heading-font-family: "Borna";
    --pk-heading-font-weight: 600;
    --pk-heading-line-height: 1.2;

    --pk-text-font-family: "Borna";
    --pk-text-font-weight: 400;
    --pk-text-line-height: 1.33;

    --text-desktop-font-size: 18px;
    --text-tablet-font-size: 16px;
    --text-mobile-font-size: 16px;

    /*Base unit*/
    --scaling-h1: max(3rem, calc(6 * var(--su)));
    --scaling-h2: max(2.5rem, calc(3 * var(--su)));
    --scaling-h3: max(2rem, calc(2.25 * var(--su)));
    --scaling-h4: max(1.5rem, calc(2 * var(--su)));
    --scaling-h5: max(1.25rem, calc(1.5 * var(--su)));
    --scaling-h6: max(1.125rem, calc(1.25 * var(--su)));

    /*32px in design*/
    --desktop-body-intro: max(1.75rem, calc(2 * var(--su)));
    /*22px in design, mobile 20px*/
    --body-text-xl: clamp(20px, 1.71vw, 22px);
    /*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)));
}

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

body h1 {
    font-size: clamp(32px, 2.96vw, 40px);
}

body h2 {
    font-size: clamp(32px, 2.96vw, 40px);
}

body h3 {
    font-size: clamp(24px, 2.96vw, 40px);
}

body h4 {
    font-size: clamp(20px, 1.71vw, 22px);
}

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

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