/* Explain: Site-wide styles including layout, colors, and typography. */
* {
    box-sizing: border-box;
}

html {
    background: var(--footer-bg);
    color: var(--text-color);
    scroll-padding-top: 92px;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-y: none;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-y: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(201, 162, 39, 0.22), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(27, 42, 74, 0.16), transparent 24rem),
        radial-gradient(circle at 72% 92%, rgba(184, 145, 47, 0.14), transparent 30rem),
        var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
}

main {
    flex: 1 0 auto;
}

body > footer {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 0;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

button,
a,
select {
    cursor: pointer;
}

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

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