mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
* feat: general-purpose skills with @-mention composition and user import
Lift skills from "one mode-bound skill per project" to a generic capability
the user can compose per turn:
- Daemon: scan multiple skill roots (user-skills under runtime data, then
the bundled `skills/`); user-imported skills can shadow built-ins by id.
- New `POST /api/skills/import` and `DELETE /api/skills/:id` endpoints,
with CONFLICT/BAD_REQUEST/NOT_FOUND error codes and built-in delete
protection.
- ChatRequest gains `skillIds: string[]`; the chat run concatenates each
picked skill's body (and merges craftRequires) into the system prompt
for that turn only — the project's persistent `skillId` is untouched.
- Web composer: `@` popover now lists skills alongside project files;
picks render as removable chips above the textarea and ride along with
the request as `skillIds`.
- Settings → Library: import form (name/description/triggers/body),
per-card delete for user skills, "user" origin badge.
* chore(web): drop welcome pet teaser + add ds→prompt-template mapping util
- SettingsDialog: remove the inline pet adoption teaser from the welcome
panel so the first-run modal stays focused on configuration.
- New `inferPromptTemplateCategoriesForDs(ds)` helper that maps a design
system's authored metadata to prompt-template gallery categories.
Imported by the design-system gallery wiring on a sibling branch; no
callers in this branch yet.
* feat: split skills/design-templates and add finalize-design API
Phase 0 of the skills/design-templates refactor (specs/current/
skills-and-design-templates.md):
- Move ~104 rendering catalogue entries from skills/ to design-templates/
and keep skills/ for the small set of functional skills that *do work*
on user input (utilities, briefs, packagers).
- Add design-templates/AGENTS.md and skills/AGENTS.md describing the
contract, and a brand-agnostic craft/ surface for opt-in craft rules.
- Daemon: add DESIGN_TEMPLATES_DIR / USER_DESIGN_TEMPLATES_DIR roots and
an /api/design-templates surface mirroring /api/skills. Asset/example
routes still span both registries so existing srcdoc URLs keep
resolving across the rename.
- Web: split LibrarySection into SkillsSection + DesignSystemsSection,
rename the EntryView "Examples" tab to "Templates", and update locales
+ the New-project picker accordingly.
Adds the finalize-design endpoint:
- New apps/daemon/src/finalize-design.ts and packages/contracts/src/api/
finalize.ts — one-shot synthesis of a project's transcript + active
design system + current artifact into <projectDir>/DESIGN.md via the
Anthropic Messages API. Per-project .finalize.lock mirrors the
transcript-export hygiene from PR #493; provider credentials are not
persisted by the daemon.
Other supporting changes:
- README + AGENTS.md updates to document the new directory split and
craft/ surface, plus i18n strings across 13 locales.
- Test refactors and new coverage (finalize-design, runs, sidecar
server, plus refreshed daemon integration tests).
- .gitignore: scope the *.exe ignore to /OpenDesign.exe so legitimate
vendor binaries are no longer hidden.
* fix(merge): move clinical-case-report to design-templates/
Origin/main added the clinical-case-report skill under skills/ before
the skills/design-templates split landed. Its od.mode is prototype, so
per specs/current/skills-and-design-templates.md it is a design template
and belongs alongside the other rendering catalogue entries — not under
the slimmed-down functional skills/ root. Moving it keeps the EntryView
Templates tab consistent with origin/main's intent.
* feat(skills): curated design/creative catalogue + collapsible Settings rows
Seed ~100 curated design/creative skill stubs under skills/ sourced from
awesome-claude-skills (ComposioHQ) and awesome-agent-skills (VoltAgent).
Each stub carries an od.category tag so the new filter pill row in
Settings -> Skills can group them. The seed script
(scripts/seed-curated-design-skills.ts, pnpm seed:curated-design-skills)
is idempotent: it only creates folders that don't already exist, so
hand-edited stubs are never overwritten.
- Daemon: parse and surface od.category on SkillInfo with a strict slug
normaliser; mirror the field on SkillSummary in @open-design/contracts.
Category is purely a UI hint — system-prompt composition is unchanged.
- Web: rewrite SkillsSection from a left-list / right-detail grid into a
vertical stack of collapsible rows mirroring the External MCP panel
(header always visible with name + mode/source/category pills + per-row
enable toggle; SKILL.md preview, file tree and inline edit form expand
on demand). Add a Category filter row above the list. Reorder Settings
nav so Skills + External MCP sit above the Composio/MCP cluster. Update
composer placeholder/hint across 17 locales to advertise '@ files or
skills · / for commands'.
- Docs: extend skills/AGENTS.md with the curated catalogue rules
(idempotency, category vocabulary, no upstream vendoring).
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(skills): teach localized-content + system-prompt tests about the skills/design-templates split
mrcfps blocking review on PR #955: the skills/design-templates split
(b5993385) moved ~110 SKILL.md entries out of `skills/` and into
`design-templates/`, but two repo-level tests still hard-coded the
single-root layout, so CI gates went red on the merged branch:
- `e2e/tests/localized-content.test.ts` only scanned `<repo>/skills`
while the locale `skillCopy` map keeps id-keyed entries spanning
both roots (ExamplesTab/Templates uses one lookup regardless of
origin). Teach the helper to read both `skills/` and
`design-templates/`, deduplicating ids so the union matches the
localized claim.
- `apps/daemon/tests/prompts/system.test.ts` read
`skills/live-artifact/SKILL.md`, which now lives under
`design-templates/live-artifact/`. Update the absolute path so
composeSystemPrompt's coverage of the live-artifact preamble is
exercised again.
Also enroll the curated design/creative catalogue (PR #955, ~91
stubs sourced from awesome-claude-skills / awesome-agent-skills) in
the DE / FR / RU `_SKILL_IDS_WITH_EN_FALLBACK` lists. The stubs are
English-only by design (frontmatter advertises an upstream URL); the
fallback list is exactly the place to acknowledge "we know this id
exists, English copy is fine here" so the localized-content coverage
gate passes without forcing a translation task per locale.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(skills): always quote frontmatter name so importUserSkill round-trips numeric / boolean ids
mrcfps PR #955 review: `buildSkillMarkdown` emitted `name:
${escapeYamlString(name)}` without quotes, so YAML coerced names
like `123`, `true`, `false`, or `null` into non-string scalars on
re-parse. listSkills() then read `data.name` as a number/boolean
and the import flow's follow-up `findSkillById(skills, result.id)`
missed it, falling into `/api/skills/import`'s "imported skill
could not be re-read" 500 path for those ids.
Switch the emitter to a quoted scalar (`name: "..."`) — the
double-escape already in `escapeYamlString` makes the quoted form
safe — and add a round-trip test covering `123`, `true`, `false`,
`null`, and `0` to lock in the contract.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(web): drop staged-skill chips when the matching @<id> token leaves the draft
mrcfps PR #955 review: `submit()` always forwarded every id in
`stagedSkills`, but that state was only mutated on picker click and
chip removal. Hand-deleting an `@<id>` token from the textarea left
the chip staged, so the request still carried `skillIds: [<id>]` and
the daemon composed a skill the prompt no longer referenced.
Sync the chips with the draft inside `handleChange()` by pruning
`stagedSkills` whenever the new value no longer contains the
`@<id>` token (using the same whitespace boundary as
`removeStagedSkill`'s strip regex). Comment explains why this
prune does not run for `staged` file attachments — users frequently
add files via the upload button without leaving an `@<path>` token,
so a symmetric prune there would erase legitimate uploads.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(daemon): stage @-composed skills' side files alongside the active skill
codex PR #955 review: composing a per-turn `@`-picked skill into the
system prompt appended its body (with the `withSkillRootPreamble`
guidance pointing at relative paths under `<cwd>/.od-skills/<folder>/`)
but never staged the actual folder. `startChatRun` only copied
`activeSkillDir`, so when the project's primary skill was different
(or absent) the composed skill's references/, examples/, and scripts/
files lived only at their absolute repo path — agents that honour
the cwd-relative form (or that don't get `--add-dir`, e.g. Codex with
allowlisted gpt-image projects) couldn't reach them.
Thread the composed skills' dirs out of `composeDaemonSystemPrompt`
as `extraSkillDirs` and stage each one through the same
`stageActiveSkill` API used for the primary skill. Dedupe by folder
basename so a project whose primary skill is also `@`-composed isn't
copied twice. Each preamble already advertises its own folder, so the
prompt and the staged tree stay aligned without further changes.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(web): respect the Library disable toggle in the project @-mention picker
codex PR #955 review: only `EntryView` received `enabledSkills`
(filtered against `config.disabledSkills`); active projects still
got `skills={skills}` raw, so a skill the user disabled in Settings
kept appearing in the project's `@`-mention popover and could ride
along to the daemon via `skillIds`. That broke the Library toggle
for any project opened on the post-split branch.
Compute a functional-skills-only enabled subset
(`enabledFunctionalSkills`) and pass it into `<ProjectView>` instead.
Templates stay separate — design-templates are filtered through their
own `enabledDesignTemplates` memo for the Templates gallery — so
ProjectView's chat composer still only sees skills, never templates,
matching the pre-split prop surface.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(e2e): mock /api/design-templates for example-use-prompt flow
The Templates tab in EntryView fetches from /api/design-templates after
the skills/design-templates split (specs/current/skills-and-design-templates.md).
The example-use-prompt Playwright scenario only mocked /api/skills, so the
gallery card never appeared and the test timed out waiting on
example-card-warm-utility-example. Serve the same fixture summary on both
endpoints so the templates gallery renders the card the test clicks.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(tools-pack): create design-templates fixture for resources test
The packaging resources copy now bundles the new design-templates tree
alongside skills (see resources.ts BUNDLED_RESOURCE_TREES). The
copyBundledResourceTrees fixture only created skills, design-systems,
craft, etc., so the recursive copy crashed with ENOENT on
design-templates before it could check the prompt-templates assertion.
Add the missing fixture directory so the test exercises the same set
of resource trees the packaged build does.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(skills): clone built-in side files into the shadow on first edit
mrcfps PR #955 review: editing a built-in skill wrote a USER_SKILLS_DIR
shadow folder that contained only a new SKILL.md. The next listSkills()
pass surfaced the shadow as the active dir, but every side-file resolver
(/api/skills/:id/files, /example, /assets/*, the system-prompt preamble,
and the per-turn cwd staging) reads through skill.dir. With nothing but
SKILL.md in the shadow, the bundled assets/, references/, scripts/, and
examples/ disappeared the moment the user hit save — a built-in like
last30days or live-artifact would break immediately after edit instead
of just having its body overridden.
Teach updateUserSkill() to take a `sourceDir` and clone every entry
except SKILL.md / dotfiles into the shadow on the very first edit. The
shadow stays self-contained, so all the resolvers keep working without
fallback bookkeeping. Subsequent edits detect the existing shadow and
skip the clone, so user tweaks under the side tree survive a re-save.
Wire `sourceDir: skill.dir` from server.ts's PUT /api/skills/:id handler
and add two regression tests:
- 'clones built-in side files into the shadow on the first edit' walks
the file tree after save and asserts assets/template.html, references/
notes.md, and scripts/helper.sh all round-trip from the built-in.
- 'preserves user-edited side files on subsequent edits' edits the
staged assets/template.html, re-saves, and confirms the user content
is still there.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(e2e): rename home tab from Examples to Templates
The Examples tab was renamed to Templates in EntryView (b5993385's
skills/design-templates split — entry.tabExamples became entry.tabTemplates
and the tab value moved from 'examples' to 'templates'), but
entry-chrome-flows still asserted the old label and testId. Update both.
* fix(skills+web): preserve template body in API mode and dir-based skill delete
Two follow-ups from PR #955 review:
1. ProjectView only received `enabledFunctionalSkills`, but
`composedSystemPrompt()` still resolved `project.skillId` through that
prop and `fetchSkill()`. Projects created from the new
`/api/design-templates` surface keep a template id in `project.skillId`,
so opening one in API mode dropped the template body from the system
prompt and the upstream request ran without the project's primary
template instructions. Now ProjectView takes a separate
`designTemplates` prop (the unfiltered template list, so a
later-disabled template still loads for projects already created from
it) and `composedSystemPrompt()` plus the metadata / `isDeck` lookups
fall back to that list, with `fetchDesignTemplate()` as the body-fetch
fallback to `fetchSkill()`. The chat composer's `@`-picker keeps
receiving only the enabled functional skills.
2. `DELETE /api/skills/:id` used `deleteUserSkill(USER_SKILLS_DIR, skill.id)`
which re-slugified the frontmatter id and removed
`<userSkillsDir>/<slug>/`. That matched the import shape but missed the
install shape — `installFromTarget` writes the folder at
`sanitizeRepoName(url)` (GitHub) or `path.basename(realpath)` (local
symlink), neither of which is guaranteed to equal the slugified
frontmatter `name`. A duplicate `app.delete('/api/skills/:id', ...)`
handler at the install routes never fired because Express resolved the
earlier registration first, leaving the install/uninstall path without
working teardown. The handler now removes `skill.dir` (the absolute
path listSkills already discovered) under a USER_SKILLS_DIR safety
check, using `lstat` + `unlinkSync` so symlinked local installs unlink
cleanly without recursing into the user's source tree. The dead
duplicate handler is removed; `deleteUserSkill` is dropped from the
server.ts import set (still exported and unit-tested in skills.ts).
Regression coverage in `apps/daemon/tests/skills-delete-route.test.ts`
pins both shapes plus the symlink-preserves-source case.
* test(daemon): point hyperframes system-prompt test at design-templates
The merge with main brought in a hyperframes system-prompt test that
reads `skills/hyperframes/SKILL.md`, but this branch's split moved
`hyperframes` into `design-templates/` (same migration as `live-artifact`
already handled above in this file). CI was failing with ENOENT on the
old path.
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
1091 lines
39 KiB
HTML
1091 lines
39 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title>Vellum Presentation</title>
|
||
|
||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||
<link
|
||
href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=DM+Sans:wght@300;400;500&family=Courier+Prime:wght@400;700&family=Noto+Serif+SC:wght@300;400;500&family=Noto+Sans+SC:wght@400;500&display=swap"
|
||
rel="stylesheet"
|
||
/>
|
||
|
||
<style>
|
||
/* ╔══════════════════════════════════════════════════════════════════════╗
|
||
║ ZONE A · TOKENS ║
|
||
║ ║
|
||
║ Vellum template: navy + chartreuse all-dark aesthetic. Italic ║
|
||
║ Cormorant Garamond serifs, Courier Prime mono attributions. ║
|
||
╚══════════════════════════════════════════════════════════════════════╝ */
|
||
:root {
|
||
/* Vellum: deep navy with warm yellow type. Single palette across all
|
||
slides. The "light" tokens are aliased to "dark" so any inline
|
||
reference to --c-bg-light or --c-fg-light renders identically. */
|
||
--c-bg: #2a3870; /* deep periwinkle — every slide */
|
||
--c-bg-alt: #343f80;
|
||
--c-bg-light: #2a3870; /* alias — no inverted theme */
|
||
--c-bg-light-alt: #343f80;
|
||
|
||
--c-fg: #E8D85C; /* warm yellow type — every slide */
|
||
--c-fg-2: rgba(232, 216, 92, 0.62);
|
||
--c-fg-3: rgba(232, 216, 92, 0.32);
|
||
--c-fg-light: #E8D85C; /* alias */
|
||
--c-fg-light-2: rgba(232, 216, 92, 0.62);
|
||
--c-fg-light-3: rgba(232, 216, 92, 0.32);
|
||
|
||
--c-accent: #3a7878; /* dusty teal — only used on the large quote-mark glyph */
|
||
--c-emphasis: #F5E168; /* brighter yellow — used for <em> emphasis and small accent text */
|
||
--c-border: rgba(232, 216, 92, 0.20);
|
||
--c-border-light: rgba(232, 216, 92, 0.20);
|
||
|
||
/* ── Typography ──────────────────────────────────────────────────── */
|
||
/* Display: Cormorant Garamond italic — delicate serif against the
|
||
bold chromatic field. Unexpected, personal, gallery-adjacent. */
|
||
--f-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
|
||
--f-heading: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
|
||
/* Body: DM Sans — clean, recedes behind the personality type */
|
||
--f-body: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
|
||
/* Mono: Courier Prime — typed-note feeling for labels */
|
||
--f-mono: "Courier Prime", "Courier New", monospace;
|
||
/* Annotation: Courier Prime mono — typed-note feel for attributions */
|
||
--f-annotation: "Courier Prime", "Courier New", monospace;
|
||
|
||
/* ── Type Scale ──────────────────────────────────────────────────── */
|
||
--sz-display: 11vw;
|
||
--sz-h1: 7vw;
|
||
--sz-h2: 4vw;
|
||
--sz-h3: 2.4vw;
|
||
--sz-lead: 1.5vw;
|
||
--sz-body: 1.05vw;
|
||
--sz-caption: 0.85vw;
|
||
--sz-label: 0.72vw;
|
||
|
||
/* ── Spacing — generous, the field breathes ─────────────────────── */
|
||
--pad-x: 6vw;
|
||
--pad-y: 6vh;
|
||
--gap-lg: 5vh;
|
||
--gap-md: 3vh;
|
||
--gap-sm: 1.5vh;
|
||
|
||
/* ── Motion: zero ────────────────────────────────────────────────── */
|
||
--ease-slide: cubic-bezier(0.77, 0, 0.175, 1);
|
||
--dur-slide: 0s;
|
||
--ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
|
||
--dur-enter: 0s;
|
||
}
|
||
|
||
/* ╔══════════════════════════════════════════════════════════════════════╗
|
||
║ ZONE B · ENGINE — DO NOT MODIFY ║
|
||
║ ║
|
||
║ Layout engine, transitions, navigation chrome. ║
|
||
║ Animation system removed — this skeleton is fully static. ║
|
||
║ Touching the engine mechanics breaks navigation. ║
|
||
╚══════════════════════════════════════════════════════════════════════╝ */
|
||
|
||
*,
|
||
*::before,
|
||
*::after {
|
||
box-sizing: border-box;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
html,
|
||
body {
|
||
width: 100%;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
background: var(--c-bg);
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
|
||
/* Deck container — all slides sit side by side */
|
||
#deck {
|
||
display: flex;
|
||
height: 100vh;
|
||
/* Width = N * 100vw, set dynamically by JS */
|
||
transition: transform var(--dur-slide) var(--ease-slide);
|
||
will-change: transform;
|
||
}
|
||
|
||
/* Slide base — each slide is one full viewport */
|
||
.slide {
|
||
flex: 0 0 100vw;
|
||
width: 100vw;
|
||
height: 100vh;
|
||
position: relative;
|
||
padding: var(--pad-y) var(--pad-x);
|
||
display: grid;
|
||
grid-template-rows: auto 1fr auto;
|
||
overflow: hidden;
|
||
}
|
||
/* Prevent grid children from overflowing */
|
||
.slide-body {
|
||
min-height: 0;
|
||
}
|
||
|
||
/* Slide themes */
|
||
.slide.dark {
|
||
background: var(--c-bg);
|
||
color: var(--c-fg);
|
||
}
|
||
/* Vellum: every slide uses the navy + chartreuse aesthetic.
|
||
The .light class is preserved for backwards compatibility but
|
||
renders identically to .dark — no inverted theme. */
|
||
.slide.light {
|
||
background: var(--c-bg);
|
||
color: var(--c-fg);
|
||
}
|
||
|
||
/* ── Navigation ───────────────────────────────────────────────────── */
|
||
#nav-dots {
|
||
position: fixed;
|
||
bottom: 24px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
display: flex;
|
||
gap: 7px;
|
||
z-index: 100;
|
||
}
|
||
.nav-dot {
|
||
width: 5px;
|
||
height: 5px;
|
||
border-radius: 50%;
|
||
border: none;
|
||
background: rgba(255, 255, 255, 0.22);
|
||
cursor: pointer;
|
||
transition:
|
||
background 0.3s,
|
||
transform 0.3s;
|
||
padding: 0;
|
||
}
|
||
.nav-dot.is-active {
|
||
background: rgba(255, 255, 255, 0.8);
|
||
transform: scale(1.4);
|
||
}
|
||
|
||
#slide-counter {
|
||
position: fixed;
|
||
bottom: 20px;
|
||
right: 28px;
|
||
font-family: var(--f-mono);
|
||
font-size: 10px;
|
||
letter-spacing: 0.12em;
|
||
color: rgba(255, 255, 255, 0.25);
|
||
z-index: 100;
|
||
user-select: none;
|
||
}
|
||
|
||
/* ╔══════════════════════════════════════════════════════════════════════╗
|
||
║ ZONE C · TYPOGRAPHY ║
|
||
║ ║
|
||
║ Vellum: italic serif is structural, not decorative. Roman em tags ║
|
||
║ are the inversion — used for emphasis within italic headings. ║
|
||
╚══════════════════════════════════════════════════════════════════════╝ */
|
||
|
||
/* Vellum: italic serif at display size — the contrast against the bold
|
||
chromatic field is the personality. Never bold on the serif. */
|
||
.display {
|
||
font-family: var(--f-display);
|
||
font-size: var(--sz-display);
|
||
font-weight: 400;
|
||
font-style: italic;
|
||
line-height: 0.92;
|
||
letter-spacing: -0.01em;
|
||
}
|
||
.h1 {
|
||
font-family: var(--f-heading);
|
||
font-size: var(--sz-h1);
|
||
font-weight: 400;
|
||
font-style: italic;
|
||
line-height: 0.95;
|
||
letter-spacing: -0.01em;
|
||
}
|
||
.h2 {
|
||
font-family: var(--f-heading);
|
||
font-size: var(--sz-h2);
|
||
font-weight: 400;
|
||
font-style: italic;
|
||
line-height: 1.05;
|
||
}
|
||
.h3 {
|
||
font-family: var(--f-heading);
|
||
font-size: var(--sz-h3);
|
||
font-weight: 500;
|
||
font-style: italic;
|
||
line-height: 1.15;
|
||
}
|
||
/* Roman (non-italic) for emphasis within italic headlines */
|
||
.h1 em,
|
||
.h2 em,
|
||
.display em {
|
||
font-style: normal;
|
||
font-weight: 600;
|
||
color: var(--c-emphasis);
|
||
}
|
||
.light .h1 em,
|
||
.light .h2 em,
|
||
.light .display em {
|
||
color: var(--c-emphasis);
|
||
}
|
||
|
||
.lead {
|
||
font-family: var(--f-body);
|
||
font-size: var(--sz-lead);
|
||
font-weight: 400;
|
||
line-height: 1.6;
|
||
}
|
||
.body {
|
||
font-family: var(--f-body);
|
||
font-size: var(--sz-body);
|
||
font-weight: 400;
|
||
line-height: 1.65;
|
||
}
|
||
.caption {
|
||
font-family: var(--f-body);
|
||
font-size: var(--sz-caption);
|
||
font-weight: 400;
|
||
line-height: 1.5;
|
||
}
|
||
.label {
|
||
font-family: var(--f-mono);
|
||
font-size: var(--sz-label);
|
||
font-weight: 400;
|
||
letter-spacing: 0.06em;
|
||
}
|
||
.muted {
|
||
color: var(--c-fg-2);
|
||
}
|
||
/* .accent: small text emphasis. Uses brighter yellow for legibility.
|
||
The teal --c-accent is reserved for large graphic marks (quote-mark). */
|
||
.accent {
|
||
color: var(--c-emphasis);
|
||
}
|
||
.light .muted {
|
||
color: var(--c-fg-light-2);
|
||
}
|
||
|
||
/* Annotation: the handwriting font — only used for .pin-note */
|
||
.pin-note {
|
||
font-family: var(--f-annotation);
|
||
font-size: 1.15vw;
|
||
font-weight: 500;
|
||
line-height: 1.5;
|
||
color: var(--c-accent);
|
||
letter-spacing: 0.01em;
|
||
}
|
||
.light .pin-note {
|
||
color: var(--c-accent);
|
||
}
|
||
|
||
/* ── Bullet list: numbered annotation style ───────────────────────── */
|
||
.bullet-list {
|
||
list-style: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--gap-md);
|
||
padding: 0;
|
||
counter-reset: list-counter;
|
||
}
|
||
.bullet-list li {
|
||
font-family: var(--f-body);
|
||
font-size: var(--sz-lead);
|
||
font-weight: 400;
|
||
line-height: 1.5;
|
||
display: grid;
|
||
grid-template-columns: 2em 1fr;
|
||
gap: 0.5em;
|
||
}
|
||
.bullet-list li::before {
|
||
content: counter(list-counter);
|
||
counter-increment: list-counter;
|
||
font-family: var(--f-mono);
|
||
font-size: var(--sz-label);
|
||
color: var(--c-accent);
|
||
padding-top: 0.3em;
|
||
}
|
||
|
||
/* ╔══════════════════════════════════════════════════════════════════════╗
|
||
║ ZONE D · PIN LAYOUT PATTERNS — written from scratch ║
|
||
║ ║
|
||
║ Centered float on chromatic field. Content in middle third. ║
|
||
║ Bottom-left .pin-annotation on every slide. No containers. ║
|
||
╚══════════════════════════════════════════════════════════════════════╝ */
|
||
|
||
/* ── Slide themes ────────────────────────────────────────────────── */
|
||
.slide.dark {
|
||
background: var(--c-bg);
|
||
color: var(--c-fg);
|
||
}
|
||
/* Vellum: every slide uses the navy + chartreuse aesthetic.
|
||
The .light class is preserved for backwards compatibility but
|
||
renders identically to .dark — no inverted theme. */
|
||
.slide.light {
|
||
background: var(--c-bg);
|
||
color: var(--c-fg);
|
||
}
|
||
|
||
/* Chrome + foot — minimal, type-only, no strong borders */
|
||
.slide-chrome,
|
||
.slide-foot {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
.slide-chrome {
|
||
padding-bottom: var(--gap-sm);
|
||
border-bottom: 1px solid var(--c-border);
|
||
margin-bottom: var(--gap-md);
|
||
}
|
||
.slide-foot {
|
||
padding-top: var(--gap-sm);
|
||
border-top: 1px solid var(--c-border);
|
||
margin-top: var(--gap-md);
|
||
}
|
||
.light .slide-chrome,
|
||
.light .slide-foot {
|
||
border-color: var(--c-border-light);
|
||
}
|
||
|
||
/* Kicker + rule */
|
||
.kicker {
|
||
font-family: var(--f-mono);
|
||
font-size: var(--sz-label);
|
||
letter-spacing: 0.1em;
|
||
color: var(--c-accent);
|
||
}
|
||
.rule {
|
||
width: 28px;
|
||
height: 1px;
|
||
background: var(--c-accent);
|
||
}
|
||
|
||
/* Image placeholder */
|
||
.img-placeholder {
|
||
background: rgba(42, 56, 112, 0.12);
|
||
border: 1px dashed var(--c-border);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-family: var(--f-mono);
|
||
font-size: var(--sz-label);
|
||
letter-spacing: 0.08em;
|
||
color: var(--c-fg-3);
|
||
width: 100%;
|
||
height: 100%;
|
||
min-height: 28vh;
|
||
}
|
||
.light .img-placeholder {
|
||
background: rgba(42, 56, 112, 0.08);
|
||
color: var(--c-fg-light-3);
|
||
}
|
||
|
||
/* ── PIN SIGNATURE: annotation note ─────────────────────────────── */
|
||
/* Sits bottom-left on every slide. Mono attribution.
|
||
Contains counter, source attribution, or small label. */
|
||
.pin-annotation {
|
||
position: absolute;
|
||
bottom: calc(var(--pad-y) * 0.9);
|
||
left: var(--pad-x);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.3vh;
|
||
z-index: 10;
|
||
max-width: 22vw;
|
||
}
|
||
|
||
/* ── 1. COVER — centered float on the chromatic field ────────────── */
|
||
/* The entire slide is the color field. Title floats centered.
|
||
Annotation sits bottom-left. No chrome. */
|
||
.slide--cover {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
text-align: center;
|
||
}
|
||
.cover-title {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--gap-md);
|
||
max-width: 70%;
|
||
}
|
||
|
||
/* ── 2. STATEMENT — centered, one thought ────────────────────────── */
|
||
.slide--statement {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
text-align: center;
|
||
}
|
||
.slide--statement .slide-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--gap-md);
|
||
max-width: 62%;
|
||
min-height: 0;
|
||
}
|
||
|
||
/* ── 3. SPLIT — stacked vertical: image top, text below ──────────── */
|
||
/* Maintains the centered float but adds an image above the text.
|
||
More like a pinned photo with a caption below. */
|
||
.slide--split {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
position: relative;
|
||
}
|
||
.slide--split .slide-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--gap-lg);
|
||
min-height: 0;
|
||
}
|
||
.split-visual {
|
||
width: 55%;
|
||
height: 34vh;
|
||
}
|
||
.split-text {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--gap-sm);
|
||
text-align: center;
|
||
max-width: 55%;
|
||
}
|
||
|
||
/* ── 4. STATS — three numbers across the center band ─────────────── */
|
||
/* Like three objects pinned in a row */
|
||
.slide--stats {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
}
|
||
.slide--stats .slide-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--gap-lg);
|
||
min-height: 0;
|
||
width: 100%;
|
||
}
|
||
.stats-row {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 0;
|
||
width: 80%;
|
||
max-width: 80%;
|
||
}
|
||
.pin-stat {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
text-align: center;
|
||
gap: var(--gap-sm);
|
||
padding: var(--gap-md);
|
||
border-right: 1px solid var(--c-border);
|
||
}
|
||
.pin-stat:last-child {
|
||
border-right: none;
|
||
}
|
||
.light .pin-stat {
|
||
border-color: var(--c-border-light);
|
||
}
|
||
.pin-stat-val {
|
||
font-family: var(--f-display);
|
||
font-size: 5.5vw;
|
||
font-weight: 400;
|
||
font-style: italic;
|
||
line-height: 1;
|
||
letter-spacing: -0.02em;
|
||
}
|
||
.pin-stat-label {
|
||
font-family: var(--f-mono);
|
||
font-size: var(--sz-caption);
|
||
color: var(--c-fg-2);
|
||
letter-spacing: 0.06em;
|
||
}
|
||
.light .pin-stat-label {
|
||
color: var(--c-fg-light-2);
|
||
}
|
||
|
||
/* ── 5. QUOTE — centered, the quote IS the slide ─────────────────── */
|
||
.slide--quote {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
padding: calc(var(--pad-y) * 1.2) calc(var(--pad-x) * 1.4);
|
||
text-align: center;
|
||
}
|
||
.quote-mark {
|
||
font-family: var(--f-display);
|
||
font-size: 7vw;
|
||
line-height: 0.6;
|
||
color: var(--c-accent);
|
||
margin-bottom: var(--gap-md);
|
||
font-weight: 400;
|
||
font-style: italic;
|
||
}
|
||
.quote-text {
|
||
font-family: var(--f-heading);
|
||
font-size: 3.2vw;
|
||
font-weight: 400;
|
||
font-style: italic;
|
||
line-height: 1.25;
|
||
max-width: 70%;
|
||
margin-bottom: var(--gap-lg);
|
||
}
|
||
.quote-attr {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.4vh;
|
||
align-items: center;
|
||
}
|
||
|
||
/* ── 6. LIST — centered column, numbered annotation style ────────── */
|
||
.slide--list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
}
|
||
.slide--list .slide-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--gap-lg);
|
||
min-height: 0;
|
||
width: 60%;
|
||
}
|
||
.list-header {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--gap-sm);
|
||
text-align: center;
|
||
}
|
||
.list-items {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--gap-md);
|
||
width: 100%;
|
||
}
|
||
|
||
/* ── 7. COMPARE — two colored panels side by side ────────────────── */
|
||
/* Left panel: chartreuse (light). Right panel: deep periwinkle (dark).
|
||
Like two sheets of colored paper side by side. */
|
||
.slide--compare {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
padding: 0;
|
||
position: relative;
|
||
}
|
||
.slide--compare .slide-body {
|
||
display: contents;
|
||
}
|
||
.compare-panel {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
gap: var(--gap-md);
|
||
padding: var(--pad-y) var(--pad-x);
|
||
height: 100%;
|
||
min-height: 100vh;
|
||
}
|
||
/* Two visually distinct navy shades.
|
||
Left = darker (the past, the unedited). Right = lighter (the present). */
|
||
.compare-panel.left {
|
||
background: #1f2858; /* darker navy */
|
||
color: var(--c-fg);
|
||
}
|
||
.compare-panel.right {
|
||
background: #34407a; /* lighter navy */
|
||
color: var(--c-fg);
|
||
border-left: 1px solid rgba(232, 216, 92, 0.18);
|
||
}
|
||
.slide--compare.light,
|
||
.slide--compare.dark {
|
||
background: none;
|
||
}
|
||
.compare-label {
|
||
font-family: var(--f-mono);
|
||
font-size: var(--sz-label);
|
||
letter-spacing: 0.1em;
|
||
color: var(--c-accent);
|
||
margin-bottom: var(--gap-sm);
|
||
}
|
||
|
||
/* ── 8. CHART — centered, minimal, on the field ──────────────────── */
|
||
.slide--chart {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
}
|
||
.slide--chart .slide-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--gap-md);
|
||
min-height: 0;
|
||
width: 72%;
|
||
}
|
||
.chart-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: baseline;
|
||
}
|
||
.chart-wrapper {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: flex-end;
|
||
min-height: 0;
|
||
}
|
||
.bar-track {
|
||
height: 28vh;
|
||
display: flex;
|
||
align-items: flex-end;
|
||
gap: 3vw;
|
||
border-left: 1px solid var(--c-border);
|
||
padding-left: 0.5vw;
|
||
}
|
||
.light .bar-track {
|
||
border-color: var(--c-border-light);
|
||
}
|
||
.bar-col {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
justify-content: flex-end;
|
||
gap: 1vh;
|
||
height: 100%;
|
||
}
|
||
.bar-fill {
|
||
width: 100%;
|
||
background: var(--c-fg-3);
|
||
}
|
||
.bar-fill.accent {
|
||
background: var(--c-fg);
|
||
}
|
||
.light .bar-fill {
|
||
background: var(--c-fg-light-3);
|
||
}
|
||
.light .bar-fill.accent {
|
||
background: var(--c-fg-light);
|
||
}
|
||
.bar-x-label {
|
||
font-family: var(--f-mono);
|
||
font-size: var(--sz-caption);
|
||
color: var(--c-fg-3);
|
||
white-space: nowrap;
|
||
}
|
||
.light .bar-x-label {
|
||
color: var(--c-fg-light-3);
|
||
}
|
||
.bar-val {
|
||
font-family: var(--f-annotation);
|
||
font-size: 1.1vw;
|
||
color: var(--c-fg-2);
|
||
}
|
||
.bar-val.hi {
|
||
color: var(--c-fg);
|
||
font-size: 1.15vw;
|
||
}
|
||
.light .bar-val {
|
||
color: var(--c-fg-light-2);
|
||
}
|
||
.light .bar-val.hi {
|
||
color: var(--c-fg-light);
|
||
}
|
||
.chart-baseline {
|
||
height: 1px;
|
||
background: var(--c-border);
|
||
}
|
||
.light .chart-baseline {
|
||
background: var(--c-border-light);
|
||
}
|
||
|
||
/* ── 9. END — mirror of cover ────────────────────────────────────── */
|
||
.slide--end {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
text-align: center;
|
||
}
|
||
.end-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--gap-md);
|
||
max-width: 60%;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div id="deck">
|
||
<!-- ═══ SLIDE 01 · COVER ═══════════════════════════════════════════ -->
|
||
<section class="slide light slide--cover" data-slide="1" style="position: relative">
|
||
<div class="cover-title">
|
||
<span class="kicker">Essay 01 · 2026</span>
|
||
<h1 class="display">On <em>Restraint</em></h1>
|
||
<p class="lead" style="max-width: 70%; text-align: center; color: var(--c-fg-2)">
|
||
Field notes on the discipline of less, written for designers who already know how to add.
|
||
</p>
|
||
</div>
|
||
<div class="pin-annotation">
|
||
<span class="pin-note">01 / 09</span>
|
||
<span class="pin-note">The Quiet Studio.</span>
|
||
<span class="pin-note">Edition One.</span>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ═══ SLIDE 02 · STATEMENT (single thesis, chromeless) ═══════════ -->
|
||
<section class="slide dark slide--statement" data-slide="2" style="position: relative">
|
||
<div class="slide-body">
|
||
<span class="kicker">[The Argument]</span>
|
||
<h1 class="h1">
|
||
Most design problems<br />are <em>removed</em>, not solved.
|
||
</h1>
|
||
</div>
|
||
<div class="pin-annotation">
|
||
<span class="pin-note">02 / 09</span>
|
||
<span class="pin-note">Bold claim.</span>
|
||
<span class="pin-note">Stand by it.</span>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ═══ SLIDE 03 · OBSERVATION (full text, no image) ═══════════════ -->
|
||
<section class="slide light slide--text" data-slide="3" style="position: relative">
|
||
<header class="slide-chrome">
|
||
<span class="label">[Field Note 03]</span>
|
||
<span class="label">03</span>
|
||
</header>
|
||
<div class="slide-body" style="display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--gap-md); text-align: center; padding: 0 8vw">
|
||
<span class="kicker">Observation</span>
|
||
<h2 class="h2">
|
||
What you <em>remove</em> is louder<br />than what you keep.
|
||
</h2>
|
||
<p class="lead" style="max-width: 64ch; color: var(--c-fg-2)">
|
||
Subtraction creates the figure. Addition only fills the ground. Working drafts always carry more than they need; the work of editing is mostly the work of cutting.
|
||
</p>
|
||
</div>
|
||
<div class="pin-annotation">
|
||
<span class="pin-note">03 / 09</span>
|
||
<span class="pin-note">Show, don't tell.</span>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ═══ SLIDE 04 · STATS (three findings) ══════════════════════════ -->
|
||
<section class="slide light slide--stats" data-slide="4" style="position: relative">
|
||
<header class="slide-chrome">
|
||
<span class="label">[By the Numbers]</span>
|
||
<span class="label">04</span>
|
||
</header>
|
||
<div class="slide-body">
|
||
<h2 class="h2" style="text-align: center">
|
||
Three findings from a year of <em>editing</em>.
|
||
</h2>
|
||
<div class="stats-row">
|
||
<div class="pin-stat">
|
||
<div class="pin-stat-val">73<em>%</em></div>
|
||
<div class="pin-stat-label">of choices in early drafts are removed before publication</div>
|
||
</div>
|
||
<div class="pin-stat">
|
||
<div class="pin-stat-val">1.4<em>×</em></div>
|
||
<div class="pin-stat-label">time spent removing vs. adding material in mature work</div>
|
||
</div>
|
||
<div class="pin-stat">
|
||
<div class="pin-stat-val">#<em>1</em></div>
|
||
<div class="pin-stat-label">predictor of perceived quality is amount of white space (n=412)</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="pin-annotation">
|
||
<span class="pin-note">04 / 09</span>
|
||
<span class="pin-note">Three facts.</span>
|
||
<span class="pin-note">One argument.</span>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ═══ SLIDE 05 · LIST (four numbered principles) ═════════════════ -->
|
||
<section class="slide light slide--list" data-slide="5" style="position: relative">
|
||
<header class="slide-chrome">
|
||
<span class="label">[Method]</span>
|
||
<span class="label">05</span>
|
||
</header>
|
||
<div class="slide-body">
|
||
<div class="list-header">
|
||
<span class="kicker">[Why It Matters]</span>
|
||
<h2 class="h2">
|
||
Four rules that <em>hold</em>.
|
||
</h2>
|
||
</div>
|
||
<div class="list-items">
|
||
<ul class="bullet-list">
|
||
<li>One accent color per spread. Never two.</li>
|
||
<li>Body text obeys the grid. Display is allowed to break it.</li>
|
||
<li>White space is a choice, not a default.</li>
|
||
<li>Reduce until removal hurts. Stop one step before that.</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="pin-annotation">
|
||
<span class="pin-note">05 / 09</span>
|
||
<span class="pin-note">Four rules.</span>
|
||
<span class="pin-note">No exceptions.</span>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ═══ SLIDE 06 · QUOTE (chromeless, the big quote) ═══════════════ -->
|
||
<section class="slide dark slide--quote" data-slide="6" style="position: relative">
|
||
<div class="quote-mark">"</div>
|
||
<div class="quote-text">
|
||
Design is a plan for arranging elements<br />
|
||
to accomplish a particular <em>purpose</em>.
|
||
</div>
|
||
<div class="quote-attr">
|
||
<span class="label accent">Charles Eames</span>
|
||
<span class="label" style="color: var(--c-fg-2)">Designer · 1972</span>
|
||
</div>
|
||
<div class="pin-annotation">
|
||
<span class="pin-note">06 / 09</span>
|
||
<span class="pin-note">Eames said it.</span>
|
||
<span class="pin-note">Still true.</span>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ═══ SLIDE 07 · COMPARE (before / after on one canvas) ══════════ -->
|
||
<section class="slide slide--compare" data-slide="7" style="position: relative">
|
||
<div class="slide-body">
|
||
<div class="compare-panel left">
|
||
<span class="compare-label" style="color: var(--c-fg-2)">Before</span>
|
||
<h3 class="h3">The <em>unfocused</em> draft</h3>
|
||
<p class="lead" style="color: var(--c-fg-2)">
|
||
Three points compete for the title slot. Two accent colors. The body copy is two paragraphs and ends mid-thought.
|
||
</p>
|
||
<ul class="bullet-list" style="--sz-lead: var(--sz-body)">
|
||
<li>Three claims, none load-bearing</li>
|
||
<li>Twin accents pull the eye apart</li>
|
||
<li>Body unedited; reader does the work</li>
|
||
</ul>
|
||
</div>
|
||
<div class="compare-panel right">
|
||
<span class="compare-label" style="color: var(--c-fg-2)">After</span>
|
||
<h3 class="h3">The <em>edited</em> piece</h3>
|
||
<p class="lead" style="color: var(--c-fg-2)">
|
||
One claim takes the title. One accent does the work. The paragraph ends where the thought ends.
|
||
</p>
|
||
<ul class="bullet-list" style="--sz-lead: var(--sz-body)">
|
||
<li>One claim, fully argued</li>
|
||
<li>One accent, used once</li>
|
||
<li>Body cut to the bone</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="pin-annotation" style="bottom: calc(var(--pad-y) * 0.9); left: var(--pad-x); z-index: 5">
|
||
<span class="pin-note">07 / 09</span>
|
||
<span class="pin-note">Two states.</span>
|
||
<span class="pin-note">Same essay.</span>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ═══ SLIDE 08 · CHART (how drafts shrink) ═══════════════════════ -->
|
||
<section class="slide light slide--chart" data-slide="8" style="position: relative">
|
||
<header class="slide-chrome">
|
||
<span class="label">[Pattern]</span>
|
||
<span class="label">08</span>
|
||
</header>
|
||
<div class="slide-body">
|
||
<div class="chart-header">
|
||
<h2 class="h2">How drafts <em>shrink</em> during editing.</h2>
|
||
<span class="label">Word count, indexed (start = 100)</span>
|
||
</div>
|
||
<div class="chart-wrapper">
|
||
<div class="bar-track">
|
||
<div class="bar-col">
|
||
<span class="bar-val hi">100</span>
|
||
<div class="bar-fill" style="height: 100%"></div>
|
||
<span class="bar-x-label">Draft</span>
|
||
</div>
|
||
<div class="bar-col">
|
||
<span class="bar-val">92</span>
|
||
<div class="bar-fill" style="height: 92%"></div>
|
||
<span class="bar-x-label">First read</span>
|
||
</div>
|
||
<div class="bar-col">
|
||
<span class="bar-val">78</span>
|
||
<div class="bar-fill" style="height: 78%"></div>
|
||
<span class="bar-x-label">Second read</span>
|
||
</div>
|
||
<div class="bar-col">
|
||
<span class="bar-val">65</span>
|
||
<div class="bar-fill" style="height: 65%"></div>
|
||
<span class="bar-x-label">Peer review</span>
|
||
</div>
|
||
<div class="bar-col">
|
||
<span class="bar-val hi">58</span>
|
||
<div class="bar-fill accent" style="height: 58%"></div>
|
||
<span class="bar-x-label">Final</span>
|
||
</div>
|
||
</div>
|
||
<div class="chart-baseline"></div>
|
||
</div>
|
||
</div>
|
||
<div class="pin-annotation">
|
||
<span class="pin-note">08 / 09</span>
|
||
<span class="pin-note">Internal study, 2026.</span>
|
||
<span class="pin-note">n = 412.</span>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ═══ SLIDE 09 · END (closing thought) ═══════════════════════════ -->
|
||
<section class="slide light slide--end" data-slide="9" style="position: relative">
|
||
<div class="end-body">
|
||
<span class="kicker">[End notes]</span>
|
||
<h1 class="h1">
|
||
Edit until it stops<br />looking <em>edited</em>.
|
||
</h1>
|
||
<p class="lead" style="color: var(--c-fg-2); max-width: 56ch">
|
||
Thank you for reading. Comments, corrections, or quiet disagreement welcome at <span style="color: var(--c-emphasis)">notes@quiet-studio.com</span>.
|
||
</p>
|
||
</div>
|
||
<div class="pin-annotation">
|
||
<span class="pin-note">09 / 09</span>
|
||
<span class="pin-note">The Quiet Studio.</span>
|
||
<span class="pin-note">Set in Cormorant + DM Sans.</span>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
<!-- /#deck -->
|
||
|
||
<nav id="nav-dots" aria-label="Slide navigation"></nav>
|
||
<div id="slide-counter"></div>
|
||
|
||
<script>
|
||
(function () {
|
||
const deck = document.getElementById("deck");
|
||
const dotsNav = document.getElementById("nav-dots");
|
||
const counter = document.getElementById("slide-counter");
|
||
const slides = Array.from(deck.querySelectorAll(".slide"));
|
||
const total = slides.length;
|
||
let current = 0;
|
||
|
||
// Size the deck to fit all slides side by side
|
||
deck.style.width = "calc(" + total + " * 100vw)";
|
||
|
||
// Build navigation dots — one per slide
|
||
slides.forEach(function (_, i) {
|
||
const dot = document.createElement("button");
|
||
dot.className = "nav-dot";
|
||
dot.setAttribute("aria-label", "Slide " + (i + 1));
|
||
dot.addEventListener("click", function () {
|
||
goTo(i);
|
||
});
|
||
dotsNav.appendChild(dot);
|
||
});
|
||
|
||
// Zero-pad single-digit numbers for the counter display
|
||
function pad(n) {
|
||
return String(n).padStart(2, "0");
|
||
}
|
||
|
||
// Move to a specific slide by index
|
||
function goTo(index) {
|
||
if (index < 0 || index >= total) return;
|
||
if (
|
||
index === current &&
|
||
slides[current].classList.contains("is-active")
|
||
)
|
||
return;
|
||
|
||
slides[current].classList.remove("is-active");
|
||
current = index;
|
||
const slide = slides[current];
|
||
|
||
slide.classList.add("is-active");
|
||
deck.style.transform = "translateX(calc(-" + current + " * 100vw))";
|
||
|
||
// Update dots
|
||
dotsNav.querySelectorAll(".nav-dot").forEach(function (d, i) {
|
||
d.classList.toggle("is-active", i === current);
|
||
});
|
||
|
||
// Update counter
|
||
counter.textContent = pad(current + 1) + " / " + pad(total);
|
||
}
|
||
|
||
// Keyboard navigation
|
||
document.addEventListener("keydown", function (e) {
|
||
if (
|
||
e.key === "ArrowRight" ||
|
||
e.key === " " ||
|
||
e.key === "ArrowDown"
|
||
) {
|
||
e.preventDefault();
|
||
goTo(current + 1);
|
||
}
|
||
if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
|
||
e.preventDefault();
|
||
goTo(current - 1);
|
||
}
|
||
if (e.key === "Home") goTo(0);
|
||
if (e.key === "End") goTo(total - 1);
|
||
});
|
||
|
||
// Touch swipe — passive to avoid blocking scroll
|
||
var touchStartX = 0;
|
||
document.addEventListener(
|
||
"touchstart",
|
||
function (e) {
|
||
touchStartX = e.touches[0].clientX;
|
||
},
|
||
{ passive: true },
|
||
);
|
||
document.addEventListener(
|
||
"touchend",
|
||
function (e) {
|
||
var dx = e.changedTouches[0].clientX - touchStartX;
|
||
if (Math.abs(dx) > 40) goTo(current + (dx < 0 ? 1 : -1));
|
||
},
|
||
{ passive: true },
|
||
);
|
||
|
||
// Mouse wheel — locked for 1000ms to prevent accidental multi-skip
|
||
var wheelLocked = false;
|
||
document.addEventListener(
|
||
"wheel",
|
||
function (e) {
|
||
if (wheelLocked) return;
|
||
var primary =
|
||
Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;
|
||
goTo(current + (primary > 0 ? 1 : -1));
|
||
wheelLocked = true;
|
||
setTimeout(function () {
|
||
wheelLocked = false;
|
||
}, 1000);
|
||
},
|
||
{ passive: true },
|
||
);
|
||
|
||
// Initialize — go to first slide
|
||
goTo(0);
|
||
})();
|
||
</script>
|
||
</body>
|
||
</html>
|