Built on a shale ridge with a 35-foot drop-off, Scott and Julie Pelletier’s house in Maine comprises a succession of simple gables.