I’d say dont design a Dragon encounter, instead design a Dragon Lair Encounter - the PCs need to be confronted by the whole Lair and work out how to overcome the Lair in order to defeat the “Dungeon Master”
Remember how dragons can move (fly, swim, burrow) and that Dragon lairs dont need to be open caverns - use the narrow verticle chimneys (thats plural) of an active volcanic crater, spouts of magma, falling lava bombs, clouds of acid gas, walls honeycombed with a vast network of side tunnels, rockfalls as the dragon smashes bits off the sides. Magmin and elementals too
keep the dragon smart and using its advantages including magic and cover and home advantage