.resource-index {
  padding-block: clamp(40px, 8vw, 88px) 56px;
}

.resource-index-header {
  max-width: 62ch;
  margin-bottom: 32px;
}

.resource-index-header h1 {
  margin-bottom: 10px;
}

.resource-index-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 0;
}

.resource-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
}

.resource-card:hover {
  border-color: var(--muted);
  color: var(--text);
  text-decoration: none;
}

.resource-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.resource-card:hover h2 {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.resource-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 208px;
  background: #efe5d8;
}

.resource-cover img {
  display: block;
  width: auto;
  height: 176px;
  max-width: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 20px #15172126;
}

.resource-cover-video {
  background: #242936;
}

.resource-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 9px;
  border-radius: 6px;
  background: #12141a;
  color: #fff;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.resource-card-copy {
  padding: 22px;
}

.resource-card-copy h2 {
  margin-bottom: 8px;
}

.resource-card-copy p {
  margin: 0;
  color: var(--muted);
}

.resource-cover-chart {
  background: #e8eff8;
}

.resource-cover-chart img {
  width: 88%;
  height: auto;
  max-height: 176px;
}

@media (max-width: 640px) {
  .resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
