Earthquake-resistant architecture