/* =========================================================
   🧼 reset.css — Modern CSS Reset + Variables (VProger Edition)
   ---------------------------------------------------------
   Совместим с TailwindCSS / SCSS / Vite / Laravel Mix
   © 2025 Андрей Викулов (VProger)
   ========================================================= */

/* --- 1. Box sizing и базовая типографика --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    line-height: 1.5;
    font-family: system-ui, -apple-system, "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
    color: var(--text);
}

/* --- 2. Элементы контента --- */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    line-height: 1.2;
}

/* --- 3. Переменные и темы --- */
:root {
    --bg: #0e0f12;
    --text: #eaeaea;
    --accent: #00c6ff;
    --card-bg: #16181d;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 0 20px rgba(0, 198, 255, 0.1);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f9fafb;
        --text: #111;
        --accent: #0072ff;
        --card-bg: #fff;
        --border: rgba(0, 0, 0, 0.1);
        --shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    }
}

/* --- 4. Accessibility / QoL --- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* --- 5. Убираем tap-highlight на мобильных --- */
* {
    -webkit-tap-highlight-color: transparent;
}
