feat: vault1984.css global stylesheet + styleguide.html

- Single CSS file, CSS variables for all tokens
- One rule per class, no exceptions
- vault1984.css: layout, type, cards, buttons, grid, spacing, dc-grid
- styleguide.html: colors, typography, cards, buttons, grid, spacing
- Strict: --width:1100px everywhere, --pad:2rem everywhere
This commit is contained in:
James 2026-03-02 04:11:50 -05:00
parent 1b71bd5755
commit 32316a91d0
4 changed files with 278 additions and 12 deletions

View File

@ -50,14 +50,14 @@
</nav>
<!-- Hero -->
<div style="padding-top:100px;padding-bottom:2.5rem;text-align:center;max-width:900px;margin:0 auto;padding-left:1.5rem;padding-right:1.5rem">
<p class="label" style="color:#22C55E;margin-bottom:1rem">Hosting</p>
<h1 style="font-size:clamp(1.75rem,4vw,3rem);font-weight:800;color:#fff;margin:0 0 1rem;line-height:1.1">Your vault. Wherever you want it.</h1>
<div style="padding-top:100px;padding-bottom:2.5rem;text-align:center;max-width:1100px;margin:0 auto;padding-left:2rem;padding-right:2rem">
<p style="font-family:'JetBrains Mono',monospace;font-size:0.875rem;font-weight:700;margin-bottom:1rem;letter-spacing:0.02em">vault<span style="color:#22C55E">1984</span> <span style="color:#94a3b8;font-weight:400">hosted</span></p>
<h1 style="font-size:clamp(2rem,5vw,3.5rem);font-weight:800;color:#fff;margin:0 0 1rem;line-height:1.1">Your vault. Wherever you want it.</h1>
<p style="color:#94a3b8;font-size:1.125rem;margin:0">We run it. You own it. Pick your region — your data stays there.</p>
</div>
<!-- Map -->
<div style="max-width:1280px;margin:0 auto;padding:0 1.5rem 1.5rem">
<div style="max-width:1100px;margin:0 auto;padding:0 2rem 2rem">
<div style="border-radius:1rem;overflow:hidden;border:1px solid rgba(255,255,255,0.06)">
<svg id="worldmap" viewBox="0 0 1000 460" xmlns="http://www.w3.org/2000/svg" style="display:block;width:100%;background:#0a1628">
<image href="/worldmap.svg" x="0" y="0" width="1000" height="460"/>
@ -184,10 +184,10 @@
<hr class="div">
<!-- Why it matters -->
<div style="max-width:1000px;margin:0 auto;padding:4rem 1.5rem">
<div style="max-width:1100px;margin:0 auto;padding:3.5rem 2rem">
<div style="margin-bottom:3.5rem">
<p class="label" style="color:#f87171;margin-bottom:0.75rem">The problem</p>
<p class="label" style="color:#64748b;margin-bottom:0.75rem">The problem</p>
<h2 style="font-size:clamp(1.5rem,3vw,2.25rem);font-weight:700;color:#fff;margin:0 0 1rem;line-height:1.2">Your AI assistant needs your credentials.<br>That changes everything.</h2>
<p style="color:#94a3b8;font-size:1.0625rem;line-height:1.75;max-width:680px;margin:0">A password manager that blocks AI agents is useless in 2025. But one that hands them everything is a liability. The question is: how do you give Claude access to your GitHub token without giving it access to your bank password?</p>
</div>
@ -199,7 +199,7 @@
<p style="color:#94a3b8;line-height:1.7;font-size:0.9375rem;margin:0">Passwords and private notes are encrypted on your device with a key derived from your fingerprint or hardware token. We store a locked box. No key ever reaches our servers — not a court order, not your AI assistant. Sealed fields require your physical presence to unlock.</p>
</div>
<div class="card" style="background:#0a1220;padding:1.75rem">
<p class="label" style="color:#60a5fa;margin-bottom:0.75rem">Agent fields</p>
<p class="label" style="color:#64748b;margin-bottom:0.75rem">Agent fields</p>
<h3 style="font-size:1.2rem;font-weight:700;color:#fff;margin:0 0 0.875rem">Your AI, scoped and controlled.</h3>
<p style="color:#94a3b8;line-height:1.7;font-size:0.9375rem;margin:0">Fields you designate as agent-accessible are encrypted on our servers. You issue scoped tokens — Claude gets your GitHub token, nothing else. Revoke at any time. The agent never touches sealed fields, no matter what.</p>
</div>
@ -210,12 +210,12 @@
<h2 style="font-size:clamp(1.5rem,3vw,2.25rem);font-weight:700;color:#fff;margin:0 0 1rem;line-height:1.2">Sealed fields: jurisdiction irrelevant.<br>Agent fields: it isnt.</h2>
<p style="color:#94a3b8;font-size:1.0625rem;line-height:1.75;max-width:680px;margin:0 0 1.75rem">Sealed fields are protected by math — where the server sits doesnt matter. But agent fields live on a server in a jurisdiction. A US server is subject to the CLOUD Act. Zürich, Switzerland is subject to Swiss law — which does not cooperate with foreign government data requests. No backdoors. Both layers protected.</p>
<div style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem">
<div class="card" style="background:#1a0808;padding:1.25rem">
<p class="label" style="color:#f87171;margin-bottom:0.5rem">Self-hosted · US</p>
<div class="card" style="background:#0d1627;padding:1.25rem">
<p class="label" style="color:#64748b;margin-bottom:0.5rem">Self-hosted · US</p>
<p style="color:#cbd5e1;font-size:0.875rem;line-height:1.65;margin:0">Your server, your rules — until a court says otherwise. CLOUD Act applies to US persons regardless of encryption.</p>
</div>
<div class="card" style="background:#0a1220;padding:1.25rem">
<p class="label" style="color:#60a5fa;margin-bottom:0.5rem">Self-hosted · anywhere</p>
<p class="label" style="color:#64748b;margin-bottom:0.5rem">Self-hosted · anywhere</p>
<p style="color:#cbd5e1;font-size:0.875rem;line-height:1.65;margin:0">Full control. Your infrastructure, your jurisdiction. The right choice if you know what youre doing.</p>
</div>
<div style="border-radius:1rem;border:1px solid rgba(212,175,55,0.3);background:#2a1f00;padding:1.25rem">
@ -354,7 +354,7 @@
</li>
<li class="flex items-center gap-3 text-sm text-gray-300">
<svg class="w-4 h-4 text-accent flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/></svg>
L1/L2 encryption
Sealed &amp; Agent fields
</li>
<li class="flex items-center gap-3 text-sm text-gray-300">
<svg class="w-4 h-4 text-accent flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/></svg>
@ -378,7 +378,7 @@
<h3 class="text-xl font-bold text-white mb-1">Hosted</h3>
<div class="text-3xl font-bold text-white mb-1">$12<span class="text-lg font-normal text-gray-400">/year</span></div>
<p class="text-gray-500 text-sm mb-6">We manage it. You use it.</p>
<p class="text-gray-400 text-sm mb-8">New York, Amsterdam, Frankfurt, Helsinki. Pick your region.</p>
<p class="text-gray-400 text-sm mb-8">22 regions across every continent. Pick yours at signup.</p>
<ul class="space-y-3 mb-8">
<li class="flex items-center gap-3 text-sm text-gray-300">
<svg class="w-4 h-4 text-accent flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/></svg>

151
styleguide.html Normal file
View File

@ -0,0 +1,151 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vault1984 — Styleguide</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=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/vault1984.css">
<style>
.sg-section { padding: 3rem 0; border-top: 1px solid var(--border); }
.sg-title { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--subtle); margin-bottom: 1.5rem; }
.swatch { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.swatch-box { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.swatch-name{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); }
.swatch-val { font-family: var(--font-mono); font-size: 0.75rem; color: var(--subtle); }
</style>
</head>
<body>
<div class="container">
<div style="padding: 5rem 0 2rem">
<p class="label accent mb-3">Design System</p>
<h1>vault<span style="color:var(--accent)">1984</span> Styleguide</h1>
<p class="lead mt-4">Single source of truth. One stylesheet: <code style="font-family:var(--font-mono);color:var(--accent)">vault1984.css</code>. No inline styles in HTML.</p>
</div>
<!-- COLORS -->
<div class="sg-section">
<p class="sg-title">Colors</p>
<div class="grid-3">
<div>
<p class="label mb-4">Backgrounds</p>
<div class="swatch"><div class="swatch-box" style="background:var(--bg)"></div><div><div class="swatch-name">--bg</div><div class="swatch-val">#0A1628</div></div></div>
<div class="swatch"><div class="swatch-box" style="background:var(--surface)"></div><div><div class="swatch-name">--surface</div><div class="swatch-val">#0d1627</div></div></div>
<div class="swatch"><div class="swatch-box" style="background:var(--surface-alt)"></div><div><div class="swatch-name">--surface-alt</div><div class="swatch-val">#0a1a0a</div></div></div>
<div class="swatch"><div class="swatch-box" style="background:var(--surface-gold)"></div><div><div class="swatch-name">--surface-gold</div><div class="swatch-val">#2a1f00</div></div></div>
</div>
<div>
<p class="label mb-4">Text</p>
<div class="swatch"><div class="swatch-box" style="background:var(--text)"></div><div><div class="swatch-name">--text</div><div class="swatch-val">#f1f5f9</div></div></div>
<div class="swatch"><div class="swatch-box" style="background:var(--muted)"></div><div><div class="swatch-name">--muted</div><div class="swatch-val">#94a3b8</div></div></div>
<div class="swatch"><div class="swatch-box" style="background:var(--subtle)"></div><div><div class="swatch-name">--subtle</div><div class="swatch-val">#64748b</div></div></div>
</div>
<div>
<p class="label mb-4">Accent</p>
<div class="swatch"><div class="swatch-box" style="background:var(--accent)"></div><div><div class="swatch-name">--accent</div><div class="swatch-val">#22C55E</div></div></div>
<div class="swatch"><div class="swatch-box" style="background:var(--gold)"></div><div><div class="swatch-name">--gold</div><div class="swatch-val">#D4AF37</div></div></div>
<div class="swatch"><div class="swatch-box" style="background:var(--red)"></div><div><div class="swatch-name">--red</div><div class="swatch-val">#EF4444</div></div></div>
</div>
</div>
</div>
<!-- TYPOGRAPHY -->
<div class="sg-section">
<p class="sg-title">Typography</p>
<h1 class="mb-4">h1 — Your vault. Wherever you want it.</h1>
<h2 class="mb-4">h2 — Sealed fields: jurisdiction irrelevant.</h2>
<h3 class="mb-4">h3 — Only you. Only in person.</h3>
<p class="lead mb-4">p.lead — We run it. You own it. Pick your region — your data stays there.</p>
<p class="mb-4">p — Passwords and private notes are encrypted on your device with a key derived from your fingerprint or hardware token. We store a locked box. No key ever reaches our servers.</p>
<p class="label mb-2">label (default)</p>
<p class="label accent mb-2">label.accent</p>
<p class="label gold mb-2">label.gold</p>
<p class="label red mb-2">label.red</p>
<p class="mt-4"><span class="vaultname">vault<span class="n">1984</span></span> — vaultname in body text</p>
</div>
<!-- CARDS -->
<div class="sg-section">
<p class="sg-title">Cards</p>
<div class="grid-3 mb-8">
<div class="card">
<p class="label accent mb-3">card (default)</p>
<h3 class="mb-3">Default surface</h3>
<p>Use for neutral content. Background is --surface.</p>
</div>
<div class="card alt">
<p class="label accent mb-3">card.alt</p>
<h3 class="mb-3">Sealed fields</h3>
<p>Green-tinted surface. Use for sealed layer content.</p>
</div>
<div class="card gold">
<p class="label gold mb-3">card.gold</p>
<h3 class="mb-3">Zürich, Switzerland</h3>
<p>Gold-tinted surface. Use exclusively for Zürich/HQ.</p>
</div>
</div>
<div class="grid-3">
<div class="card red">
<p class="label red mb-3">card.red</p>
<h3 class="mb-3">Self-hosted</h3>
<p>Red-tinted surface. Use for self-hosted / warning contexts.</p>
</div>
<div class="card card-hover">
<p class="label mb-3">card + card-hover</p>
<h3 class="mb-3">Hover state</h3>
<p>Hover this card — lifts on hover. Add to any clickable card.</p>
</div>
</div>
</div>
<!-- BUTTONS -->
<div class="sg-section">
<p class="sg-title">Buttons</p>
<div style="display:flex;flex-wrap:wrap;gap:0.75rem;margin-bottom:1.5rem">
<a href="#" class="btn btn-primary">btn-primary</a>
<a href="#" class="btn btn-ghost">btn-ghost</a>
<a href="#" class="btn btn-accent">btn-accent</a>
<a href="#" class="btn btn-gold">btn-gold</a>
<a href="#" class="btn btn-red">btn-red</a>
</div>
<div class="grid-3">
<a href="#" class="btn btn-accent btn-block">btn-accent btn-block</a>
<a href="#" class="btn btn-gold btn-block">btn-gold btn-block</a>
<a href="#" class="btn btn-red btn-block">btn-red btn-block</a>
</div>
</div>
<!-- GRID -->
<div class="sg-section">
<p class="sg-title">Grid</p>
<p class="label mb-4">grid-2</p>
<div class="grid-2 mb-8">
<div class="card"><p class="label mb-2">col 1</p><p>Always 1fr.</p></div>
<div class="card"><p class="label mb-2">col 2</p><p>Always 1fr.</p></div>
</div>
<p class="label mb-4">grid-3</p>
<div class="grid-3">
<div class="card"><p class="label mb-2">col 1</p><p>Always 1fr.</p></div>
<div class="card"><p class="label mb-2">col 2</p><p>Always 1fr.</p></div>
<div class="card"><p class="label mb-2">col 3</p><p>Always 1fr.</p></div>
</div>
</div>
<!-- SPACING -->
<div class="sg-section">
<p class="sg-title">Spacing scale</p>
<p class="mb-4">All spacing via utility classes: <code style="font-family:var(--font-mono);color:var(--accent)">.mt-2 .mt-3 .mt-4 .mt-6 .mt-8 .mt-12</code> and matching <code style="font-family:var(--font-mono);color:var(--accent)">.mb-*</code>.</p>
<p class="label mb-3">Container: max-width 1100px, padding 2rem each side. Used everywhere.</p>
<p class="label">Section: padding 4rem top/bottom. Separated by hr.divider.</p>
</div>
<div style="padding:4rem 0;text-align:center">
<p class="label">End of styleguide</p>
</div>
</div>
</body>
</html>

Binary file not shown.

115
vault1984.css Normal file
View File

@ -0,0 +1,115 @@
/* ============================================================
vault1984 global stylesheet
ONE rule per class. No exceptions. No inline styles.
All layout, spacing, color and type lives here.
============================================================ */
/* === TOKENS === */
:root {
--width: 1100px;
--pad: 2rem;
--radius: 1rem;
--radius-sm: 0.5rem;
--gap: 1.25rem;
--bg: #0A1628;
--surface: #0d1627;
--surface-alt: #0a1a0a;
--surface-gold: #2a1f00;
--border: rgba(255,255,255,0.06);
--border-gold: rgba(212,175,55,0.3);
--text: #f1f5f9;
--muted: #94a3b8;
--subtle: #64748b;
--accent: #22C55E;
--gold: #D4AF37;
--red: #EF4444;
--font-sans: Inter, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}
/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* === LAYOUT === */
.container { max-width: var(--width); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 4rem 0; }
hr.divider { border: none; border-top: 1px solid var(--border); }
/* === TYPOGRAPHY === */
h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1; color: var(--text); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; color: var(--text); }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: var(--text); }
p { color: var(--muted); font-size: 1rem; line-height: 1.75; }
p.lead { font-size: 1.125rem; }
/* === LABELS === */
.label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.label.accent { color: var(--accent); }
.label.gold { color: var(--gold); }
.label.red { color: var(--red); }
/* === VAULTNAME === */
.vaultname { font-family: var(--font-mono); font-weight: 700; color: var(--text); }
.vaultname .n { color: var(--accent); }
/* === CARDS === */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.card.alt { background: var(--surface-alt); }
.card.gold { background: var(--surface-gold); border-color: var(--border-gold); }
.card.red { background: #1a0505; border-color: rgba(239,68,68,0.3); }
.card-hover { transition: transform 0.2s, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
/* === GRID === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); }
/* === BUTTONS === */
.btn { display: inline-block; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; padding: 0.625rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: opacity 0.15s; text-align: center; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-accent { background: rgba(34,197,94,0.15); color: var(--accent); border-color: rgba(34,197,94,0.3); }
.btn-gold { background: rgba(212,175,55,0.15); color: var(--gold); border-color: rgba(212,175,55,0.3); }
.btn-red { background: rgba(239,68,68,0.15); color: var(--red); border-color: rgba(239,68,68,0.3); }
.btn-block { display: block; width: 100%; }
/* === HERO === */
.hero { padding-top: 100px; padding-bottom: 2.5rem; text-align: center; }
.hero h1 { margin-bottom: 1rem; }
.hero p.lead { max-width: 600px; margin-left: auto; margin-right: auto; }
/* === MAP === */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrap svg { display: block; width: 100%; background: var(--bg); }
.map-gap { height: 1rem; }
/* === DC GRID (3 action cards below map) === */
#dc-grid { display: flex; gap: var(--gap); }
#dc-grid .dc-card { flex: 1; min-width: 0; border-radius: var(--radius); padding: 1rem; text-align: center; background: var(--surface); border: 1px solid var(--border); }
#dc-grid .dc-card.gold { background: var(--surface-gold); border-color: var(--border-gold); }
#dc-grid .dc-card.red { background: #1a0505; border-color: rgba(239,68,68,0.3); }
#dc-grid .dc-icon { font-size: 1.5rem; margin-bottom: 0.375rem; }
#dc-grid .dc-name { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
#dc-grid .dc-sub { font-size: 0.75rem; color: var(--subtle); margin-bottom: 0.625rem; }
#dc-grid .dc-status { display: flex; align-items: center; justify-content: center; gap: 0.375rem; font-size: 0.75rem; color: var(--subtle); margin-bottom: 0.75rem; }
#dc-grid .dc-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
/* === SPACING === */
.mt-2 { margin-top: 0.5rem; } .mb-2 { margin-bottom: 0.5rem; }
.mt-3 { margin-top: 0.75rem; } .mb-3 { margin-bottom: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mb-4 { margin-bottom: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mb-6 { margin-bottom: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mb-8 { margin-bottom: 2rem; }
.mt-12 { margin-top: 3rem; } .mb-12 { margin-bottom: 3rem; }
/* === ANIMATIONS === */
@keyframes hostedPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.3; transform:scale(1.8); } }