/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--color-light);
    color: var(--color-dark);
    cursor: default;
    overflow-x: hidden;
}

/* Only hide cursor when custom cursor is successfully initialized */
body.custom-cursor-enabled {
    cursor: none;
}

/* Focus styles for accessibility */
*:focus {
    outline: 3px solid var(--color-sand);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--color-sand);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 10000;
    background: var(--color-sand);
    color: var(--color-dark);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 20px;
}

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

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-sand);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-taupe);
}

/* Text Selection */
::selection {
    background: var(--color-light);
    color: var(--color-dark);
    mix-blend-mode: difference;
}

/* Video */
.video-cover {
    object-fit: cover;
    object-position: center center;
}

/* Accessibility: Improved contrast for low-opacity text */
.low-opacity-text {
    opacity: 0.4 !important;
    /* Improved from 0.2 for better readability */
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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