    /* Custom styles beyond Tailwind */
    
    html {
        scroll-behavior: smooth;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Subtle grain overlay */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 9999;
        opacity: 0.015;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 6px;
    }
    ::-webkit-scrollbar-track {
        background: #fafaf5;
    }
    ::-webkit-scrollbar-thumb {
        background: #d4a8c8;
        border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #831443;
    }

    /* Selection color */
    ::selection {
        background: #fbcfe8;
        color: #500724;
    }

    /* Smooth image loading */
    img {
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    /* Focus styles */
    a:focus-visible,
    button:focus-visible {
        outline: 2px solid #831443;
        outline-offset: 2px;
        border-radius: 2px;
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
</style>
