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

:root{
    /* ## Colors
    ### Primary */
    --Yellow: hsl(47, 88%, 63%);
    /* ### Neutral */
    --White: hsl(0, 0%, 100%);
    --Grey: hsl(0, 0%, 50%);
    --Black: hsl(0, 0%, 7%);
}

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

body{
    background-color: var(--Yellow);
    padding: 155px 24px 147px;
    font-family: "Figtree", sans-serif;
    font-size: 16px;
}

.card__container{
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--White);
    padding: 23px;
    border-radius: 30px;
    border: 1.5px solid var(--Black);
    box-shadow: 9px 9px 0px 0px var(--Black);
    margin-bottom: 25px;
}

.hero{
    border-radius: 15px 15px;
    overflow: hidden;
}

.hero__portada{
    width: 100%;
    min-height: 200px;
    background-image: url(assets/images/illustration-article.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.text{
    margin: 23px 0;
}

.text__btn{
    width: 73px;
    height: 26px;
    font-size: 0.65em;
    font-weight: 800;
    background-color: var(--Yellow);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.text__btn:hover{
    opacity: 0.7;
}

.text__published{
    font-size: .75em;
    font-weight: 600;
    margin: 15px 0;
}

.text__title{
    font-size: 1.25em;
    font-weight: 800;
    margin-bottom: 18px;
    cursor: pointer;
}

.text__title:hover{
    color: var(--Yellow);
}

.text__information{
    font-size: 0.86em;
    color: var(--Grey);
    line-height: 1.5em;
}

.avatar{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.avatar__photo{
    width: 32px;
    height: 32px;
}

.avatar__name{
    font-size: 0.8em;
    font-weight: 800;
}

.attribution { 
    font-size: 11px; 
    text-align: center; 
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 80px;
}

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

@media (min-width: 760px) {
    .card__container{
        width: 380px;
        min-height: 520px;
        margin: 0 auto;
    }
    .text__btn{
        width: 80px;
    }
    .text__published{
        font-size: .85em;
    }
    .text__title{
        font-size: 1.48em;
    }
    .text__information{
        font-size: .989em;
    }
}

