/* nonri.day — Maximalist Magazine Spread */
:root {
    --ice-white: #F0F4FA;
    --pale-frost: #E8F0FF;
    --light-steel: #D0E0F0;
    --silver-blue: #B8C8E0;
    --deep-navy: #1A1A2E;
    --muted-navy: #3A3A5E;
    --slate-blue: #6A7A9E;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted-navy);
    background: var(--ice-white);
    overflow-x: hidden;
}

/* Geometric Background Shapes */
#geo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.geo-shape {
    position: absolute;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.geo-shape.visible {
    opacity: 1;
}

.geo-rect {
    border-radius: 0;
}

.geo-circle {
    border-radius: 50%;
}

.geo-tri {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(208, 224, 240, 0.3);
    background: none;
}

.geo-shape {
    animation: geo-drift 12s ease-in-out infinite;
}

.geo-shape:nth-child(2n) {
    animation-delay: -3s;
    animation-direction: reverse;
}

.geo-shape:nth-child(3n) {
    animation-delay: -6s;
}

@keyframes geo-drift {
    0%, 100% { transform: translate(0, 0) rotate(var(--rotate, 0deg)); }
    25% { transform: translate(5px, -6px) rotate(var(--rotate, 0deg)); }
    50% { transform: translate(-4px, 8px) rotate(var(--rotate, 0deg)); }
    75% { transform: translate(7px, 3px) rotate(var(--rotate, 0deg)); }
}

/* Navigation */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 16px 24px 16px 60px;
    display: flex;
    gap: 24px;
    background: rgba(240, 244, 250, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
}

.nav-item {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--deep-navy);
    text-decoration: none;
    background-image: linear-gradient(var(--deep-navy), var(--deep-navy));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease-out;
    padding-bottom: 4px;
}

.nav-item:hover,
.nav-item.active {
    background-size: 100% 2px;
}

/* Hero */
#hero {
    padding: 100px 60px 60px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 56px;
    color: var(--deep-navy);
    letter-spacing: 0.02em;
    display: inline-block;
}

.hero-underline {
    height: 2px;
    background: var(--deep-navy);
    width: 0;
    transition: width 0.6s ease-out;
    margin-top: 4px;
}

.hero-underline.drawn {
    width: 100%;
}

/* Magazine Grid */
#magazine-grid {
    position: relative;
    z-index: 10;
    padding: 0 60px 80px;
}

.mag-section {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 60px 0 60px 48px;
    border-top: 1px solid var(--silver-blue);
    margin-bottom: 40px;
}

/* Vertical Labels */
.vertical-label {
    position: absolute;
    left: 0;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--deep-navy);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: rgba(232, 240, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 4px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mag-section.in-view .vertical-label {
    opacity: 1;
}

/* Section Geo Shapes */
.section-geo {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    animation: geo-drift 12s ease-in-out infinite;
}

/* Content Blocks */
.content-block {
    position: relative;
    z-index: 5;
    padding: 24px;
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.overlap-top {
    margin-top: -24px;
}

.block-heading {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 28px;
    color: var(--deep-navy);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.block-body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted-navy);
}

/* Pull Quotes */
.pull-quote {
    padding: 24px 32px;
    border-left: 4px solid var(--silver-blue);
    padding-left: 32px;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 28px;
    line-height: 1.4;
    color: var(--slate-blue);
}

/* Fade In */
.fade-in {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Mobile */
@media (max-width: 900px) {
    .mag-section {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 0;
    }

    .span-2, .span-3, .span-4 {
        grid-column: span 2;
    }

    .vertical-label {
        writing-mode: horizontal-tb;
        transform: none;
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 8px;
        grid-column: span 2;
    }

    #hero {
        padding: 80px 24px 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    #magazine-grid {
        padding: 0 24px 60px;
    }

    .section-geo {
        opacity: 0.5;
        transform: scale(0.6);
    }

    .quote-text {
        font-size: 22px;
    }

    .block-heading {
        font-size: 22px;
    }

    #top-nav {
        padding: 12px 16px 12px 16px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .mag-section {
        grid-template-columns: 1fr;
    }

    .span-2, .span-3, .span-4 {
        grid-column: span 1;
    }

    .vertical-label {
        grid-column: span 1;
    }

    .hero-title {
        font-size: 28px;
    }

    .nav-item {
        font-size: 11px;
    }
}
