/* Explain: Base HTML reset, typography, and global site styles. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 120px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(240, 122, 32, 0.1), transparent 26rem),
        radial-gradient(circle at 6% 6%, rgba(29, 63, 145, 0.1), transparent 24rem),
        var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0;
}

p {
    margin: 0;
}

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

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

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

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

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