.subhero {
  background: var(--dark);
  color: #fff;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
}

.subhero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  max-width: 48rem;
}

.subhero .hero__lead {
  margin-top: 1rem;
}

.subhero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
}

.post-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .25s, border-color .25s;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--muted);
}

.post-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.post-card__day {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
}

.post-card__month {
  margin-top: .25rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-card__body {
  min-width: 0;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-bottom: .5rem;
  font-size: .85rem;
  color: var(--muted);
}

.chip {
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .chip {
  color: #fb923c;
}

.post-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

.post-card h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.post-card__excerpt {
  margin-top: .6rem;
  color: var(--ink-2);
}

.post-card .link-arrow {
  margin-top: .9rem;
}

.post-card:hover .link-arrow .icon {
  transform: translateX(3px);
}

.empty {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink-2);
}

.post-footer {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 2.5rem;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: .92rem;
  transition: border-color .2s, background-color .2s;
}

.pager a:hover {
  border-color: var(--muted);
}

.pager .is-current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.pager .is-disabled {
  opacity: .4;
}

.pager__gap {
  border: 0;
  background: none;
  min-width: auto;
  padding: 0 .2rem;
}

.pager__arrow .icon {
  width: 1rem;
  height: 1rem;
}

.pager__arrow[rel="prev"] .icon,
.pager__arrow:first-child .icon {
  transform: rotate(180deg);
}

.pager__info {
  margin-top: 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

[data-blog-list].is-loading .post-grid,
[data-blog-list].is-loading .pager {
  opacity: .5;
  transition: opacity .2s;
}

@media (min-width: 768px) {
  .post-card {
    gap: 2rem;
    padding: 2rem 2.25rem;
  }
}

@media (max-width: 480px) {
  .subhero {
    padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
  }

  .subhero__meta {
    font-size: .85rem;
    gap: .75rem;
  }

  .post-card {
    grid-template-columns: 1fr;
    gap: .9rem;
    padding: 1.25rem;
  }

  .post-card__date {
    flex-direction: row;
    gap: .4rem;
    width: auto;
    height: auto;
    padding: .4rem .8rem;
    border-radius: 999px;
    align-self: start;
    justify-self: start;
  }

  .post-card__day {
    font-size: 1.1rem;
  }

  .post-card__month {
    margin-top: 0;
  }

  .post-card h2 {
    font-size: 1.3rem;
  }

  .post-card .link-arrow {
    margin-top: .7rem;
  }

  .pager a,
  .pager span {
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .7rem;
  }

  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    font-size: 1.45rem;
  }

  .prose blockquote {
    padding: .65rem 1rem;
  }
}
