*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Figtree, sans-serif;
    background-color: hsl(47, 88%, 63%);
    padding: 2rem;
}

.card{
    max-width: 25rem;
    padding: 2rem;
    border: 0.1rem solid black;
    border-radius: 1.5rem;
    background-color: hsl(0, 0%, 100%);
    box-shadow: 8px 8px 0 hsl(0, 0%, 0%),
     4px 4px 0 hsl(0, 0%, 42%); 
}

.article{
    border-radius: 1.5rem;
    text-align: center;
    justify-self: center;
}

p{
    margin: 1rem;
    color: hsl(0, 0%, 7%);
    font-weight: 950;
}

.date{
    color: hsl(0, 0%, 7%);
    font-weight: 600
}

.description{
    color:  hsl(0, 0%, 42%);
    font-weight: 500;
}

.name {
  display: flex;
  align-items: center; 
  gap: 0.75rem;
}

.avatar {
  width: 2rem; 
  height: 2rem;
}

h3{
    margin: 1rem;
    background-color:  hsl(47, 88%, 63%);
    border-radius: 0.5rem;
    max-width: 6rem;
    text-align: center;
    padding: 0.5rem;
}

h1{
    margin: 1rem;
}

h1, h3{
    font-weight: 950;
    color: hsl(0, 0%, 7%);
}

a h1 {
  transition: color 0.3s ease;  
}

a{
    text-decoration: none;
}

a:hover h1 {
  color: hsl(47, 88%, 63%);
}

.avatar{
    max-width: 2rem;
}

.attribution { font-size: 11px;
    margin: 2rem;
    text-align: center; 
}

.attribution a 
{ color: hsl(228, 45%, 44%); 
}

@media (max-width: 375px) {
  body {
    padding: 1rem;
  }
  
  .card {
    max-width: 100%;
    padding: 1.2rem;
    margin: 0 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .article {
    width: 100%;
    height: auto;
  }
  
  .name {
    font-size: 0.9rem;
  }
}