A 20,000 ton heavy cruiser with nine 8 inch guns, armor and missile batteries, Sam and ciws could be built for a fraction of a carrier or battleship. You get heavy guns, tlam, and reasonable armored protect. Think a souped up Baltimore class or New Port News type ship.
For shore battery powder guns are going bye bye, IMO.
Railguns as the weapon system and build the ship around that.
Forward and aft battery, close support (Vulcan, BPDMS or similar)
It could be done smaller than 20,000 ton and be more effective/destructive.