*:root{
    --Red: hsl(0, 78%, 62%);
    --Cyan: hsl(180, 62%, 55%);
    --Orange: hsl(34, 97%, 64%);
    --Blue: hsl(212, 86%, 64%);

    --veryDarkBlue: hsl(234, 12%, 34%);
    --grayishBlue: hsl(229, 6%, 66%);
    --veryLightGray: hsl(0, 0%, 98%);
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: var(--veryLightGray);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: sans-serif;
}
h1,h2{
    color: var(--veryDarkBlue);
}
.title h2{
    font-weight: 300;
    margin-bottom: 7px;
    font-size: 1.6rem;
}
.title h1{
    font-size: 1.6rem;
    margin-bottom: 17px;
}
.title p{
    max-width: 54ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
    margin-bottom: 30px;
}
.projects{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 25px;
    position: relative;
}
.project{
    background-color: white;
    padding: 20px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    text-align: left;
    width: 300px;
    box-shadow: 0 7px 25px hsla(234, 12%, 34%, 0.263);
}
.project h2{
    font-size: 1.1rem;
    margin-bottom: 13px;
}
.project p{
    font-size: 0.72rem;
    max-width: 32ch;
    line-height: 17px;
    margin-bottom: 20px;
    color: var(--grayishBlue);
}
.project img{
    width: 50px;
    display: block;
    margin-left: auto;
}
/* individual styling */
.team{
    border-top: 4px solid var(--Red);
}
.supervisor{
    border-top: 4px solid var(--Cyan);
    transform: translateY(60%);
}
.karma{
    border-top: 4px solid var(--Orange);
    grid-column: 2/3;
}
.calculator{
    border-top: 4px solid var(--Blue);
    transform: translateY(60%);
}
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }

@media screen and (max-width:450px) {
    body{
        height: auto;
    }
    section{
        margin: 70px 0;
    }
    .title p{
        max-width: 34ch;
        font-size: 1rem;
        line-height: 23px;
        margin-top: 30px;
        color: var(--grayishBlue);
    }
    .projects{
        display: block;
    }
    .project{
        margin-bottom: 20px;
        transform: translate(0);
    }
}