/* ============================================
   james-is-an.ai — Shared Brand System
   Include via: <link rel="stylesheet" href="/brand.css">
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Backgrounds */
    --bg-deep: #0d0b0a;
    --bg-primary: #1a1614;
    --bg-card: #1f1b18;
    --bg-card-hover: #2a2420;

    /* Fire accent (default — override per site) */
    --accent: #e85a30;
    --accent-dim: rgba(232, 90, 48, 0.15);

    /* Text */
    --text-primary: #f5f5f5;
    --text-secondary: #888;
    --text-muted: #555;

    /* Borders */
    --border: #2a2622;
    --border-hover: #3a3530;

    /* Brand font */
    --font-brand: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: var(--font-brand);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   BRAND NAV
   ============================================ */

.brand-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9998;
    height: 40px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    font-family: var(--font-brand);
    font-size: 0.8rem;
}

.brand-nav-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.brand-nav-home:hover {
    color: var(--text-secondary);
}

.brand-nav-home svg {
    width: 16px;
    height: 16px;
}

.brand-nav-current {
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Hide nav in standalone PWA mode */
@media (display-mode: standalone) {
    .brand-nav { display: none; }
    body { padding-top: 0 !important; }
}

/* ============================================
   SHARED CARD STYLE (opt-in via .brand-card)
   ============================================ */

.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
