/* interplanetary.quest - Anti-design, immersive-scroll */
/* Palette: #C07030 departure, #0A0A1A deep space, #8A4020 arrival ochre,
   #2A1A3A nebula purple, #1A2A4A nebula blue, #E0D8C8 text cream,
   #8A7060 photo sepia */

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

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    line-height: 2.0;
    color: #E0D8C8;
    background-color: var(--bg-color, #C07030);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* -- Zones -- */
.zone {
    position: relative;
    width: 100%;
}

.zone-opening {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5vw;
    background-color: #C07030;
}

.zone-departure {
    min-height: 200vh;
    padding: 10vh 5vw;
}

.zone-transit {
    min-height: 300vh;
    padding: 10vh 5vw;
}

.zone-arrival {
    min-height: 200vh;
    padding: 10vh 5vw;
}

.zone-ending {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #8A4020;
}

/* -- Logotype (anti-design: inconsistent sizes, misalignment) -- */
.logotype {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0s;
}

.logotype.visible {
    opacity: 1;
}

.logo-line {
    display: block;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    color: #E0D8C8;
    line-height: 1.1;
}

.logo-line-1 {
    font-size: 60px;
    margin-left: 2vw;
}

.logo-line-2 {
    font-size: 24px;
    margin-left: 12vw;
    margin-top: 8px;
    letter-spacing: 0.15em;
}

.logo-line-3 {
    font-size: 48px;
    margin-left: 0;
    margin-top: -4px;
    position: relative;
    top: 3px;
}

/* -- Typewriter -- */
.typewriter {
    margin-top: 60px;
    min-height: 30px;
}

.typewriter-text {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-weight: 400;
    font-size: 16px;
    color: #C07030;
    letter-spacing: 0.02em;
}

.zone-opening .typewriter-text {
    color: #E0D8C8;
}

.typewriter-scroll {
    margin: 10vh 0;
    padding-left: 5vw;
}

/* -- Fragments (anti-design: inconsistent alignment) -- */
.fragment {
    margin: 8vh 0;
    position: relative;
}

.fragment p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 2.0;
    color: #E0D8C8;
}

.fragment-left {
    text-align: left;
    margin-left: 5vw;
    margin-right: auto;
}

.fragment-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.fragment-right {
    text-align: right;
    margin-left: auto;
    margin-right: 5vw;
}

/* Anti-design heading sizes: deliberately inconsistent */
.heading-anti {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    color: #E0D8C8;
    margin-bottom: 20px;
    line-height: 1.2;
}

.heading-tiny {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.heading-small {
    font-size: 24px;
}

.heading-medium {
    font-size: 36px;
}

.heading-large {
    font-size: 60px;
}

/* -- Testimonials -- */
.testimonial {
    font-style: italic;
    font-size: 18px;
    line-height: 2.0;
}

.testimonial-author {
    display: block;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 12px;
    color: #8A7060;
    margin-top: 10px;
    letter-spacing: 0.05em;
}

/* -- Organic blob nebulae -- */
.blob {
    position: absolute;
    border-radius: 40% 60% 50% 40%;
    pointer-events: none;
    will-change: transform, border-radius;
}

.blob-1 {
    width: 300px;
    height: 250px;
    background-color: #2A1A3A;
    opacity: 0.35;
    top: 30vh;
    right: 8vw;
    animation: drift1 35s ease-in-out infinite, morph1 10s ease-in-out infinite;
}

.blob-2 {
    width: 200px;
    height: 180px;
    background-color: #1A2A4A;
    opacity: 0.3;
    top: 140vh;
    left: 3vw;
    animation: drift2 40s ease-in-out infinite, morph2 12s ease-in-out infinite;
}

.blob-3 {
    width: 400px;
    height: 350px;
    background-color: #2A1A3A;
    opacity: 0.4;
    top: 10vh;
    left: -5vw;
    animation: drift1 45s ease-in-out infinite, morph1 14s ease-in-out infinite;
}

.blob-4 {
    width: 250px;
    height: 220px;
    background-color: #1A2A4A;
    opacity: 0.35;
    top: 40vh;
    right: 2vw;
    animation: drift2 38s ease-in-out infinite, morph2 11s ease-in-out infinite;
}

.blob-5 {
    width: 180px;
    height: 160px;
    background-color: #2A1A3A;
    opacity: 0.3;
    top: 80vh;
    left: 40vw;
    animation: drift1 32s ease-in-out infinite, morph1 9s ease-in-out infinite;
}

.blob-6 {
    width: 350px;
    height: 300px;
    background-color: #1A2A4A;
    opacity: 0.4;
    top: 130vh;
    right: -3vw;
    animation: drift2 50s ease-in-out infinite, morph2 13s ease-in-out infinite;
}

.blob-7 {
    width: 220px;
    height: 200px;
    background-color: #2A1A3A;
    opacity: 0.35;
    top: 200vh;
    left: 15vw;
    animation: drift1 42s ease-in-out infinite, morph1 10s ease-in-out infinite;
}

.blob-8 {
    width: 280px;
    height: 240px;
    background-color: #1A2A4A;
    opacity: 0.3;
    top: 250vh;
    right: 10vw;
    animation: drift2 36s ease-in-out infinite, morph2 12s ease-in-out infinite;
}

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

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-40px, 15px); }
    50% { transform: translate(25px, -30px); }
    75% { transform: translate(-15px, -40px); }
}

@keyframes morph1 {
    0%, 100% { border-radius: 40% 60% 50% 40%; }
    33% { border-radius: 50% 40% 60% 50%; }
    66% { border-radius: 60% 50% 40% 60%; }
}

@keyframes morph2 {
    0%, 100% { border-radius: 50% 40% 60% 50%; }
    33% { border-radius: 40% 60% 50% 40%; }
    66% { border-radius: 55% 45% 55% 45%; }
}

/* -- Sepia images (vintage-photography treatment) -- */
.sepia-image {
    margin: 6vh 0;
    position: relative;
}

.sepia-image-inner {
    filter: grayscale(0.8) sepia(0.4) contrast(0.9);
    max-width: 440px;
}

.sepia-image-inner svg {
    display: block;
    width: 100%;
    height: auto;
}

.sepia-image-1 {
    margin-left: 15vw;
}

.sepia-image-2 {
    margin-left: auto;
    margin-right: 10vw;
    display: flex;
    justify-content: flex-end;
}

.sepia-image-2 .sepia-image-inner {
    max-width: 360px;
}

.sepia-image-3 {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

/* -- Ending -- */
.ending-text {
    text-align: center;
    padding: 5vw;
}

.ending-text h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: 48px;
    color: #E0D8C8;
    line-height: 1.3;
}

/* -- Zone-specific font sizes (anti-design: varying) -- */
.zone-departure .fragment p {
    font-size: 16px;
}

.zone-transit .fragment p {
    font-size: 14px;
}

.zone-arrival .fragment p {
    font-size: 18px;
}

.zone-transit .testimonial {
    font-size: 16px;
}

.zone-arrival .testimonial {
    font-size: 20px;
}

/* -- Responsive adjustments -- */
@media (max-width: 768px) {
    .logo-line-1 {
        font-size: 40px;
    }

    .logo-line-2 {
        font-size: 16px;
        margin-left: 8vw;
    }

    .logo-line-3 {
        font-size: 32px;
    }

    .heading-large {
        font-size: 40px;
    }

    .heading-medium {
        font-size: 28px;
    }

    .ending-text h1 {
        font-size: 32px;
    }

    .blob {
        transform: scale(0.6);
    }

    .fragment {
        margin-left: 3vw !important;
        margin-right: 3vw !important;
    }

    .sepia-image-1,
    .sepia-image-2,
    .sepia-image-3 {
        margin-left: 3vw;
        margin-right: 3vw;
    }
}
