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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  font-family: 'Figtree', sans-serif;
  background-color: hsl(47, 88%, 63%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-size: 1rem;
}

.card {
  padding: 1rem;
  max-width: 24rem;
  width: 90%;
  background-color: hsl(0, 0%, 100%);
  margin: 0;
  border-radius: 1.25rem;
  border: 1px solid hsl(0, 0%, 7%);
  box-shadow: 8px 8px 0px 0px #000000;
  transition: all 0.3s ease;
}

.card:active {
  transform: translate(8px, 8px);
  box-shadow: 0px 0px 0px 0px #000000;
}

.logo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.9375rem;
}

.card-badge {
  background-color: hsl(47, 88%, 63%);
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 0.9375rem;
  color: hsl(0, 0%, 7%);
  transition: all 0.3s ease;
}

.card-badge:hover {
  background-color: hsl(0, 0%, 7%);
  color: hsl(47, 88%, 63%);
  cursor: pointer;
}

.card-badge:focus-visible,
.card-title a:focus-visible,
.card-author-name:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
  border-radius: 2px;
}

.card-date {
  display: block;
  margin-bottom: 1.25rem;
  color: hsl(0, 0%, 7%);
  font-weight: 500;
}

.card-title {
  font-weight: 800;
  font-size: 1.375rem;
  margin-bottom: 25px;
}

.card-title a {
  text-decoration: none;
  color: hsl(0, 0%, 7%);
  transition: color 0.2s ease;
}

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

.card-description {
  font-size: 1rem;
  font-family: 'Figtree', sans-serif;
  color: hsl(0, 0%, 42%);
  letter-spacing: 0.5px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-author-img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.card-author-name {
  font-weight: 800;
  transition: all 0.3s ease;
  text-decoration: none;
  color: hsl(0, 0%, 7%);
}

.card-author-name:hover {
  text-decoration: underline;
  cursor: pointer;
  color: hsl(0, 0%, 42%);
}

.attribution {
  font-size: 12px;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
}

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

.attribution a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .card {
    padding: 24px;
  }
  .card-title {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card-badge,
  .card-title a,
  .card-author-name {
    transition: none;
  }

  .card:active {
    transform: none;
  }
}
