That way, there will be far less chances that bolts spontaneously rip off and stairs go down, nor the lengths of pillars to have to be critical dimensions. The pillars can optionally be cut to precise lengths to be screwed through both steps and slopes for maximum Apple-ness, or, can be lazily cut to long-enough lengths, nailed through to steps from the "outside", and used as base for handrails as if it had been the plan.
(dc: not an engineering advise. consult a real engineer for safety. Also add cross beams in width-height plane, they help tremendously)
What OP was really making were misused ladders.
I made a table. The legs are all exactly the same length, but don't ask me what that exact length is - I eyeballed the height I wanted and then clamped all the legs together before cutting them.
Another tip for building things with legs - a 3-legged object is stable on any uneven surface while a 4-legged objects will wobble on uneven surfaces.
This is because 3 points make a plane, adding a 4th point that is not on that plane introduces a wobble.
On a level floor, sure. But for something that will be on uneven surfaces, like outside, 3 legs are stable, even if the legs are all different sizes[1].
[1] Three points make a plane, the plane itself may not be level, but because all points of contact are on the same plane there is no wobble. When there are more than 3 legs, some points may not be on the same plane, producing a wobble.
https://www.blocklayer.com/stairs/straighteng, click "Show Notching Template", then "Diagrams to PDF"
But, really, don't build stairs like OP suggested.