*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    /* Flex layout to push footer down on short pages */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll from rogue elements */
    /* --- */

    font-family: var(--font-brand);

    color: var(--text-primary);

    background: var(--surface-primary);

    line-height: 1.6;
}

h1 {

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: .95;

    font-weight: 400;
}

h2 {

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 400;

    line-height: 1.16;
}

h3 {

    font-size: 1.75rem;

    font-weight: 400;
}

p {

    font-size: 1rem;
}

.small {

    font-size: .875rem;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}
