UNIT 9 • STAGE 6 OF 7
Refine spacing, typography, and add a footer to complete the page
Your page is functionally complete. It has a hero, concept cards, recipe cards, a form, a thank-you message, and working JavaScript. Polish is the work that takes a page from "built" to "finished": consistent spacing, thoughtful typography details, and a footer that closes the page with intention.
In this stage you will add three things:
max-width container to center the content and prevent lines from stretching too wide on large screenssubmit-btn:hover state so the button visually responds when users mouse over it<footer> element with an attribution note and the unit's source citationA footer grounds a page and signals that the content is complete. It is also where citations, copyright notices, and credits live. On a page about food sovereignty built on the work of Indigenous knowledge keepers and published authors, attribution is not a formality, it is part of respect for that work.
Find </style> and add this CSS just above it:
Inside three of the four sections, wrap the content in a <div class="section-inner">. This centers the content and limits its width on wide screens. Do this for #pillars, #recipes, and #community-form.
Skip the hero, the hero already has a .hero-inner wrapper that handles centering and max-width. Adding .section-inner there would create a conflict.
Repeat this pattern inside #pillars, #recipes, and #community-form: add <div class="section-inner"> as the first child inside each <section>, and close it with </div> before the closing </section>.
Find the closing </section> of the community form section. Add the footer right after it, before </body>:
max-width: 1100px; margin: 0 auto on .section-inner, caps the content width and centers it. On a monitor wider than 1100px, the sections stay full-width with their background colors, but the text and cards stop stretching beyond a readable width. The 0 auto margin is the standard pattern for centering a block-level element.background: #3d5e2a on .submit-btn:hover, a slightly lighter forest green. Just enough to signal to the user that the button is clickable and they are hovering over it. This is the kind of small interaction detail that makes a page feel built with care.footer with background: #1a1a1a, a near-black footer anchors the bottom of the page visually. The dark color echoes the deep green of the hero and signals closure.color: #a8d08d on footer a, the same sage green used in the hero for links. Reusing a color from earlier in the page creates quiet visual rhymes that make the design feel unified rather than assembled from parts.Your page is polished and complete. In Stage 7 you will add the finishing touch: CSS transitions that make the concept cards and recipe cards smoothly lift and respond when a user hovers over them.