/* ==========================================================================
   Blog page (blog.html) — extras on top of v2.css
   ========================================================================== */

/* ---------- Section: blog-posts (dated index of articles, two columns from 64em) ---------- */
.post-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--blue);
}
@media (min-width: 64em) {
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  }
}

.post {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 1.25rem;
  min-height: 5.75rem;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
}
.post:hover { background: var(--ice); }

.post__date {
  grid-column: 1;
  display: grid;
  margin: 0;
  justify-items: start;
  line-height: 1;
  color: var(--blue);
}
.post__day {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: var(--stretch);
  font-size: 2rem;
}
.post__month {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post__title {
  grid-column: 2;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem);
  line-height: 1.1;
}
.post__title a {
  color: var(--ink);
  text-decoration: none;
}
/* the whole row is clickable; the link text stays the accessible name */
.post__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post:hover .post__title a { color: var(--blue); }
.post__title a:focus-visible { outline: none; }
.post__title a:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 2px; }

.post__arrow {
  grid-column: 3;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--blue);
  transition: transform 0.4s var(--ease-glide);
}
.post:hover .post__arrow { transform: translateX(0.35rem); }
