Plot: Some of the most imposing structures ever built, medieval castles withstood both bloody assaults and the test of time. Designed like machines with nearly every architectural detail devoted to defense, castles represented the perfect fusion of form and function