/* Explain: Base page styles, typography, and responsive behavior. */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--background-color);
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    min-height: 100vh;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: break-word;
}

main {
    padding-top: var(--header-offset);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary-color);
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: var(--accent-color);
    color: #ffffff;
}

body.menu-locked {
    overflow: hidden;
}

@media (max-width: 639px) {
    body {
        padding-bottom: 4.75rem;
    }
}