/* SMT Group Case Study — Custom CSS
   Tailwind utility classes are loaded from the CDN in SMT.html.
*/

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-serif {
    font-family: 'Instrument Serif', serif;
}

.bg-warm-white {
    background-color: #FAF9F6;
}

.text-charcoal {
    color: #1C1C1A;
}

.bg-charcoal {
    background-color: #1C1C1A;
}

.selection\:bg-charcoal::selection {
    background-color: #1C1C1A;
}

.selection\:text-warm-white::selection {
    color: #FAF9F6;
}

/* WebKit scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #CFCFC8;
    border-radius: 3px;
}

/* Reading progress */
#progress-bar {
    transform-origin: left center;
}

/* Subtle editorial polish */
.editorial-shadow {
    box-shadow: 0 20px 40px -15px rgba(28, 28, 26, 0.08);
}

/* Keyboard accessibility */
:focus-visible {
    outline: 2px solid #1C1C1A;
    outline-offset: 3px;
}

/* Prevent horizontal overflow from decorative elements */
body {
    overflow-x: hidden;
}

/* Reduced motion */
@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;
    }
}

/* Small-screen refinements */
@media (max-width: 640px) {
    #mobile-menu {
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
}
