:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

.nav-link[aria-current] {
    color: #3b82f6;
    font-weight: 600;
}

html.dark .nav-link[aria-current] {
    color: #fff;
}

img[loading="lazy"] {
    background-color: rgba(148, 163, 184, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
