/* Shared editorial project entries. Images, text, and actions remain separate. */
.project-list-item { position: relative; isolation: isolate; display: grid; grid-template-columns: 2rem minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 1.5rem; padding: 1.75rem 0 2.25rem; border: 0; border-bottom: 1px solid var(--site-border); background: none; color: var(--site-text); }
.project-list-item__number { padding-top: .125rem; color: var(--site-muted); font-family: var(--site-mono); font-size: .8125rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.project-list-item__image { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--site-soft); }
.project-list-item__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-list-item__content { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 0; }
.project-list-item__heading { margin-bottom: 1rem; }
.project-list-item__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .625rem; margin: 0 0 1rem; color: var(--site-muted); font-size: 1rem; line-height: 1.5; }
.project-list-item__role-label { color: var(--site-text); font-weight: 500; }
.project-list-item__separator { color: var(--site-tag-border); }
.project-list-item h2, .project-list-item h3 { margin: 0; font-size: 1.75rem; font-weight: 600; line-height: 1.12; letter-spacing: -.03em; overflow-wrap: anywhere; }
.project-list-item h2 a, .project-list-item h3 a { color: inherit; text-decoration: none; }
.project-list-item h2 a:hover, .project-list-item h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.project-list-item__link::after { position: absolute; inset: 0; z-index: 1; content: ''; }
.project-list-item__link:focus-visible { outline: none; }
.project-list-item__link:focus-visible::after { outline: var(--focus-ring); outline-offset: -4px; }
.project-list-item__date { margin: .75rem 0 0; color: var(--site-muted); font-family: var(--site-mono); font-size: .8125rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.project-list-item__description { max-width: 44ch; margin: 0 0 1.25rem; font-size: 1.125rem; line-height: 1.6; }
.project-list-item__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1.5rem; }
.project-list-item__read { font-size: 1rem; text-decoration: underline; text-underline-offset: .2em; }
.project-list-item:hover .project-list-item__read { text-decoration-thickness: 2px; }
.project-play, .project-list-item__status { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 2.75rem; padding: .5rem .875rem; border: 1px solid var(--site-text); border-radius: 0; background: var(--site-text); color: var(--site-background); font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.project-play__icon { width: 12px; height: 12px; }
.project-play:hover { background: var(--site-background); color: var(--site-text); text-decoration: none; }
.project-play:focus-visible { outline: var(--focus-ring); outline-offset: 4px; }
.project-play:disabled { border-color: var(--site-tag-border); background: transparent; color: var(--site-muted); cursor: not-allowed; }
.project-list-item__status { border-color: var(--site-border); background: transparent; color: var(--site-muted); font-weight: 400; }
.project-card__placeholder { display: grid; align-content: center; padding: 1.5rem; border: 1px solid var(--site-border); background: transparent; }
.project-card__placeholder span { color: var(--site-muted); font-size: .875rem; }
/* Project details: an overview, full-color media, then a narrow facts column and readable sections. */
.project-detail { margin: 2.5rem 0 4rem; }
.project-detail__back { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: 1.25rem; font-size: .875rem; }
.project-detail__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.project-detail__header h1 { max-width: 20ch; margin: 0; font-size: clamp(2.25rem, 4.75vw, 4rem); }
.project-detail__description { max-width: 65ch; margin: 1.25rem 0 0; font-size: 1.125rem; line-height: 1.6; }
.project-detail__image { display: block; width: 100%; max-height: 640px; margin: 0 0 3rem; background: var(--site-soft); object-fit: contain; }
.project-detail__reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 5rem; border-top: 1px solid var(--site-text); padding-top: 2rem; }
.project-detail__facts h2 { margin: 0 0 1.75rem; font-size: 1.25rem; }
.project-detail__facts dl { margin: 0; }
.project-detail__facts dt { margin: 1.25rem 0 .375rem; color: var(--site-muted); font-size: .875rem; font-weight: 400; }
.project-detail__facts dt:first-child { margin-top: 0; }
.project-detail__facts dd { margin: 0; font-size: 1rem; }
.project-detail__facts .project-list-item__date { margin: 0; color: var(--site-text); font-size: .875rem; }
.project-detail__facts ul { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 0; padding: 0; list-style: none; }
.project-detail__toc { display: grid; justify-items: start; gap: .5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--site-border); font-size: .875rem; }
.project-detail__sections { min-width: 0; max-width: 72ch; }
.project-detail__section { margin: 0 0 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--site-border); scroll-margin-top: 1.5rem; }
.project-detail__section h2 { margin: 0 0 1.25rem; font-size: 1.75rem; }
.project-detail__section p { margin: 0 0 1rem; }
.project-detail__section p:last-child { margin-bottom: 0; }
.project-detail__section ul { padding-left: 1.25rem; margin: 1rem 0 0; }
.project-detail__section li { padding-left: .25rem; margin-top: .5rem; line-height: 1.65; }
.project-detail__section li p { margin-bottom: .5rem; }
.project-detail__body { overflow-wrap: anywhere; }
.project-detail__body h2 { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--site-border); }
.project-engine { display: inline-flex; align-items: center; gap: .5rem; }
.project-engine svg { width: 18px; height: 18px; }
.project-detail__end { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--site-border); font-size: .875rem; }
@media (max-width: 900px) {
  .project-detail__reading-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; }
}
@media (max-width: 767px) {
  .project-list-item { grid-template-columns: 1.5rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0 2rem; }
  .project-list-item__content { grid-column: 2; }
  .project-detail { margin-top: 1.5rem; }
  .project-detail__header { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
  .project-detail__header > .project-play, .project-detail__header > .project-list-item__status { justify-self: start; }
  .project-detail__description { font-size: 1rem; }
  .project-detail__image { margin-bottom: 2rem; }
  .project-detail__reading-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .project-detail__facts dl { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem 1rem; }
  .project-detail__facts dt, .project-detail__facts dd { margin: 0; }
  .project-detail__toc { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
}
