From 07e85d7a5406790290497e399e06a706dbaacde9 Mon Sep 17 00:00:00 2001 From: Anas Rashid Date: Sat, 10 Oct 2026 01:18:33 +0200 Subject: [PATCH] Nastaliq titles: more line height and space above, so tall letters no longer reach into the path line Co-Authored-By: Claude Opus 5.5 --- web/src/styles/global.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/styles/global.css b/web/src/styles/global.css index 67ad5665..e086f78c 100644 --- a/web/src/styles/global.css +++ b/web/src/styles/global.css @@ -115,6 +115,8 @@ body { margin: 0; background: var(--surface-page); color: var(--text); font-fami main { padding: 16px 0 48px; } h1, h2 { line-height: 1.6; margin: .2em 0 .4em; font-weight: 700; text-align: center; color: var(--heading); } h1 { font-size: clamp(1.3rem, 5vw, var(--fs-2xl)); } +/* Nastaliq titles: its tall letters (ک، گ، ط) and deep descents need room, or they reach into the path line above */ +:root.nastaliq h1.lit { line-height: 2.4; margin-top: .6em; } h1::after { content: ''; display: block; width: 140px; height: 2px; background: var(--brand); margin: 8px auto 0; } /* Ganjoor's gold pill headings and links (.century / .part-title-block) */