/* Custom styles that extend beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Subtle grain texture 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 256 256' 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: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f4;
}
::-webkit-scrollbar-thumb {
    background: #b9d4b9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fbf8f;
}

/* Selection color handled in head styles */

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #2f5a2f;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #mobile-overlay, .float-card, .float-card-delay, .float-card-delay-2 {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .float-card, .float-card-delay, .float-card-delay-2 {
        animation: none;
    }
    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}
