@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap");

.about {
  --ink: #1b2430;
  --muted: #5b6773;
  --rule: #d9dee3;
  --paper: #ffffff;
  --panel: #f3f6f9;
  --blue: #1f4e79;
  --blue-soft: #e4eef7;
  --blue-deep: #163a5a;

  font-family: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.about a {
  color: var(--blue);
}

.about a:hover,
.about a:focus {
  color: var(--blue-deep);
}

.about h1,
.about h2,
.about h3 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.about h2 {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.about h3 {
  font-size: 1.05rem;
  margin: 0;
}

.about p {
  margin: 0;
}

.about-header {
  text-align: center;
}

.about .lede {
  max-width: 50rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.about .lede + .lede {
  margin-top: 0.75rem;
}

.about .contacts {
  font-size: 0.95rem;
}

.about-section {
  margin-top: 3rem;
}

.about-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.about-section-head p {
  color: var(--muted);
  max-width: 34rem;
}

/* In-charge band */

.incharge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
}

.incharge-photo {
  flex: none;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.incharge h2 {
  color: #fff;
  margin-bottom: 0.1rem;
}

.incharge .role {
  color: #d5e3f2;
}

.about .incharge a,
.about .incharge a:visited {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.about .incharge a:hover,
.about .incharge a:focus {
  color: #d5e3f2;
}

.incharge-contact {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Staff grid */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.staff-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.1rem 1.15rem;
}

.staff-card img {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  background: var(--panel);
  border: 3px solid var(--blue-soft);
  flex: none;
}

.staff-card-body {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.instruments li.admin-badge {
  background: var(--blue);
  color: #fff;
}

.staff-card .role {
  color: var(--muted);
  font-size: 0.9rem;
}

.staff-card .email {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.instruments {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.instruments li {
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Portal roster */

.roster {
  list-style: none;
  padding: 0;
  margin: -1.5rem 0 0;
}

.roster li {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.roster .years {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.roster .who {
  font-weight: 500;
}

.roster .links a {
  margin-left: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.roster .links a:hover,
.roster .links a:focus {
  color: var(--blue);
}

@media (max-width: 991px) {
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .about h1 {
    font-size: 1.8rem;
  }

  .staff-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .staff-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .staff-card img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .staff-card-body {
    padding-top: 0;
  }

  .incharge {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .incharge-photo {
    width: 4.5rem;
    height: 4.5rem;
  }

  .roster li {
    grid-template-columns: 1fr auto;
  }

  .roster .years {
    grid-column: 1 / -1;
    margin-bottom: -0.4rem;
  }
}
