docs(landing): replace stray hero shadow with card aura, widen ask body#130
docs(landing): replace stray hero shadow with card aura, widen ask body#130
Conversation
The bottom-right radial gradient on .hero floated unanchored to anything on the page and read as a stray shadow — especially on mobile, where it covered the empty band below the yokai stack. Removed it and added a soft warm aura behind the yokai cards themselves so the warmth now reads as the cards' glow instead of an accidental patch. The "I built Mora for one kid I love." section had 50ch body text inside a 1.4fr column, which left a wide unused gutter on the right at common laptop widths. Rebalanced the grid to 0.85fr / 1.6fr and bumped the body measure to 62ch so lines actually fill the column. Made the heading sticky on desktop so it anchors while the body scrolls past. Mobile (≤680px): - Tightened .yokai-stack height 420 → 380px so cards sit flush, no empty band below - Suppressed the aura — it would smear awkwardly across the narrow stack - Disabled the sticky heading and the 62ch cap so single-column flow reads naturally
There was a problem hiding this comment.
Pull request overview
Updates the docs landing page hero and “ask” section styling to remove an unanchored corner glow/shadow, add a card-anchored aura behind the yokai stack, and better utilize horizontal space in the “ask” body copy.
Changes:
- Remove
.hero::aftercorner radial gradient and introduce.yokai-stack::beforeaura behind the cards (disabled on small screens). - Rebalance
.ask-gridcolumns/gap and widen right-column paragraph max width. - Make the ask section’s left column sticky on larger viewports; disable sticky and width caps at narrower breakpoints.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| .yokai-card{z-index:1} | ||
| .yokai-card{ | ||
| position:absolute; |
There was a problem hiding this comment.
.yokai-card is declared twice back-to-back solely to set z-index: 1, which makes the CSS harder to maintain and easy to miss during future edits. Please fold the z-index into the existing .yokai-card{ ... } rule (or, if the intent is to apply only when the aura exists, consider targeting .yokai-stack .yokai-card).
| .yokai-card{z-index:1} | |
| .yokai-card{ | |
| position:absolute; | |
| .yokai-card{ | |
| position:absolute; | |
| z-index:1; |
| .ask-grid{grid-template-columns:1fr;gap:32px} | ||
| .ask-grid .col-left{position:static} | ||
| .ask-grid .col-right p{max-width:none} |
There was a problem hiding this comment.
The PR description says the sticky heading is disabled on mobile (≤680px), but the CSS disables it at @media (max-width:1080px) by setting .ask-grid .col-left{position:static}. If the sticky behavior is intended to apply on intermediate/tablet widths too, the PR description should be updated; otherwise, consider moving this override to the ≤680px breakpoint (or whichever breakpoint matches the intended behavior).
There was a problem hiding this comment.
Good catch on the inconsistency. The CSS breakpoint is intentional — 1080px is where .ask-grid itself collapses to grid-template-columns:1fr, so once the layout is single-column the sticky heading becomes awkward (it would float over the body as it scrolls). Disabling sticky at the same point the layout collapses is what we want.
The PR description was the wrong side of the inconsistency — I'll update it to say "≤1080px (single-column layout) — disable sticky" instead of "Mobile (≤680px)".
Copilot flagged the trailing `.yokai-card{z-index:1}` override sitting
right above the main rule as a duplicate that's easy to miss in future
edits. Folded it into the primary `.yokai-card` declaration so the
stacking-context intent stays with the rest of the card's positioning.
No visual change; cards still sit above the .yokai-stack::before aura.
Summary
Two visual issues on the docs landing page (
docs/index.html):.hero::afterradial gradient (520×520, anchored bottom-right) floated unattached to anything on the page and read as a meaningless dark patch — especially on mobile, where it covered the empty band below the stacked cards.max-width:50chinside a1.4frgrid column, which left a noticeable unused gutter at common laptop widths.Changes
Hero
.hero::aftercorner gradient.yokai-stack::before— a soft warm aura positioned behind the cards themselves, so the warmth reads as the cards' glow rather than a stray shadowAsk section
.ask-grid:1.1fr 1.4fr(gap 80) →0.85fr 1.6fr(gap 64)max-width50ch→62chposition:sticky; top:96pxso "I built Mora for one kid I love." anchors while the body scrolls pastSingle-column collapse (≤1080px)
.ask-gridcollapses togrid-template-columns:1fr. At that point sticky on.col-leftwould float over the body as it scrolls past, so we disable sticky and clear the62chcap so the body fills the available width.Mobile-specific (≤680px)
.yokai-stackheight420 → 380pxand adjusted card positions so there is no empty band below the cardsTest plan