.grain-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0b08;
}

::-webkit-scrollbar-thumb {
    background: #2e2925;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7d6996;
}

@keyframes teaserFadeIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.teaser-text-fade {
    opacity: 0;
    animation: teaserFadeIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

/* Latest page: links inside post text */
.post-text a {
    color: #b8d4e8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-text a:hover {
    color: #7d6996;
}

/* Accessibility: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .teaser-text-fade {
        opacity: 1;
        animation: none;
    }

    .animate-pulse {
        animation: none;
    }
}