diff --git a/src/app/globals.css b/src/app/globals.css index 20d8ec5..fe66a80 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -310,7 +310,10 @@ body::before { /* Typography */ h1, h2, h3, h4, h5, h6 { font-weight: 400; - line-height: 1.3; + /* Tightened from 1.3 — display serif at these sizes spaces too far + apart at 1.3 and the wrapped second line drifts away from the + first. 1.2 keeps multi-line headings reading as a single block. */ + line-height: 1.2; letter-spacing: -0.02em; } @@ -318,6 +321,10 @@ h1 { font-size: 2.5rem; font-weight: 300; letter-spacing: -0.03em; + /* Even tighter for the display-sized h1 — matches the homepage hero + and keeps long titles like "Browse through any repository." from + splitting into two visually disconnected lines. */ + line-height: 1.1; } h2 {