The foundations of capsule wardrobes