/* MILINSKY — base styles */
:root {
    --base03: #002b36;
    --base02: #073642;
    --base01: #586e75;
    --base00: #657b83;
    --base0: #839496;
    --base1: #93a1a1;
    --base2: #eee8d5;
    --base3: #fdf6e3;
    --solar-yellow: #b58900;
    --solar-orange: #cb4b16;
    --solar-red: #dc322f;
    --solar-magenta: #d33682;
    --solar-violet: #6c71c4;
    --solar-blue: #268bd2;
    --solar-cyan: #2aa198;
    --solar-green: #859900;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --header-height: 72px;
    --container-max: 1200px;
    --container-padding: 1.5rem;
    --z-header: 1000;
    --z-effects: 5000;
    --z-scanlines: 9000;
    --z-ee-base: 10000;
    --z-ee-toast: 10001;
    --z-ee-modal: 10002;
    --z-ee-top: 10003;
    --z-scroll-status: 50;
    --z-card-scanline: 5;
    --z-hero-content: 2;
    --z-ee-internal: 1;
    --z-ee-content: 2;
    --scroll-progress-height: 20px;
}

::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(var(--glow-color), 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--glow-color), 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--glow-color), 0.3) var(--bg);
}

*,

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    padding-bottom: var(--scroll-progress-height);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        var(--scanline-color) 0px,
        var(--scanline-color) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: calc(var(--z-scanlines) + 2);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, var(--vignette-color) 100%);
    pointer-events: none;
    z-index: calc(var(--z-scanlines) + 1);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: var(--noise-opacity);
    pointer-events: none;
    z-index: var(--z-scanlines);
}

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

ul {
    list-style: none;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

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

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --container-padding: 1.25rem;
    }

    body::after {
        display: none;
    }

    .noise-overlay {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }
}

@media (min-width: 1440px) {
    :root {
        --container-max: 1320px;
    }
}
