/* multipledger.com — Enchanted Ledger */
/* Palette: #0b1d26 #c6deeb #d0eee1 #f3a693 #56e8cd #1a2a35 #e8f0f4 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0b1d26;
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    color: #e8f0f4;
    overflow-x: hidden;
}

#fish-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Sections */
.section {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 8vh, 8rem) clamp(2rem, 5vw, 6rem);
}

.section-hero {
    flex-direction: column;
}

.section-debit {
    flex-direction: column;
    gap: 2rem;
}

.section-credit {
    flex-direction: column;
    gap: 2rem;
}

.section-reconciliation {
    align-items: stretch;
}

.section-balance {
    min-height: 50vh;
}

/* Frost Panels */
.frost-panel {
    background: rgba(198, 222, 235, 0.12);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    padding: clamp(2rem, 4vw, 4rem);
    max-width: 70ch;
}

.frost-panel--hero {
    background: rgba(198, 222, 235, 0.12);
    max-width: 80ch;
    text-align: center;
}

.frost-panel--debit {
    background: rgba(198, 222, 235, 0.25);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

.frost-panel--credit {
    background: rgba(243, 166, 147, 0.18);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

.frost-panel--recon {
    background: rgba(198, 222, 235, 0.35);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

.frost-panel--balance {
    background: rgba(198, 222, 235, 0.08);
    text-align: center;
    max-width: 50ch;
}

/* Slide animations */
.slide-from-left {
    transform: translateX(-100%);
}

.slide-from-right {
    transform: translateX(100%);
}

.slide-panel.revealed {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

/* Reconciliation layout */
.reconciliation-columns {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 90ch;
    align-items: flex-start;
}

.recon-left,
.recon-right {
    flex: 1;
}

.recon-left {
    transform: translateX(-50%);
}

.recon-right {
    transform: translateX(50%);
}

/* Typography */
.hero-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 6rem);
    color: #e8f0f4;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.section-heading {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: #e8f0f4;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.75;
    color: #e8f0f4;
    margin-bottom: 1rem;
}

.body-text {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.75;
    color: #1a2a35;
    margin-bottom: 1rem;
}

.frost-panel--hero .body-text,
.frost-panel--balance .body-text {
    color: #e8f0f4;
}

.hero-mono,
.mono-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.75rem, 0.9vw, 0.95rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #56e8cd;
    margin-top: 0.5rem;
}

.balance-domain {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #e8f0f4;
    margin: 1rem 0 0.5rem;
}

/* Ledger Lines */
.ledger-lines {
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent calc(1.75rem - 1px),
        rgba(255, 255, 255, 0.06) calc(1.75rem - 1px),
        rgba(255, 255, 255, 0.06) 1.75rem
    );
    padding: 0.5rem 0;
}

/* Fish Icons */
.fish-icon {
    display: inline-block;
    vertical-align: middle;
    color: #56e8cd;
}

.fish-icon--angelfish {
    width: 3rem;
    height: 3rem;
}

.fish-icon--colophon {
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.7;
}

/* Balance content */
.balance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .reconciliation-columns {
        flex-direction: column;
    }

    .slide-from-left {
        transform: translateY(60px);
    }

    .slide-from-right {
        transform: translateY(60px);
    }

    .recon-left {
        transform: translateY(60px);
    }

    .recon-right {
        transform: translateY(60px);
    }

    .slide-panel.revealed {
        transform: translateY(0) !important;
    }

    .frost-panel {
        backdrop-filter: blur(8px) saturate(1.2);
        -webkit-backdrop-filter: blur(8px) saturate(1.2);
    }
}
