/* || Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background-color: var(--white);
}

/* Colours */

:root {
    --white: #fffefe;
    --grey: #f3f4f6;
    --slate-grey: #667082;
    --black: #000;
    --blue: #263fa9;
    --green: #86e7d4;
    --light-blue: #9dc4f8;
    --purple: #c1b6f8;
    --pink: #edacd2;
    --yellow: #f8d8b0;
}

/* Fonts */

@font-face {
    font-family: "Outfit";
    src: url(./fonts/outfit-v15-latin-regular.woff2) format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Outfit";
    src: url(./fonts/outfit-v15-latin-500.woff2) format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Outfit";
    src: url(./fonts/outfit-v15-latin-600.woff2) format("woff2");
    font-display: swap;
    font-style: normal;
    font-size: 600;
}

/* || Main Styles */

.grid-container {
    padding: 4.5rem 1.5rem;
    font-family: "Outfit", Arial, Helvetica, sans-serif;
}

.profile-card,
.members-card {
    height: 25rem;
    width: 100%;
}

h1 {
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--blue);
}

.intro-card {
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    background-image: url(./resources/Background_decor.svg);
    top: 0;
    left: 0;
    background-size: contain;
    min-height: 20rem;
}

.intro-header {
    font-weight: 500;
    font-size: 2.5rem;
    color: #000;
    margin-block-end: 1rem;
}

.intro-text {
    font-weight: 400;
    color: var(--slate-grey);
    line-height: 150%;
    font-size: clamp(1rem, 5vw, 1.2rem);
}

.profile-card {
    position: relative;
    display: flex;
    justify-content: end;
    display: flex;
    justify-content: start;
    align-items: end;
}

.profile-img {
    position: absolute;
    bottom: 0;
    left: 0;
    height: auto;
    width: 100%;
}

.gradient-img {
    position: absolute;
    width: 100%;
}

.card-text-container {
    width: 100%;
    z-index: 2;
    padding: 1.25rem;
}

h2,
.job-title {
    color: var(--white);
}

.job-title {
    font-weight: 400;
}

.intro-card {
    padding: 2rem;
}

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

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

.three {
    background-color: var(--pink);
}

.four {
    background-color: var(--light-blue);
}

.five {
    background-color: var(--yellow);
}

.six {
    background-color: var(--green);
}

.members-card {
    background-color: var(--grey);
    display: flex;
    justify-content: start;
    align-items: end;
    padding: 1.5rem;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

button {
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--slate-grey);
    transition: color 0.2s ease-in-out;
}

button:hover {
    color: var(--blue);
}

/* || Media Queries */

@media screen and (min-width: 64rem) {
    .grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .intro-card {
        grid-row: 1;
        grid-column: span 3;
    }

    .intro-text {
        width: 50%;
    }

    .seven {
        grid-column: 1;
        grid-row: 3;
    }
}

@media screen and (min-width: 90rem) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        padding: 2rem;
    }

    .intro-card {
        grid-column: span 2;
    }

    .intro-text {
        width: 70%;
    }

    .seven {
        grid-column: 1;
        grid-row: 2;
    }
}
