/* Keep the current type, restore the stacked composition and share one reading column. */
#selected-work { scroll-margin-top: 0; }
body[data-page="home"] :is(#intro .intro-grid, #selected-work > .container, .outro-grid) {
  width: min(calc(100% - 8vw), 1040px);
  max-width: 1040px;
  margin-inline: auto;
}
body[data-page="home"] .outro-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
body[data-page="home"] .outro-grid > .section-index {
  flex-direction: row;
  justify-content: flex-start;
  padding-top: 0;
}
/* Section labels use the outer column; the reading text keeps its current position. */
body[data-page="home"] :is(#selected-work > .container, .outro-grid) {
  display: grid;
  width: min(calc(100% - 8vw), 1600px);
  max-width: 1600px;
  grid-template-columns: minmax(0, 1fr) min(100%, 1040px) minmax(0, 1fr);
  column-gap: 0;
}
#selected-work > .container > .section-index,
body[data-page="home"] .outro-grid > .section-index {
  grid-column: 1 / -1;
  justify-content: flex-start;
}
#selected-work > .container > :not(.section-index),
body[data-page="home"] .outro-grid > div:not(.section-index) {
  grid-column: 2;
  min-width: 0;
}
#selected-work > .container > .works-more { justify-self: start; }
#selected-work .section-index [data-layout-positioned],
.outro-grid > .section-index [data-layout-positioned] { left: 0 !important; }
#selected-work .section-index-wide { padding: 0 0 24px; border: 0; }
#selected-work .works-heading > div { min-width: 0; }
#selected-work #selected-title {
  margin-top: 18px;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}
#selected-work #selected-title em {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}
#selected-work .works-heading > p {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}
#selected-work .work-title {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}
#selected-work .work-title > .editable-text {
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
}
#selected-work .works-more {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
}
/* Keep editable text on the same horizontal guide as the greeting. */
#selected-work :is(#selected-title, .works-heading .eyebrow, .work-title, .works-more)[data-layout-positioned],
.outro-grid > div:not(.section-index) > [data-layout-positioned] {
  left: 0 !important;
}
@media (max-width: 760px) {
  body[data-page="home"] :is(#intro .intro-grid, #selected-work > .container, .outro-grid) {
    width: calc(100% - 40px);
    margin-inline: 20px;
  }
  body[data-page="home"] .outro-grid { gap: 24px 0; }
  #selected-work #selected-title { font-size: 48px; letter-spacing: -.03em; line-height: 1.12; }
  #selected-work .work-title { font-size: 26px; line-height: 1.5; }
}
@media (max-width: 520px) {
  #selected-work #selected-title { font-size: clamp(36px, calc((100vw - 40px) * .12), 44px); }
  #selected-work .works-heading > p { font-size: 14px; }
}
