/* ============================================
   MK-DWELL - Minimal Styles
   An explorable sound space
   ============================================ */

:root {
    --dwell-bg: #0a0a0a;
    --dwell-text: #1a1a1a;
    --dwell-text-hover: #333;
    --dwell-text-active: #666;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--dwell-bg);
    font-family: 'JetBrains Mono', monospace;
    cursor: none;
}

/* Entry Screen */
.entry-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dwell-bg);
    z-index: 100;
    transition: opacity 1s ease-out;
    cursor: default;
}

.entry-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.entry-content {
    text-align: center;
}

.entry-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: #555;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

.entry-button {
    background: none;
    border: 1px solid #333;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    color: #555;
    letter-spacing: 0.15em;
    cursor: pointer;
    padding: 0.8rem 2rem;
    transition: all 0.2s ease;
}

.entry-button:hover {
    color: #888;
    border-color: #555;
}

.entry-button:active {
    color: #aaa;
}

.entry-hint {
    margin-top: 2rem;
    font-size: 0.65rem;
    font-weight: 300;
    color: #555;
    letter-spacing: 0.15em;
}

.entry-credit {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.6rem;
    font-weight: 300;
    color: #555;
}

.entry-credit .separator {
    margin: 0 0.08em;
}

/* Sound Space */
.sound-space {
    position: fixed;
    inset: 0;
    background: var(--dwell-bg);
    transition: background-color 2.5s ease-out;
}

.sound-space.hidden {
    display: none;
}

/* Hint text */
.space-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--dwell-text);
    letter-spacing: 0.2em;
    opacity: 0;
    transition: opacity 2s ease;
    pointer-events: none;
}

.space-hint.visible {
    opacity: 1;
}

.space-hint.fade {
    opacity: 0;
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--dwell-text);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.1s ease;
    z-index: 1000;
    mix-blend-mode: difference;
}

.cursor.hidden {
    opacity: 0;
}

/* Touch indicator */
@media (hover: none) {
    html, body {
        cursor: default;
    }

    .cursor {
        display: none;
    }
}

/* Back link */
.back-link {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: 0.6rem 1rem;
    border: 1px solid #333;
    border-radius: 2px;
    z-index: 200;
    transition: all 0.2s ease;
    cursor: pointer;
}

.back-link:hover {
    color: #888;
    border-color: #555;
}

/* Prevent text selection */
.entry-screen, .sound-space {
    user-select: none;
    -webkit-user-select: none;
}
