This uses interpolate-size: allow-keywords on :root to enable smooth transitions from 0 to auto without any calculations.
calc-size() because it doesn't modify the intrinsic auto height.
This tag uses calc-size(fit-content, ...) to maintain a minimum presence while adding extra padding as it grows.
Uses calc-size(auto, size + 2rem) to animate to a height that includes dynamic extra padding.
auto height plus an additional 2rem of calculated space.
This ensures that no matter how much text is here, the "breathing room" remains consistent.
Uses calc-size(max-content, size * 1.25) to ensure the container is always 25% larger than its longest line of text.