From 34288666bee06df00a519bd6bc4783599214eeb2 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 20 Sep 2026 12:51:59 -0500 Subject: [PATCH] fix: the contribute section is as wide as every other one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/styles/global.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/styles/global.css b/src/styles/global.css index 90e289b..c029b77 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -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 {