Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

docs: rebuild the home page in the VitePress theme

rpone3d69beb41cbf
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index 7a2bcd6a..72851e50 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -1,6 +1,11 @@
import { defineConfig } from "vitepress";
import type { ShikiTransformer } from "shiki";
+// Keep the server deployment at /docs/ while allowing the custom-domain
+// GitHub Pages workflow to publish the same site at the domain root. The
+// pre-paint script below has to agree with this, so both read the one value.
+const base = process.env.VITEPRESS_BASE || "/docs/";
+
function svmlSelectionHighlighter(): ShikiTransformer {
return {
name: "svml-selection-highlighter",
@@ -213,9 +218,7 @@ const zhTheme = {
};
export default defineConfig({
- // Keep the server deployment at /docs/ while allowing the custom-domain
- // GitHub Pages workflow to publish the same site at the domain root.
- base: process.env.VITEPRESS_BASE || "/docs/",
+ base,
lang: "en-US",
title: "Narratage",
description: "Write the story. Compile the video.",
@@ -234,21 +237,20 @@ export default defineConfig({
codeTransformers: [svmlSelectionHighlighter()],
},
head: [
- ["meta", { name: "theme-color", content: "#2C2126" }],
+ ["meta", { name: "theme-color", content: "#f3f0e8", media: "(prefers-color-scheme: light)" }],
+ ["meta", { name: "theme-color", content: "#131211", media: "(prefers-color-scheme: dark)" }],
+ // Runs before first paint: restores the "intro already seen" flag, marks the
+ // home page so the branded palette paints without a flash, and sends
+ // zh-preferring visitors to the Chinese home.
[
"script",
{},
- `(function(){var p=location.pathname,b="/docs/",k="narratage-locale",h="narratage-hero-intro-seen",l;try{if(sessionStorage.getItem(h)==="1")document.documentElement.classList.add("hero-intro-seen");l=localStorage.getItem(k)}catch(e){}if(!l)l=(navigator.language||"").toLowerCase().indexOf("zh")===0?"zh":"en";if(p===b||p===b+"zh/"||p===b.slice(0,-1)||p===b+"zh")document.documentElement.classList.add("home-page");if(p===b&&l==="zh")location.replace(b+"zh/"+location.search+location.hash)})()`,
+ `(function(){var p=location.pathname,b=${JSON.stringify(base)},k="narratage-locale",h="narratage-hero-intro-seen",d=document.documentElement,l;try{if(sessionStorage.getItem(h)==="1")d.classList.add("hero-intro-seen");l=localStorage.getItem(k)}catch(e){}if(!l)l=(navigator.language||"").toLowerCase().indexOf("zh")===0?"zh":"en";var en=p===b||(b.length>1&&p===b.slice(0,-1)),zh=p===b+"zh/"||p===b+"zh";if(en||zh)d.classList.add("home-page");if(en&&l==="zh")location.replace(b+"zh/"+location.search+location.hash)})()`,
],
["link", { rel: "preconnect", href: "https://fonts.googleapis.com" }],
["link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" }],
- [
- "link",
- {
- rel: "stylesheet",
- href: "https://fonts.googleapis.com/css2?family=Cutive+Mono&family=Google+Sans+Code:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=Newsreader:opsz,[email protected],400;6..72,500;6..72,600;6..72,700&display=swap",
- },
- ],
+ // The only webfont the site still needs: the demo players' audio toggle.
+ // Everything else is the system monospace stack.
[
"link",
{
diff --git a/docs/.vitepress/theme/Layout.vue b/docs/.vitepress/theme/Layout.vue
index 2b017115..9559e56d 100644
--- a/docs/.vitepress/theme/Layout.vue
+++ b/docs/.vitepress/theme/Layout.vue
@@ -2,8 +2,9 @@
import DefaultTheme from "vitepress/theme";
import { useData } from "vitepress";
import { computed } from "vue";
-import HeroStatement from "./components/HeroStatement.vue";
+import HeroMasthead from "./components/HeroMasthead.vue";
import LocalePreference from "./components/LocalePreference.vue";
+import PaperFooter from "./components/PaperFooter.vue";
import { useHomeThemeScope } from "./HomeThemeScope";
import NarratageMark from "./components/NarratageMark.vue";
import NarratageWordmark from "./components/NarratageWordmark.vue";
@@ -21,6 +22,10 @@ useHomeThemeScope(isHome);
<template #nav-bar-title-before><NarratageMark v-if="isHome" class="nav-narratage-mark" /></template>
<template #nav-bar-title-after><NarratageWordmark v-if="isHome" class="nav-narratage-wordmark" animate /></template>
<template #layout-top><LocalePreference /></template>
- <template #home-hero-info><HeroStatement /></template>
+ <template #home-hero-info><HeroMasthead /></template>
+ <template #layout-bottom><PaperFooter v-if="isHome" /></template>
</DefaultLayout>
+ <!-- Kept outside the layout: a blended overlay must not sit inside a container
+ that establishes its own stacking or filter context. -->
+ <div v-if="isHome" class="np-grain" aria-hidden="true"></div>
</template>
diff --git a/docs/.vitepress/theme/components/HeroMasthead.vue b/docs/.vitepress/theme/components/HeroMasthead.vue
new file mode 100644
index 00000000..e6f8ce00
--- /dev/null
+++ b/docs/.vitepress/theme/components/HeroMasthead.vue
@@ -0,0 +1,60 @@
+<script setup lang="ts">
+import { computed } from "vue";
+import { useData, withBase } from "vitepress";
+
+const { lang } = useData();
+const isChinese = computed(() => lang.value.toLowerCase().startsWith("zh"));
+</script>
+
+<template>
+ <div class="np-masthead">
+ <div class="np-masthead-meta">
+ <span class="np-masthead-label">{{ isChinese ? "开源项目" : "Open source" }}</span>
+ <span class="np-rule tick-r np-masthead-rule"></span>
+ </div>
+
+ <div class="np-masthead-wrap">
+ <!--
+ One <text> with two <tspan>s, not two <text>s: textLength is applied per
+ <text>, so splitting the wordmark would stretch each half to full width.
+ -->
+ <svg
+ class="np-masthead-wordmark"
+ viewBox="0 0 1200 268"
+ role="img"
+ aria-label="Narratage"
+ >
+ <text
+ x="0"
+ y="252"
+ font-family="Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Black', sans-serif"
+ font-size="268"
+ textLength="1200"
+ lengthAdjust="spacingAndGlyphs"
+ >
+ <tspan class="np-masthead-ink">NARRA</tspan><tspan class="np-masthead-red">TAGE</tspan>
+ </text>
+ </svg>
+
+ <!-- Outside the wordmark, or the intro wipe would clip it too. -->
+ <img
+ class="np-masthead-stamp"
+ :src="withBase('/hero-landscape.png')"
+ alt=""
+ width="77"
+ height="50"
+ />
+
+ <p class="np-masthead-tagline">
+ {{
+ isChinese
+ ? "全球第一的 AI agent 视频编程语言与系统。"
+ : "World's #1 video programming language and system for AI agents."
+ }}
+ </p>
+ <p class="np-masthead-subline">
+ {{ isChinese ? "为终结 Adobe 而生。" : "Built to kill Adobe." }}
+ </p>
+ </div>
+ </div>
+</template>
diff --git a/docs/.vitepress/theme/components/HeroStatement.vue b/docs/.vitepress/theme/components/HeroStatement.vue
deleted file mode 100644
index 679e24eb..00000000
--- a/docs/.vitepress/theme/components/HeroStatement.vue
+++ /dev/null
@@ -1,83 +0,0 @@
-<script setup lang="ts">
-import { computed, onBeforeUnmount, onMounted, ref } from "vue";
-import { useData } from "vitepress";
-import NarratageWordmark from "./NarratageWordmark.vue";
-
-const statements = [
- {
- enBefore: "A ",
- enConcept: "high-level video language",
- enConnector: " for ",
- enAudience: "developers",
- enAfter: ".",
- zhBefore: "面向",
- zhAudience: "开发者",
- zhConnector: "的",
- zhConcept: "高级视频语言",
- zhAfter: "。",
- },
- {
- enBefore: "An ",
- enConcept: "editing-free production system",
- enConnector: " for ",
- enAudience: "creative teams",
- enAfter: ".",
- zhBefore: "面向",
- zhAudience: "创意团队",
- zhConnector: "的",
- zhConcept: "免剪辑制作系统",
- zhAfter: "。",
- },
- {
- enBefore: "A ",
- enConcept: "scalable marketing video engine",
- enConnector: " for ",
- enAudience: "brands",
- enAfter: ".",
- zhBefore: "面向",
- zhAudience: "品牌",
- zhConnector: "的",
- zhConcept: "可规模化营销视频引擎",
- zhAfter: "。",
- },
-];
-
-const activeIndex = ref(0);
-const { lang } = useData();
-const showChinese = computed(() => lang.value.toLowerCase().startsWith("zh"));
-let rotationTimer: ReturnType<typeof setInterval> | undefined;
-
-onMounted(() => {
- rotationTimer = setInterval(() => {
- activeIndex.value = (activeIndex.value + 1) % statements.length;
- }, 2900);
-});
-
-onBeforeUnmount(() => {
- if (rotationTimer) clearInterval(rotationTimer);
-});
-</script>
-
-<template>
- <div class="hero-statement">
- <div class="hero-wordmark">
- <h1 class="hero-statement-name"><NarratageWordmark animate /></h1>
- </div>
-
- <div class="hero-statement-viewport hero-statement-viewport-en">
- <Transition name="hero-statement-swap">
- <p :key="activeIndex" class="hero-statement-en">
- <span class="hero-statement-line">{{ statements[activeIndex].enBefore }}{{ statements[activeIndex].enConcept }}{{ statements[activeIndex].enConnector }}<br class="hero-statement-break"><span class="hero-statement-accent">{{ statements[activeIndex].enAudience }}</span>{{ statements[activeIndex].enAfter }}</span>
- </p>
- </Transition>
- </div>
-
- <div class="hero-statement-viewport hero-statement-viewport-zh" :class="{ 'is-locale-hidden': !showChinese }">
- <Transition name="hero-statement-swap">
- <p :key="activeIndex" class="hero-statement-zh">
- <span class="hero-statement-line">{{ statements[activeIndex].zhBefore }}<span class="hero-statement-accent">{{ statements[activeIndex].zhAudience }}</span>{{ statements[activeIndex].zhConnector }}{{ statements[activeIndex].zhConcept }}{{ statements[activeIndex].zhAfter }}</span>
- </p>
- </Transition>
- </div>
- </div>
-</template>
diff --git a/docs/.vitepress/theme/components/LocalePreference.vue b/docs/.vitepress/theme/components/LocalePreference.vue
index 294b8ecf..2bd551df 100644
--- a/docs/.vitepress/theme/components/LocalePreference.vue
+++ b/docs/.vitepress/theme/components/LocalePreference.vue
@@ -4,8 +4,14 @@ import { onBeforeUnmount, onMounted } from "vue";
const storageKey = "narratage-locale";
const heroIntroKey = "narratage-hero-intro-seen";
+// The dev server serves the site under `/docs/`; the Pages deploy builds with
+// VITEPRESS_BASE=/ and serves it at the domain root. Vite substitutes the right
+// one at build time, so neither can be hard-coded here.
+const base = import.meta.env.BASE_URL;
+const zhRoot = `${base}zh`;
+
function localeFromPath(pathname: string) {
- return pathname === "/docs/zh" || pathname.startsWith("/docs/zh/") ? "zh" : "en";
+ return pathname === zhRoot || pathname.startsWith(`${zhRoot}/`) ? "zh" : "en";
}
function rememberLocale(event: MouseEvent) {
@@ -13,7 +19,7 @@ function rememberLocale(event: MouseEvent) {
const link = target?.closest<HTMLAnchorElement>("a[href]");
if (!link) return;
const url = new URL(link.href, window.location.href);
- if (!url.pathname.startsWith("/docs/")) return;
+ if (!url.pathname.startsWith(base)) return;
const nextLocale = localeFromPath(url.pathname);
const currentLocale = localeFromPath(window.location.pathname);
try {
diff --git a/docs/.vitepress/theme/components/PaperFooter.vue b/docs/.vitepress/theme/components/PaperFooter.vue
new file mode 100644
index 00000000..1ac90d50
--- /dev/null
+++ b/docs/.vitepress/theme/components/PaperFooter.vue
@@ -0,0 +1,92 @@
+<script setup lang="ts">
+import { computed } from "vue";
+import { useData, withBase } from "vitepress";
+
+const REPO = "https://github.com/hypit-ai/narratage";
+
+const { lang } = useData();
+const isChinese = computed(() => lang.value.toLowerCase().startsWith("zh"));
+const docsRoot = computed(() => (isChinese.value ? "/zh" : ""));
+
+const t = (en: string, zh: string) => (isChinese.value ? zh : en);
+</script>
+
+<template>
+ <footer class="np-footer">
+ <div class="np-footer-grid">
+ <section>
+ <h2>{{ t("Docs", "文档") }}</h2>
+ <ul>
+ <li>
+ <a :href="withBase(`${docsRoot}/quickstart`)">{{ t("Quickstart", "快速开始") }}</a>
+ </li>
+ <li>
+ <a :href="withBase(`${docsRoot}/guide/develop`)">{{ t("Develop", "开发指南") }}</a>
+ </li>
+ </ul>
+ </section>
+
+ <section>
+ <h2>{{ t("Project", "项目") }}</h2>
+ <ul>
+ <li><a :href="REPO" target="_blank" rel="noreferrer">{{ t("Repository", "代码仓库") }}</a></li>
+ <li>
+ <a :href="`${REPO}/releases`" target="_blank" rel="noreferrer">
+ {{ t("Changelog", "更新日志") }}
+ </a>
+ </li>
+ <li>
+ <a :href="`${REPO}/blob/main/LICENSE`" target="_blank" rel="noreferrer">
+ {{ t("Licence", "开源协议") }}
+ </a>
+ </li>
+ </ul>
+ </section>
+
+ <section>
+ <h2>{{ t("Community", "社区") }}</h2>
+ <ul>
+ <li><a href="https://discord.gg/cWQ92BaKV" target="_blank" rel="noreferrer">Discord</a></li>
+ <li><a href="https://t.me/narratage" target="_blank" rel="noreferrer">Telegram</a></li>
+ </ul>
+ </section>
+
+ <section class="np-footer-about">
+ <h2>Narratage</h2>
+ <p>
+ {{
+ t(
+ "World's #1 video programming language and system for AI agents. Built to kill Adobe.",
+ "全球第一的 AI agent 视频编程语言与系统。为终结 Adobe 而生。"
+ )
+ }}
+ </p>
+
+ <div class="np-footer-social">
+ <a :href="REPO" target="_blank" rel="noreferrer" aria-label="GitHub">
+ <svg width="21" height="21" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
+ <path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.4 7.4 0 0 1 2-.27c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z" />
+ </svg>
+ </a>
+ <a href="https://x.com/hypitai" target="_blank" rel="noreferrer" aria-label="X">
+ <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
+ <path d="M18.9 1.15h3.68l-8.04 9.19L24 22.85h-7.41l-5.8-7.58-6.64 7.58H.46l8.6-9.83L0 1.15h7.6l5.24 6.93 6.06-6.93Zm-1.29 19.5h2.04L6.49 3.24H4.3l13.31 17.41Z" />
+ </svg>
+ </a>
+ <a href="https://www.instagram.com/hypit_ai" target="_blank" rel="noreferrer" aria-label="Instagram">
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true">
+ <rect x="2.5" y="2.5" width="19" height="19" rx="5.4" stroke="currentColor" stroke-width="1.9" />
+ <circle cx="12" cy="12" r="4.4" stroke="currentColor" stroke-width="1.9" />
+ <circle cx="17.6" cy="6.4" r="1.25" fill="currentColor" />
+ </svg>
+ </a>
+ </div>
+ </section>
+ </div>
+
+ <div class="np-footer-bottom">
+ <span>{{ t("© 2026 Hypit. All rights reserved.", "© 2026 Hypit. 保留所有权利。") }}</span>
+ <a href="mailto:[email protected]">{{ t("Email us", "联系我们") }}</a>
+ </div>
+ </footer>
+</template>
diff --git a/docs/.vitepress/theme/components/SemanticVideoDemo.vue b/docs/.vitepress/theme/components/SemanticVideoDemo.vue
index 107a414c..00cbee2e 100644
--- a/docs/.vitepress/theme/components/SemanticVideoDemo.vue
+++ b/docs/.vitepress/theme/components/SemanticVideoDemo.vue
@@ -797,7 +797,7 @@ onBeforeUnmount(() => {
.street-broll { position: absolute; inset: 0; z-index: 10; display: none; width: 100%; height: 100%; object-fit: cover; }
.street-broll.active { display: block; }
.visual-outline { position: absolute; z-index: 24; pointer-events: none; }
-.street-scene-outline { inset: 4px; border: 1px solid rgba(238,123,98,.92); }
+.street-scene-outline { inset: 4px; border: 1px solid var(--crimson); }
.street-broll-outline { inset: 9px; border: 1px solid rgba(99,216,255,.95); }
.gbb-header { position: absolute; z-index: 8; top: 8.9%; left: 5.8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7.2%; width: 88.4%; }
.gbb-slot { position: relative; display: grid; justify-items: center; opacity: 1; }
@@ -807,7 +807,7 @@ onBeforeUnmount(() => {
.slot-good strong { color: #ff1749; }
.slot-better strong { color: #ffb300; }
.slot-best strong { color: #00b96b; }
-.gbb-slot.selected::after { content: ""; position: absolute; inset: -4px -2px -5px; border: 1px solid #EE7B62; pointer-events: none; }
+.gbb-slot.selected::after { content: ""; position: absolute; inset: -4px -2px -5px; border: 1px solid var(--crimson); pointer-events: none; }
.gbb-deck { position: absolute; z-index: 12; top: 61.7%; left: 11%; width: 78%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 9px 28px rgba(0,0,0,.28); }
.gbb-deck.selected { outline: 1px solid #63d8ff; outline-offset: 3px; }
.demo-caption { position: absolute; z-index: 30; left: 5%; display: flex; align-items: baseline; justify-content: center; width: 90%; column-gap: 4px; color: #fff; font-family: Arial Black, Poppins, Inter, sans-serif; font-size: 16px; font-weight: 900; line-height: 1.08; text-align: center; white-space: nowrap; pointer-events: none; -webkit-text-stroke: .75px #000; paint-order: stroke fill; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
@@ -817,14 +817,14 @@ onBeforeUnmount(() => {
.demo-caption span.active { color: #ffd34d; transform: scale(1.08); }
.demo-progress-track { display: flex; grid-template-columns: none; gap: 0; background: transparent; }
.demo-progress-labels { gap: 2px; }
-.demo-progress-track .segment { min-width: 0; height: 100%; flex-basis: 0; border-radius: 0; box-shadow: inset -1px 0 #1F191B; transition: box-shadow .2s ease; }
+.demo-progress-track .segment { min-width: 0; height: 100%; flex-basis: 0; border-radius: 0; box-shadow: inset -1px 0 var(--paper-2); transition: box-shadow .2s ease; }
.demo-progress-track .segment:first-child { border-radius: 3px 0 0 3px; }
.demo-progress-track .segment:nth-child(4) { border-radius: 0 3px 3px 0; box-shadow: none; }
.demo-progress-track .segment:nth-child(1) { background: var(--demo-segment-cyan); }
.demo-progress-track .segment:nth-child(2) { background: var(--demo-segment-green); }
.demo-progress-track .segment:nth-child(3) { background: var(--demo-segment-gold); }
.demo-progress-track .segment:nth-child(4) { background: var(--demo-segment-pink); }
-.demo-progress-track .segment.active { box-shadow: inset 0 -2px var(--demo-cursor), inset -1px 0 #1F191B; }
+.demo-progress-track .segment.active { box-shadow: inset 0 -2px var(--demo-cursor), inset -1px 0 var(--paper-2); }
@media (max-width: 900px) {
.semantic-live-stage { height: 520px; }
diff --git a/docs/.vitepress/theme/components/SvmlDemoCarousel.vue b/docs/.vitepress/theme/components/SvmlDemoCarousel.vue
index cf0128db..162ad8d1 100644
--- a/docs/.vitepress/theme/components/SvmlDemoCarousel.vue
+++ b/docs/.vitepress/theme/components/SvmlDemoCarousel.vue
@@ -153,9 +153,11 @@ onBeforeUnmount(() => cardObserver?.disconnect());
</template>
<style scoped>
-.svml-demo-showcase { width: calc(100% - 128px); max-width: 1180px; margin: 0 auto; padding: 48px 32px 96px; box-sizing: border-box; }
-.demo-list { display: grid; gap: 64px; width: min(100%, 1000px); margin-inline: 0; }
-.carousel-heading { width: min(100%, 1000px); margin-right: 0; margin-left: 0; }
+/* The cap covers the padding as well, so this column and the masthead — which is
+ capped at 1280px inside the same padding — share a left edge. */
+.svml-demo-showcase { width: 100%; max-width: calc(1280px + var(--pad) * 2); margin: 0 auto; padding: 48px var(--pad) 96px; box-sizing: border-box; }
+.demo-list { display: grid; gap: 64px; width: 100%; margin-inline: 0; }
+.carousel-heading { width: 100%; margin-right: 0; margin-left: 0; }
.demo-card { width: 100%; min-width: 0; border-radius: 2px; background: transparent; opacity: 0; transform: translateY(18px); animation: demo-card-rise .48s cubic-bezier(.22,1,.36,1) forwards; }
.demo-card:nth-child(1) { animation-delay: 1.59s; }
.demo-card:nth-child(2) { animation-delay: 1.75s; }
@@ -164,11 +166,11 @@ onBeforeUnmount(() => cardObserver?.disconnect());
heading. That file cancels the sequence under `.hero-intro-seen`; the cards are the
only part of it living outside it, so they need the matching cancellation here. */
.hero-intro-seen .demo-card { opacity: 1; transform: none; animation: none; }
-.demo-card-content { min-width: 0; overflow: hidden; border-radius: 2px; background: #272022; }
+.demo-card-content { min-width: 0; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.demo-card-content :deep(.svml-demo) { margin-top: 0; }
.demo-card-content :deep(.demo-shell) { box-shadow: none; }
-.demo-loading { display: grid; place-content: center; justify-items: center; gap: 14px; min-height: 720px; border: 0; border-radius: 2px; background: #272022; color: #BBAAB0; font-family: var(--font-ui); font-size: 12px; letter-spacing: .04em; }
-.demo-loading-spinner { width: 30px; height: 30px; border: 2px solid #EB609133; border-top-color: #49D6E9; border-radius: 50%; animation: demo-loading-spin .7s linear infinite; }
+.demo-loading { display: grid; place-content: center; justify-items: center; gap: 14px; min-height: 720px; border: 1px solid var(--rule-soft); border-radius: 2px; background: var(--paper-2); color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
+.demo-loading-spinner { width: 30px; height: 30px; border: 2px solid var(--crimson-soft); border-top-color: var(--crimson); border-radius: 50%; animation: demo-loading-spin .7s linear infinite; }
@keyframes demo-loading-spin { to { transform: rotate(360deg); } }
@keyframes demo-card-rise { to { opacity: 1; transform: translateY(0); } }
diff --git a/docs/.vitepress/theme/components/SvmlPlayground.vue b/docs/.vitepress/theme/components/SvmlPlayground.vue
index fd843241..9cf90f50 100644
--- a/docs/.vitepress/theme/components/SvmlPlayground.vue
+++ b/docs/.vitepress/theme/components/SvmlPlayground.vue
@@ -1035,7 +1035,7 @@ onBeforeUnmount(() => {
<style scoped>
.live-active-icon.semantic-selected,
.live-rank-cell.semantic-selected {
- outline: 1px solid #EE7B62;
+ outline: 1px solid var(--crimson);
outline-offset: 3px;
}
diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css
index 83333d45..58bbcc8b 100644
--- a/docs/.vitepress/theme/style.css
+++ b/docs/.vitepress/theme/style.css
@@ -1,9 +1,11 @@
/*
- * Home page keeps the branded, always-dark editorial design and has no appearance
- * toggle. Documentation pages use the stock VitePress theme with light/dark support.
+ * The home page has its own paper-and-crimson editorial design, in light and dark.
+ * Documentation pages use the stock VitePress theme, untouched.
*
* Everything branded is scoped to `html.home-page`, set before first paint by the inline
- * script in config.ts and kept in sync across navigation by theme/Layout.vue.
+ * script in config.ts and kept in sync across navigation by theme/Layout.vue. The dark
+ * variant is `html.home-page.dark` — VitePress toggles `.dark` on the same element, and
+ * two classes beat both `:root` and `.dark`, so none of this needs `!important`.
*/
.svml-selection {
@@ -12,74 +14,136 @@
font-weight: 600;
}
+/* ============================================================
+ Tokens
+ ============================================================ */
+
html.home-page {
- --paper: #2C2126;
- --paper-light: #3D2A33;
- --paper-deep: #3D2A33;
- --ink: #E9B2A6;
- --ink-muted: rgba(233, 178, 166, .72);
- --accent: #EE7B62;
- --accent-hover: #F59B88;
- --accent-pressed: #FCBDB0;
- --button-gold: #9B7948;
- --button-gold-hover: #8F6F42;
- --button-gold-pressed: #8F7249;
- --rule: rgba(233, 178, 166, .2);
- --font-editorial: "Newsreader", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
- --font-ui: "Manrope", ui-sans-serif, system-ui, sans-serif;
- --font-wordmark: "Cutive Mono", ui-monospace, SFMono-Regular, monospace;
- --font-code: "Google Sans Code", ui-monospace, SFMono-Regular, monospace;
- --vp-font-family-base: var(--font-ui);
- --vp-font-family-mono: var(--font-code);
- --vp-c-brand-1: var(--accent);
- --vp-c-brand-2: var(--accent-hover);
- --vp-c-brand-3: var(--accent-pressed);
- --vp-c-brand-soft: rgba(238, 123, 98, .16);
+ --paper: #f3f0e8;
+ --paper-2: #ede9df;
+ --ink: #191816;
+ --crimson: #a01240;
+ --crimson-soft: rgba(160, 18, 64, .1);
+ --rule: #c7c0b2;
+ --rule-soft: #dad4c7;
+ --muted: #837d72;
+
+ /*
+ * Monospace for Latin, with CJK families behind it — no mono face covers Han,
+ * and the default fallback spaces Chinese out to the Latin advance width.
+ */
+ --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, "Cascadia Mono",
+ "Roboto Mono", Consolas, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
+ "Noto Sans SC", monospace;
+ --pad: clamp(20px, 4vw, 56px);
+
+ /* Paper grain. Multiplied over a light page, overlaid on a dark one. */
+ --grain-op: .34;
+ --grain-blend: multiply;
+ --collage-blend: multiply;
+
+ /* Masked, not drawn, so it inherits the button's colour on hover. */
+ --arrow-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 13'%3E%3Cpath d='M0 6.5h16M11 1l5.5 5.5L11 12' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
+
+ --vp-font-family-base: var(--mono);
+ --vp-font-family-mono: var(--mono);
+ --vp-c-brand-1: var(--crimson);
+ --vp-c-brand-2: var(--crimson);
+ --vp-c-brand-3: var(--crimson);
+ --vp-c-brand-soft: var(--crimson-soft);
--vp-c-bg: var(--paper);
- --vp-c-bg-alt: var(--paper-light);
- --vp-c-bg-elv: var(--paper-light);
- --vp-c-bg-soft: rgba(233, 178, 166, .06);
+ --vp-c-bg-alt: var(--paper-2);
+ --vp-c-bg-elv: var(--paper);
+ --vp-c-bg-soft: var(--paper-2);
--vp-c-text-1: var(--ink);
- --vp-c-text-2: var(--ink-muted);
- --vp-c-text-3: rgba(233, 178, 166, .54);
+ --vp-c-text-2: var(--muted);
+ --vp-c-text-3: var(--muted);
--vp-c-divider: var(--rule);
--vp-c-gutter: var(--rule);
- --vp-nav-bg-color: #272022;
- --vp-sidebar-bg-color: var(--paper-light);
- --vp-code-block-bg: #322A2D;
- --vp-code-block-color: #CBBEC2;
- --vp-code-line-highlight-color: #007F9933;
- --vp-code-line-number-color: #715B63;
- --vp-code-copy-code-border-color: #715B63;
- --vp-code-copy-code-bg: #272022;
- --vp-code-copy-code-hover-border-color: #49D6E9;
- --vp-code-copy-code-hover-bg: #272022;
- --vp-code-copy-code-active-text: #49E9A6;
+ --vp-nav-bg-color: rgba(243, 240, 232, .88);
+ --vp-sidebar-bg-color: var(--paper-2);
+ --vp-input-border-color: var(--rule);
+ --vp-input-switch-bg-color: var(--paper-2);
background: var(--paper);
}
-.hero-statement-viewport-zh.is-locale-hidden { height: 0 !important; margin-top: 0; visibility: hidden; opacity: 0 !important; transform: none !important; pointer-events: none; }
+html.home-page.dark {
+ --paper: #131211;
+ --paper-2: #1a1917;
+ --ink: #e9e4da;
+ --crimson: #dd3a63;
+ --crimson-soft: rgba(221, 58, 99, .13);
+ --rule: #3a3630;
+ --rule-soft: #2a2724;
+ --muted: #8e877b;
+ --grain-op: .2;
+ --grain-blend: overlay;
+ --collage-blend: luminosity;
+ --vp-nav-bg-color: rgba(19, 18, 17, .88);
+ background: var(--paper);
+}
html.home-page body {
background: var(--paper);
color: var(--ink);
- font-optical-sizing: auto;
letter-spacing: 0;
+ font-variant-ligatures: none;
}
-/* The home page is dark by design and offers no light mode. */
-html.home-page .VPNavBarAppearance,
-html.home-page .VPNavScreenAppearance { display: none !important; }
-
-html.home-page * { scrollbar-width: auto; scrollbar-color: #EB609155 transparent; }
+html.home-page * { scrollbar-width: auto; scrollbar-color: var(--rule) transparent; }
html.home-page *::-webkit-scrollbar { width: 12px; height: 12px; }
html.home-page *::-webkit-scrollbar-track { border-radius: 0; background: transparent; }
-html.home-page *::-webkit-scrollbar-thumb { border: 0; border-radius: 0; background: #EB609155; }
-html.home-page *::-webkit-scrollbar-thumb:hover { background: #EB609177; }
+html.home-page *::-webkit-scrollbar-thumb { border: 0; border-radius: 0; background: var(--rule); }
+html.home-page *::-webkit-scrollbar-thumb:hover { background: var(--muted); }
+
+html.home-page ::selection { background: var(--crimson); color: var(--paper); }
+html.home-page :focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
+
+/*
+ * A hairline with alignment ticks at each end. Namespaced, because this stylesheet
+ * loads on documentation pages too and a bare `.rule` would collide with prose.
+ */
+.np-rule { position: relative; height: 1px; width: 100%; background: var(--rule); }
+.np-rule::before,
+.np-rule::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--rule); }
+.np-rule::before { left: 0; }
+.np-rule::after { right: 0; }
+.np-rule.tick-r::before { display: none; }
+.np-rule.tick-l::after { display: none; }
+
+/*
+ * Paper grain, over the page and the nav but under the search modal (z-100),
+ * the mobile sidebar (z-60) and its backdrop (z-50).
+ */
+.np-grain {
+ position: fixed;
+ inset: 0;
+ z-index: 45;
+ pointer-events: none;
+ opacity: var(--grain-op);
+ mix-blend-mode: var(--grain-blend);
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
+}
+
+/* ============================================================
+ Nav bar
+ ============================================================ */
+
+/*
+ * Three stock rules paint the bar opaque at >=960px once it leaves the top of the
+ * page: `.VPNavBar:not(.has-sidebar):not(.home.top)`, `.VPNavBar:not(.home.top)
+ * .content-body` and the matching `.divider-line`. All three are (0,5,0) and beat
+ * anything scoped to `html.home-page`, so the translucent bar has to be forced.
+ */
+html.home-page .VPNav { background: none; border-bottom: 0; }
+html.home-page .VPNavBar {
+ border-bottom: 0;
+ background-color: var(--vp-nav-bg-color) !important;
+ backdrop-filter: blur(10px);
+}
+html.home-page .VPNavBar .content-body { background-color: transparent !important; }
+html.home-page .VPNavBar .divider-line { background-color: var(--rule) !important; }
-.VPHome { margin-bottom: 0 !important; overflow-x: clip; }
-html.home-page .VPNav { border-bottom: 0; background: #272022; }
-html.home-page .VPNavBar { border-bottom: 0 !important; }
html.home-page .VPNavBarTitle { display: flex; align-items: center; height: 64px; }
html.home-page .VPNavBarTitle .title {
display: inline-flex;
@@ -91,6 +155,8 @@ html.home-page .VPNavBarTitle .title {
color: var(--ink);
font-size: 0;
}
+/* The configured siteTitle text; the mark and wordmark stand in for it. */
+html.home-page .VPNavBarTitle .title > span:not([class]) { display: none; }
html.home-page .nav-narratage-mark {
display: block;
flex: 0 0 auto;
@@ -110,208 +176,339 @@ html.home-page .nav-narratage-wordmark {
transform: translateY(1px);
}
html.home-page .nav-narratage-wordmark .narratage-wordmark-letter { height: 25px; }
-html.home-page .VPNavBarTitle .title > span:not([class]) {
- display: none;
-}
+
html.home-page .VPNavBarMenuLink,
html.home-page .VPNavBarMenuGroup .text,
html.home-page .VPNavScreenMenuLink,
html.home-page .VPNavScreenMenuGroup .button {
- color: var(--ink-muted) !important;
- font-family: var(--font-ui);
- font-size: 13px;
- font-weight: 600;
+ position: relative;
+ color: var(--ink);
+ font-family: var(--mono);
+ font-size: 12px;
+ font-weight: 400;
+ letter-spacing: .14em;
+ text-transform: uppercase;
+}
+/* Anchored inside the stock 12px inline padding so the rule tracks the text. */
+html.home-page .VPNavBarMenuLink::after {
+ content: "";
+ position: absolute;
+ right: 12px;
+ bottom: 20px;
+ left: 12px;
+ height: 1.5px;
+ background: var(--crimson);
+ transform: scaleX(0);
+ transform-origin: left;
+ transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}
html.home-page .VPNavBarMenuLink:hover,
html.home-page .VPNavBarMenuLink.active,
-html.home-page .VPNavScreenMenuLink:hover { color: var(--accent) !important; }
+html.home-page .VPNavScreenMenuLink:hover { color: var(--crimson); }
+html.home-page .VPNavBarMenuLink:hover::after,
+html.home-page .VPNavBarMenuLink.active::after { transform: scaleX(1); }
+
html.home-page .VPNavBarSocialLinks .VPSocialLink,
-html.home-page .VPNavBarHamburger .container { color: var(--ink) !important; }
-html.home-page .VPNavScreen { background: #272022 !important; }
+html.home-page .VPNavBarHamburger .container { color: var(--ink); }
+html.home-page .VPNavBarSocialLinks .VPSocialLink:hover { color: var(--crimson); }
+html.home-page .VPNavScreen { background: var(--paper); }
+
html.home-page .VPNav .DocSearch-Button,
html.home-page .VPNav .VPNavBarSearchButton {
- border-color: var(--rule) !important;
- background: rgba(233,178,166,.06) !important;
- color: var(--ink) !important;
- font-family: var(--font-ui);
+ border-radius: 0;
+ border-color: var(--ink);
+ background: transparent;
+ color: var(--ink);
+ font-family: var(--mono);
}
+html.home-page .VPNav .DocSearch-Button:hover { border-color: var(--crimson); }
html.home-page .VPNav .DocSearch-Button-Placeholder,
+html.home-page .VPNav .DocSearch-Button-Key { color: var(--muted); }
html.home-page .VPNav .DocSearch-Button-Key {
- color: var(--ink-muted) !important;
-}
-html.home-page .VPButton {
- min-height: 42px !important;
- border-radius: 2px !important;
- padding-inline: 22px !important;
- font-family: var(--font-ui);
- font-size: 13px !important;
- font-weight: 700 !important;
- letter-spacing: .02em;
-}
-html.home-page .VPButton.brand { border-color: var(--button-gold) !important; background: var(--button-gold) !important; color: #FAF7F5 !important; }
-html.home-page .VPButton.brand:hover { border-color: var(--button-gold-hover) !important; background: var(--button-gold-hover) !important; }
-html.home-page .VPButton.brand:active { border-color: var(--button-gold-pressed) !important; background: var(--button-gold-pressed) !important; }
-html.home-page .VPButton.alt { border-color: var(--button-gold) !important; background: transparent !important; color: var(--ink) !important; }
-html.home-page .VPButton.alt:hover { border-color: var(--button-gold-hover) !important; color: var(--ink) !important; }
-html.home-page .VPButton.alt:active { border-color: var(--button-gold-pressed) !important; }
+ border-radius: 0;
+ background: transparent;
+ box-shadow: inset 0 0 0 1px var(--rule);
+}
+/* The appearance toggle also renders inside this flyout between 768 and 1279px. */
+html.home-page .VPMenu {
+ border-radius: 0;
+ border: 1px solid var(--rule);
+ background: var(--paper);
+ box-shadow: none;
+}
+
+/* ============================================================
+ Hero masthead
+ ============================================================ */
+
+html.home-page .VPHome { margin-bottom: 0; overflow-x: clip; }
html.home-page .VPContent,
html.home-page .VPPage { background: var(--paper); }
-.VPHero { padding-top: 112px !important; padding-bottom: 0 !important; }
-.VPHero .name,
-.VPHero .text { color: var(--ink) !important; }
-.hero-statement {
- --hero-rhythm: 24px;
- --hero-zh-gap: 8px;
- --hero-zh-line: 30.4px;
- width: 100%;
- margin-bottom: var(--hero-rhythm);
+html.home-page .VPHero { padding: 104px var(--pad) 0; }
+html.home-page .VPHomeHero .container {
+ max-width: 1280px;
+ margin-inline: auto;
+ text-align: left;
}
-.hero-wordmark {
- position: relative;
- width: fit-content;
- max-width: 100%;
- margin: 0 -30px var(--hero-rhythm) 0;
- padding: 0 30px 0 0;
- overflow: visible;
+html.home-page .VPHomeHero .main { width: 100%; max-width: none; }
+
+.np-masthead-meta { display: flex; align-items: center; gap: 22px; }
+.np-masthead-label {
+ flex: 0 0 auto;
+ color: var(--muted);
+ font-size: 11px;
+ letter-spacing: .16em;
+ text-transform: uppercase;
}
-.hero-statement-name {
- position: relative;
- display: inline-block;
- width: fit-content;
- margin: 0;
- border: 0;
- padding: 0 .18em 0 .02em;
+.np-masthead-rule { flex: 1; }
+
+.np-masthead-wrap { position: relative; }
+
+.np-masthead-wordmark {
+ display: block;
+ width: 52%;
+ height: auto;
+ margin: 6px 0 0;
+}
+.np-masthead-ink { fill: var(--ink); }
+.np-masthead-red { fill: var(--crimson); }
+
+/* Collage scrap, positioned off the wordmark. Decorative only. */
+.np-masthead-stamp {
+ position: absolute;
+ top: 40px;
+ left: 28.4%;
+ z-index: 2;
+ width: 4.8%;
+ height: auto;
+ aspect-ratio: 77 / 50;
+ mix-blend-mode: var(--collage-blend);
+ pointer-events: none;
+ user-select: none;
+}
+
+.np-masthead-tagline {
+ margin: 18px 0 0;
color: var(--ink);
- font-size: clamp(52px,7vw,88px);
- font-weight: 700;
- font-synthesis: weight;
+ font-size: clamp(13px, 1.79vw, 22px);
+ font-weight: 400;
+ letter-spacing: -.045em;
+ line-height: 1.35;
+ text-wrap: balance;
+}
+.np-masthead-subline {
+ margin: 10px 0 0;
+ color: var(--muted);
+ font-size: clamp(12px, 1.25vw, 15px);
+}
+
+html.home-page .VPHero .actions {
+ gap: 13px;
+ margin: 0;
+ padding-top: 22px;
+ justify-content: flex-start;
+}
+html.home-page .VPHero .action { padding: 0; }
+
+/* `.VPButton.medium` is (0,3,0) in the stock sheet — `.VPButton` alone loses to it. */
+html.home-page .VPHero .VPButton.medium {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: .7em;
+ height: 42px;
+ border: 1px solid var(--crimson);
+ border-radius: 0;
+ padding: 0 20px;
+ font-family: var(--mono);
+ font-size: 11.5px;
+ font-weight: 500;
+ letter-spacing: .13em;
line-height: 1;
+ text-transform: uppercase;
+ transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
-.narratage-wordmark { display: inline-flex; align-items: flex-end; gap: .09em; color: currentColor; vertical-align: bottom; }
-.narratage-wordmark-letter { display: block; width: var(--narratage-letter-width); height: 1em; flex: 0 0 auto; }
-.narratage-wordmark-letter svg { display: block; width: 100%; height: 100%; color: inherit; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter { opacity: 0; transform: translateY(.12em); animation: wordmark-letter-type .11s cubic-bezier(.22,1,.36,1) forwards; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(1) { animation-delay: .18s; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(2) { animation-delay: .25s; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(3) { animation-delay: .32s; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(4) { animation-delay: .39s; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(5) { animation-delay: .46s; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(6) { animation-delay: .53s; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(7) { animation-delay: .60s; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(8) { animation-delay: .67s; }
-.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(9) { animation-delay: .74s; }
-@keyframes wordmark-letter-type { to { opacity: 1; transform: translateY(0); } }
-.hero-intro-seen .narratage-wordmark.is-animated .narratage-wordmark-letter {
- opacity: 1;
- transform: none;
- animation: none;
-}
-.hero-statement-viewport { position: relative; width: min(100%,900px); overflow: hidden; }
-.hero-statement-viewport-en { height: clamp(61.2px,8.16vw,106.08px); }
-.hero-statement-viewport-zh { height: var(--hero-zh-line); margin-top: var(--hero-zh-gap); }
-.hero-statement-viewport-en,
-.hero-statement-viewport-zh,
-.VPHome .VPHero .actions,
-.VPHome .carousel-heading {
- opacity: 0;
- transform: translateY(12px);
- animation: hero-content-rise .4s cubic-bezier(.22,1,.36,1) forwards;
+html.home-page .VPHero .VPButton.brand {
+ border-color: var(--crimson);
+ background: var(--crimson);
+ color: #f7f3ec;
}
-.hero-statement-viewport-en { animation-delay: 1.03s; }
-.hero-statement-viewport-zh { animation-delay: 1.17s; }
-.VPHome .VPHero .actions { animation-delay: 1.31s; }
-.VPHome .carousel-heading { animation-delay: 1.45s; }
-.hero-intro-seen .hero-statement-viewport-en,
-.hero-intro-seen .hero-statement-viewport-zh,
-.hero-intro-seen .VPHome .VPHero .actions,
-.hero-intro-seen .VPHome .carousel-heading {
- opacity: 1;
- transform: none;
- animation: none;
-}
-@keyframes hero-content-rise {
- to { opacity: 1; transform: translateY(0); }
-}
-.hero-statement-en, .hero-statement-zh { position: absolute; inset: 0; display: block; margin: 0; padding: 0; will-change: transform,opacity; }
-.hero-statement-en { color: var(--ink); font-family: var(--font-editorial); font-size: clamp(30px,4vw,52px); font-weight: 500; line-height: 1.02; letter-spacing: -.025em; }
-.hero-statement-zh { color: var(--ink-muted); font-family: var(--font-ui); font-size: 19px; font-weight: 500; line-height: 1.6; }
-.hero-statement-line { display: inline; }
-.hero-statement-accent { color: var(--vp-c-brand-1); }
-.hero-statement-swap-enter-active, .hero-statement-swap-leave-active { transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .72s cubic-bezier(.22,1,.36,1); }
-.hero-statement-swap-enter-from { opacity: 0; transform: translateY(72%); }
-.hero-statement-swap-leave-to { opacity: 0; transform: translateY(-72%); }
-.VPHome .VPHomeHero .container { max-width: 1180px; padding-inline: 32px; }
-.VPHome .VPHomeHero .main { max-width: 1000px; }
-.VPHome .VPHero .actions { gap: 16px; margin: 0; padding-top: 0; }
-.VPHome .VPHero .action { padding: 0; }
-.VPHome .vp-doc.container { width: 100%; max-width: none; margin-inline: 0; padding: 0; background: var(--paper); box-sizing: border-box; }
-
-.svml-demo {
- --demo-card-bg: #272022;
- --demo-code-bg: #322A2D;
- --demo-preview-bg: #272022;
- --demo-text: #CBBEC2;
- --demo-text-muted: #BBAAB0;
- --demo-line-number: #715B63;
- --demo-tag: #E66533;
- --demo-attr: #D5971A;
- --demo-string: #49E9A6;
- --demo-expression: #E4B781;
- --demo-marker: #49D6E9;
- --demo-marker-bg: #007F9933;
- --demo-marker-border: #49D6E9;
- --demo-segment-cyan: #49D6E9;
- --demo-segment-green: #49E9A6;
- --demo-segment-gold: #E4B781;
- --demo-segment-pink: #DF769B;
- --demo-segment-violet: #7060EB;
- --demo-cursor: #FFB3CD;
+html.home-page .VPHero .VPButton.brand::after {
+ content: "";
+ flex: 0 0 auto;
+ width: 1.15em;
+ height: .85em;
+ background-color: currentColor;
+ -webkit-mask: var(--arrow-glyph) center / contain no-repeat;
+ mask: var(--arrow-glyph) center / contain no-repeat;
+ transition: transform .2s cubic-bezier(.22, 1, .36, 1);
+}
+html.home-page .VPHero .VPButton.brand:hover,
+html.home-page .VPHero .VPButton.brand:active {
+ border-color: var(--ink);
+ background: var(--ink);
+ color: var(--paper);
+}
+html.home-page .VPHero .VPButton.brand:hover::after { transform: translateX(4px); }
+html.home-page .VPHero .VPButton.alt {
+ border-color: var(--crimson);
+ background: transparent;
+ color: var(--crimson);
+}
+html.home-page .VPHero .VPButton.alt:hover,
+html.home-page .VPHero .VPButton.alt:active {
+ border-color: var(--crimson);
+ background: var(--crimson);
+ color: #f7f3ec;
+}
+
+html.home-page .VPHome .vp-doc.container {
+ width: 100%;
+ max-width: none;
+ margin-inline: 0;
+ padding: 0;
+ background: var(--paper);
+ box-sizing: border-box;
+}
+
+/* ============================================================
+ Footer
+ ============================================================ */
+
+.np-footer {
+ /* A flex item in `.Layout`, so it needs an explicit width to stop shrinking
+ to its columns before the cap and the auto margins can centre it. */
+ width: 100%;
+ max-width: calc(1280px + var(--pad) * 2);
+ margin: 0 auto;
+ border-top: 1px solid var(--rule);
+ padding: 44px var(--pad) 52px;
+ color: var(--ink);
+ font-family: var(--mono);
+}
+.np-footer-grid {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ gap: clamp(28px, 6vw, 80px);
+}
+.np-footer h2 {
+ margin: 0 0 14px;
+ color: var(--muted);
+ font-size: 10.5px;
+ font-weight: 400;
+ letter-spacing: .18em;
+ text-transform: uppercase;
+}
+.np-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
+.np-footer a { color: inherit; font-size: 13px; text-decoration: none; }
+.np-footer a:hover { color: var(--crimson); }
+.np-footer-about { max-width: 30ch; }
+.np-footer-about p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
+.np-footer-social { display: flex; align-items: center; gap: 18px; margin-top: 18px; color: var(--muted); }
+.np-footer-social a { display: grid; place-items: center; transition: color .16s ease; }
+.np-footer-social svg { display: block; }
+.np-footer-bottom {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 20px;
+ margin-top: 44px;
+ border-top: 1px solid var(--rule-soft);
+ padding-top: 20px;
+ color: var(--muted);
+ font-size: 11.5px;
+}
+.np-footer-bottom a { font-size: inherit; }
+
+/* ============================================================
+ SVML demos
+ ============================================================ */
+
+/*
+ * Syntax colours are One Light on paper and One Dark on the dark variant; the
+ * chrome around them derives from the site tokens so the demos follow the theme.
+ */
+html.home-page .svml-demo {
+ --demo-card-bg: var(--paper-2);
+ --demo-code-bg: var(--paper-2);
+ --demo-preview-bg: var(--paper-2);
+ --demo-text: #383a42;
+ --demo-text-muted: var(--muted);
+ --demo-line-number: #9d9d9f;
+ --demo-tag: #a626a4;
+ --demo-attr: #986801;
+ --demo-string: #50a14f;
+ --demo-expression: #4078f2;
+ --demo-marker: var(--crimson);
+ --demo-marker-bg: var(--crimson-soft);
+ --demo-marker-border: var(--crimson);
+ --demo-marker-active-bg: var(--crimson);
+ --demo-marker-active-text: #f7f3ec;
+ --demo-segment-cyan: #6f8a80;
+ --demo-segment-green: #7d8a6f;
+ --demo-segment-gold: #b09257;
+ --demo-segment-pink: var(--crimson);
+ --demo-segment-violet: #6b6280;
+ --demo-cursor: var(--crimson);
width: 100%;
margin: 0 auto;
}
+html.home-page.dark .svml-demo {
+ --demo-text: #abb2bf;
+ --demo-line-number: #636d83;
+ --demo-tag: #c678dd;
+ --demo-attr: #d19a66;
+ --demo-string: #98c379;
+ --demo-expression: #61afef;
+ --demo-marker-active-text: #131211;
+}
+
.demo-heading { margin: 0 0 28px; }
-.vp-doc .demo-heading h2 { margin: 0; border: 0; padding: 0; color: var(--ink); font-family: var(--font-ui); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
-.VPHome .vp-doc .demo-heading h2 { font-size: 19px; }
+.vp-doc .demo-heading h2 { margin: 0; border: 0; padding: 0; color: var(--ink); font-family: var(--mono); font-size: clamp(15px, 1.7vw, 19px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
+.VPHome .vp-doc .demo-heading h2 { font-size: clamp(15px, 1.7vw, 19px); }
.touch-interaction-copy { display: none; }
-.demo-shell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 670px; overflow: hidden; border: 0; border-radius: 2px; background: var(--demo-card-bg); }
+.demo-shell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 670px; overflow: hidden; border: 1px solid var(--rule-soft); border-radius: 2px; background: var(--demo-card-bg); }
.source-panel, .preview-panel { min-width: 0; }
-.source-panel { position: relative; border: 0; background: var(--demo-code-bg); }
+.source-panel { position: relative; border: 0; border-right: 1px solid var(--rule-soft); background: var(--demo-code-bg); }
.preview-panel { display: flex; flex-direction: column; background: var(--demo-preview-bg); }
-.source-follow-hint { position: absolute; z-index: 10; top: 8px; right: 10px; display: block; padding: 5px 8px; border: 0; border-radius: 1px; background: #272022; color: var(--demo-text-muted); font-family: var(--font-ui); font-size: 10px; line-height: 16px; pointer-events: none; }
+.source-follow-hint { position: absolute; z-index: 10; top: 10px; right: 22px; display: block; padding: 4px 9px; border: 1px solid var(--rule-soft); border-radius: 2px; background: var(--paper); color: var(--demo-text-muted); font-family: var(--mono); font-size: 10px; line-height: 16px; pointer-events: none; }
.source-measure { position: absolute; z-index: -1; top: 0; left: 0; visibility: hidden; width: 100%; pointer-events: none; }
-.code-scroll { position: relative; height: 621px; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; padding: var(--source-vertical-padding, 9px) 0; scrollbar-color: #EB609155 transparent; }
-.code-line { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); width: 100%; min-width: 0; min-height: 26px; margin: 0; padding: 0 18px 0 0; border: 0; outline: 0; background: transparent; color: var(--demo-text); text-align: left; font-family: var(--font-code); font-size: 14.5px; font-weight: 400; letter-spacing: normal; line-height: 26px; }
+/* SvmlPlayground counts wrapped rows as ceil(height / 26) — keep this line-height. */
+.code-scroll { position: relative; height: 621px; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; padding: var(--source-vertical-padding, 9px) 0; scrollbar-color: var(--rule) transparent; }
+.code-line { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); width: 100%; min-width: 0; min-height: 26px; margin: 0; padding: 0 18px 0 0; border: 0; outline: 0; background: transparent; color: var(--demo-text); text-align: left; font-family: var(--mono); font-size: 13.5px; font-weight: 400; letter-spacing: normal; line-height: 26px; }
.line-number { padding-right: 13px; color: var(--demo-line-number); text-align: right; font-weight: 400; user-select: none; }
.code-line.active .line-number { color: var(--demo-text); }
.code-line code { min-width: 0; padding: 0; color: inherit; background: none; font-family: inherit; font-size: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.svml-demo .code-line code { padding: 0 !important; border: 0 !important; border-radius: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; letter-spacing: normal !important; }
.syn-tag { color: var(--demo-tag); }.syn-attr { color: var(--demo-attr); }.syn-string { color: var(--demo-string); }.syn-expr { color: var(--demo-expression); }.syn-marker { color: var(--demo-marker); font-weight: 700; background: var(--demo-marker-bg); box-shadow: inset 0 0 0 1px var(--demo-marker-border); text-shadow: none; }
.semantic-token { margin: -3px; padding: 3px; border-radius: 4px; cursor: pointer; }
-.semantic-token:hover, .semantic-token:focus { outline: none; background: #007F9966; box-shadow: 0 0 0 1px var(--demo-marker); }
+.semantic-token:hover, .semantic-token:focus { outline: none; background: var(--demo-marker-bg); box-shadow: 0 0 0 1px var(--demo-marker); }
.semantic-range-canvas { position: absolute; z-index: 0; top: 0; left: 0; overflow: visible; pointer-events: none; }
-.semantic-range-canvas path { fill: #49D6E922; stroke: #49D6E9; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
-.semantic-range-canvas path.depth-1 { fill: #CC990033; stroke: #D5971A; }
-.semantic-range-canvas path.depth-2 { fill: #9D92F222; stroke: #7060EB; }
+.semantic-range-canvas path { fill: var(--demo-marker-bg); stroke: var(--demo-marker); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
+.semantic-range-canvas path.depth-1 { fill: color-mix(in srgb, var(--demo-attr) 18%, transparent); stroke: var(--demo-attr); }
+.semantic-range-canvas path.depth-2 { fill: color-mix(in srgb, var(--demo-expression) 16%, transparent); stroke: var(--demo-expression); }
.code-line code, .code-line .line-number { position: relative; z-index: 1; }
.code-fold { display: flex; align-items: center; justify-content: center; min-height: 26px; height: 26px; padding: 0; border: 0; background: var(--demo-preview-bg); }
.code-fold code { display: flex; align-items: center; justify-content: center; width: 100%; height: 26px; color: var(--demo-line-number) !important; text-align: center; font-size: 16px !important; font-weight: 700 !important; letter-spacing: 0 !important; line-height: 1 !important; }
.code-spacer { height: 26px; }
-.semantic-token.semantic-active { --semantic-color: #007F99; --semantic-ring: #49D6E9; background: var(--semantic-color); color: #EDEBFF; font-weight: 700; text-shadow: none; box-shadow: 0 0 0 1.5px var(--semantic-ring); }
-.semantic-token.semantic-active.semantic-depth-1 { --semantic-color: #D5971A; --semantic-ring: #FFC180; color: #1F191B; }
-.semantic-token.semantic-active.semantic-depth-2 { --semantic-color: #7060EB; --semantic-ring: #9D92F2; color: #EDEBFF; }
+.semantic-token.semantic-active { --semantic-color: var(--demo-marker-active-bg); --semantic-ring: var(--demo-marker); background: var(--semantic-color); color: var(--demo-marker-active-text); font-weight: 700; text-shadow: none; box-shadow: 0 0 0 1.5px var(--semantic-ring); }
+.semantic-token.semantic-active.semantic-depth-1 { --semantic-color: var(--demo-attr); --semantic-ring: var(--demo-attr); color: #fdf8ee; }
+.semantic-token.semantic-active.semantic-depth-2 { --semantic-color: var(--demo-expression); --semantic-ring: var(--demo-expression); color: #f2f6ff; }
.code-line.binding-active,
.code-line.binding-active.binding-depth-1,
.code-line.binding-active.binding-depth-2 { background: transparent; }
.script-word { border-radius: 3px; transition: color .08s linear, background-color .08s linear; }
-.script-word.active { background: #CC990033; color: #FFC180; box-shadow: 0 0 0 1px #D5971A; }
+.script-word.active { background: color-mix(in srgb, var(--demo-attr) 20%, transparent); color: var(--demo-attr); box-shadow: 0 0 0 1px var(--demo-attr); }
.semantic-timeline { min-width: 0; }
-.timeline-labels { display: grid; grid-template-columns: 31fr 44fr 25fr; margin-bottom: 5px; color: var(--ink-muted); font-family: var(--vp-font-family-mono); font-size: 7px; }
+.timeline-labels { display: grid; grid-template-columns: 31fr 44fr 25fr; margin-bottom: 5px; color: var(--muted); font-family: var(--mono); font-size: 7px; }
.timeline-labels span:nth-child(2) { text-align: center; }.timeline-labels span:nth-child(3) { text-align: right; }
-.timeline-labels .current { color: #b8c1b7; }
+.timeline-labels .current { color: var(--ink); }
.timeline-track { position: relative; display: grid; grid-template-columns: 31fr 44fr 25fr; gap: 3px; height: 5px; }
-.timeline-track .segment { border-radius: 3px; background: #303731; }.timeline-track .point { background: #394139; }
+.timeline-track .segment { border-radius: 3px; background: var(--rule-soft); }.timeline-track .point { background: var(--rule); }
.playhead { position: absolute; top: 50%; width: 2px; height: 15px; border-radius: 0; background: var(--demo-cursor); transform: translate(-1px,-50%); }
/* Real video version of the source-to-preview demo. */
.real-demo-shell { min-height: 720px; }
@@ -323,6 +520,10 @@ html.home-page .VPPage { background: var(--paper); }
.live-base-layer { position: absolute; inset: 0; z-index: 0; background: #000; }
.live-base-layer video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.live-base-layer video.active { opacity: 1; }
+/*
+ * Everything from here to `.live-caption` is typography inside the rendered video,
+ * not site typography — the hard-coded families and colours are deliberate.
+ */
.live-title { position: absolute; top: 9.8958%; left: 0; z-index: 4; display: grid; place-items: center; width: 100%; height: 7.8125%; padding: 0 2%; background: #fff; color: #050505; text-align: center; font-family: Poppins, Inter, Arial, sans-serif; font-size: 15px; font-weight: 950; line-height: .92; letter-spacing: .2px; }
.live-ranking-board { position: absolute; top: 16.9792%; left: 0; z-index: 3; display: grid; grid-template-rows: repeat(5,minmax(0,1fr)); row-gap: 2.625%; width: 30.463%; height: 41.6667%; padding: 5.47%; border-radius: 6px; background: rgba(7,8,12,.94); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.live-rank-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 9%; min-height: 0; }
@@ -341,26 +542,86 @@ html.home-page .VPPage { background: var(--paper); }
.live-caption { position: absolute; top: 54%; left: 37%; z-index: 30; display: flex; align-items: baseline; justify-content: center; width: 64%; column-gap: 4px; color: #fff; font-family: Poppins, Inter, Arial, sans-serif; font-size: 14px; font-weight: 800; line-height: 1.15; letter-spacing: -.3px; text-align: center; white-space: nowrap; pointer-events: none; -webkit-text-stroke: .55px rgba(0,0,0,.82); paint-order: stroke fill; text-shadow: 0 1px 4px rgba(0,0,0,.72); }
.live-caption span { display: inline-block; transition: color .08s linear, transform .08s linear; }
.live-caption span.active { color: #ffd34d; transform: scale(1.08); }
-.ranking-board-outline, .ranking-stage-outline { position: absolute; z-index: 3; border: 2px solid var(--accent); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
+.ranking-board-outline, .ranking-stage-outline { position: absolute; z-index: 3; border: 2px solid var(--crimson); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.ranking-board-outline.visible, .ranking-stage-outline.visible { opacity: 1; }
.ranking-board-outline { left: .6%; top: 15.8%; width: 33.5%; height: 44.2%; border-radius: 5px; }
.ranking-stage-outline { left: 49.3%; top: 63.4%; width: 33.5%; aspect-ratio: 1; border-radius: 12%; }
-.ranking-board-outline span, .ranking-stage-outline span { position: absolute; top: -13px; left: -1px; padding: 2px 4px; border-radius: 2px 2px 0 0; background: var(--accent); color: #fff; font-family: var(--vp-font-family-mono); font-size: 6px; line-height: 10px; }
+.ranking-board-outline span, .ranking-stage-outline span { position: absolute; top: -13px; left: -1px; padding: 2px 4px; border-radius: 2px 2px 0 0; background: var(--crimson); color: #f7f3ec; font-family: var(--mono); font-size: 6px; line-height: 10px; }
.real-semantic-controls { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; margin: 0 28px 26px; padding: 12px 0 0; border-top: 0; }
.ranking-labels { display: flex; gap: 0; }
-.ranking-labels button { min-width: 0; flex-basis: 0; overflow: hidden; padding: 4px 2px; border: 0; background: none; color: #997582; text-align: center; font-family: var(--font-code); font-size: 11px; letter-spacing: normal; text-overflow: ellipsis; cursor: pointer; }.ranking-labels button.current { color: #F18EB0; font-weight: 700; }
+.ranking-labels button { min-width: 0; flex-basis: 0; overflow: hidden; padding: 4px 2px; border: 0; background: none; color: var(--muted); text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: normal; text-overflow: ellipsis; cursor: pointer; }.ranking-labels button.current { color: var(--crimson); font-weight: 700; }
.ranking-track { display: flex; gap: 0; }
.ranking-track .segment { min-width: 0; flex-basis: 0; }
-.ranking-track .segment { border-radius: 0; box-shadow: inset -1px 0 #1F191B; }
+.ranking-track .segment { border-radius: 0; box-shadow: inset -1px 0 var(--paper-2); }
.ranking-track .segment:first-child { border-radius: 3px 0 0 3px; }
.ranking-track .segment:nth-child(5) { border-radius: 0 3px 3px 0; box-shadow: none; }
.ranking-track .segment:nth-child(1) { background: var(--demo-segment-cyan); }.ranking-track .segment:nth-child(2) { background: var(--demo-segment-green); }.ranking-track .segment:nth-child(3) { background: var(--demo-segment-gold); }.ranking-track .segment:nth-child(4) { background: var(--demo-segment-pink); }.ranking-track .segment:nth-child(5) { background: var(--demo-segment-violet); }
-.demo-provenance { margin: 12px 4px 0 !important; color: var(--ink-muted); font-size: 11px; text-align: right; }.demo-provenance code { color: var(--accent); background: transparent; }
+.demo-provenance { margin: 12px 4px 0 !important; color: var(--muted); font-size: 11px; text-align: right; }.demo-provenance code { color: var(--crimson); background: transparent; }
+
+/* ============================================================
+ Intro sequence
+ ============================================================ */
+
+/* The nav wordmark types itself in; the layout rules below it are load-bearing. */
+.narratage-wordmark { display: inline-flex; align-items: flex-end; gap: .09em; color: currentColor; vertical-align: bottom; }
+.narratage-wordmark-letter { display: block; width: var(--narratage-letter-width); height: 1em; flex: 0 0 auto; }
+.narratage-wordmark-letter svg { display: block; width: 100%; height: 100%; color: inherit; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter { opacity: 0; transform: translateY(.12em); animation: wordmark-letter-type .11s cubic-bezier(.22,1,.36,1) forwards; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(1) { animation-delay: .18s; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(2) { animation-delay: .25s; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(3) { animation-delay: .32s; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(4) { animation-delay: .39s; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(5) { animation-delay: .46s; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(6) { animation-delay: .53s; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(7) { animation-delay: .60s; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(8) { animation-delay: .67s; }
+.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(9) { animation-delay: .74s; }
+@keyframes wordmark-letter-type { to { opacity: 1; transform: translateY(0); } }
+
+/*
+ * The masthead reveals in the same rhythm — label, hairline, wordmark, then the
+ * reading order below it — and hands off to the demo cards, which continue the
+ * sequence at 1.59s in SvmlDemoCarousel.vue. Keep the tail delays in step.
+ */
+.np-masthead-label { opacity: 0; animation: hero-content-rise .32s cubic-bezier(.22,1,.36,1) .1s forwards; }
+.np-masthead-rule { transform: scaleX(0); transform-origin: left; animation: hero-rule-draw .52s cubic-bezier(.22,1,.36,1) .16s forwards; }
+/* Nine steps, one per letter of NARRATAGE — a typewriter, without nine elements. */
+.np-masthead-wordmark { clip-path: inset(0 100% 0 0); animation: hero-wordmark-wipe .62s steps(9, end) .34s forwards; }
+.np-masthead-stamp { opacity: 0; animation: hero-content-rise .4s cubic-bezier(.22,1,.36,1) .8s forwards; }
+.np-masthead-tagline,
+.np-masthead-subline,
+.VPHome .VPHero .actions,
+.VPHome .carousel-heading {
+ opacity: 0;
+ transform: translateY(12px);
+ animation: hero-content-rise .4s cubic-bezier(.22,1,.36,1) forwards;
+}
+.np-masthead-tagline { animation-delay: 1.03s; }
+.np-masthead-subline { animation-delay: 1.17s; }
+.VPHome .VPHero .actions { animation-delay: 1.31s; }
+.VPHome .carousel-heading { animation-delay: 1.45s; }
+@keyframes hero-content-rise { to { opacity: 1; transform: translateY(0); } }
+@keyframes hero-rule-draw { to { transform: scaleX(1); } }
+@keyframes hero-wordmark-wipe { to { clip-path: inset(0 0 0 0); } }
+
+.hero-intro-seen .narratage-wordmark.is-animated .narratage-wordmark-letter,
+.hero-intro-seen .np-masthead-label,
+.hero-intro-seen .np-masthead-stamp,
+.hero-intro-seen .np-masthead-tagline,
+.hero-intro-seen .np-masthead-subline,
+.hero-intro-seen .VPHome .VPHero .actions,
+.hero-intro-seen .VPHome .carousel-heading { opacity: 1; transform: none; animation: none; }
+.hero-intro-seen .np-masthead-rule { transform: none; animation: none; }
+.hero-intro-seen .np-masthead-wordmark { clip-path: none; animation: none; }
+
+/* ============================================================
+ Breakpoints
+ ============================================================ */
@media (max-width: 900px) {
- .VPHero { padding-top: 96px !important; }
+ html.home-page .VPHero { padding-top: 88px; }
.demo-shell { grid-template-columns: 1fr; }
- .source-panel { border-right: 0; border-bottom: 1px solid var(--rule); }
+ .source-panel { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
.code-scroll { height: 390px; }
.real-demo-shell .code-scroll { height: 430px; }
.real-preview-body { min-height: 560px; }
@@ -371,37 +632,41 @@ html.home-page .VPPage { background: var(--paper); }
.touch-interaction-copy { display: inline; }
}
-@media (max-width: 639px) {
- .VPHome .VPHomeHero { padding-inline: 0 !important; }
- .VPHome .VPHomeHero .container { padding-inline: 24px; }
+/* Below this the wordmark stops being wide enough for the scrap to land on it. */
+@media (max-width: 960px) {
+ .np-masthead-stamp { display: none; }
+}
+
+@media (max-width: 820px) {
+ .np-masthead-wordmark { width: 76%; }
}
@media (max-width: 520px) {
- .VPHero .name { font-size: 50px !important; }
- .VPHero .text { font-size: 29px !important; }
- .hero-statement-name { font-size: 50px; }
- .hero-statement { --hero-rhythm: 24px; --hero-zh-gap: 8px; --hero-zh-line: 25.6px; }
- .hero-statement-viewport-en { display: grid; height: auto; }
- .hero-statement-viewport-en .hero-statement-en { position: relative; inset: auto; grid-area: 1 / 1; }
- .hero-statement-en { font-size: 29px; }
- .hero-statement-zh { font-size: 16px; }
- .hero-statement-break { display: none; }
- .vp-doc .demo-heading h2 { font-size: 20px; }
- .VPHome .vp-doc .demo-heading h2 { font-size: 16px; }
- .VPHome .VPHero .action .VPButton { display: inline-flex; align-items: center; justify-content: center; height: 42px; box-sizing: border-box; line-height: 1; }
+ .np-masthead-meta { gap: 14px; }
+ .np-masthead-wordmark { width: 100%; }
+ .np-footer-grid { gap: 32px; }
+ .code-line { font-size: 12.5px; }
.demo-shell { margin-inline: 0; border-radius: 2px; }
.real-preview-body { grid-template-columns: 1fr; gap: 16px; padding: 16px 12px; }
.real-video-frame { height: 480px; }
.real-semantic-controls { margin-inline: 12px; grid-template-columns: minmax(0,1fr); }
- .code-line { font-size: 12.5px; }
}
+/*
+ * Scoped to the home page: documentation pages keep the stock theme's own motion.
+ * Enumerated rather than blanket-disabled, because zeroing `animation-duration`
+ * alone leaves these elements invisible for the length of their delay.
+ */
@media (prefers-reduced-motion: reduce) {
- *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
- .narratage-wordmark.is-animated .narratage-wordmark-letter { opacity: 1; transform: none; animation: none !important; }
- .hero-statement-viewport-en,
- .hero-statement-viewport-zh,
- .VPHome .VPHero .actions,
- .VPHome .carousel-heading { opacity: 1; transform: none; animation: none !important; }
- .hero-statement-swap-enter-from, .hero-statement-swap-leave-to { filter: none; transform: none; }
+ html.home-page .narratage-wordmark.is-animated .narratage-wordmark-letter,
+ html.home-page .np-masthead-label,
+ html.home-page .np-masthead-stamp,
+ html.home-page .np-masthead-tagline,
+ html.home-page .np-masthead-subline,
+ html.home-page .VPHome .VPHero .actions,
+ html.home-page .VPHome .carousel-heading { opacity: 1; transform: none; animation: none !important; }
+ html.home-page .np-masthead-rule { transform: none; animation: none !important; }
+ html.home-page .np-masthead-wordmark { clip-path: none; animation: none !important; }
+ html.home-page .VPHero .VPButton.brand::after,
+ html.home-page .VPNavBarMenuLink::after { transition: none; }
}
diff --git a/docs/index.md b/docs/index.md
index aa6c54e6..9f59157e 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,9 +1,9 @@
---
layout: home
+# The headline lives in HeroMasthead.vue, which replaces the default hero info
+# block; only `actions` is read from here.
hero:
- name: "Narratage"
- text: "“First, there was narration. Then, there were montages.”"
actions:
- theme: brand
text: Quickstart
diff --git a/docs/zh/index.md b/docs/zh/index.md
index aba3e972..0206b3d3 100644
--- a/docs/zh/index.md
+++ b/docs/zh/index.md
@@ -1,9 +1,8 @@
---
layout: home
+# 标题由 HeroMasthead.vue 渲染,它替换了默认的 hero 信息区;这里只有 actions 会被读取。
hero:
- name: "Narratage"
- text: "写下故事,编译视频。"
actions:
- theme: brand
text: 快速开始