* {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin:0;
    padding:0;
}

body {
    background-color: hsl(47, 88%, 63%);
}


.container {
    display: flex;
    flex-direction: column;    
    align-items: center;
    min-height: 100vh;    
    justify-content: center;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width:384px;
    margin: 10px 24px;
    background-color: hsl(0, 0%, 100%);    
    border-radius: 18px;
    border: 1px solid;
    box-shadow: 8px 8px 0 0;
    font-size: 1rem;
}

.imgbox {    
    margin: 22px 24px 20px;
}

.imgbox img {
    border-radius: 14px;
}

.textbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px;
    line-height: 1.3em;
}

.textbox span {
    background-color: hsl(47, 88%, 63%);
    width:fit-content;
    font-size: 0.875rem;    
    font-weight: 800;
    padding:4px 12px;
    border-radius: 4px;
}

.textbox .date {
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.title a{    
    text-decoration: none;
    color: black ; 
    font-weight: 800;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;   
}

.title a:hover{
    color: hsl(47, 88%, 63%);
} 


.textbox .details {
    color: hsl(0, 0%, 42%);
    margin: 10px 0;
    line-height: 1.5em;
    
}

.avatar {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.avatar img {
    height: 32px;
    margin-right: 12px;
}


.attribution { 
    font-size: 11px; 
    text-align: center; 
    /*margin-top: 40px;*/
}

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

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


@media (max-width: 24rem) {    
    .card {
        width: 86%;
    }

    .imgbox {
        overflow: hidden;
        border-radius: 10px;
        height:200px;
    }

    .imgbox img{
        width:100%;
        height:100%;
        object-fit: cover;        
    }

    .textbox .date {
        font-size: 12px;
    }

    .title a{            
        font-size: 1.25rem;     
       
    }

   
    .textbox .details {
        font-size: 14px;
    }
}