Mott transitions, topology, and magnetism of interacting fermions in confined geometries.