/* Explain: Base reset, typography, and global page behavior. - */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: radial-gradient(circle at top left, var(--cream-deep) 0%, var(--background-color) 40%, var(--sage-soft) 100%);
    color: var(--text-color);
    font-family: var(--font-body);
}

body.menu-active,
body.overlay-active {
    overflow: hidden;
}

::selection {
    background: rgba(132, 158, 130, 0.28);
    color: var(--text-color);
}

h1,
h2,
h3,
.heading-font {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.015em;
}

p {
    line-height: 1.85;
    font-weight: 300;
}

:focus-visible {
    outline: 2px solid rgba(122, 139, 123, 0.4);
    outline-offset: 2px;
}

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

@media (max-width: 767px) {
    body {
        padding-bottom: 5.5rem;
    }
}
