/* The pages of the guest performers, /interpretes/ and /interpretes/<slug>/ (task « Interprètes
   invités », docs/DESIGN.md « Les pages des interprètes invités »): the list of the pianists on the
   site's cards, then a performer's page: their name, a few lines, their interpretations one at a
   time in the falling notes of the site, the list to choose another. Linked after partage.css (the
   page of a shared part), whose stage and call to play they share; under web/keyfall/ as it, since
   /interpretes/ itself goes to the API. */

.interpretes {
  /* A flex item of the body: never wider than the screen (the grid of cards would push it). */
  width: 100%;
  min-width: 0;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}

.interpretes-head {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.interpretes-head .eyebrow {
  margin-bottom: 18px;
}

.interpretes-head .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.interpretes-head .eyebrow a:hover,
.interpretes-head .eyebrow a:focus-visible {
  color: var(--accent);
}

.interpretes-head h1 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.1;
}

.interpretes-head .hands-line {
  margin: 18px auto;
}

.interpretes-head .lead,
.interprete-bio p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.interprete-bio {
  text-align: left;
}

.interprete-site {
  margin: 8px 0 0;
}

.interprete-site a,
.interprete-now a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 196, 107, 0.35);
}

.interprete-site a:hover,
.interprete-site a:focus-visible,
.interprete-now a:hover,
.interprete-now a:focus-visible {
  border-bottom-color: var(--accent);
}

.interpretes-missing {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  color: var(--text-primary);
}

/* The list of the performers: a card each, their name in the title's font. */
.interpretes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 340px));
  justify-content: center;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.interprete-card {
  position: relative;
  padding: 22px 22px 20px;
}

.interprete-card p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.interprete-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-primary);
  text-decoration: none;
}

/* The whole card answers to the link. */
.interprete-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.interprete-link:focus-visible {
  outline: none;
}

.interprete-card:has(.interprete-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.interprete-card:hover {
  border-color: rgba(255, 196, 107, 0.45);
}

.interprete-name {
  font-family: var(--font-title);
  font-size: 26px;
  line-height: 1.2;
}

.interprete-count {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.interpretes-empty {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 17px;
  text-align: center;
}

/* A performer's page: the piece playing above the falling notes, as far from them as their caption
   below; the card as far from the head above as from the list or the call below. */
.interprete .interpretes-head {
  margin-bottom: var(--kf-around, 40px);
}

.interprete-now {
  margin: 0 6px var(--kf-space, 24px);
}

.interprete-now h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
}

.interprete-now p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Their interpretations: one line each, the one playing lit. */
.interprete-parts {
  max-width: 760px;
  margin: var(--kf-around, 40px) auto 0;
}

.interprete-parts h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 24px;
}

.interprete-parts ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--stroke);
}

.interprete-parts a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-height: 48px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--stroke);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}

.interprete-parts a:hover,
.interprete-parts a:focus-visible {
  background: rgba(255, 196, 107, 0.06);
}

.interprete-parts a[aria-current="true"] {
  background: rgba(255, 196, 107, 0.1);
  box-shadow: inset 3px 0 0 var(--accent);
}

.interprete-parts .part-title {
  font-family: var(--font-title);
  font-size: 19px;
}

.interprete-parts .part-composer {
  color: var(--text-secondary);
  font-size: 14px;
}

.interpretes-next {
  margin-top: 56px;
}

.interprete-stage + .interpretes-next {
  margin-top: var(--kf-around, 40px);
}

@media (max-width: 700px) {
  .interpretes {
    padding-top: 28px;
  }

  .interprete-name {
    font-size: 23px;
  }
}
