@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kumbh+Sans:wght@100..900&family=Lexend+Deca:wght@100..900&family=Outfit:wght@100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Young+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kumbh+Sans:wght@100..900&family=Lexend+Deca:wght@100..900&family=Outfit:wght@100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Young+Serif&display=swap');
:root {
    --color-navy-950: hsl(233, 47%, 7%);
    --color-blue-950: hsl(244, 37%, 16%);
    --color-purple-500: hsl(277, 64%, 61%);
    --color-white: hsl(0, 0%, 100%);
    --color-white-75: hsla(0, 0%, 100%, 0.75);
    --color-white-60: hsla(0, 0%, 100%, 0.6);

    --font-body: 'Inter';
    --font-heading: 'Lexend Deca';
    --font-size-body: 15px;
    --weight-regular: 400;
    --weight-bold: 700;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-weight: var(--weight-regular);
    font-family: var(--font-body), serif;
    line-height: 1.25;
    font-size: var(--font-size-body);
}

body {
    padding: 1rem;
    background-color: var(--color-navy-950);
    display: flex;
    justify-content: center;
}

.white { color: var(--color-white); }
.gray { color: var(--color-white-60); }
.purple { color: var(--color-purple-500); }

main {
    background-color: var(--color-blue-950);
    border-radius: 0.5em;
    text-align: center;
    min-width: 152px;
    max-width: 320px;
}

.image {
    position: relative;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.image-desktop { display: none; }

.image-mobile {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    width: 100%;
    display: block;
}

.image .purple {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-purple-500);
    opacity: 0.5;
}

.regular-bold { font-weight: var(--weight-regular); }

.bolded {
    font-weight: var(--weight-bold);
    font-size: calc(1.5 * var(--font-size-body));
}

.upper-case { text-transform: uppercase; }

.content { padding: 2em 1em; }

.description .p,
.data .in-data { margin: 2em 0; }

.in-data { line-height: 2; }

@media screen and (min-width: 737px) {
    body {
        align-items: center;
        padding: 2rem;
        height: 100vh;
    }

    main {
        display: flex;
        flex-direction: row-reverse;
        text-align: start;
        min-width: 80%;
    }

    .image {
        border-top-right-radius: inherit;
        border-bottom-right-radius: inherit;
        display: flex;
        border-top-left-radius: 0;
    }

    .image-mobile { display: none; }

    .image-desktop {
        border-top-right-radius: inherit;
        border-bottom-right-radius: inherit;
        width: 100%;
        display: block;
    }

    .image .purple {
        border-top-right-radius: inherit;
        border-bottom-right-radius: inherit;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-purple-500);
        opacity: 0.5;
    }

    .content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .data {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .data .in-data { margin-right: 0.25em; }

    .attribution {
        text-align: center;
        align-self: center;
    }
}
