/* Solstice v0.12: Sora headings with Inter body copy.
   The original layout is preserved; only titles requiring different Sora metrics
   are adjusted to fit the intended copy/image balance. */

/* Conversations: the initial story headline must remain within its text column. */
#conversations-title {
  max-width: 100%;
  font-size: clamp(3.1rem, 4.15vw, 4.54rem);
  line-height: 1.035;
  letter-spacing: -.055em;
  overflow-wrap: normal;
}

/* The two private messaging title lines should not intrude into the carousel. */
#messaging-title {
  max-width: 100%;
  font-size: clamp(2rem, 3.35vw, 2.8rem);
  /* font-size: clamp(2.65rem, 3.35vw, 3.85rem); */
  line-height: 1.07;
  letter-spacing: -.055em;
}


/* Administration: keep the original three-line visual rhythm. */
#administration-title {
  max-width: 100%;
  margin-inline: auto;
  font-size: clamp(3.2rem, 4.75vw, 5.55rem);
  line-height: 1.055;
  letter-spacing: -.054em;
  text-wrap: balance;
}

/* Security: "open web." should remain together on the last line. */
#security-title {
  max-width: 100%;
  font-size: clamp(2.95rem, 4.1vw, 5rem);
  line-height: 1.055;
  letter-spacing: -.055em;
}

/* Closing message: avoid orphaning "balance." on a fourth line. */
#release-title {
  max-width: 100%;
  font-size: clamp(3.15rem, 4.15vw, 4.8rem);
  line-height: 1.055;
  letter-spacing: -.055em;
  text-wrap: balance;
}

/* Large headings near the illustration should breathe on intermediate screens. */
@media (min-width: 901px) and (max-width: 1180px) {
  #conversations-title {
    font-size: clamp(2.55rem, 4.15vw, 3.2rem);
  }

  #messaging-title {
    font-size: clamp(2.4rem, 3.35vw, 3rem);
  }

  #security-title {
    font-size: clamp(2.9rem, 4.1vw, 3.5rem);
  }
}

/* On tablet and mobile the story is stacked, so the titles can grow naturally. */
@media (max-width: 900px) {
  #conversations-title {
    max-width: 760px;
    font-size: clamp(3rem, 7.5vw, 5rem);
  }

  #messaging-title {
    max-width: 760px;
    font-size: clamp(3rem, 6.9vw, 4.35rem);
  }

  #administration-title {
    font-size: clamp(3rem, 7.3vw, 4.65rem);
  }

  #security-title {
    max-width: 700px;
    font-size: clamp(3rem, 7.3vw, 4.6rem);
  }

  #release-title {
    font-size: clamp(3.1rem, 7.3vw, 4.5rem);
  }
}

@media (max-width: 620px) {
  #conversations-title,
  #messaging-title,
  #administration-title,
  #security-title,
  #release-title {
    font-size: clamp(2.45rem, 10.3vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.05em;
  }

  /* Avoid accidental horizontal clipping of long Sora words on narrow phones. */
  #conversations-title,
  #messaging-title,
  #administration-title,
  #security-title,
  #release-title {
    overflow-wrap: break-word;
  }
}
