fix: the contribute section is as wide as every other one

It was capped at 760px while the grid above it runs to 1120px, and since it
shares .wrap's margin: 0 auto that cap centred it — so its left edge sat inboard
of the cards and the page looked broken rather than deliberately narrow.

The cap existed for line length, which is real, but it belongs on the prose and
not on the section. That is the split the hero already used: a full-width .hero
holding a .hero__lead capped at 62ch. This now does the same.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-20 12:51:59 -05:00
1 parent 3c4f1312c8
commit 34288666be
1 file changed
+10 -1
+10 -1
View File
@@ -89,9 +89,12 @@ main {
font-size: 1.05rem;
}
/* Full container width, like every other section, so its left edge lines up with the cards above.
The reading measure is capped on the prose instead — the same split the hero already uses,
where `.hero__lead` is narrow inside a full-width `.hero`. Capping the section itself centred it
at a narrower width and knocked the whole block out of alignment. */
.contribute {
padding-top: clamp(3rem, 7vw, 4.5rem);
max-width: min(var(--max-width), 760px);
}
.contribute h2 {
@@ -102,6 +105,12 @@ main {
.contribute p {
color: var(--dim);
margin: 0 0 16px;
max-width: 68ch;
}
/* The snippet is short and fixed, so it sizes to the prose rather than stretching to the grid. */
.contribute pre {
max-width: 68ch;
}
.contribute code {