@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap');

html {
    font-size: 50%;
}

body {
    box-sizing: border-box;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.5rem;
    background-color: hsl(233, 47%, 7%);
    color: hsl(0, 0%, 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

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

.main {
    background-color: hsl(244, 38%, 16%);
    width: 30rem;
    border-radius: 1rem;
    overflow: hidden;
}

.photo {
    width: 100%;
    min-height: 22rem;
    display: block;
    position: relative;
    background-image: linear-gradient(rgba(170, 92, 219, 0.8), rgba(170, 92, 219, 0.8)), url(images/image-header-mobile.jpg);
    background-size: cover;
    background-position-x: center;
    background-blend-mode: multiply;
}

.content {
    padding: 3rem;
    text-align: center;
}

.heading {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
}

.highlight {
    color: hsl(277, 64%, 61%);
}

.paragraph {
    font-weight: 100;
    line-height: 1.5;
    color: hsla(0, 0%, 100%, 0.75);
    margin: 1rem 0 3rem;
}

.statistics {
    margin-top: 2rem;
    font-family: 'Inter', sans-serif;
}

.numbers:not(:last-child) {
    margin-bottom: 2rem;
}

.value {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.title {
    font-weight: 400;
    color: hsla(0, 0%, 100%, 0.6);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

@media only screen and (min-width: 52.25em) {
    html {
        font-size: 56.25%;
    }

    .main {
        width: 85rem;
        margin: 5rem auto;
        display: flex;
        justify-content: space-between;
    }

    .content {
        flex-basis: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 5rem;
        text-align: left;
    }

    .statistics {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        margin-top: 3rem;
    }

    .photo {
        flex-basis: 50%;
        order: 1;
        background-image: linear-gradient(rgba(170, 92, 219, 0.8), rgba(170, 92, 219, 0.8)), url(images/image-header-desktop.jpg);
    }

    .heading {
        font-size: 3rem;
    }

    .numbers:not(:last-child) {
        margin-bottom: 0;
        margin-right: 3rem;
    }

    .paragraph {
        margin: 3rem 5rem 3rem 0;
    }

}

@media only screen and (min-width: 75em) {
    html {
        font-size: 62.5%;
    }

    .main {
        width: 120rem;
    }

    .content {
        padding-right: 10rem;
    }

    .heading {
        font-size: 4rem;
    }

    .numbers:not(:last-child) {
        margin-bottom: 0;
        margin-right: 7rem;
    }
}