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

:root {
    --black: #121212;
    --dark-blue: #19202D;
    --white: #FFFFFF;
    --grey-100: #E7EAEE;
    --grey-200: #CFCFCF;
    --grey-400: #676D7E;
    --grey-500: #48556A;
    --purple-50: #EDE4FF;
    --purple-300: #A775F1;
    --purple-500: #733FC8;

    --spacing-500: 2.5rem;
    --spacing-400: 2rem;
    --spacing-300: 1.5rem;
    --spacing-200: 1rem;
    --spacing-100: .5rem;
}

.text-preset-1 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.25rem;
    line-height: 120%;
    letter-spacing: 0;
    font-weight: 600;
    font-style: normal;
}

.text-preset-2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: .813rem;
    line-height: 110%;
    letter-spacing: 0;
    font-weight: 500;
    font-style: normal;
}

.text-preset-3 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: .813rem;
    line-height: 140%;
    letter-spacing: 0;
    font-weight: 500;
    font-style: normal;
}

.text-preset-4 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: .688rem;
    line-height: 110%;
    letter-spacing: 0;
    font-weight: 500;
    font-style: normal;
}

.text--purple-50 {
    color: var(--purple-50);
}

.text--grey-100 {
    color: var(--grey-100);
}

.text--grey-200 {
    color: var(--grey-200);
}

.text--grey-400 {
    color: var(--grey-400);
}

.text--grey-500 {
    color: var(--grey-500);
}

body {
    background-color: #F6F5F6;
}

main {
    width: 80%;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-400);
}

.card {
    padding: var(--spacing-400);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-200);
    box-shadow: rgba(72, 85, 106, .2) 40px 60px 50px ;
}

.card--purple {
    background-color: var(--purple-500);
}

.card--grey-500 {
    background-color: var(--grey-500);
}

.card--white {
    background-color: var(--white);
}

.card--dark-blue {
    background-color: var(--dark-blue);
}

.user-pic {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
}

.user-pic--border {
    border: var(--purple-300) solid 2px;
}

.user {
    display: flex;  
    align-items: center;
    gap: var(--spacing-200);
}

.quotation {
    display: none;
}

@media (min-width: 600px) {
    .quotation {
        display: inline;
        position: absolute;
        z-index: 1;
        left: 65%;
        
    }

    .text-preset-1 {
        z-index: 2;
    }

    .card {
        padding-top: 0;
    }

    .user {
        margin-top: var(--spacing-400);
    }

    main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: min-content;
        row-gap: var(--spacing-400);
        column-gap: var(--spacing-400);
    }

    main > div:first-child {
        grid-column: 1 / span 2;
        position: relative
    }

    main > div:nth-child(4) {
        grid-column: 1 / span 2;
    }

    main > div:nth-child(5) {
        grid-column: 1 / span 2;
    }
}

@media (min-width: 900px) {

    body {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    main {
        grid-template-columns: repeat(4, 1fr);
        margin-top: var(--spacing-300);
        margin-bottom: var(--spacing-300);
    }

    main > div:nth-child(5) {
        grid-column: 4;
        grid-row: 1 / span 2;
    }

    main > div:nth-child(4) {
        grid-column: 2 / span 2;
        grid-row: 2;
    }

    .text-preset-4 {
        font-family: "Barlow Condensed", sans-serif;
        font-size: .813rem;
        line-height: 140%;
        letter-spacing: 0;
        font-weight: 500;
        font-style: normal;
    }

}