/* =========================================================
   LEAVE IT PLAYING
   Global Stylesheet
   ========================================================= */


/* =========================================================
   1. RESET
   ========================================================= */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: #080808;
    color: #f2f2f2;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

button:disabled {
    cursor: not-allowed;
}

a {
    color: inherit;
}


/* =========================================================
   2. APPLICATION SHELL
   ========================================================= */

.app {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% -15%,
            rgba(255, 255, 255, 0.055),
            transparent 38%
        ),
        #080808;

    isolation: isolate;
}


/* =========================================================
   3. HEADER
   ========================================================= */

.header {
    position: relative;

    z-index: 20;

    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    padding: 26px 32px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #f4f4f4;

    text-decoration: none;

    font-size: 17px;
    font-weight: 600;

    letter-spacing: -0.04em;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.logo:hover {
    opacity: 0.7;

    transform:
        translateY(-1px);
}

.header-actions {
    display: flex;

    align-items: center;

    gap: 5px;
}

.icon-button {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: transparent;

    color: #77777f;

    cursor: pointer;

    font-size: 20px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.icon-button:hover {
    background:
        rgba(255, 255, 255, 0.065);

    color: #fff;

    transform:
        translateY(-1px);
}

.icon-button:active {
    transform:
        scale(0.93);
}


/* =========================================================
   4. MAIN
   ========================================================= */

main {
    position: relative;

    z-index: 2;
}


/* =========================================================
   5. SCREEN SYSTEM
   ========================================================= */

.screen {
    width: 100%;

    min-height:
        calc(100vh - 92px);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.hidden {
    display: none !important;
}


/* =========================================================
   6. SHARED ELEMENTS
   ========================================================= */

/*
   These are shared by multiple screens.
   Screen-specific styling belongs in:
   
   landing.css
   vibe.css
   player.css
*/

.eyebrow {
    color: #66666e;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.2em;

    text-transform: uppercase;
}

.primary-button {
    min-height: 56px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 28px;

    padding:
        0 25px;

    border-radius: 999px;

    background: #f1f1f1;

    color: #090909;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.09em;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.primary-button:hover:not(:disabled) {
    background: #fff;

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.35);
}

.primary-button:active:not(:disabled) {
    transform:
        scale(0.97);
}

.primary-button:disabled {
    opacity: 0.35;
}

.button-arrow {
    font-size: 18px;

    font-weight: 400;
}


/* =========================================================
   7. BACK BUTTON
   ========================================================= */

.back-button {
    padding:
        8px 0;

    background: transparent;

    color: #66666e;

    font-size: 12px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-button:hover {
    color: #fff;

    transform:
        translateX(-3px);
}


/* =========================================================
   8. FOOTER
   ========================================================= */

.footer {
    position: relative;

    z-index: 5;

    padding:
        0 20px 30px;

    text-align: center;
}

.footer p {
    color: #3f3f47;

    font-size: 11px;

    letter-spacing: 0.04em;

    transition:
        color 0.25s ease;
}

.footer p:hover {
    color: #66666e;
}


/* =========================================================
   9. ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline:
        2px solid
        rgba(255, 255, 255, 0.5);

    outline-offset: 4px;
}


/* =========================================================
   10. RESPONSIVE GLOBAL HEADER
   ========================================================= */

@media (max-width: 700px) {

    .header {
        padding:
            22px 20px;
    }
}


@media (max-width: 480px) {

    .header {
        padding:
            17px 15px;
    }

    .logo {
        font-size: 15px;
    }

    .header-actions {
        gap: 1px;
    }

    .icon-button {
        width: 36px;
        height: 36px;

        font-size: 18px;
    }

    .primary-button {
        width: 100%;

        min-height: 54px;
    }
}


/* =========================================================
   11. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}