@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

* {
  box-sizing: border-box;
}

body {
  display: grid;
  place-content: center;
  min-height: 100vh;
  margin: 0;
  font-family: Roboto, sans-serif;
  background-color: #ecf0f1;
}

img {
  width: 100%;
}

.card {
  width: 350px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}
.card-header {
  height: 200px;
  img {
    object-fit: cover;
    height: 100%;
  }
}
.card-content {
  padding: 30px;
  background: #fff;
}
.card-title {
  height: 20px;
  margin: 0;
}
.card-excerpt {
  margin: 10px 0 20px;
  color: #777;
}

.author {
  display: flex;
  gap: 10px;
}
.author-info {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1 0 100px;
  small {
    color: #aaa;
    margin-top: 5px;
  }
}

.profile-img {
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.animated-bg {
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 10%,
    #f6f7f8 20%,
    #f6f7f8 100%
  );
  background-size: 200% 100%;
  animation: bgPos 1s linear infinite;
}
.animated-bg--text {
  display: inline-block;
  margin: 0;
  width: 100%;
  height: 10px;
  border-radius: 50px;
}

@keyframes bgPos {
  0% {
    background-position: 50% 0;
  }
  100% {
    background-position: -150% 0;
  }
}
