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

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

body {
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

[x-cloak] {
    display: none !important;
}

::selection {
    background: var(--primary-color);
    color: var(--surface-color);
}

/* Accessibility Utilities */
html.a11y-text-1 { font-size: 18px !important; }
html.a11y-text-2 { font-size: 20px !important; }
html.a11y-text-3 { font-size: 22px !important; }

html.a11y-high-contrast {
    --background-color: #000000 !important;
    --surface-color: #111111 !important;
    --text-color: #ffffff !important;
    --text-muted: #dddddd !important;
    --primary-color: #ffff00 !important;
    --secondary-color: #ffffff !important;
    --border-color: #ffff00 !important;
}

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

html.a11y-highlight-links a, html.a11y-highlight-links button {
    text-decoration: underline !important;
    text-decoration-color: var(--primary-color) !important;
    text-decoration-thickness: 3px !important;
}

html.a11y-readable-font {
    --font-heading: Arial, Helvetica, sans-serif !important;
    --font-body: Arial, Helvetica, sans-serif !important;
}
html.a11y-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}