/**
 * DECYON Base Styles
 * ==================
 * Reset, typography, and global element styles.
 */

/* =============================================
   CSS RESET
   ============================================= */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: var(--leading-normal);
    overflow-x: hidden;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

/* =============================================
   TYPOGRAPHY BASE
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-8xl); }
h2 { font-size: var(--text-6xl); }
h3 { font-size: var(--text-5xl); }
h4 { font-size: var(--text-3xl); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-lg); }

p {
    line-height: var(--leading-loose);
}

/* =============================================
   LINKS
   ============================================= */

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

/* =============================================
   SELECTION
   ============================================= */

::selection {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
}

/* =============================================
   FOCUS STYLES
   ============================================= */

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* =============================================
   SCROLLBAR (WebKit)
   ============================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
