The Logic of Architecture: Design, Computation, and Cognition