/* Explain: Base styles, typography, focus management, and background pattern. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-gradient, var(--background-color));
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    position: relative;
}

body.has-mobile-sticky {
    padding-bottom: 0;
}

h1, h2, h3, .brand-mark {
    font-family: var(--font-heading);
    font-weight: 500;
}

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

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

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

@media (max-width: 767px) {
    body.has-mobile-sticky {
        padding-bottom: 96px;
    }
}