/* gabs.news - Fairycore Editorial Magazine */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f9edd4;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #3a2a1e;
}

/* ===== Noise Overlay ===== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ===== Vine Progress ===== */
.vine-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 100;
    pointer-events: none;
}

.vine-progress svg {
    width: 100%;
    height: 100%;
}

.vine-main {
    stroke-dasharray: 1300;
    stroke-dashoffset: 1100;
    transition: stroke-dashoffset 700ms ease-in-out;
}

.vine-leaf {
    opacity: 0;
    transition: opacity 500ms ease-in-out 200ms;
}

.vine-tendril {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 500ms ease-in-out 400ms;
}

/* ===== Spreads Container ===== */
.spreads-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.spread {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9edd4;
    transform: translateX(100vw);
    opacity: 0;
    transition: transform 700ms ease-in-out, opacity 500ms ease-in-out;
    will-change: transform, opacity;
}

.spread.active {
    transform: translateX(0);
    opacity: 1;
}

.spread.exit-left {
    transform: translateX(-100vw);
    opacity: 0;
}

/* ===== Navigation Arrows ===== */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 50;
    padding: 20px 15px;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.15);
}

.nav-arrow-left {
    left: 20px;
}

.nav-arrow-right {
    right: 20px;
}

.nav-arrow svg path {
    transition: stroke 300ms ease;
}

.nav-arrow:hover svg path {
    stroke: #e8a44a;
}

/* ===== SPREAD 0: Masthead ===== */
.spread-masthead {
    flex-direction: column;
    position: relative;
}

.ornamental-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 700px);
    height: min(60vh, 440px);
    z-index: 2;
    opacity: 0;
    animation: fadeInFrame 600ms ease-out 100ms forwards;
}

.frame-svg {
    width: 100%;
    height: 100%;
}

.masthead-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.petal-shape {
    position: absolute;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: drift 20s ease-in-out infinite;
    opacity: 0;
}

.spread-masthead.active .petal-shape {
    animation: drift 20s ease-in-out infinite, fadeInShape 600ms ease-out forwards;
}

.petal-1 {
    width: 120px;
    height: 140px;
    background-color: #e8a44a;
    top: 15%;
    left: 18%;
    opacity: 0.6;
    animation-delay: 200ms;
    mix-blend-mode: multiply;
}

.petal-2 {
    width: 90px;
    height: 110px;
    background-color: #d4775c;
    top: 22%;
    right: 20%;
    opacity: 0.5;
    border-radius: 40% 60% 50% 50% / 50% 60% 40% 50%;
    animation-delay: 350ms;
    mix-blend-mode: multiply;
}

.petal-3 {
    width: 150px;
    height: 100px;
    background-color: #f4e0c7;
    bottom: 25%;
    left: 22%;
    opacity: 0.7;
    border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%;
    animation-delay: 500ms;
}

.petal-4 {
    width: 80px;
    height: 95px;
    background-color: #e8a44a;
    bottom: 20%;
    right: 25%;
    opacity: 0.5;
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    animation-delay: 650ms;
    mix-blend-mode: multiply;
}

.petal-5 {
    width: 70px;
    height: 85px;
    background-color: #c9a87c;
    top: 35%;
    left: 12%;
    opacity: 0.4;
    border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
    animation-delay: 300ms;
}

.petal-6 {
    width: 100px;
    height: 75px;
    background-color: #d4775c;
    top: 60%;
    right: 15%;
    opacity: 0.4;
    border-radius: 45% 55% 50% 50% / 55% 45% 50% 50%;
    animation-delay: 450ms;
    mix-blend-mode: multiply;
}

.masthead-content {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    animation: fadeInContent 600ms ease-out 500ms forwards;
}

.masthead-logo {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    color: #2d1810;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.masthead-dateline {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 500;
    color: #8b6f5e;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1.5rem;
}

.masthead-arrow {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    animation: pulseArrow 2s ease-in-out infinite;
    opacity: 0;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.masthead-arrow:hover {
    transform: translateX(-50%) scale(1.15);
}

.spread-masthead.active .masthead-arrow {
    animation: pulseArrow 2s ease-in-out infinite, fadeInContent 600ms ease-out 800ms forwards;
}

/* ===== SPREAD: Feature ===== */
.spread-feature {
    display: flex;
    align-items: stretch;
}

.spread-illustration {
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.shape-composition {
    position: relative;
    width: 80%;
    height: 70%;
}

.abstract-shape {
    position: absolute;
    animation: drift 20s ease-in-out infinite;
    mix-blend-mode: multiply;
}

.shape-ellipse-1 {
    width: 180px;
    height: 220px;
    background-color: #e8a44a;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 10%;
    left: 15%;
    opacity: 0.7;
    animation-delay: 0s;
}

.shape-petal-1 {
    width: 130px;
    height: 160px;
    background-color: #d4775c;
    border-radius: 40% 60% 50% 50% / 50% 60% 40% 50%;
    top: 30%;
    left: 40%;
    opacity: 0.6;
    animation-delay: 3s;
}

.shape-poly-1 {
    width: 100px;
    height: 120px;
    background-color: #c9a87c;
    border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
    top: 55%;
    left: 10%;
    opacity: 0.5;
    animation-delay: 6s;
}

.shape-ellipse-2 {
    width: 90px;
    height: 110px;
    background-color: #f4e0c7;
    border-radius: 50%;
    top: 60%;
    left: 55%;
    opacity: 0.8;
    animation-delay: 9s;
    mix-blend-mode: normal;
}

.shape-petal-2 {
    width: 70px;
    height: 90px;
    background-color: #e8a44a;
    border-radius: 60% 40% 45% 55% / 55% 45% 55% 45%;
    top: 15%;
    left: 60%;
    opacity: 0.5;
    animation-delay: 12s;
}

/* Alt shape compositions for spread 4 */
.shape-ellipse-3 {
    width: 160px;
    height: 200px;
    background-color: #d4775c;
    border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
    top: 8%;
    left: 20%;
    opacity: 0.6;
    animation-delay: 2s;
}

.shape-petal-3 {
    width: 120px;
    height: 150px;
    background-color: #e8a44a;
    border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
    top: 35%;
    left: 50%;
    opacity: 0.7;
    animation-delay: 5s;
}

.shape-poly-2 {
    width: 110px;
    height: 130px;
    background-color: #f4e0c7;
    border-radius: 35% 65% 55% 45% / 45% 55% 45% 55%;
    top: 50%;
    left: 15%;
    opacity: 0.6;
    animation-delay: 8s;
    mix-blend-mode: normal;
}

.shape-curve-1 {
    width: 80px;
    height: 100px;
    background-color: #c9a87c;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    top: 20%;
    left: 5%;
    opacity: 0.5;
    animation-delay: 11s;
}

.shape-ellipse-4 {
    width: 95px;
    height: 85px;
    background-color: #d4775c;
    border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
    top: 70%;
    left: 45%;
    opacity: 0.5;
    animation-delay: 14s;
}

.shape-petal-4 {
    width: 65px;
    height: 80px;
    background-color: #e8a44a;
    border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
    top: 5%;
    left: 65%;
    opacity: 0.4;
    animation-delay: 7s;
}

.spread-content {
    width: 55%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8vh 6vw 8vh 3vw;
}

.category-label {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 500;
    color: #d4775c;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
    cursor: default;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.category-label:hover {
    transform: scale(1.08);
}

.spread-headline {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 400;
    color: #2d1810;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.gold-rule {
    width: 100%;
    height: 1px;
    background-color: #e8a44a;
    margin-bottom: 1rem;
}

.gold-rule-short {
    width: 60%;
}

.byline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    font-style: italic;
    color: #8b6f5e;
    margin-bottom: 1.5rem;
}

.body-text p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    color: #3a2a1e;
    margin-bottom: 1.2em;
}

.body-text p:last-child {
    margin-bottom: 0;
}

.ornamental-divider {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* ===== SPREAD: Columns ===== */
.spread-columns {
    display: flex;
    align-items: stretch;
    background-color: #f9edd4;
}

.column-text {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6vh 3vw;
    background-color: #f4e0c7;
}

.column-left {
    padding-left: 4vw;
}

.column-right {
    padding-right: 4vw;
}

.column-center {
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marble-medallion {
    width: min(280px, 30vw);
    height: min(280px, 30vw);
}

.marble-medallion svg {
    width: 100%;
    height: 100%;
}

.column-headline {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: #2d1810;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.body-text-sm {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    color: #3a2a1e;
}

/* ===== SPREAD: Full-Bleed ===== */
.spread-fullbleed {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2d1810;
}

.fullbleed-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fb-shape {
    position: absolute;
    animation: drift 20s ease-in-out infinite;
    mix-blend-mode: screen;
}

.fb-shape-1 {
    width: 300px;
    height: 350px;
    background-color: #e8a44a;
    border-radius: 50% 50% 45% 55% / 55% 50% 50% 45%;
    top: 5%;
    left: 5%;
    opacity: 0.15;
    animation-delay: 0s;
}

.fb-shape-2 {
    width: 250px;
    height: 280px;
    background-color: #d4775c;
    border-radius: 45% 55% 50% 50% / 50% 55% 45% 50%;
    top: 15%;
    right: 10%;
    opacity: 0.12;
    animation-delay: 4s;
}

.fb-shape-3 {
    width: 200px;
    height: 240px;
    background-color: #c9a87c;
    border-radius: 55% 45% 50% 50% / 50% 45% 55% 50%;
    bottom: 10%;
    left: 15%;
    opacity: 0.1;
    animation-delay: 8s;
}

.fb-shape-4 {
    width: 180px;
    height: 200px;
    background-color: #e8a44a;
    border-radius: 50% 50% 55% 45% / 45% 55% 50% 50%;
    bottom: 20%;
    right: 20%;
    opacity: 0.15;
    animation-delay: 12s;
}

.fb-shape-5 {
    width: 150px;
    height: 180px;
    background-color: #f4e0c7;
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
    top: 40%;
    left: 40%;
    opacity: 0.08;
    animation-delay: 6s;
}

.fb-shape-6 {
    width: 120px;
    height: 140px;
    background-color: #d4775c;
    border-radius: 55% 45% 45% 55% / 55% 55% 45% 45%;
    top: 10%;
    left: 45%;
    opacity: 0.1;
    animation-delay: 10s;
}

.fb-shape-7 {
    width: 100px;
    height: 120px;
    background-color: #e8a44a;
    border-radius: 50% 50% 50% 50%;
    bottom: 35%;
    left: 60%;
    opacity: 0.12;
    animation-delay: 14s;
}

.fullbleed-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 10vw;
}

.fullbleed-headline {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    color: #fef0e1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.05;
}

.spread-fullbleed .nav-arrow svg path {
    stroke: #c9a87c;
}

.spread-fullbleed .nav-arrow:hover svg path {
    stroke: #e8a44a;
}

/* ===== SPREAD: Feature Alt ===== */
.spread-feature-alt {
    background-color: #f4e0c7;
}

/* ===== SPREAD: Closing ===== */
.spread-closing {
    flex-direction: column;
    position: relative;
}

.closing-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.closing-petal-1 {
    width: 100px;
    height: 120px;
    background-color: #e8a44a;
    top: 20%;
    left: 15%;
    opacity: 0.4;
    animation-delay: 200ms;
    mix-blend-mode: multiply;
}

.closing-petal-2 {
    width: 80px;
    height: 95px;
    background-color: #d4775c;
    top: 30%;
    right: 18%;
    opacity: 0.35;
    border-radius: 45% 55% 50% 50% / 55% 45% 50% 50%;
    animation-delay: 400ms;
    mix-blend-mode: multiply;
}

.closing-petal-3 {
    width: 110px;
    height: 90px;
    background-color: #c9a87c;
    bottom: 25%;
    left: 20%;
    opacity: 0.3;
    border-radius: 50% 50% 45% 55% / 55% 50% 50% 45%;
    animation-delay: 600ms;
}

.closing-petal-4 {
    width: 90px;
    height: 105px;
    background-color: #e8a44a;
    bottom: 22%;
    right: 22%;
    opacity: 0.35;
    border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
    animation-delay: 800ms;
    mix-blend-mode: multiply;
}

.closing-frame {
    z-index: 2;
}

.closing-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.closing-message {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-style: italic;
    color: #8b6f5e;
    margin-bottom: 1rem;
}

.closing-logo {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    color: #2d1810;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.closing-dateline {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 500;
    color: #8b6f5e;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* ===== Animations ===== */
@keyframes drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(3px, -4px);
    }
    50% {
        transform: translate(-2px, 5px);
    }
    75% {
        transform: translate(4px, 2px);
    }
}

@keyframes fadeInFrame {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeInShape {
    from {
        opacity: 0;
    }
    to {
        opacity: var(--target-opacity, 0.5);
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseArrow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* ===== Spread Enter/Exit Animations ===== */
.spread .spread-content,
.spread .spread-illustration,
.spread .column-text,
.spread .column-center,
.spread .fullbleed-content,
.spread .closing-content {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.spread.active .spread-content {
    opacity: 1;
    transform: scale(1);
    transition-delay: 200ms;
}

.spread.active .spread-illustration {
    opacity: 1;
    transform: scale(1);
    transition-delay: 100ms;
}

.spread.active .column-text {
    opacity: 1;
    transform: scale(1);
}

.spread.active .column-left {
    transition-delay: 100ms;
}

.spread.active .column-center {
    opacity: 1;
    transform: scale(1);
    transition-delay: 200ms;
}

.spread.active .column-right {
    transition-delay: 300ms;
}

.spread.active .fullbleed-content {
    opacity: 1;
    transform: scale(1);
    transition-delay: 300ms;
}

.spread.active .closing-content {
    opacity: 1;
    transform: scale(1);
    transition-delay: 200ms;
}
