/* Studio — same system as the case studies: run labels, section colour
   worlds, Newsreader headlines, framed media on a 12-col grid. */

.st-head { padding-bottom: clamp(48px, 6vw, 96px); }
.st-head .pj-title { max-width: 16ch; }

/* contents row under the intro */
.st-toc { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); column-gap: var(--g); border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.st-toc a { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; text-decoration: none; font-size: var(--t-body-s); line-height: 1.3; }
.st-toc .mono { font-size: var(--t-caption); color: var(--ink-2); }
.st-toc a:hover, .st-toc a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* sections */
.st-sec { padding-top: clamp(64px, 8vw, 128px); padding-bottom: clamp(64px, 8vw, 128px); scroll-margin-top: 40px; }
.st-h { margin-top: var(--s-5); }
.st-lede { margin-top: var(--s-3); max-width: 34ch; }
.st-grid { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--g); row-gap: clamp(36px, 4.5vw, 64px); align-items: start; }

.st-4 { grid-column: span 4; } .st-5 { grid-column: span 5; } .st-6 { grid-column: span 6; }
.st-7 { grid-column: span 7; } .st-8 { grid-column: span 8; } .st-12 { grid-column: 1 / -1; }

/* figures */
.st-f { margin: 0; }
.st-m { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(29,26,21,.08), 0 18px 40px -26px rgba(0,0,0,.4); }
.st-m img, .st-m video { display: block; width: 100%; height: auto; }
.st-f figcaption { margin-top: 12px; max-width: 58ch; font-size: var(--t-body-s); line-height: 1.5; color: var(--ink-2); }
.st-dia figcaption { max-width: 72ch; }
.st-ico .st-m { background: transparent; box-shadow: none; }
.st-ico figcaption { font-family: var(--mono); font-size: var(--t-caption); letter-spacing: .06em; text-transform: uppercase; text-align: center; }

/* image with its caption beside it */
.st-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--g); align-items: end; }
.st-side .st-m { grid-column: 1 / span 8; }
.st-side figcaption { grid-column: 9 / span 4; margin-top: 0; }

/* notes: the story between the pictures */
.st-note { grid-column: 1 / -1; max-width: 46rem; }
.st-k { font-size: var(--t-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.st-note p:not(.st-k) { font-size: clamp(1.2rem, 1.55vw, 1.5rem); line-height: 1.4; letter-spacing: -0.005em; }

.st-next { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }

@media (max-width: 860px) {
  .st-toc { grid-template-columns: 1fr; }
  .st-toc a { flex-direction: row; gap: 14px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
  .st-toc li:first-child a { padding-top: 14px; }
  .st-grid { row-gap: 32px; }
  .st-4, .st-5, .st-6, .st-7, .st-8, .st-note { grid-column: 1 / -1; }
  .st-ico { grid-column: span 4; }
  .st-ico figcaption { font-size: 10px; }
  .st-side .st-m, .st-side figcaption { grid-column: 1 / -1; }
  .st-side figcaption { margin-top: 12px; }
}
