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

html {
    scroll-behavior: smooth;
    /* clip evita el desplazamiento lateral sin convertir la página en un
       contenedor que atrape el desplazamiento vertical. */
    overflow-x: clip;
    overflow-y: auto;
    height: auto;
    max-height: none;
    background: var(--background-color);
}

body {
    margin: 0;
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow-x: clip;
    overflow-y: visible;
    color: var(--text-color);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32rem),
        linear-gradient(180deg, var(--surface-color) 0%, var(--background-color) 34rem);
}

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

button,
a,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
