/* Explain: Base reset and typography defaults for the website. */
* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    padding-bottom: 5.75rem;
    background:
        radial-gradient(circle at 10% 6%, rgba(0, 217, 255, 0.10), transparent 28rem),
        radial-gradient(circle at 86% 4%, rgba(215, 166, 66, 0.08), transparent 24rem),
        linear-gradient(180deg, #050608 0%, #080B10 42%, #050608 100%);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.035em;
}

h1 {
    line-height: 0.98;
}

h2 {
    line-height: 1.08;
}

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

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

::selection {
    background: var(--accent-color);
    color: var(--button-text-color);
}

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

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

@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}