/* TAC-NotesOn: The Sovereign Manuscript Build */

:root {
    --tac-cream: #FDF8F0;
    --tac-burnt-orange: #CC5500;
    --tac-deep-orange: #993D00;
    --tac-dark: #2D2D2D;
    --tac-teal: #1A6B6B;

    /* Principle 3: Damping Curve */
    --tac-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --tac-duration-fast: 300ms;
    --tac-duration-slow: 800ms;
}

body {
    background-color: var(--tac-cream);
    color: var(--tac-dark);
    margin: 0;
    font-family: 'Ibarra Real Nova', serif;
    line-height: 1.618;
    -webkit-font-smoothing: antialiased;
}

/* Master Column */
.tac-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Principle 7: Glass Morphism Potential Well */
.tac-glass {
    background: rgba(253, 248, 240, 0.6);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(204, 85, 0, 0.15);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(153, 61, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all var(--tac-duration-fast) var(--tac-ease);
}

.tac-glass:hover {
    box-shadow: 0 16px 48px rgba(153, 61, 0, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
    border-color: rgba(204, 85, 0, 0.4);
}

/* Principle 6: DOM Relaxation States */
.tac-entropy-active {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--tac-duration-slow) var(--tac-ease),
                transform var(--tac-duration-slow) var(--tac-ease);
}

.tac-homeostasis-active {
    opacity: 1 !important;
    transform: translateY(0px) !important;
}

/* Principle 8: BINGO Progress Bar */
#tac-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--tac-burnt-orange), var(--tac-deep-orange));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 12px var(--tac-burnt-orange);
}

/* Typography Hierarchy */
h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tac-dark);
}

h1 { font-size: 64px; line-height: 0.95; margin-bottom: 1.5rem; }
h2 { font-size: 40px; line-height: 1.1; margin: 3rem 0 1.5rem; }

/* Manuscript Dividers */
.tac-manifold-hr {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tac-burnt-orange), transparent);
    margin: 4rem 0;
    border: none;
    opacity: 0.3;
}

/* Background Substrate */
#tac-substrate {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
