Skip to content

docs(landing): replace stray hero shadow with card aura, widen ask body#130

Merged
youtalk merged 2 commits intomainfrom
docs-landing-hero-ask-polish
Apr 27, 2026
Merged

docs(landing): replace stray hero shadow with card aura, widen ask body#130
youtalk merged 2 commits intomainfrom
docs-landing-hero-ask-polish

Conversation

@youtalk
Copy link
Copy Markdown
Owner

@youtalk youtalk commented Apr 27, 2026

Summary

Two visual issues on the docs landing page (docs/index.html):

  1. Hero — stray shadow under the yokai cards. The .hero::after radial 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.
  2. "I built Mora for one kid I love." — narrow body, wasted right margin. The right column body had max-width:50ch inside a 1.4fr grid column, which left a noticeable unused gutter at common laptop widths.

Changes

Hero

  • Removed .hero::after corner gradient
  • Added .yokai-stack::before — a soft warm aura positioned behind the cards themselves, so the warmth reads as the cards' glow rather than a stray shadow

Ask section

  • Rebalanced .ask-grid: 1.1fr 1.4fr (gap 80) → 0.85fr 1.6fr (gap 64)
  • Bumped body max-width 50ch62ch
  • Made the heading column position:sticky; top:96px so "I built Mora for one kid I love." anchors while the body scrolls past

Single-column collapse (≤1080px)

  • .ask-grid collapses to grid-template-columns:1fr. At that point sticky on .col-left would float over the body as it scrolls past, so we disable sticky and clear the 62ch cap so the body fills the available width.

Mobile-specific (≤680px)

  • Tightened .yokai-stack height 420 → 380px and adjusted card positions so there is no empty band below the cards
  • Suppressed the aura on mobile (it would smear awkwardly across the narrow stack)

Test plan

  • Verified visually at desktop width (~1280px) — aura sits behind the yokai cards, ask body fills the column
  • Verified visually at mobile width — no stray dark band below the cards, single-column ask section reads at full width
  • Reviewer eyeball check at intermediate (~1024px) viewport

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
Copilot AI review requested due to automatic review settings April 27, 2026 18:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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::after corner radial gradient and introduce .yokai-stack::before aura behind the cards (disabled on small screens).
  • Rebalance .ask-grid columns/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.

Comment thread docs/index.html Outdated
Comment on lines 307 to 309
.yokai-card{z-index:1}
.yokai-card{
position:absolute;
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.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).

Suggested change
.yokai-card{z-index:1}
.yokai-card{
position:absolute;
.yokai-card{
position:absolute;
z-index:1;

Copilot uses AI. Check for mistakes.
Comment thread docs/index.html
Comment on lines 755 to +757
.ask-grid{grid-template-columns:1fr;gap:32px}
.ask-grid .col-left{position:static}
.ask-grid .col-right p{max-width:none}
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@youtalk youtalk enabled auto-merge (squash) April 27, 2026 18:44
@youtalk youtalk merged commit 058a4ca into main Apr 27, 2026
5 checks passed
@youtalk youtalk deleted the docs-landing-hero-ask-polish branch April 27, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants