/* polytics.club - Ethereal Magazine Bokeh Design */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #faf6f0;
    color: #3b2e24;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Bokeh Background Layer */
.bokeh-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 2s ease;
}

.bokeh-circle.visible {
    opacity: 1;
}

.bk1 {
    width: 280px;
    height: 280px;
    top: 5%;
    left: 10%;
    background: radial-gradient(circle, rgba(200, 121, 65, 0.2) 0%, transparent 70%);
    animation: bokeh-drift-1 20s ease-in-out infinite;
}

.bk2 {
    width: 180px;
    height: 180px;
    top: 20%;
    right: 15%;
    background: radial-gradient(circle, rgba(212, 166, 122, 0.2) 0%, transparent 70%);
    animation: bokeh-drift-2 18s ease-in-out infinite;
}

.bk3 {
    width: 240px;
    height: 240px;
    top: 40%;
    left: 5%;
    background: radial-gradient(circle, rgba(240, 200, 122, 0.15) 0%, transparent 70%);
    animation: bokeh-drift-3 22s ease-in-out infinite;
}

.bk4 {
    width: 160px;
    height: 160px;
    top: 55%;
    right: 8%;
    background: radial-gradient(circle, rgba(122, 158, 142, 0.18) 0%, transparent 70%);
    animation: bokeh-drift-1 25s ease-in-out infinite reverse;
}

.bk5 {
    width: 300px;
    height: 300px;
    top: 70%;
    left: 20%;
    background: radial-gradient(circle, rgba(200, 121, 65, 0.15) 0%, transparent 70%);
    animation: bokeh-drift-2 20s ease-in-out infinite;
}

.bk6 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 45%;
    background: radial-gradient(circle, rgba(212, 166, 122, 0.25) 0%, transparent 70%);
    animation: bokeh-drift-3 16s ease-in-out infinite;
}

.bk7 {
    width: 200px;
    height: 200px;
    top: 80%;
    right: 25%;
    background: radial-gradient(circle, rgba(240, 200, 122, 0.2) 0%, transparent 70%);
    animation: bokeh-drift-1 23s ease-in-out infinite;
}

.bk8 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 60%;
    background: radial-gradient(circle, rgba(122, 158, 142, 0.2) 0%, transparent 70%);
    animation: bokeh-drift-2 19s ease-in-out infinite reverse;
}

@keyframes bokeh-drift-1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-10px, 25px); }
    75% { transform: translate(20px, 10px); }
}

@keyframes bokeh-drift-2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-25px, 15px); }
    50% { transform: translate(15px, -30px); }
    75% { transform: translate(-10px, 20px); }
}

@keyframes bokeh-drift-3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, 20px); }
    50% { transform: translate(-20px, -10px); }
    75% { transform: translate(10px, -25px); }
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Section Label */
.section-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a6b5d;
    display: block;
    margin-bottom: 12px;
}

/* Cover Spread */
.cover-spread {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.cover-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 7vw, 6rem);
    letter-spacing: -0.01em;
    color: #3b2e24;
    overflow: hidden;
    white-space: nowrap;
}

.cover-title .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.08s ease;
}

.cover-title .char.visible {
    opacity: 1;
}

.cover-title .cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: #c87941;
    margin-left: 4px;
    vertical-align: middle;
    animation: cursor-blink 0.7s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cover-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: #7a6b5d;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 1s ease;
}

.cover-tagline.visible {
    opacity: 1;
}

/* Spacer */
.spacer {
    position: relative;
    z-index: 2;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spacer-rule {
    width: 0;
    height: 1px;
    background: #d4a67a;
    opacity: 0.4;
    transition: width 1.5s ease;
}

.spacer-rule.animate {
    width: 60%;
}

/* Spreads */
.spread {
    position: relative;
    z-index: 2;
    min-height: 80vh;
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.spread.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Two-Column */
.spread-two-col {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.spread-col-text {
    flex: 6;
    max-width: 60ch;
}

.spread-col-deco {
    flex: 4;
    position: relative;
    min-height: 300px;
}

.spread-reversed {
    flex-direction: row-reverse;
}

/* Three-Column */
.spread-three-col {
    display: flex;
    gap: 40px;
}

.tri-col {
    flex: 1;
    position: relative;
}

.tri-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: #3b2e24;
    margin-bottom: 12px;
}

/* Full Width */
.spread-full {
    text-align: center;
}

.spread-center-text {
    max-width: 60ch;
    margin: 0 auto;
}

/* Headlines */
.spread-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
    color: #3b2e24;
    margin-bottom: 24px;
    overflow: hidden;
    white-space: nowrap;
}

.spread-headline .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.06s ease;
}

.spread-headline .char.visible {
    opacity: 1;
}

.spread-headline .cursor {
    display: inline-block;
    width: 2px;
    height: 0.8em;
    background: #c87941;
    margin-left: 3px;
    vertical-align: middle;
    animation: cursor-blink 0.7s step-end infinite;
}

/* Body Text */
.spread-body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    color: #3b2e24;
    max-width: 60ch;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.spread-body.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pull Quote */
.pull-quote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #c87941;
    line-height: 1.3;
    max-width: 20ch;
    margin: 0 auto 60px;
    transform: rotate(2deg);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.pull-quote.visible {
    transform: rotate(0deg);
    opacity: 1;
}

/* Bokeh Accents */
.bokeh-accent {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.spread.visible .bokeh-accent {
    transform: scale(1);
}

.ba1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 0;
    background: radial-gradient(circle, rgba(200, 121, 65, 0.2) 0%, transparent 70%);
}

.spread.visible .ba1 { opacity: 0.8; }

.ba2 {
    width: 140px;
    height: 140px;
    top: 40%;
    right: 30%;
    background: radial-gradient(circle, rgba(240, 200, 122, 0.25) 0%, transparent 70%);
}

.spread.visible .ba2 { opacity: 0.7; }

.ba3 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle, rgba(122, 158, 142, 0.2) 0%, transparent 70%);
}

.spread.visible .ba3 { opacity: 0.6; }

.ba4 {
    width: 80px;
    height: 80px;
    top: -10px;
    left: 20%;
    background: radial-gradient(circle, rgba(200, 121, 65, 0.25) 0%, transparent 70%);
}

.spread.visible .ba4 { opacity: 0.7; }

.ba5 {
    width: 90px;
    height: 90px;
    top: -5px;
    left: 30%;
    background: radial-gradient(circle, rgba(212, 166, 122, 0.25) 0%, transparent 70%);
}

.spread.visible .ba5 { opacity: 0.7; }

.ba6 {
    width: 70px;
    height: 70px;
    top: -8px;
    right: 20%;
    background: radial-gradient(circle, rgba(240, 200, 122, 0.3) 0%, transparent 70%);
}

.spread.visible .ba6 { opacity: 0.8; }

.ba7 {
    width: 220px;
    height: 220px;
    top: 5%;
    left: 0;
    background: radial-gradient(circle, rgba(212, 166, 122, 0.2) 0%, transparent 70%);
}

.spread.visible .ba7 { opacity: 0.7; }

.ba8 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 20%;
    background: radial-gradient(circle, rgba(160, 105, 75, 0.15) 0%, transparent 70%);
}

.spread.visible .ba8 { opacity: 0.6; }

/* Color references: #7a9e8e sage green, #f0c87a amber gold */
.tri-col:hover .tri-heading {
    color: #7a9e8e;
}

.pull-quote::before {
    color: #f0c87a;
}

/* Gradient Wash */
.spread::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(240, 200, 122, 0.06) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Closing Spread */
.closing-spread {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.closing-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 200, 122, 0.5) 0%, rgba(200, 121, 65, 0.2) 40%, transparent 70%);
    transform: translate(-50%, -50%) scale(1);
    transition: width 2s ease, height 2s ease, transform 2s ease;
    z-index: 0;
}

.closing-glow.expanded {
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%) scale(1);
}

.closing-content {
    position: relative;
    z-index: 1;
}

.closing-domain {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #a0694b;
    display: block;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.closing-spread.visible .closing-domain {
    opacity: 1;
}

.closing-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.2rem;
    color: #7a6b5d;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.closing-spread.visible .closing-text {
    opacity: 1;
}

/* Responsive */
@media (max-width: 700px) {
    .spread-two-col,
    .spread-reversed {
        flex-direction: column;
    }

    .spread-three-col {
        flex-direction: column;
        gap: 40px;
    }

    .spread-col-deco {
        min-height: 150px;
    }

    .spread {
        padding: 60px 20px;
    }

    .pull-quote {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
}
