:root {
    --BORDER-RADIUS: 10px;
    --GAP: 1rem;
    --YELLOW-500: hsl(39, 100%, 71%);
    --YELLOW-100: hsl(31, 66%, 93%);
    --PURPLE-500: hsl(256, 67%, 59%);
}

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

img {
    display: block;
}

body {
    background-color: hsl(0, 0%, 100%);
    font-family: 'DM sans', sans-serif;
    padding: 1.5rem 0.8rem;
    height: 100%;
}

main {
    display: grid;
    justify-content: center;
}

p {
    font-size: 18px;
}

.review-section,
.social-media,
.posting-schedule,
.schedule-posts,
.grow-followers,
.audience,
.create-post,
.ai-content {
    border-radius: var(--BORDER-RADIUS);
    display: flex;
    flex-flow: column nowrap;
    margin-top: var(--GAP);
    width: 350px;
}

h2,
p {
    font-weight: 400;
    line-height: 1.2rem;
}

.review-section {
    background-color: var(--PURPLE-500);
    padding: 2rem;
    color: #fff;
    text-align: center;
    align-items: center;
}

.review-section>h1 {
    font-size: 3.125rem;
    font-weight: 400;
    line-height: 3rem;
}

.review-section>h1>span {
    color: hsl(39, 100%, 71%);
}

.review-section>img {
    width: 50%;
    height: auto;
    margin-top: var(--GAP);
}

.review-section>p {
    color: var(--YELLOW-100);
}

.social-media {
    padding: 1rem 0.8rem;
}

.posting-schedule {
    background-color: var(--YELLOW-500);
    padding: 1rem 0.8rem 0;
}

.posting-schedule>img {
    width: 60%;
    height: auto;
    margin-top: var(--GAP);
}

.schedule-posts {
    align-items: center;
    padding: 1rem 0.8rem;
    background-color: hsl(254, 88%, 90%);
}

.schedule-posts>img {
    width: 100%;
    height: auto;
    margin-top: var(--GAP);
}

.schedule-posts>h2,
.schedule-posts>p,
.grow-followers>h2 {
    text-align: center;
}

.schedule-posts>p {
    margin-top: var(--GAP);
}

.grow-followers {
    background-color: var(--PURPLE-500);
    padding: var(--GAP);
    align-items: center;
    color: #fff;
}

.grow-followers>img {
    width: 70%;
    height: auto;
}

.grow-followers>h2 {
    margin-top: 2rem;
}

.audience,
.create-post {
    padding: 1.5rem;
}

.audience>h2 {
    font-size: 45px;
    margin-bottom: var(--GAP);
}

.audience>img {
    width: 50%;
    height: auto;
    margin-top: var(--GAP);
}

.create-post {
    background-color: var(--YELLOW-100);
}

.create-post>h2>i {
    color: var(--PURPLE-500);
}

.create-post>img {
    margin-top: var(--GAP);
    width: 50%;
    height: auto;
}

.ai-content {
    background-color: var(--YELLOW-500);
    padding: 1.2rem 1rem;
}

.ai-content>img {
    margin-top: var(--GAP);
    width: 60%;
    height: auto;
}


.attribution {
    margin-top: var(--GAP);
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

@media (min-width:1440px) {

    body {
        height: 100vh;
    }

    main {
        display: grid;
        grid-template-columns: repeat(4, minmax(0,1fr));
        grid-auto-rows: auto;
        grid-template-areas:
            "shared-rows social social schedule"
            "shared-rows social social schedule"
            "shared-rows manage maintain schedule"
            "shared-rows audience grow grow"
        ;
        gap: var(--GAP);
        width: 53rem;
        margin: 0 auto;
        justify-content: center;

    }

    .review-section,
    .social-media,
    .posting-schedule,
    .schedule-posts,
    .grow-followers,
    .audience,
    .create-post,
    .ai-content {
        width: 100%;
    }

    .shared-rows {
        height: 100%;
        grid-area: shared-rows;
        display: flex;
        flex-flow: column nowrap;
        
    }

    .ai-content {
        height: 100%;
        font-size: 1.5rem;
        justify-content: space-between;
    }

    .ai-content > h2 {
        line-height: 1.7rem;
    }

    .ai-content > img {
        width: 100%;
    }

    .audience {
        grid-area: audience;
        justify-content: center;
        align-items: center;
    }

    .create-post {
        justify-content: center;
        height: 100%;
    }

    .grow-followers {
        grid-area: grow;
        flex-flow: row nowrap;
        align-items: center;
        gap: var(--GAP);
        
    }

    .grow-followers > img {
        width: 40%;
    }

    .grow-followers > h2 {
        width: 100%;
        font-size: 2rem;
        line-height: 2rem;
    }

    .posting-schedule {
        grid-area: maintain;
        overflow: hidden;
        height: 11rem;
    }

    .posting-schedule > img {
        width: 100%;
    }

    .review-section {
        grid-area: social;
    }

    .schedule-posts {
        grid-area: schedule;
        align-items: flex-start;
        padding: 2rem;
        padding-right: 0;
        overflow: hidden;
    }

    .schedule-posts > h2, .schedule-posts > p, .grow-followers > h2 {
        text-align: left;
    }

    .schedule-posts > img {
        width: 17rem;
        
    }

    .social-media {
        grid-area: manage;
    }

}