/* "Related reading": a light row of up to three blog posts */
.rr {
  background: #fff;
  border-top: 1px solid var(--line);
}
.rr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 14px;
}
.rr-head h2 {
  margin: 0;
  font: 800 clamp(22px, 2.4vw, 28px)/1.1 "Sora", sans-serif;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.rr-head a {
  font: 700 14.5px "Sora", sans-serif;
  color: var(--orange-text);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}
.rr-head a:hover,
.rr-head a:focus-visible {
  color: var(--ink);
}
.rr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rr-list a {
  display: grid;
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #faf9f7;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.rr-list a:hover,
.rr-list a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 14px 26px -18px rgba(60, 35, 10, 0.55);
  outline: none;
}
.rr-tag {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff1e8;
  color: #b8440c;
  font: 700 11.5px "Plus Jakarta Sans", sans-serif;
}
.rr-list b {
  font: 700 15.5px/1.3 "Sora", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rr-list small {
  font-size: 13px;
  color: #5b5850;
}
/* Inside a blog post: under the article, the same width as the text */
.blog-post-page .rr {
  background: none;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 28px;
}
@media (max-width: 960px) {
  /* Phones and small tablets: one swipeable row instead of a tall stack */
  .rr-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -4px;
    padding: 4px;
  }
  .rr-list::-webkit-scrollbar {
    display: none;
  }
  .rr-list li {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .rr-list li:only-child {
    flex-basis: 100%;
  }
  .rr-list a {
    padding: 12px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rr-list a {
    transition: none;
  }
}
