You're between a rock and a hard place on this.
I have a similar, but much more long-lived issue on a bathroom door where one corner of the house has sunk over time [well over a century].
You have a choice to plane the top left side of the door [as we see it in the picture] just to clear the frame or the top right side to correct the hinges & level up the top.
Shimming the bottom right won't really work so well, as then both top & bottom of the left side will start to wedge on the frame. Planing the top right will correct the widening gap at the top - up to a point. If it keeps moving you can keep doing this until you start to be able to see light at the bottom left of the frame.
Depending on whether the frame is out of plumb or the top out of level might influence your decision. If the top is out of level, you could shift the architrave a little to try visually balance it up.
On my own door, it had already been re-jigged so many times by previous occupants that correcting the top was no longer an option, so I continue to plane underneath to keep it clear of the floor, as the uprights are still plumb, just now different heights… leaving this…

The slight apparent curve in the top architrave is actually caused by the wide lens I'm using. It's actually straight, just miles out of level.