.post-list {
  user-select: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 980px;
  margin: auto;
}

@media screen and (max-width: 600px) {
  .post-list {
    display: block;
    max-width: 366px;
  }
}

.post-list-item {
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--card-bg);
  margin-bottom: 21px;
  transition: all 200ms ease;
}

.post-list-item:nth-child(2n-1) {
  margin-right: 8px;
}

.post-list-item:nth-child(2n) {
  margin-left: 8px;
}

@media screen and (max-width: 600px) {
  .post-list-item:nth-child(n) {
    margin-left: 0;
    margin-right: 0;
  }
}

.post-list-item .cover-img {
  overflow: hidden;
  height: 266px;
}

.post-list-item .cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.25, 1),
    filter 400ms cubic-bezier(0.4, 0, 0.25, 1);
}

.post-list-item:hover .cover-img img,
.post-list-item > a:focus .cover-img img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.post-list-item .title {
  font-size: 24px;
  line-height: 1.16667;
  font-weight: 700;
  letter-spacing: 0.009em;
  max-height: 7em;
  color: var(--card-title);
  overflow: hidden;
}

.post-list-item .content {
  padding: 32px;
}

.post-list-item a,
.post-list-item a:hover,
.post-list-item a:focus,
.post-list-item a:active,
.post-list-item a:link,
.post-list-item a:visited {
  font-weight: bold;
  font-size: 24px;
  color: var(--black);
  text-decoration: none;
}

.post-list-item .categories {
  color: var(--link);
  margin-bottom: 6px;
  font-weight: 600;
}

.post-list-item .categories span {
  font-size: 11px;
  margin-right: 6px;
  text-decoration: none;
}

.post-list-item .excerpt {
  font-size: 17px;
  color: var(--black-1);
}

@media screen and (max-width: 800px) {
  .post-list-item .content {
    font-size: 12px;
  }
}

.post-list-item .time {
  font-size: 14px;
  line-height: 1.28577;
  font-weight: 600;
  letter-spacing: -0.016em;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 12px;
  color: var(--card-time);
}

.post-list-item .read-more {
  text-align: right;
}

.post-list-item .read-more button {
  font-size: 12px;
  outline: none;
  border: none;
  background-color: var(--blue);
  color: var(--white-txt-on-blue-bg);
  padding: 6px 12px;
  border-radius: 32px;
  cursor: pointer;
}

/* in archive page, use a more compact list view */

.post-list.archives {
  display: block;
  max-width: 980px;
  margin: auto;
}

.post-list.archives .post-list-item {
  border-radius: 0;
  background-color: initial;
  padding: 21px 0;
  margin: 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 200ms ease;
}

.post-list.archives .post-list-item:nth-child(n) {
  margin-left: 0;
  margin-right: 0;
}

.post-list.archives .post-list-item:last-child {
  border-bottom: none;
}

.post-list.archives .post-list-item a {
  display: flex;
}

.post-list.archives .post-list-item .cover-img {
  height: initial;
  min-width: 180px;
  width: 20vw;
  border-radius: 16px;
  flex-shrink: 0;
}
