.blog-index {
  display: flex;
  flex-direction: column;
  padding-top: 3.75rem;
  background-color: #f9f9f9;
}

.blog-index__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.blog-index .blog {
  flex-shrink: 0;
  margin-block: auto;
}

.blog-index .blog > .container {
  width: 100%;
  max-width: 78rem;
}

.blog-index .post-list {
  justify-content: center;
  gap: clamp(2rem, 6vw, 5.375rem) 3.125%;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.blog-index .post-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

.blog-index .post-card__inner {
  flex: 1;
  background-color: #fff;
  transition: background-color 160ms ease;
}

.blog-index .post-card__inner::before {
  position: absolute;
  z-index: 1;
  inset: auto 0 100%;
  height: 1px;
  background-color: rgb(52 56 81 / 12%);
  pointer-events: none;
  content: "";
}

.blog-index .post-card:has(:focus-visible) .post-card__inner {
  background-color: #f7f7f7;
}

@media (hover: hover) {
  .blog-index .post-card:hover .post-card__inner {
    background-color: #f7f7f7;
  }
}

.header__link[aria-current] .items-title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 48em) and (min-height: 30em), (min-width: 62em) {
  .blog-index .post-card {
    width: 48.4375%;
  }
}

@media (min-width: 62em) {
  .header__link[aria-current] .items-title {
    text-decoration: none;
  }

  .header__link[aria-current]::after {
    transform: scaleX(1);
  }
}

@media (min-width: 75em) and (min-height: 30em) and (hover: hover) and (pointer: fine) {
  .site.blog-page {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .blog-page > .header.fix-nav {
    position: relative;
    flex: none;
  }

  .blog-page > .blog-index {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding-top: 0;
  }

  .blog-page > .footer {
    flex: none;
    margin-top: 0;
  }

  .blog-index .post-list {
    padding-block: clamp(1rem, 3vh, 2.5rem);
  }

  .blog-index .blog:has(.post-card:nth-child(9)) {
    margin-block: 0;
  }

  .blog-index .post-list:has(.post-card:nth-child(9)) {
    justify-content: flex-start;
  }
}

@media (width < 75em), (hover: none), (pointer: coarse) {
  .blog-page > .footer {
    display: grid;
    align-content: center;
    min-height: 7.5rem;
    padding: 0.75rem 0;
  }

  .blog-page > .footer .social {
    margin-bottom: 0.375rem;
  }

  .blog-page > .footer .social__link {
    display: grid;
    place-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

@media (width < 48em) and (orientation: portrait) {
  .blog-index .post-card__thumb {
    aspect-ratio: 3 / 2;
    margin: 0;
  }

  .blog-index .post-card__thumb::after {
    content: none;
  }

  .blog-index .post-card__thumb img {
    object-fit: cover;
  }

  .blog-index .post-card__inner {
    padding: 1rem 1.25rem 0.625rem;
  }

  .blog-index .post-card__header {
    margin-bottom: 0.5rem;
  }

  .blog-index .post-card__inner p {
    margin-bottom: 0.5rem;
  }
}
