/* Phoenix Ink — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #9dbe97;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6fa06e;
}

/* Selection */
::selection {
    background: #c6dbbf;
    color: #1a2f1e;
}

/* 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;
    }
}

/* Reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0) scale(1) translateX(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal[data-delay="50"] { transition-delay: 0.05s; }
    .reveal[data-delay="100"] { transition-delay: 0.1s; }
    .reveal[data-delay="150"] { transition-delay: 0.15s; }
    .reveal[data-delay="200"] { transition-delay: 0.2s; }
    .reveal[data-delay="250"] { transition-delay: 0.25s; }
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fdf9ed inset !important;
    -webkit-text-fill-color: #1a2f1e !important;
}
