From 04bf20c14e5d1e7ac9753fe3efb66c2957bb2afa Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 1 Mar 2026 02:43:48 +0000 Subject: [PATCH] Fix hero card sizing and heading overflow clipping Previous card attempt used padding: 3rem 3.5rem which overrode the container's padding-inline and shrank the text area from 652px to 568px, making the heading clip worse and the card look too narrow to read. Two fixes: - max-width: 780px + padding: 3rem 2.5rem gives 730px text area, comfortably containing the heading at any viewport size - heading clamp changed from (2.4rem, 6vw, 4rem) to (2.2rem, 4.5vw, 3.25rem) so the max rendered size stays well within the card width https://claude.ai/code/session_015wpwmheufcxkBuXivrSHhd --- www/css/style.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/css/style.css b/www/css/style.css index 8826e93..6371c24 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -292,14 +292,14 @@ ul { list-style: none; } .hero__content { position: relative; z-index: 1; - max-width: 680px; - padding: 3rem 3.5rem; + max-width: 780px; + padding: 3rem 2.5rem; background: rgba(8, 14, 38, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); - margin-block: 4rem; + margin-block: 3rem; } .hero__eyebrow { @@ -313,7 +313,7 @@ ul { list-style: none; } .hero__heading { font-family: var(--font-heading); - font-size: clamp(2.4rem, 6vw, 4rem); + font-size: clamp(2.2rem, 4.5vw, 3.25rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.25rem;