It’s documented in https://github.com/observablehq/plot#area and https://github.com/observablehq/plot#line
z is used to separate series; it defaults to stroke or fill when then are channels, which is why most of the time you don’t need to specify it explicitly.