/* ==========================================================================
   BASE STYLES
   Minimal resets, typography foundation, and app-level backgrounds.
   ========================================================================== */

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

html {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-base);
    background: linear-gradient(135deg, var(--bg-base), #0a0a0a 54%, #000000);
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) var(--bg-base);
    overscroll-behavior: none;
    color-scheme: dark;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-family-sans);
    color: var(--text-primary);
    background-color: var(--bg-base);
    background: linear-gradient(135deg, var(--bg-base), #0a0a0a 54%, #000000);
    overflow-x: hidden;
    overscroll-behavior: none;
    display: flex;
    flex-direction: column;
}

/* Scanline Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
            linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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