/* Explain: Base styles, typography, and global color variables. */
* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 8%, rgba(30, 58, 95, 0.1), transparent 30rem),
        radial-gradient(circle at 92% 4%, rgba(200, 164, 92, 0.1), transparent 28rem),
        var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
a,
select,
input[type="submit"] {
    cursor: pointer;
}

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

h1,
h2,
h3 {
    text-wrap: balance;
}

h1 {
    letter-spacing: -0.03em;
}

h2 {
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
}

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

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

@media (min-width: 1024px) {
    html {
        scroll-padding-top: 180px;
    }
}