/* Custom styles to complement Tailwind */

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

/* Hero asymmetric grid adjustments */
@media (max-width: 1023px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }
    #hero .pr-8 {
        padding-right: 0;
    }
}

/* Image hover parallax feel */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Selection color */
::selection {
    background: #c44e2a;
    color: #fff;
}

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

/* Mobile menu animation */
#bar1 {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#bar2 {
    transition: opacity 0.3s ease;
}
#bar3 {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-toggle.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#menu-toggle.active #bar2 {
    opacity: 0;
}
#menu-toggle.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group img {
        transition: none;
    }
}
