html,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
}

body {
  max-width: 100%;
  padding: 0 1.5rem;
}

header {
  margin: 6rem 0;
  text-align: center;
}

#search {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  font-size: 2rem;
}

a {
  color: #264653;
}

a:hover {
  border: none;
  color: #2a9d8f;
  text-decoration: none;
}

.feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .feed {
    grid-template-columns: 1fr;
  }
}

.feed-item {
  display: flex;
  flex-direction: column;
}

.feed-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0;
}

.feed-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-item-content h2 {
  font-size: 2rem;
  margin-top: 1.5rem;
}

.feed-item-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-item-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  color: #999;
  margin-top: auto;
  padding-top: 0.75rem;
}

.feed-item-meta .favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.meta-sep {
  color: #ccc;
}

@media (max-width: 480px) {
  #search {
    width: 100%;
  }
}

.empty {
  text-align: center;
  color: #999;
  margin-top: 4rem;
}
