/* The page for one staff member: what it needs beyond app.css. The pages are written by site/staff-pages.py. */

/* The way back to the list, on the line of the tab. */
.trail { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.trail a { font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.trail a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* The person: portrait, name and job, with the line on what they do beside them. Both this and the example
   below it keep the same two columns. */
.intro, .example { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 64px); }
.intro { align-items: end; align-items: last baseline; }
.intro .lead { margin: 0; max-width: 36em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.2vw, 32px); align-items: center; }
.who img { width: clamp(92px, 13vw, 190px); height: auto; aspect-ratio: 1; border-radius: 50%; }
.who h1 { font-size: clamp(34px, 4.7vw, 64px); letter-spacing: -0.025em; }
.who h1 .a { color: var(--gold-ink); }
.who .job { margin: 10px 0 0; font-size: 17px; font-weight: 500; line-height: 1.3; }

/* The example: the request as a mail, and what comes back beside it. */
.example { margin-top: clamp(28px, 4vw, 60px); align-items: start; }
.example h2, .example h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 14px; color: var(--gold-ink); }
.example .mail p { font-size: 17.5px; line-height: 1.55; }
.example .back { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.95vw, 28px); line-height: 1.3; letter-spacing: -0.012em; }

/* What the person does, then what they need, where the facts come from and what stays with you. */
.does { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(23, 20, 15, .3); }
.does li { padding: 15px 0; border-bottom: 1px solid rgba(23, 20, 15, .3); font-size: 17px; line-height: 1.5; color: var(--body); }
.terms { margin-top: clamp(30px, 4.4vw, 64px); border-bottom: 1px solid rgba(23, 20, 15, .3); }
.terms > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(18px, 4vw, 64px); padding: 22px 0 24px; border-top: 1px solid rgba(23, 20, 15, .3); }
.terms h3 { margin: 0; }
.terms p { margin: 0; max-width: 64ch; color: var(--body); }

/* The person before and the person after, then how to reach this one. The card is shorter than the window
   and the two links sit at its head, so the card that slides over it does not cover them. */
.reach .panel { min-height: 0; padding-bottom: clamp(34px, 4.6vw, 64px); }
.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-bottom: clamp(26px, 3.4vw, 48px); padding-bottom: 20px; border-bottom: 1px solid rgba(23, 20, 15, .3); }
.others a { display: flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1.3; }
.others .next { justify-content: flex-end; text-align: right; }
.others img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.others small { display: block; font-size: 13.5px; color: var(--body); }
.others b { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -0.012em; margin-right: 4px; }
.others i { font-style: normal; font-size: 14.5px; font-weight: 500; color: var(--gold-ink); white-space: nowrap; }
.others a:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.how p { margin: 0 0 12px; max-width: 64ch; color: var(--body); }
.how .invited { margin: 18px 0 0; font-size: 15px; }
.how .invited a { color: var(--gold-ink); font-weight: 500; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .intro, .example, .terms > div { grid-template-columns: minmax(0, 1fr); }
  .who h1 { font-size: clamp(34px, 8vw, 56px); }
}
@media (max-width: 560px) {
  .does li { font-size: 16px; }
  .others { gap: 12px; }
  .others a { align-items: flex-start; gap: 10px; }
  .others img { width: 40px; height: 40px; }
  .others b { display: block; margin: 0; font-size: 18px; line-height: 1.15; }
}
