:root {
    color-scheme: light;
}

html {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f8fafc;
}

html.dark {
    background-color: #020617;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 55%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 45%),
        var(--body-bg, transparent);
    color: #0f172a;
}

html.dark body {
    color: #e2e8f0;
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 60%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 50%),
        #020617;
}

nav.nav-hidden {
    transform: translateY(-110%);
}

.mobile-menu {
    transform-origin: top;
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
}

.mobile-menu.open ul {
    display: flex;
}

.mobile-menu.open .mt-4 {
    display: flex;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: flex !important;
        opacity: 1 !important;
    }
}
