/* Explain: Base reset and playful typography defaults with subtle background gradients and accessibility overrides. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    overflow-x: hidden;
            background:
            radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--secondary-color) 90%, transparent), transparent 35rem),
            radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--primary-color) 80%, transparent), transparent 40rem),
            linear-gradient(180deg, color-mix(in srgb, var(--secondary-color) 15%, var(--cream-color)), color-mix(in srgb, var(--primary-color) 25%, var(--cream-color)) 100%);
}

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

button,
a {
    cursor: pointer;
}

input,
button,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent-color) 72%, transparent);
    outline-offset: 3px;
}

/* Accessibility Overrides */
html.a11y-grayscale {
    filter: grayscale(100%) !important;
}
html.a11y-high-contrast {
    filter: contrast(160%) saturate(120%) !important;
}
html.a11y-negative {
    filter: invert(100%) hue-rotate(180deg) !important;
}
html.a11y-light-bg body, 
html.a11y-light-bg main, 
html.a11y-light-bg section, 
html.a11y-light-bg div,
html.a11y-light-bg article,
html.a11y-light-bg aside,
html.a11y-light-bg nav,
html.a11y-light-bg header,
html.a11y-light-bg footer {
    background-color: #ffffff !important;
    color: #000000 !important;
}
html.a11y-light-bg p, 
html.a11y-light-bg h1, 
html.a11y-light-bg h2, 
html.a11y-light-bg h3, 
html.a11y-light-bg h4, 
html.a11y-light-bg span,
html.a11y-light-bg a,
html.a11y-light-bg label {
    color: #000000 !important;
}
html.a11y-links-underline a {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    font-weight: 900 !important;
}
html.a11y-readable-font, html.a11y-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}
