/**
 * ==============================================================================
 * AZ LEARN WEB PORTAL — BASE SYSTEM (css/base.css)
 * ==============================================================================
 */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--ground);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Accessible high-contrast focus rings */
:focus-visible {
    outline: 2px solid var(--foil-bright);
    outline-offset: 2px;
}

a {
    color: var(--foil-bright);
    text-decoration: none;
    transition: color var(--duration-fast, 150ms) ease;
}

a:hover {
    color: var(--foil);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Custom minimal scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--ground);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    border: 2px solid var(--ground);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--surface-4);
}
