The idea
writing-mode rotates the whole flow of a block. vertical-rl makes the inline axis run top-to-bottom and stacks lines right-to-left, so text reads downward and the first line sits at the right edge. The box keeps its physical size — the text inside it turns.
This level needs writing-mode. transform is off-limits: rotating the text would fake the look without teaching you the property that changes the flow.