Slice potatoes evenly using a mandoline or sharp knife for uniform cooking. Cook onions low and slow for best caramelization. Gruyère cheese is classic but mozzarella or mild cheddar can be used. The dish can be assembled a day ahead and baked later (add 10 minutes to baking time if baking from fridge). Let the casserole rest before serving to help sauce thicken. Variations include using sweet potatoes, adding mushrooms, spicing with paprika or cayenne, making it vegan, or experimenting with herbs like rosemary or sage. Store leftovers in the refrigerator for up to 3 days and reheat covered in oven or microwave.