/* === Textures: Background, Vignette, Atmosphere === */

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

/* Radial vignette overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.4) 100%);
}

/* Light mode: softer vignette, warmer grain */
[data-mode="light"] body::before {
    opacity: 0.025;
}
[data-mode="light"] body::after {
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.08) 100%);
}
