:root {
    --polar-night: #0c0e1a;
    --frozen-slate: #161b2e;
    --glacier-white: #e8edf3;
    --frozen-lilac: #c4c8e0;
    --deep-frost: #8a92b8;
    --frost-rose: #d4a0b0;
    --pale-aurora: #a8d8ea;
    --ice-amber: #e8c87a;

    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-numeral: 'Cormorant Garamond', serif;
}

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

html, body {
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--polar-night);
    color: var(--glacier-white);
    line-height: 1.72;
    font-weight: 400;
}

/* Frost Canopy */
.frost-canopy {
    position: relative;
    height: 35vh;
    width: 100%;
    background-color: var(--polar-night);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#generative-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.site-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    color: var(--glacier-white);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 30% 5% 65%;
    gap: 0;
    min-height: 65vh;
    padding: 3rem 2rem;
}

.spine {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-right: 1rem;
    border-right: 1px solid rgba(196, 200, 224, 0.12);
}

.frost-card {
    background-color: rgba(22, 27, 46, 0.55);
    backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(196, 200, 224, 0.12);
    padding: 1.5rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 300ms ease;
    position: relative;
}

.frost-card:hover {
    background-color: rgba(22, 27, 46, 0.75);
    box-shadow: 0 8px 32px rgba(168, 216, 234, 0.1);
}

.frost-card.active {
    border-color: rgba(212, 160, 176, 0.5);
    background-color: rgba(22, 27, 46, 0.85);
}

.article-number {
    font-family: var(--font-numeral);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 300;
    color: var(--glacier-white);
    opacity: 0.08;
    position: absolute;
    top: -1rem;
    right: -1rem;
    line-height: 0.8;
}

.frost-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--glacier-white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.frost-card p {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: var(--frozen-lilac);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-meta {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    color: var(--deep-frost);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Scan Bar */
.scan-bar {
    grid-column: 2;
    border-right: 1px solid rgba(196, 200, 224, 0.3);
    opacity: 0.5;
}

/* Projection Field */
.projection-field {
    grid-column: 3;
    padding-left: 2rem;
    position: relative;
}

.article-content {
    opacity: 1;
    transition: opacity 400ms ease;
}

.article-content.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--glacier-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.article-content p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--frozen-lilac);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 65ch;
}

.generative-illustration {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(212, 160, 176, 0.1), rgba(168, 216, 234, 0.1));
    border: 1px solid rgba(196, 200, 224, 0.15);
    border-radius: 2px;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-frost);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .spine, .scan-bar, .projection-field {
        grid-column: 1;
    }

    .spine {
        border-right: none;
        border-bottom: 1px solid rgba(196, 200, 224, 0.12);
        padding-right: 0;
        padding-bottom: 2rem;
    }

    .scan-bar {
        border-right: none;
        border-bottom: 1px solid rgba(196, 200, 224, 0.3);
        margin: 0 -2rem;
        opacity: 0.5;
    }

    .projection-field {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .main-layout {
        padding: 1.5rem 1rem;
    }

    .spine {
        gap: 1.5rem;
    }

    .article-number {
        font-size: 3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.frost-card {
    animation: fadeInUp 600ms ease-out forwards;
}

.frost-card:nth-child(1) { animation-delay: 0ms; }
.frost-card:nth-child(2) { animation-delay: 100ms; }
.frost-card:nth-child(3) { animation-delay: 200ms; }
.frost-card:nth-child(4) { animation-delay: 300ms; }
.frost-card:nth-child(5) { animation-delay: 400ms; }
