/* fuessinger.family — shared tokens + chrome
   Golden UI: splash index.html (on-chain / protocol / terminal).
   Index and /journal/ both load this file so the mast cannot drift. */

:root {
    --primary: #00f0ff;
    --secondary: #7000ff;
    --gold: #D4AF37;
    --bg-color: #020408;
    --cyber-black: #020408;
    --cyber-dark: #0B1120;
    --cyber-primary: #00f0ff;
    --cyber-secondary: #7000ff;
    --cyber-gold: #D4AF37;
    --cyber-platinum: #E5E4E2;
    --text: #e2e8f0;
    --muted: #9ca3af;
    --muted-2: #6b7280;
    --rule: rgba(255, 255, 255, 0.08);
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --nav-h: 5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--gold);
    color: #000;
}

a { color: var(--primary); }
a:hover { color: #fff; }

/* --- Neural grid canvas (splash) + CSS fallback (journal) --- */
#neural-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body.journal-page {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(rgba(0, 240, 255, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
}


/* --- Mast (same on splash and journal) --- */
.site-nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 4, 8, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
}
.site-brand:hover { color: #fff; }
.site-brand i {
    color: var(--gold);
    font-size: 1.25rem;
}
.site-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    color: #fff;
}
.site-badge {
    font-size: 0.6rem;
    background: var(--cyber-dark);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.site-nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}
.site-nav-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-nav-links a:hover { color: var(--primary); }
.site-nav-links a.nav-journal:hover,
.site-nav-links a.nav-journal.is-active { color: var(--gold); }

.site-nav-toggle {
    display: inline-flex;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.35rem;
}

.site-nav-mobile {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--cyber-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}
.site-nav-mobile.is-open { display: block; }
.site-nav-mobile a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #d1d5db;
    text-decoration: none;
}
.site-nav-mobile a.nav-journal { color: var(--gold); }

@media (min-width: 768px) {
    .site-nav-links { display: flex; }
    .site-nav-toggle { display: none; }
    .site-nav-mobile,
    .site-nav-mobile.is-open { display: none; }
}

/* --- Glass --- */
.glass-panel {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* --- Ticker --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #000;
    padding-left: 100%;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}
.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 40s linear infinite;
}
.ticker__item {
    display: inline-block;
    padding: 0 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #9ca3af;
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Footer --- */
.site-footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
    position: relative;
    z-index: 10;
    text-align: center;
    color: #4b5563;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 0.75rem; }
.site-footer a {
    color: inherit;
    text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }
.site-footer .tel:hover,
.site-footer a[href^="tel"]:hover { color: var(--primary); }
