/* ============================================
   gabs.report - Blobitecture Pastoral Scholarly
   ============================================ */

:root {
    --deep-ground: #1E2128;
    --slate-mist: #2D3140;
    --overcast: #3E4355;
    --pewter-cloud: #6B7289;
    --morning-haze: #B8BCC8;
    --lambs-wool: #E8EAF0;
    --heather-bloom: #9B8FA6;
    --sepia-whisper: #7A6F62;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--overcast);
    color: var(--lambs-wool);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    overflow-x: hidden;
    transition: background-color 1.2s ease;
}

/* --- Cursor Follow Glow --- */
.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 143, 166, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 100;
    transform: translate(-100px, -100px);
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* --- Atmospheric Particles --- */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--lambs-wool);
    opacity: 0.1;
}

.p1 { top: 20%; animation: particleDrift 55s linear infinite; animation-delay: 0s; }
.p2 { top: 40%; animation: particleDrift 70s linear infinite; animation-delay: -15s; }
.p3 { top: 60%; animation: particleDrift 48s linear infinite; animation-delay: -30s; opacity: 0.08; }
.p4 { top: 30%; animation: particleDrift 62s linear infinite; animation-delay: -10s; width: 2px; height: 2px; opacity: 0.12; }
.p5 { top: 75%; animation: particleDrift 80s linear infinite; animation-delay: -25s; opacity: 0.06; }

@keyframes particleDrift {
    0% { left: -5%; }
    100% { left: 105%; }
}

/* --- Terrains --- */
.terrain {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 8vh, 100px) clamp(16px, 4vw, 48px);
    z-index: 1;
}

.terrain-meadow {
    min-height: 120vh;
    justify-content: flex-start;
    padding-top: clamp(80px, 12vh, 140px);
}

.terrain-valley {
    min-height: 130vh;
    justify-content: flex-start;
    padding-top: clamp(80px, 12vh, 140px);
}

/* --- Ambient Blobs --- */
.ambient-blob {
    position: absolute;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    background: radial-gradient(ellipse at 30% 40%, rgba(155, 143, 166, 0.08), rgba(45, 49, 64, 0.04));
    z-index: 0;
    pointer-events: none;
    animation: blobBreathe 25s ease-in-out infinite;
}

.blob-hero {
    width: 80vw;
    height: 80vh;
    top: 10%;
    left: 10%;
    animation-duration: 28s;
}

.blob-drift-1 {
    width: 200px;
    height: 200px;
    left: 20%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.blob-drift-2 {
    width: 160px;
    height: 160px;
    right: 25%;
    animation-duration: 30s;
    animation-delay: -12s;
}

.blob-drift-3 {
    width: 240px;
    height: 240px;
    left: 40%;
    animation-duration: 26s;
    animation-delay: -8s;
}

.blob-horizon {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    opacity: 0.4;
    animation-duration: 32s;
}

@keyframes blobBreathe {
    0%   { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }
    25%  { border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%; }
    50%  { border-radius: 45% 55% 60% 40% / 55% 45% 45% 55%; }
    75%  { border-radius: 60% 40% 45% 55% / 40% 60% 55% 45%; }
    100% { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }
}

/* --- Blob Content Containers --- */
.blob-container {
    position: relative;
    z-index: 2;
    background: var(--slate-mist);
    padding: clamp(32px, 5vw, 60px);
    margin-bottom: clamp(32px, 5vh, 60px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.blob-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.blob-breathe-1 {
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    animation: blobBreathe 22s ease-in-out infinite;
}

.blob-breathe-2 {
    border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%;
    animation: blobBreathe 26s ease-in-out infinite;
    animation-delay: -8s;
}

.blob-breathe-3 {
    border-radius: 45% 55% 60% 40% / 55% 45% 45% 55%;
    animation: blobBreathe 30s ease-in-out infinite;
    animation-delay: -15s;
}

.blob-left {
    width: clamp(300px, 80vw, 900px);
    margin-left: 5vw;
    margin-right: auto;
}

.blob-right {
    width: clamp(280px, 65vw, 780px);
    margin-left: auto;
    margin-right: 5vw;
}

.blob-center {
    width: clamp(300px, 90vw, 1000px);
    margin: 0 auto;
}

.blob-inner {
    position: relative;
    max-width: 38em;
}

/* --- Threshold Content --- */
.threshold-content {
    position: relative;
    z-index: 5;
    padding-left: 10vw;
    align-self: flex-start;
}

.site-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(3rem, 9vw, 8rem);
    letter-spacing: 0.06em;
    line-height: 1.12;
    color: var(--lambs-wool);
}

.site-sub {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--pewter-cloud);
    margin-top: 16px;
    opacity: 0;
    animation: fadeIn 1.2s ease-out 0.6s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- Typography --- */
.section-heading {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.02em;
    color: var(--lambs-wool);
    margin-bottom: 20px;
}

.report-body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--lambs-wool);
    max-width: 38em;
    margin-bottom: 20px;
}

.drop-cap {
    float: left;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 4em;
    line-height: 0.8;
    color: var(--heather-bloom);
    margin-right: 8px;
    margin-top: 4px;
}

/* --- Marginalia --- */
.marginalia {
    border-left: 2px solid rgba(122, 111, 98, 0.25);
    padding-left: 1rem;
    margin-top: 20px;
    margin-bottom: 12px;
}

.margin-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--sepia-whisper);
    opacity: 0.6;
    line-height: 1.5;
}

/* --- Folio Numbers --- */
.folio {
    display: block;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--pewter-cloud);
    opacity: 0.35;
    margin-top: 32px;
}

/* --- Ridge Quote --- */
.ridge-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.ridge-quote {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--lambs-wool);
    text-align: center;
    max-width: 20em;
}

/* --- Fleuron Divider --- */
.fleuron {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(24px, 4vh, 48px) 0;
    z-index: 2;
    position: relative;
}

.fleuron-rule {
    width: 40px;
    height: 1px;
    background: rgba(107, 114, 137, 0.3);
}

.fleuron-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--heather-bloom);
    opacity: 0.4;
}

/* --- Breathing Field --- */
.breathing-field {
    position: relative;
    height: 15vh;
    z-index: 1;
}

.breathing-field-tall {
    height: 30vh;
}

/* --- Horizon / Colophon --- */
.colophon {
    position: relative;
    z-index: 5;
    text-align: center;
}

.colophon-line {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: 0.06em;
    color: var(--morning-haze);
    margin-bottom: 20px;
}

.colophon-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--pewter-cloud);
    opacity: 0.6;
    margin-bottom: 8px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .blob-left,
    .blob-right {
        width: 90vw;
        margin-left: 5vw;
        margin-right: 5vw;
    }

    .threshold-content {
        padding-left: 5vw;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .blob-container {
        padding: clamp(24px, 4vw, 36px);
    }

    .ridge-quote {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .ambient-blob,
    .blob-breathe-1,
    .blob-breathe-2,
    .blob-breathe-3 {
        animation: none;
    }

    .particle {
        animation: none;
        display: none;
    }

    .blob-container {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .site-sub {
        animation: none;
        opacity: 1;
    }

    body {
        transition: none;
    }
}
