Vape / docs /assets /site.css
DetVape's picture
Sync from GitHub via hub-sync
fb85499 verified
Raw History Blame Contribute Delete
5.21 kB
/* VAPE β€” dark, restrained enterprise-tech design system. Tailwind CDN handles
utilities; this file holds custom tokens, motion, and decoration Tailwind's
utility set can't. One accent color (cyan) used deliberately, not everywhere. */
:root {
font-family: 'JetBrains Mono', ui-monospace, monospace;
--cyan: #22d3ee;
--cyan-dim: rgba(34,211,238,0.14);
--brass: #c9a86a;
--brass-dim: rgba(201,168,106,0.16);
}
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-serif-display { font-family: 'Fraunces', Georgia, serif; }
body {
background:
radial-gradient(1200px 600px at 20% -10%, rgba(99,102,241,0.10), transparent),
radial-gradient(1000px 500px at 100% 0%, rgba(34,211,238,0.07), transparent),
radial-gradient(900px 500px at 50% 60%, rgba(34,211,238,0.05), transparent),
#09090b;
}
.glass { background: rgba(255,255,255,0.04); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.08); }
/* Anchor-linked sections need headroom under the sticky nav, or a jump-to-#id
click hides the heading right behind the bar. */
section[id] { scroll-margin-top: 5.5rem; }
.live-dot { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.85)} }
.stat { font-variant-numeric: tabular-nums; }
.skeleton { background: linear-gradient(90deg,rgba(255,255,255,.04) 25%,rgba(255,255,255,.09) 37%,rgba(255,255,255,.04) 63%); background-size:400% 100%; animation: sh 1.4s ease infinite; }
@keyframes sh { 0%{background-position:100% 50%} 100%{background-position:0 50%} }
a { transition: color .15s; }
.card-h:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.35); }
.card-h { transition: all .2s cubic-bezier(.4,0,.2,1); }
/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.reveal {
opacity: 0;
transform: translateY(28px);
transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-1.in-view { transition-delay: .08s; }
.reveal-2.in-view { transition-delay: .16s; }
.reveal-3.in-view { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
.reveal { transition: none; opacity: 1; transform: none; }
}
/* ── Hero frame (cyan) β€” kept to exactly one spot on the page, not repeated
as a motif across every card. Thin and subtle, not a sci-fi viewfinder. ── */
.hud-frame {
position: relative;
border: 1px solid rgba(34,211,238,0.18);
}
.hud-corner { position: absolute; width: 12px; height: 12px; border-color: rgba(34,211,238,.45); }
.hud-corner.tl { top: -1px; left: -1px; border-top: 1.5px solid; border-left: 1.5px solid; }
.hud-corner.tr { top: -1px; right: -1px; border-top: 1.5px solid; border-right: 1.5px solid; }
.hud-corner.bl { bottom: -1px; left: -1px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.hud-corner.br { bottom: -1px; right: -1px; border-bottom: 1.5px solid; border-right: 1.5px solid; }
/* ── Hero portrait frame (used until real art lands) ─────────────────────── */
.hero-portrait-fallback {
background: linear-gradient(160deg, #0d0d11 0%, #030303 100%);
border: 1px solid rgba(255,255,255,0.08);
}
.hero-portrait-fallback::after {
content: '';
position: absolute; inset: 0;
background: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px);
mix-blend-mode: overlay;
}
/* ── Wallet chip / profile ────────────────────────────────────────────── */
.wallet-chip { transition: all .15s; }
.wallet-chip:hover { border-color: rgba(34,211,238,.4); }
.chain-badge-warn { animation: chainpulse 1.6s infinite; }
@keyframes chainpulse { 0%,100%{opacity:1} 50%{opacity:.6} }
/* ── Nav logo: occasional glow instead of a persistent "expand me" badge β€”
a quiet signal that it's interactive (mobile menu toggle) without a
permanent visual barnacle on the brand mark. Desktop nav already shows
the link row inline, so the logo isn't a control there β€” no glow. Kept
deliberately faint and rare (one ~1.5s flicker per 22s) β€” a hint, not a
beacon. `.nav-logo-active` is toggled by JS while the menu is open and
uses the same faint treatment as a static ring, so opening it feels like
a continuation of the same cue rather than a different, louder effect. ── */
@keyframes nav-logo-glow {
0%, 93%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
96% { box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 0 7px 1px rgba(34,211,238,.18); }
}
@media (max-width: 1023px) {
.nav-logo-pulse { animation: nav-logo-glow 22s ease-in-out infinite; }
.nav-logo-pulse.nav-logo-active { animation: none; box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 0 7px 1px rgba(34,211,238,.18); }
}
@media (prefers-reduced-motion: reduce) {
.nav-logo-pulse { animation: none; }
}