// _reset.scss
// Gumi.css v1.0.0 - CSS Reset

// Box sizing
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

// HTML base
html {
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

// Custom Scrollbar
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gumi-surface);
    border-radius: var(--gumi-radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--gumi-muted);
    border-radius: var(--gumi-radius-full);
    border: 3px solid var(--gumi-surface);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gumi-muted-dark);
}

// Firefox
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gumi-muted) var(--gumi-surface);
}

// Respect user motion preferences
@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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

// Body
body {
    font-family: var(--gumi-font-sans);
    background-color: var(--gumi-bg-primary);
    color: var(--gumi-foreground);
    font-weight: var(--gumi-font-normal);
    line-height: var(--gumi-leading-normal);
    min-height: 100vh;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

// Focus styles
:focus {
    outline: 2px solid var(--gumi-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--gumi-primary);
    outline-offset: 2px;
}

// Screen reader only
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

// Print styles
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header,
    .footer,
    .no-print {
        display: none;
    }
}