fix: hero headline font jump on load — Space Grotesk inlined as data URI in the stylesheet (renders correctly from first paint; no swap-triggered balance reflow)
This commit is contained in:
@@ -44,7 +44,8 @@ const links = [
|
|||||||
<link rel="icon" href="/brand/CTAO_Logo_positive.svg" type="image/svg+xml" />
|
<link rel="icon" href="/brand/CTAO_Logo_positive.svg" type="image/svg+xml" />
|
||||||
{/* Brand typography (BRAND D.3): Inter (body) + Space Grotesk (headlines),
|
{/* Brand typography (BRAND D.3): Inter (body) + Space Grotesk (headlines),
|
||||||
self-hosted latin woff2 (variable) — @font-face lives in global.css. */}
|
self-hosted latin woff2 (variable) — @font-face lives in global.css. */}
|
||||||
<link rel="preload" href="/fonts/space-grotesk-latin.woff2" as="font" type="font/woff2" crossorigin />
|
{/* Space Grotesk ships inlined in the stylesheet (no swap on headlines);
|
||||||
|
only Inter needs a preload — its metric fallback hides the body swap. */}
|
||||||
<link rel="preload" href="/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin />
|
<link rel="preload" href="/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin />
|
||||||
</head>
|
</head>
|
||||||
<body class={ambient ? 'has-ambient' : undefined}>
|
<body class={ambient ? 'has-ambient' : undefined}>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user