/* Explain: Base reset and typography defaults with mobile refinements. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 72px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
a,
select,
input {
    cursor: pointer;
}

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

p {
    margin: 0;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0;
}

/* Mobile-only typography & spacing refinement */
@media (max-width: 640px) {
    main > section:not(:first-child) h2 {
        font-weight: 600 !important;
        line-height: 1.08 !important;
    }

    main > section:not(:first-child) > div {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }
}