﻿html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: var(--kb-porcelain);
    color: var(--kb-ink);
    font-family: var(--kb-font-body);
    font-size: 16px;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--kb-ink);
    font-family: var(--kb-font-display);
}

h1 {
    font-size: 64px;
    font-weight: 300;
}

h2 {
    font-size: 48px;
    font-weight: 300;
}

h3 {
    font-size: 36px;
    font-weight: 400;
}

h4 {
    font-size: 28px;
    font-weight: 400;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.kb-container {
    width: 100%;
    max-width: var(--kb-content-width);
    margin-inline: auto;
}

.kb-section {
    padding-block: var(--kb-section-space-desktop);
}

@media (max-width: 1199px) {
    .kb-container {
        padding-inline: 32px;
    }

    .kb-section {
        padding-block: var(--kb-section-space-tablet);
    }

    h1 {
        font-size: 54px;
    }

    h2 {
        font-size: 44px;
    }

    h3 {
        font-size: 32px;
    }

    h4 {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .kb-container {
        padding-inline: 20px;
    }

    .kb-section {
        padding-block: var(--kb-section-space-mobile);
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 38px;
    }

    h3 {
        font-size: 30px;
    }

    h4 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
