Preheat the oven to 400°F.: The warm, anticipatory smell of a preheated oven primes the gratin for a perfect finish, ensuring the top crisps evenly once it goes in. You should feel confident the oven is fully hot before baking, because placing the dish into a cooler oven will increase cooking time and may prevent the breadcrumbs from becoming golden. A common mistake is starting too early, so let the oven reach temperature and use an oven thermometer if you are unsure about accuracy.
In a large nonstick skillet, heat the butter. Saute the onion over medium-high heat until soft, about 5 minutes. Add the chard and cook until wilted and the stems are tender, about 5 minutes.: When the butter melts and begins to shimmer, you will notice a rich, nutty scent that sets the stage for building flavor. The pan should be hot enough to sizzle a tiny piece of onion on contact, but not so hot that the butter browns immediately. Using a too-hot pan can scorch the butter and introduce bitter notes, so adjust the flame so the fat warms steadily.
In a small bowl, whisk together the milk and cornstarch. Add to the pan and simmer until slightly thickened, about 5 minutes. Season with the nutmeg and 1 teaspoon salt.: As you stir the diced onion , listen for a gentle sizzle and watch the pieces turn translucent with edges softening into pale gold. This sweetness is crucial for balancing the earthy chard . If the onion starts to brown too quickly, lower the heat, because rapid caramelization will change the intended flavor profile. Stir frequently to encourage even softening.
Transfer the greens to a 3-quart ceramic baking dish and sprinkle the cheese over the top, followed by the breadcrumbs. Bake for 15 minutes, until heated through and the top is lightly golden brown.: The sound here will quiet as the moisture releases, and visually the pile of sliced chard will rapidly collapse into a glossy, deep green mass. Tender stems are a subtle textural victory; if stems seem firm, continue cooking briefly until they are easily pierced with a fork. A typical error is overcrowding the pan, which causes steaming instead of sautéing, so cook in batches if necessary.
In a small bowl, whisk together the milk and cornstarch.: Whisking creates a smooth slurry, eliminating lumps so the sauce will thicken uniformly. You should see a pale, silky liquid with no clumps. If you add cornstarch directly to hot milk , it can form gelatinous bits, so always mix it cold first. Overwhisking is not a problem, but under-whisking invites texture issues later.
Add to the pan and simmer until slightly thickened, about 5 minutes.: As the slurry hits the pan, the mixture should bubble gently and begin to cling to the back of a spoon, signaling the right consistency. The aroma turns creamier as the sauce integrates with the chard . If it remains runny, simmer a little longer, stirring, until the desired coat forms. Avoid a rolling boil which can break down the sauce and make it thin again.
Season with the nutmeg and 1 teaspoon salt.: The first whiff of nutmeg is a warm, aromatic lift that harmonizes with the dairy. Stir thoroughly so the seasoning distributes evenly through the sauce. Taste and add salt carefully because the upcoming gruyere will add additional saltiness. A common misstep is over-salting at this point, so err on the side of caution and adjust after cheese is added if needed.
Transfer the greens to a 3-quart ceramic baking dish and sprinkle the cheese over the top, followed by the breadcrumbs.: Moving the mixture to a shallow dish promotes even browning and a pleasing ratio of creamy interior to crisp top. The gruyere should be scattered so it melts across the surface, and the breadcrumbs offer a final toasted contrast. Be mindful to distribute both uniformly; piling both on one side leads to uneven texture after baking.
Bake for 15 minutes, until heated through and the top is lightly golden brown.: In the oven you will notice aromas deepen and the top will take on a warm, toasted color with a delicate crunch. The internal temperature rising signals doneness, and the edges will bubble gently. If the breadcrumbs brown faster than the interior heats, tent with foil briefly to prevent burning. Removing the dish too early results in a less cohesive gratin, so wait until the center is hot and bubbling quietly.