
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root{
--White: hsl(0, 0%, 100%);
--Grey: hsl(0, 0%, 50%);
--Black: hsl(0, 0%, 7%);
--Yellow: hsl(47, 88%, 63%);
}
body{
    background-color: var(--Yellow);
    min-height: 100vh;
    display: grid;
    place-content: center;
    font-family: 'Figtree', sans-serif;
}
.card{
    display: block;
    padding: 20px 20px;
    margin: auto;
    color: var(--Black);
    background-color: var(--White);
    max-width: 400px;
    border-radius: 1rem;
    position: relative;
    outline: 1px solid #000;
}
.card::before{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--Black);
    position: absolute;
    top: 15px;
    right: -15px;
    border-radius: 1rem;
    z-index: -1;

}
img{
    width: 100%;
    display: block;
}
.card-header img{
    border-radius: 1rem;
}
.btn h1{
    background-color: var(--Yellow);
    padding: .5rem;
    width: min-content;
    border-radius: .5rem;
    margin-top: 1.5rem;
    font-weight: 800;
}
.card-body p{
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.card-body h2 a{
    color: var(--Black);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    margin-bottom: 2rem;
}
.card-body h2 a:hover{
    color: var(--Yellow);
}
.card-body a{
    color: var(--Grey);
    line-height: 1.5;
}
.card-footer{
    justify-content: space-between;
    display: flex;
}
.card-footer a{
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    margin-right: 228px;
}
.card-footer img{
    margin-top: 1rem;
    width: 30px;
}
@media (max-width: 375px) {
    .card-body h2 a{
        font-size: 1.25rem;
    }
}