/* AYA Youth · Artists (2026-11-20): the roster page, /artists/.
   A white page, set as the cover of an artist's page is: the name in display type and the photograph
   standing in it. On a computer each artist is one line across the page. The photographs stand one above
   the other down the middle; every given name ends at them and every family name starts from them, the
   instrument above it; under the name one distinction is set on the same two edges, and the way to the
   profile stands at the end of the line. In narrower windows each entry is stacked and centred on the
   same axis. layout.js links this file on pages whose bodyClass includes artists-page. */

/* ── The axis ──────────────────────────────────────────────────────────── */
/* Everything on the page stands on one axis, the middle of the line, where the photographs are. An
   element of class artists-axis knows the size the names are set at (--f), the photograph's width
   (--photo) and the gap beside it (--gap); on a computer its two halves end and begin at the
   photograph's edges. --line is the width of the line: the three sections' own widths (container
   units), or, in a browser without them, the same width worked out from the window. --w-first,
   --w-last and --w-full come from the page (build/pages/artists.js). */
.artists-head > .wrap, .artists-roster > .wrap, .artists-about > .wrap { container-type: inline-size; }
.artists-axis {
  --line: calc(min(100vw, var(--max)) - 2 * var(--gutter) - 12px);
  --f: min(calc(var(--line) / (var(--w-full) + .1)), 68px);
}
@supports (width: 1cqw) { .artists-axis { --line: 100cqw; } }
@media (min-width: 961px) {
  .artists-axis {
    /* --k: the photograph's width in ems of the name. A half line holds a name, the gap beside the
       photograph and half the photograph; the family name's half holds the profile link as well. */
    --k: 1.85; --half: calc(var(--line) / 2);
    --f: min(calc(var(--half) / (var(--w-first) + var(--k) / 2 + .22)), calc((var(--half) - 176px) / (var(--w-last) + var(--k) / 2 + .22)), 128px);
    --photo: calc(var(--f) * var(--k)); --gap: calc(var(--f) * .2);
    --halves: minmax(0, 1fr) var(--photo) minmax(0, 1fr);
  }
}

/* ── Title ─────────────────────────────────────────────────────────────── */
.artists-head { padding: calc(var(--header-h) + clamp(14px, 1.8vw, 30px)) 0 0; }
/* Where the entries are stacked on the axis, the title and the introduction stand on it too. */
.artists-head .artists-head__crumb { color: rgba(0, 0, 0, .66); margin: 0 0 clamp(14px, 1.5vw, 24px); justify-content: center; }
.artists-head__row { text-align: center; }
.artists-head .artists-head__crumb a:hover { color: #000; }
/* The page's title is the quiet line here; the artists' names are the display type. */
.artists-head__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 50px); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.artists-head__lede { margin: clamp(12px, 1.4vw, 20px) auto 0; max-width: 34em; color: var(--fg-2); }

/* ── Roster ────────────────────────────────────────────────────────────── */
/* flow-root: the first block's top margin stays inside the section (the site's footer lies behind the
   page and would show through a gap between two sections). */
.artists-roster { display: flow-root; padding: 0 0 clamp(64px, 8.5vw, 128px); }
.roster { list-style: none; margin: clamp(20px, 2.2vw, 34px) 0 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.roster__item { border-bottom: 1px solid var(--rule); transition: border-color .35s, box-shadow .35s; }
/* Under the pointer, or with keyboard focus inside, the two rules that hold an entry darken. */
.roster__item:hover, .roster__item:focus-within { border-bottom-color: var(--rule-strong); box-shadow: 0 -1px 0 0 var(--rule-strong); }

/* An entry, stacked: photograph, instrument, name on one line, distinction, profile link. */
.roster__row {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(30px, 7vw, 52px) 0 clamp(32px, 7.4vw, 56px); color: inherit;
}
/* The photograph keeps its size and its light under the pointer. */
.roster__photo { position: relative; width: clamp(140px, 44vw, 240px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone-2); }
.roster__photo picture { position: absolute; inset: 0; }
.roster__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.roster__title { display: flex; flex-direction: column; align-items: center; margin-top: clamp(18px, 4.6vw, 28px); }
.roster .roster__discipline, .roster .roster__note-label { font-size: 11.5px; letter-spacing: .14em; font-weight: 500; line-height: 1.3; color: var(--fg-2); }
/* Ibarra Real Nova at the covers' letter-spacing. */
.roster__name { margin: clamp(8px, 2vw, 12px) 0 0; font-family: var(--serif); font-weight: 400; font-size: var(--f); line-height: .95; letter-spacing: -.012em; white-space: nowrap; }
.roster__note { margin-top: clamp(14px, 3.4vw, 20px); max-width: 30em; }
.roster__note-label { display: block; margin-bottom: 6px; }
.roster__note-what { display: block; font-family: var(--serif); font-size: clamp(16px, 4.2vw, 19px); line-height: 1.3; text-wrap: balance; }
.roster__note-when { display: block; margin-top: 5px; font-family: var(--sans); font-size: 12.5px; line-height: 1.3; color: var(--fg-2); }
.roster .roster__more { margin-top: clamp(18px, 4.4vw, 24px); font-size: 12px; }
/* Anywhere on an entry the profile link answers as the site's text links do: the underline leaves and
   returns, the arrow steps forward. */
.roster__row:hover .roster__more::after, .roster__row:focus-visible .roster__more::after { animation: underlineOut .8s var(--ease-out); }
.roster__row:hover .roster__more .arrow, .roster__row:focus-visible .roster__more .arrow { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) {
  .roster__row:hover .roster__more::after, .roster__row:focus-visible .roster__more::after { animation: none; }
  .roster__row .roster__more .arrow, .roster__item { transition: none; }
}

/* Computers (from 961 px, where the site's header shows its navigation): one line to an artist, on the axis of the photographs. */
@media (min-width: 961px) {
  /* The title in the left half, the introduction in the right, from the edge the family names start at. */
  .artists-head .artists-head__crumb { justify-content: flex-start; }
  .artists-head__row { display: grid; grid-template-columns: var(--halves); column-gap: var(--gap); align-items: end; text-align: left; }
  .artists-head__title { grid-column: 1; }
  .artists-head__lede { grid-column: 3; margin: 0; max-width: 30em; padding-left: calc(var(--f) * .03); }

  .roster__row { --pad: clamp(26px, 2.8vw, 44px); position: relative; display: block; text-align: left; padding: var(--pad) 0 calc(var(--pad) + 4px); }
  .roster__photo { position: absolute; z-index: 1; top: var(--pad); left: 50%; width: var(--photo); margin-left: calc(var(--photo) / -2); }
  /* Ibarra Real Nova: capitals rise .68em above the baseline; at line-height .9 the baseline lies .155em
     above the bottom of the line. The photograph is 1.25 × its width tall and stands on the baseline, so
     the line of the name begins (1.25k − .745) em below the photograph's top. */
  .roster__title { position: relative; display: block; margin: 0; padding-top: calc(var(--f) * (1.25 * var(--k) - .745)); }
  .roster__name { margin: 0; display: grid; grid-template-columns: var(--halves); column-gap: var(--gap); line-height: .9; }
  .roster__first { grid-column: 1; text-align: right; }
  .roster__last { grid-column: 3; }
  /* The instrument stands above the family name, as the labels stand above the name on a cover. */
  .roster .roster__discipline { position: absolute; left: calc(50% + var(--photo) / 2 + var(--gap) + var(--f) * .03); bottom: calc(var(--f) * .835 + 14px); }
  .roster__note { display: grid; grid-template-columns: var(--halves); column-gap: var(--gap); align-items: baseline; margin-top: clamp(16px, 1.7vw, 28px); max-width: none; }
  .roster__note-label { grid-column: 1; margin: 0; text-align: right; }
  .roster__note-what { grid-column: 3; font-size: clamp(16px, 1.3vw, 20px); padding-left: calc(var(--f) * .03); text-wrap: pretty; }
  .roster__note-when { display: inline; margin: 0 0 0 .9em; white-space: nowrap; }
  /* The profile link ends the line, its rule on the name's baseline. */
  .roster .roster__more { position: absolute; right: 0; top: calc(var(--pad) + var(--photo) * 1.25 - 1.62em); margin: 0; }
}

/* ── About AYA Youth, and the ways on from here ────────────────────────── */
.artists-about__grid { align-items: end; row-gap: clamp(24px, 4vw, 40px); }
.artists-about__voice { grid-column: 1 / -1; margin: 0; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.25; text-wrap: balance; }
.artists-about__body { grid-column: 1 / -1; }
.artists-about__links { margin-top: clamp(22px, 2.4vw, 32px); }
@media (min-width: 961px) {
  /* The two halves of the axis again: the statement on the left, the paragraph and the links on the right. */
  .artists-about__grid { grid-template-columns: var(--halves); column-gap: var(--gap); }
  .artists-about__voice { grid-column: 1; max-width: 15.5em; }
  .artists-about__body { grid-column: 3; max-width: 32em; padding-left: calc(var(--f) * .03); }
  .artists-about__links { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── The roster in brief, on the home page ─────────────────────────────── */
/* The home page leads to this page with the roster itself, at seven tenths of its size here: the name,
   the photograph standing in it and the instrument; the distinctions are left to this page. On a
   computer the lines are set on the same axis. In narrower windows each artist is a short line:
   the photograph, and beside it the instrument and the name. build/pages/home.js writes the lines;
   layout.js links this file on the home page as well. */
.youth-home-artists > .wrap { container-type: inline-size; }
.youth-home-artists .roster { margin-top: clamp(30px, 3.6vw, 56px); }
.youth-home-artists__more { display: flex; justify-content: center; margin: clamp(28px, 3.2vw, 48px) 0 0; }
@media (min-width: 961px) {
  .roster--brief .artists-axis {
    --f: min(calc(var(--half) / (var(--w-first) + var(--k) / 2 + .22) * .7), calc((var(--half) - 176px) / (var(--w-last) + var(--k) / 2 + .22) * .7), 88px);
  }
  .roster--brief .roster__row { --pad: clamp(22px, 2.2vw, 34px); }
}
@media (max-width: 960px) {
  .roster--brief .roster__row { flex-direction: row; align-items: center; text-align: left; gap: clamp(16px, 4.4vw, 32px); padding: clamp(16px, 4vw, 26px) 0; }
  .roster--brief .roster__photo { flex: none; width: clamp(76px, 22vw, 120px); }
  .roster--brief .roster__title { flex: 1 1 auto; min-width: 0; align-items: flex-start; margin: 0; }
  /* Given name(s) on one line and the family name on the next, as on an artist's cover. */
  .roster--brief .roster__name { margin-top: 7px; font-size: clamp(30px, 8.2vw, 54px); line-height: .98; white-space: normal; }
  .roster--brief .roster__first, .roster--brief .roster__last { display: block; }
  .roster--brief .roster__more { flex: none; margin: 0; }
}
/* On a phone the line itself is the way to the profile; the label has no room beside the name. */
@media (max-width: 640px) { .roster--brief .roster__more { display: none; } }
