/* Custom styles — extends Tailwind utilities */

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

/* Subtle grain texture overlay on cream sections */
.bg-cream-50::before,
.bg-cream-100::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    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)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FEFCF8;
}
::-webkit-scrollbar-thumb {
    background: #065F46;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Print styles */
@media print {
    nav, .float-1, .float-2, .float-3 { display: none; }
    body { background: white; color: black; }
    section { page-break-inside: avoid; }
}
