/* ====================================================================
   Modern CSS Reset
   ==================================================================== */

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

* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    background: var(--cl-bg);
    color: var(--cl-fg);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    overflow-x: hidden;
    transition: background var(--t-slow) var(--ease-out), color var(--t-slow) var(--ease-out);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-base) var(--ease-out);
}

ul, ol { list-style: none; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

::selection {
    background: var(--cl-yellow);
    color: var(--cl-black);
}

/* Hide scrollbar visual but keep functional */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--cl-bg); }
::-webkit-scrollbar-thumb {
    background: var(--cl-grey-700);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--cl-yellow); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Visibility utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hide-mobile { display: inline; }
@media (max-width: 768px) {
    .hide-mobile { display: none; }
}
