.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2.5rem;
}

.board-card {
  position: relative;
  display: block;
  min-height: 14rem;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #202124;
  color: #fff;
  box-shadow:
    0 0.15rem 0.35rem rgb(0 0 0 / 12%),
    0 0.5rem 1.2rem rgb(0 0 0 / 12%);
  text-decoration: none;
  isolation: isolate;
}

.board-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(
      to top,
      rgb(0 0 0 / 82%) 0%,
      rgb(0 0 0 / 45%) 38%,
      rgb(0 0 0 / 5%) 72%
    );
  pointer-events: none;
}

.board-card__image {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  margin: 0 !important;
  object-fit: cover;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.board-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1rem 1.1rem;
}

.board-card__title {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 0.1rem 0.3rem rgb(0 0 0 / 55%);
}

.board-card__description {
  display: block;
  margin-top: 0.25rem;
  color: rgb(255 255 255 / 85%);
  font-size: 0.82rem;
  line-height: 1.35;
}

.board-card:hover .board-card__image {
  transform: scale(1.045);
  filter: brightness(1.05);
}

.board-card:hover {
  color: #fff;
  box-shadow:
    0 0.2rem 0.5rem rgb(0 0 0 / 16%),
    0 0.7rem 1.5rem rgb(0 0 0 / 18%);
}

.board-card:focus-visible {
  outline: 0.2rem solid var(--md-accent-fg-color);
  outline-offset: 0.2rem;
}

.board-card--coming-soon {
  cursor: default;
}

.board-card--coming-soon .board-card__image {
  filter: grayscale(0.5) brightness(0.75);
}

.board-card__badge {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(0.2rem);
}

@media screen and (max-width: 44rem) {
  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-card,
  .board-card__image {
    min-height: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .board-card__image {
    transition: none;
  }

  .board-card:hover .board-card__image {
    transform: none;
  }
}
