/* Courses page: 4x2 catalogue grid per the pastor's wireframe. Each
   card is a classical image in a gold-ruled plate with the course name
   beneath, like plates in a printed catalogue. */

.courses {
  max-width: 72.5rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}
.courses-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.courses-head h1 {
  font-family: 'Cardo', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: .625rem;
}
.courses-note {
  margin-top: .875rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.6vw, 2rem);
}
@media (max-width: 1000px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .courses-grid { grid-template-columns: 1fr; } }

.course-card figure {
  border: 1px solid var(--gold);
  padding: .5rem;
  background: var(--vellum);
  position: relative;
}
.course-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.92);
}
.course-card figcaption {
  margin-top: .5rem;
  font-size: .9rem;
  letter-spacing: .02em;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
  /* Reserve two lines so plates stay the same height whether the
     credit wraps or not; titles below then align across the row. */
  min-height: calc(2 * 1.45em);
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-card h2 {
  font-family: 'Cardo', serif;
  font-weight: 400;
  font-size: 1.45rem;
  text-align: center;
  margin-top: .875rem;
  line-height: 1.35;
}
