/* Base styles and custom utilities */
:root {
    --color-charcoal-900: #1C1C27;
    --color-charcoal-800: #292938;
    --color-coral-500: #FF6B6B;
    --color-coral-600: #E85555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile menu transitions */
#mobileMenu.open {
    pointer-events: auto;
    opacity: 1;
}

#mobileMenu.open #mobileMenuPanel {
    transform: translateX(0);
}

/* Header scroll state */
#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(28, 28, 39, 0.08);
}

/* Smooth focus outlines */
:focus-visible {
    outline: 2px solid var(--color-coral-500);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--color-coral-500);
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}
