@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Serif:wght@500&display=swap');

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

*:before, *:after {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: #111;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto Serif", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

a {
  text-decoration: none;
  color: inherit;
}

.grid {
}

.card__link {
  display: flex;
  gap: 10px;
}

.card__image {
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.card__headline {
  font-size: 12px;
  color: #e41e27;
  text-transform: uppercase;
}

.card__headline + .card__title {
  margin-top: 6px;
}

.card__title {
  font-size: 15px;
  display: -webkit-inline-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  height: 3.7em;
  transition: 0.2s;
}

.card:hover .card__title {
  opacity: 0.6;
}

.image {
  position: relative;
  padding-top: 66.6666666667%;
  background-color: #eee;
  overflow: hidden;
}

.image img {
  width: 100%;
  position: absolute;
  top: 0;
  object-fit: cover;
  height: 100%;
  left: 0;
}

@media screen and (max-width: 479px) {
  .card__visual {
    flex: 0 0 35%;
  }
  .grid__item + .grid__item {
    margin-top: 13px;
  }
}

@media screen and (min-width: 480px) {
  .grid {
    display: flex;
    gap: 16px;
  }

  .grid__item {
    flex: 1 1 25%;
  }
  .card__link {
    flex-direction: column;
    gap: 16px;
  }
  .card__headline {
    font-size: 14px;
  }
  .card__title {
    font-size: 18px;
  }
}
