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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--purple-primary);
}

code {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

::selection {
    background: var(--purple-primary);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInFast {
    from { opacity: 0; }
    to { opacity: 1; }
}
