body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}


.post-list {
  list-style-type: none;
  padding: 0;
}

.post-list-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  padding: 1rem;

  border-radius: var(--border-radius);
  box-shadow: var(--shadow-2);
  background-color: var(--background-light);
}

.post-list-item[data-color="pink"] {
  border: 8px solid var(--accent);
}

.post-list-item[data-color="blue"] {
  border: 8px solid var(--secondary);
}

.post-list-item[data-color="green"] {
  border: 8px solid var(--primary);
}

.post-details {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: 32px;
  grid-template-areas:
    "image title"
    "image date";

  column-gap: 0.5rem;
  color: var(--text);
}

.post-details:hover,
.post-details:active {
  text-decoration: none;
}

.post-details>.placeholder {
  grid-area: image;
  background-color: var(--secondary);
  border-radius: 0.5rem;
}

.post-details>h3 {
  grid-area: title;
  text-wrap: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.post-date {
  grid-area: date;
  margin: 0;

  color: var(--text-ghost);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.tag {
  display: inline-block;
  text-align: center;
  text-wrap: nowrap;
  text-overflow: ellipsis;

  border: none;
  background-color: var(--secondary);
  color: var(--text-ghost);
  padding-inline: 1ch;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition:
    background-color 0.25s ease-in-out,
    outline 0.25s ease-in-out,
    color 0.25s ease-in-out,
    border 0.25s ease-in-out;
}

.tag:hover {
  outline: 2px solid var(--secondary);
  color: var(--text);
  background-color: var(--secondary-dark);
  box-shadow: var(--shadow);
}

.post-catagory {
  grid-area: catagory;
  text-decoration: none;
  margin-left: 1ch;
}
