/* Explain: Base reset, typography, and accessibility styles for the site. - */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(163, 177, 138, 0.25), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(88, 129, 87, 0.15), transparent 24rem),
        var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
}

button,
a,
select {
    cursor: pointer;
}

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

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

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 24px;
    z-index: 1000;
    font-weight: bold;
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility States */
html.a11y-large-text {
    font-size: 115% !important;
}

html.a11y-grayscale {
    filter: grayscale(100%) !important;
}

html.a11y-high-contrast {
    --background-color: #000000 !important;
    --text-color: #ffffff !important;
    --surface-color: #111111 !important;
    --text-muted: #dddddd !important;
    --primary-color: #ffff00 !important;
    --accent-color: #00ffff !important;
    --glass-bg: #000000 !important;
    --border-color: #ffffff !important;
    --glass-border: #555555 !important;
    --footer-bg: #000000 !important;
}

html.a11y-highlight-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
    background-color: rgba(255, 255, 0, 0.15) !important;
    color: var(--accent-color) !important;
}

.a11y-action-btn.is-active {
    border-inline-start: 4px solid var(--accent-color) !important;
}
