:root {
    --mesh-color-1: #0f172a;
    --mesh-color-2: #1e1b4b;
    --mesh-color-3: #020617;
}

body {
    background-color: #030303;
    @apply font-sans;
}

.mesh-gradient {
    background-color: var(--mesh-color-3);
    background-image:
        radial-gradient(at 0% 0%, hsla(222, 47%, 11%, 1) 0px, transparent 50%),
        radial-gradient(at 50% 0%, hsla(244, 49%, 15%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(222, 47%, 11%, 1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, hsla(244, 49%, 10%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(222, 47%, 11%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(244, 49%, 15%, 1) 0px, transparent 50%);
}

.slab-card {
    background: linear-gradient(145deg, #0e0e12, #050507);
    box-shadow:
        20px 20px 60px #010102,
        -5px -5px 20px rgba(255, 255, 255, 0.02);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slab-card:hover {
    transform: translateY(-4px);
    box-shadow:
        12px 20px 40px #010102,
        -2px -2px 10px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.glyph-glow {
    filter: drop-shadow(0 0 15px currentColor);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.slab-card:hover .glyph-glow {
    filter: drop-shadow(0 0 25px currentColor);
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

.text-balanced {
    text-wrap: balance;
}

.email-glow:hover span:first-child {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    color: rgb(255 255 255 / 1);
}

.email-glow:hover span:last-child {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
}

.slab-card-featured {
    background: linear-gradient(145deg, #1a0f0f, #0a0707);
    border-color: rgba(239, 68, 68, 0.2);
}

*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0 0 4px #030303;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .slab-card {
        transition: none !important;
    }

    .slab-card:hover {
        transform: none !important;
        box-shadow:
            20px 20px 60px #010102,
            -5px -5px 20px rgba(255, 255, 255, 0.02) !important;
    }

    .glyph-glow {
        transition: none !important;
        filter: drop-shadow(0 0 15px currentColor) !important;
        opacity: 0.8 !important;
        transform: none !important;
    }

    .slab-card:hover .glyph-glow {
        filter: drop-shadow(0 0 15px currentColor) !important;
        opacity: 0.8 !important;
        transform: none !important;
    }

    .email-glow:hover span:first-child {
        text-shadow: none !important;
    }

    .email-glow:hover span:last-child {
        background: transparent !important;
    }
}