/* view: originator ------------------------------------------------------
 * Who first sang a song (Claude Design "Desktop" turn 3, 2026-10-20):
 * light, the song side's tone at every width (wide.md rule 8). Type only in
 * the head: no picture of them, ever. People in the lists are round faces,
 * a song is its still (rule 7). Tokens are listen.css's; nothing here
 * defines a colour of its own. At 900px and wider the head is a 400px
 * column held in view beside the songs — the block at the end.
 */

.orig-head {
  padding: 10px var(--gutter) 0;
}

.orig-eyebrow {
  margin: 0;
}

/* The name, as large as its longest word allows (originator.js
   NAME_PHONE / NAME_WIDE): a word is never broken inside. */
.orig-name {
  margin-top: 8px;
  font-size: var(--name-phone, 40px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.orig-name.is-whole {
  word-break: keep-all;
  overflow-wrap: normal;
}

.orig-name.is-cjk {
  line-break: strict;
  overflow-wrap: normal;
}

.orig-sentence {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--body-ink);
  text-wrap: pretty;
}

/* The page's one verb: filled while it plays, an outline while it queues,
   pressed once everything it would queue is queued. */
.orig-play {
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  margin-top: 18px;
  padding: 8px 16px;
  border-color: var(--accent);
  color: var(--accent);
  font-size: var(--t-body);
  text-align: center;
}

.orig-play.is-play {
  background: var(--accent);
  color: var(--on-accent);
}

.orig-note {
  margin-top: 10px;
  font-size: var(--t-meta);
  line-height: 1.4;
  color: var(--fg-muted);
  text-wrap: pretty;
}

/* The collection on YouTube, and Shuffle beside it (on by default). */
.orig-youtube {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 4px 0 0;
  font: 600 var(--t-meta) / 1.35 var(--sans);
}

.orig-youtube a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--accent);
}

/* ---- the people who sing more than one of their songs ---------------- */

.orig-devoted {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.orig-people {
  margin-top: 6px;
}

/* A person: face, name, how many of theirs. The name wraps, never cut. */
.orig-person {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: var(--tap);
  padding-block: 4px;
  color: var(--fg);
}

.orig-face {
  display: block;
  border-radius: 50%;
  background: var(--still-bg) center / cover no-repeat;
}

.orig-person-face {
  width: 36px;
  height: 36px;
}

.orig-person-name {
  font-size: var(--t-row);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.orig-person-n {
  font-size: var(--t-meta);
  color: var(--body-ink);
  white-space: nowrap;
}

/* ---- their songs ----------------------------------------------------- */

.orig-songs {
  margin-top: 26px;
}

.orig-songs-label {
  padding: 0 var(--gutter) 10px;
  border-bottom: 1px solid var(--line);
}

/* A row is one link to the song: its still, its title, who sings it, and
   what this listener has heard of it. */
.orig-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 80px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}

.orig-row:hover {
  text-decoration: none;
}

.orig-row:hover .orig-title {
  text-decoration: underline;
}

.orig-still {
  width: 100%;
  border-radius: 6px;
}

.orig-what {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* The title wraps; it is never cut. */
.orig-title {
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.orig-sung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

/* Up to five faces, each ringed in the page's ground. */
.orig-faces {
  display: flex;
  gap: 6px;
}

.orig-row-face {
  width: 24px;
  height: 24px;
  box-shadow: 0 0 0 2px var(--bg);
}

.orig-sing {
  font-size: var(--t-meta);
  color: var(--body-ink);
}

.orig-memory {
  font-size: var(--t-meta);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ---- the wide screen (≥ 900px) ---------------------------------------
   Two columns, as the person page: the head at the left, 400px, held in
   view while the songs scroll at the right (--hold-top, set by render from
   hold.js); 80px between them. The rows gain a 128px still and a 24px
   title. */
@media (min-width: 900px) {
  .orig {
    --gutter: 0px;
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    column-gap: 80px;
    align-items: start;
    padding: 36px 40px 60px;
  }

  .orig-head {
    position: sticky;
    top: var(--hold-top, 24px);
    padding: 0;
  }

  .orig-name {
    margin-top: 18px;
    font-size: var(--name-wide, 72px);
    line-height: 0.96;
  }

  .orig-sentence {
    margin-top: 18px;
    font-size: 18px;
  }

  .orig-songs {
    margin-top: 0;
  }

  .orig-row {
    grid-template-columns: 128px minmax(0, 1fr) auto;
    gap: 18px;
    min-height: 96px;
    padding-block: 12px;
  }

  .orig-title {
    font-size: 24px;
    line-height: 1.1;
  }
}
