Bioinspired process makes materials light, robust, programmable at nano- to macro-scale