/* ==========================================
   CAREERS PAGE
   ========================================== */

html,
body {
    background: #111;
}

.careers-page {
    position: relative;

    width: 100%;

    padding:
        190px
        40px
        180px;

    background: #111;
    color: #fff;

    z-index: 5;
}


/* ==========================================
   INTRO
   ========================================== */

.careers-intro {
    width: 100%;
    max-width: 1400px;

    margin:
        0
        auto
        120px;
}

.careers-label {
    display: block;

    margin-bottom: 15px;

    color: #777;

    font-size: 0.85rem;
    font-weight: 500;

    letter-spacing: 0.25em;

    text-transform: uppercase;
}

.careers-intro h1 {
    margin: 0;

    color: #f2f2f2;

    font-size: clamp(
        3.5rem,
        7vw,
        7rem
    );

    font-weight: 500;
    line-height: 0.95;

    letter-spacing: -0.04em;
}

.careers-intro p {
    max-width: 650px;

    margin-top: 40px;

    color: #999;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* ==========================================
   JOB GRID
   ========================================== */

.jobs-grid {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 100px;
    row-gap: 80px;

    align-items: start;
}


/* ==========================================
   INDIVIDUAL JOB
   ========================================== */

.job {
    min-width: 0;

    padding-bottom: 35px;

    border-bottom:
        1px solid #333;
}

.job-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 35px;

    align-items: start;
}

.job-copy h2 {
    margin:
        0
        0
        14px;

    color: #f2f2f2;

    font-size: clamp(
        1.45rem,
        2vw,
        2rem
    );

    font-weight: 700;

    line-height: 1.1;

    text-transform: uppercase;
}

.job-copy p {
    max-width: 520px;

    color: #999;

    font-size: 0.95rem;
    line-height: 1.65;
}


/* ==========================================
   APPLY BUTTON
   ========================================== */

.apply-button {
    min-width: 135px;

    padding:
        18px
        20px;

    border:
        1px solid
        #777;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #f2f2f2;
    background: transparent;

    font-size: 0.8rem;
    font-weight: 500;

    letter-spacing: 0.15em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 250ms ease,
        color 250ms ease,
        border-color 250ms ease;
}

.apply-button:hover {
    background: #f2f2f2;
    color: #111;

    border-color: #f2f2f2;
}


/* ==========================================
   LEARN MORE
   ========================================== */

.learn-more {
    margin-top: 30px;

    padding: 0;
    border: 0;

    display: flex;
    align-items: center;

    gap: 15px;

    color: #aaa;
    background: transparent;

    font-family: inherit;

    font-size: 0.8rem;
    font-weight: 500;

    letter-spacing: 0.22em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 250ms ease;
}

.learn-more:hover {
    color: #fff;
}

.learn-icon {
    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #f2f2f2;

    font-size: 1.4rem;
    font-weight: 300;

    line-height: 1;

    transition:
        transform 400ms
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.job.open .learn-icon {
    transform: rotate(45deg);
}


/* ==========================================
   EXPANDING JOB DETAILS
   ========================================== */

.job-details {
    display: grid;

    grid-template-rows: 0fr;

    opacity: 0;

    transition:
        grid-template-rows
            500ms
            cubic-bezier(
                0.22,
                1,
                0.36,
                1
            ),
        opacity
            350ms
            ease;
}

.job-details-inner {
    overflow: hidden;
}

.job-details-inner p {
    max-width: 580px;

    margin-top: 20px;

    color: #888;

    font-size: 0.9rem;
    line-height: 1.7;
}

.job.open .job-details {
    grid-template-rows: 1fr;

    opacity: 1;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 950px) {

    .careers-page {
        padding:
            160px
            30px
            140px;
    }

    .careers-intro {
        margin-bottom: 90px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;

        row-gap: 55px;
    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 650px) {

    .careers-page {
        padding:
            140px
            20px
            110px;
    }

    .careers-intro {
        margin-bottom: 70px;
    }

    .careers-label {
        font-size: 0.75rem;
    }

    .careers-intro h1 {
        font-size: 3.2rem;
    }

    .careers-intro p {
        margin-top: 30px;

        font-size: 1rem;
    }

    .jobs-grid {
        row-gap: 45px;
    }

    .job {
        padding-bottom: 35px;
    }

    .job-main {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .apply-button {
        width: fit-content;
        min-width: 130px;

        padding:
            15px
            18px;
    }

    .learn-more {
        margin-top: 25px;
    }

}