refactor: clarify mobile hero geometry

This commit is contained in:
Keith Solomon
2026-06-27 18:06:34 -05:00
parent a360b8192a
commit 81785c4aec
2 changed files with 23 additions and 9 deletions
+13 -8
View File
@@ -58,19 +58,24 @@
@media (max-width: 767px) {
.homepage-hero {
--hgtHero: clamp(37.5rem, 187vw, 47rem);
--hero-content-inset: clamp(1.25rem, 8vw, 2rem);
/* Preserve the 402px crop, then grow the linework to the 767px edge. */
--hero-vector-inline-start: max(-8vw, calc(63.8vw - 18.04rem));
--hero-vector-width: calc(100vw + 22.875rem);
min-height: var(--hgtHero);
}
.homepage-hero .content-wrapper {
padding-inline: clamp(1.25rem, 8vw, 2rem) !important;
}
.homepage-hero .content-wrapper > div {
margin-left: clamp(1.25rem, 8vw, 2rem);
max-width: 21.25rem;
margin-left: var(--hero-content-inset);
padding-top: clamp(3rem, 14vw, 3.75rem);
text-align: left;
width: min(
21.25rem,
calc(
100vw - var(--hero-content-inset) - var(--hero-content-inset)
)
);
}
.homepage-hero .intro h1 {
@@ -112,9 +117,9 @@
.homepage-hero .heroVector .vector {
bottom: 6.25rem;
left: max(-8vw, calc(63.8vw - 18.04rem));
left: var(--hero-vector-inline-start);
transform: translateX(-50%);
width: calc(100vw + 22.875rem);
width: var(--hero-vector-width);
}
.homepage-hero .heroMedia img,