@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

:root{
    --Yellow: hsl(47, 88%, 63%);

    --White: hsl(0, 0%, 100%);
    
    --Gray-500: hsl(0, 0%, 42%);
    --Gray-950: hsl(0, 0%, 7%); 
}

*, ::after, ::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body{
    font-family: "Figtree", serif;
    font-size: 16px;
    background: var(--Yellow); 
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}
.card{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 0 auto;
}

.contenido__card{
    max-width: 430px;
    border: 2px solid var(--Gray-950);
    padding: 25px;
    background: var(--White);
    border-radius: 25px;
    box-shadow: 8px 8px 4px rgba(0, 0, 0, 1.5);
    
}

.img{
    width: 100%;
    display: block;
    border-radius: 20px;
}

.contenido__cta{
    display: inline-block;
    margin-top: 28px;
}

.cta{
    font-family: "Figtree", serif;
    padding: 7px 15px;
    font-weight: bold;
    background: var(--Yellow);
    outline: none;
    border: none;
    border-radius: 5px;
}

.card__date{
    margin: 18px 0;
}

.card__titulo{
    font-weight: 800;
    font-size: 1.6rem;
}

.card__titulo:hover{
    color: var(--Yellow);
}

.card__parrafo{
    margin: 20px 0;
    font-size: 1.2rem;
    color: var(--Gray-500);
    line-height: 1.4;
}

.card__picture{
    display: inline-flex;
    align-items: center;    
}

.avatar{
    width: 32px;
}

.card__name{
    margin-left: 10px;
    font-weight: bold;
}

.pie__pagina{
    color: white;
    background: black;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

@media screen and (max-width:375px){
    .contenido__card{
        max-width: 325px;
        padding: 20px;
        height: 490px;
    }

    .contenido__cta{
        margin-top: 20px;
    }

    .card__date{
        margin: 15px 0;
    }

    .card__titulo{
        font-size: 1.3rem;
    }

    .card__parrafo{
        font-size: 0.9rem;
    }

    .card__picture{
        margin-top: 10px;
    }

    .pie__pagina{
        font-size: 0.6rem;
    }
}


