/* A quieter, consistent editorial hierarchy for the four main content modules. */
:root {
  --section-title-size: clamp(36px, 3.5vw, 48px);
  --section-title-leading: 1.08;
  --section-title-spacing: -.035em;
  --section-heading-gap: clamp(34px, 4.5vw, 58px);
}

#work > header,
#thinking .workflow-heading,
#future .future-heading,
#life .life-stack-heading {
  margin-top: 0;
  margin-bottom: var(--section-heading-gap) !important;
}

#work > header h2,
#thinking .workflow-heading h2,
#future .future-heading h2,
#life .life-stack-heading h2 {
  margin: 0;
  color: var(--ui-ink);
  font-family: var(--serif);
  font-size: var(--section-title-size) !important;
  font-weight: 400;
  line-height: var(--section-title-leading) !important;
  letter-spacing: var(--section-title-spacing) !important;
  text-wrap: balance;
}

#work > header h2::after,
#thinking .workflow-heading h2::after,
#future .future-heading h2::after,
#life .life-stack-heading h2::after {
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 18px;
  content: "";
  background: currentColor;
  opacity: .34;
}

#thinking .workflow-heading {
  align-items: end;
}

#thinking .workflow-heading h2 {
  margin-top: 22px;
}

#thinking .workflow-heading > p,
#future .future-heading > span,
#life .life-stack-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: .015em;
}

#future .future-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr);
  gap: 8px clamp(34px, 7vw, 100px);
  align-items: end;
}

#future .future-heading > p {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: var(--ui-muted);
  font: 500 9px/1.5 var(--mono);
  letter-spacing: .18em;
}

#future .future-heading > span {
  padding-bottom: 7px;
}

#life .life-stack-heading h2 {
  color: rgba(255, 255, 255, .94);
}

#life .life-stack-heading h2::after {
  background: rgba(255, 255, 255, .86);
}

#life .life-stack-heading p {
  color: rgba(255, 255, 255, .56);
}

@media (max-width: 760px) {
  :root {
    --section-title-size: clamp(34px, 10vw, 42px);
    --section-heading-gap: 38px;
  }

  #thinking .workflow-heading,
  #future .future-heading,
  #life .life-stack-heading {
    display: block;
  }

  #thinking .workflow-heading > p,
  #future .future-heading > span,
  #life .life-stack-heading p {
    margin-top: 20px;
  }

  #life .life-stack-heading > div:last-child {
    display: block;
  }
}
