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 {