Line numbers place an item by the grid lines it starts and ends on: grid-area: 1 / 1 / 3 / 3 means row line 1, column line 1, to row line 3, column line 3, so a 2 × 2 tile in the top-left corner.
Named areas draw the layout as text, which is easier to read and change:
grid-template-areas:
"header header header"
"nav main aside"
"footer footer footer";
Then each item gets grid-area: header and so on. A dot (.) marks an empty cell, and every area must be a rectangle. Turn on Named areas to get this output.