The spacer <div> is required to minimize the <main> height to just fit its content. Without the spacer, <main> will consume the entire screen height and spread its children across the entire height. When there are not enough cards to fill the screen height, this spread results in ugly spacing.
</a>
</main>
+ <!-- Spacer element -->
+ <div></div>
+
<footer>
<address>
<a href="#"><noscript>ardis [at] ardislu [dot] dev</noscript></a>
</noscript>
</main>
+ <!-- Spacer element -->
+ <div></div>
+
<footer>
<div class="footer-links">
<a id="edit" href="/">
body {
display: grid;
- grid-template-rows: auto 1fr auto;
+ grid-template-rows: auto auto 1fr auto;
min-block-size: 100dvh;
color: hsl(0deg 0% 15%);
background: radial-gradient(circle at top, hsl(216deg 10% 95%), hsl(216deg 15% 90%) 40%);