.jumbo {
  display: grid;
  width: min(90%, 900px);
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(var(--content-bg),.9);
  border-radius: .5rem;
  color: rgb(var(--pri));
}

.jumbo h1 {
  font-weight: normal;
  text-transform: uppercase;
}

.jumbo p {
  opacity:.75;
  margin-top: .5rem;
}

.jumbo a {
  color: inherit;
  font-weight: bolder;
  transition: opacity .1s;
}

.jumbo a:hover {
  opacity: .5;
}

.posts {
  display: grid;
}

.posts__year {
  margin-bottom: 2rem;
}

.posts__year__title {
  width: 100%;
  padding: 1rem;
  text-align: center;
  color: rgb(var(--pri));
  font-size: 2rem;
  background: rgba(var(--content-bg),.9);
  font-weight: normal;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.posts__month {
  position: relative;
  display: grid;
  gap: 1rem;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        min(100%, 500px),
        1fr
      )
    );
  padding: 1rem 2rem;
}

.posts__month__title {
  font-size: 1.6rem;
  color: rgb(var(--pri));
  margin: 1rem 0;
  padding: 0 2rem;
  font-weight: normal;
  text-transform: uppercase;
  grid-column: 1/-1;
  text-shadow: 0 0 .25rem #0008;
}

.post {
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-template-columns: 1fr auto;
  background: rgba(var(--content-bg),.9);
  padding: 1rem;
  border-radius: .5rem;
  column-gap: 1rem;
  color: rgb(var(--pri));
}

.post__title {
  letter-spacing: .075em;
  font-size: 1.5em;
  font-weight: normal;
  grid-column: 1 / 3;
}

.post__date {
  opacity: .5;
  margin-bottom: 0.5rem;
  grid-column: 1 / 3;
}

.post__content {
  margin: auto 0;
}

.post__img {
  margin: auto;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

#scroll-to-top {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: .5rem 1rem;
  background-color: rgb(var(--pri));
  border: 0;
  border-radius: .5px;
  cursor: pointer;
  box-shadow: 0 0 10px #0008;
  animation: fade-up .5s ease-out;
  transition: transform .3s cubic-bezier(.17,.67,.59,2);
}

#scroll-to-top:hover,
#scroll-to-top:focus {
  transform: scale(1.1);
}

@keyframes fade-up {
  0% {
    transform: translateY(5rem);
    opacity: 0;
  } 50% {
    opacity: 0;
  } 100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .post {
    grid-template-columns: 1fr;
    grid-template-areas:
      'title'
      'date'
      'image'
      'content';
  }
  .post__title {
    grid-area: title;
    text-align: center;
  }
  .post__date {
    grid-area: date;
    text-align: center;
    margin: 0;
  }
  .post__img {
    grid-area: image;
    width: 100%;
    height: auto;
    max-height: 60vh;
    margin: 1rem 0;
  }
  .post__content {
    grid-area: content;
    text-align: justify;
    text-align-last: center;
  }

  .jumbo {
    text-align: justify;
    text-align-last: center;
  }

  .jumbo h1 {
    text-align: center;
  }
}