/* Reset и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --yellow: hsl(47, 88%, 63%);
  --white: hsl(0, 0%, 100%);
  --gray-500: hsl(0, 0%, 42%);
  --gray-950: hsl(0, 0%, 7%);
}

body {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
  background-color: var(--yellow);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  line-height: 1.5;
}

/* Контейнер */
.container {
  width: 100%;
  max-width: 384px;
}

/* Карточка */
.card {
  background-color: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-950);
  padding: 24px;
  box-shadow: 8px 8px 0px 0px var(--gray-950);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 16px 16px 0px 0px var(--gray-950);
  transform: translate(-4px, -4px);
}

/* Изображение карточки */
.card__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 24px;
  display: block;
}

/* Контент карточки */
.card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Тег категории */
.card__tag {
  display: inline-block;
  background-color: var(--yellow);
  color: var(--gray-950);
  font-weight: 800;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  width: fit-content;
}

/* Дата */
.card__date {
  font-size: 14px;
  color: var(--gray-950);
  font-weight: 500;
}

/* Заголовок */
.card__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-950);
  line-height: 1.5;
  transition: color 0.3s ease;
  cursor: pointer;
}

.card__title:hover,
.card__title:focus {
  color: var(--yellow);
  outline: none;
}

/* Описание */
.card__description {
  color: var(--gray-500);
  line-height: 1.5;
}

/* Автор */
.card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.card__author-name {
  font-weight: 800;
  color: var(--gray-950);
  font-size: 14px;
}

/* Футер */
.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 24px;
  color: var(--gray-950);
}

.attribution a {
  color: var(--gray-950);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.3s ease;
}

.attribution a:hover,
.attribution a:focus {
  color: var(--white);
  outline: 2px solid var(--gray-950);
  outline-offset: 2px;
}

/* Адаптивность */
@media (max-width: 375px) {
  .card {
    padding: 16px;
  }
  
  .card__title {
    font-size: 20px;
  }
}
