The Open Standard for Generative UI
/* Always two lines, split by hand so the swapping word never rewraps the
heading. The heading spans its whole column (instead of the band's 20ch cap)
and the lines scale down with it when the longer one would not fit, which
only happens on phones. */
:global(h3):has(> .heading) {
width: 100%;
max-width: none;
}
.heading {
display: block;
container-type: inline-size;
}
/* 7.4cqi keeps the longer line, "Make your AI apps and agents", inside the
column with a little room to spare. */
.line {
display: block;
white-space: nowrap;
font-size: min(1em, 7.4cqi);
}
/* Fits the shuffle's slot to the headline's own line height, with a little
room below for descenders, so the swapping word sits on the same baseline
and the line doesn't grow taller than the headline's others. */
.shuffle > span {
height: 1.3em;
margin-block: -0.1em;
vertical-align: bottom;
text-align: left;
}
.shuffle > span > span:last-child {
padding-top: 0.1em;
line-height: 1.1;
}