/* base.css — Reset, body, image protection, accessibility utilities, cursor structure */

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

body {
    font-family: var(--font-main);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 14px;

    @media (max-width: 768px) {
        display: flex;
        flex-direction: column;
    }
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* --- SKIP LINK (a11y) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 99999;
    padding: 8px 16px;
    background: var(--bg-color);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    font-family: var(--font-main);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.skip-link:focus-visible {
    top: 0;
}

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

/* --- CURSOR (position only — visual in theme) --- */
.cursor-trail,
.cursor-main {
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);

    @media (pointer: coarse), (max-width: 768px) {
        display: none !important;
    }
}

.cursor-trail {
    width: 8px;
    height: 18px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.cursor-main {
    width: 8px;
    height: 18px;
    z-index: 10001;
}

@media (pointer: coarse), (max-width: 768px) {
    body, a, button, .log-item {
        cursor: auto !important;
    }
}
