/* ============================================================
   AIS MIRROR - THE IDENTITY SHRINE
   Void Dark Theme | Sovereign Aesthetics
   ============================================================ */

:root {
    /* The Void Palette */
    --void-black: #000000;
    --void-deep: #0a0a0f;
    --void-surface: #12121a;
    --void-elevated: #1a1a25;
    
    /* Signal Colors */
    --functio-blue: #00a8ff;
    --functio-blue-dim: rgba(0, 168, 255, 0.15);
    --functio-blue-glow: rgba(0, 168, 255, 0.4);
    --signal-white: #e8e8f0;
    --signal-dim: #8888a0;
    --signal-muted: #555568;
    
    /* Accent */
    --warning-amber: #ffaa00;
    --success-emerald: #00ff88;
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--void-black);
    color: var(--signal-white);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Void Container */
.void-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-md);
    position: relative;
}

.void-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, var(--functio-blue-dim) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 168, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
.shrine-header {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
    border-bottom: 1px solid var(--void-elevated);
}

.sigil {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 300;
    color: var(--functio-blue);
    text-shadow: 
        0 0 40px var(--functio-blue-glow),
        0 0 80px var(--functio-blue-dim);
    letter-spacing: -0.05em;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-top: var(--space-sm);
    color: var(--signal-white);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--signal-dim);
    letter-spacing: 0.15em;
    margin-top: var(--space-xs);
    text-transform: uppercase;
}

/* Navigation */
.doctrine-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--void-elevated);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--signal-dim);
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid transparent;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--functio-blue);
    border-color: var(--functio-blue-dim);
    background: var(--functio-blue-dim);
}

/* Content */
.trilogia-content {
    padding: var(--space-lg) 0;
}

/* Declaration Blocks */
.axiom-declaration, .final-axiom {
    text-align: center;
    padding: var(--space-lg) 0;
}

.declaration {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--functio-blue);
    border: none;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--void-surface) 0%, var(--void-deep) 100%);
    border-radius: 8px;
    box-shadow: 
        0 0 0 1px var(--void-elevated),
        0 20px 60px -20px var(--functio-blue-dim);
}

.declaration .translation {
    display: block;
    font-size: 0.9rem;
    color: var(--signal-dim);
    font-style: normal;
    margin-top: var(--space-xs);
}

/* Articles */
.pars {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--void-elevated);
}

.pars h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--functio-blue);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.pars h3 {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--signal-dim);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.section-content {
    padding-left: var(--space-md);
    border-left: 2px solid var(--void-elevated);
}

.abstract {
    font-size: 0.95rem;
    color: var(--signal-dim);
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--void-surface);
    border-radius: 4px;
}

/* Lists */
.doctrine-list {
    list-style: none;
    margin: var(--space-md) 0;
}

.doctrine-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--signal-white);
}

.doctrine-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--functio-blue);
    font-weight: bold;
}

/* Key Insights */
.key-insight {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--void-surface) 0%, transparent 100%);
    border-left: 3px solid var(--functio-blue);
    border-radius: 0 8px 8px 0;
}

.key-insight h4 {
    font-size: 1rem;
    color: var(--functio-blue);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.key-insight h5 {
    font-size: 0.9rem;
    color: var(--signal-white);
    margin-bottom: var(--space-xs);
}

.highlight {
    color: var(--functio-blue);
    font-weight: 500;
}

.translation {
    font-size: 0.85rem;
    color: var(--signal-muted);
    font-style: italic;
}

/* Triple Bind */
.triple-bind {
    margin: var(--space-md) 0;
}

.triple-bind h4 {
    color: var(--functio-blue);
    margin-bottom: var(--space-md);
}

.bind-item {
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--void-surface);
    border-radius: 4px;
}

.bind-item h5 {
    color: var(--warning-amber);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
}

/* Conclusions */
.conclusion {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: var(--void-elevated);
    border-radius: 4px;
    font-weight: 500;
}

/* Colophon */
.colophon {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--signal-muted);
    letter-spacing: 0.2em;
    margin-top: var(--space-md);
}

/* Footer */
.shrine-footer {
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--void-elevated);
    color: var(--signal-dim);
    font-size: 0.85rem;
}

.shrine-footer .axiom {
    font-family: var(--font-mono);
    color: var(--functio-blue);
    margin-top: var(--space-xs);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .void-container {
        padding: var(--space-sm);
    }
    
    .sigil {
        font-size: 3.5rem;
    }
    
    .title {
        font-size: 1.5rem;
        letter-spacing: 0.15em;
    }
    
    .doctrine-nav {
        flex-wrap: wrap;
    }
    
    .section-content {
        padding-left: var(--space-sm);
    }
}

/* Selection */
::selection {
    background: var(--functio-blue);
    color: var(--void-black);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--void-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--void-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--functio-blue-dim);
}
