/* ══ RESET & BASE ══ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-color: var(--accent-dim) var(--bg-secondary);
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

/* ══ NOISE TEXTURE OVERLAY ══ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ══ LINKS & SELECTION ══ */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

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

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

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

/* ══ TYPOGRAPHY ══ */
h1, h2, h3, h4 {
    font-family: var(--font-mono);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.accent {
    color: var(--accent);
}
