/* ============================================
   thethird.quest — styles
   Colors: #141210, #1e1b17, #2d2520, #3d2e22,
           #8b6e52, #c4793a, #d4a857, #e8d5c0
   Fonts: Inter, Lato, Montserrat
   ============================================ */

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

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

body {
    background-color: #141210;
    color: #e8d5c0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grain overlay */
.grain-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
}

/* Ma spacing: 70% void */
.section {
    padding: 25vh 24px;
    margin-top: 20vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 60vh;
}

.section:first-of-type {
    margin-top: 15vh;
}

/* Content occupies ~30% */
.content-block {
    max-width: 520px;
    margin-left: 12vw;
    position: relative;
    transition: opacity 600ms ease, background 600ms ease;
}

/* Skeleton state */
.content-block.skeleton {
    opacity: 0;
}

.content-block.skeleton::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        #1e1b17 25%,
        #2d2520 50%,
        #1e1b17 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: -1;
}

.content-block.revealed {
    opacity: 1;
}

.content-block.revealed::before {
    background: transparent;
    animation: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Typography */
.display-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: #e8d5c0;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: #c4793a;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    margin-bottom: 1.2rem;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #e8d5c0;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.secondary-text {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #8b6e52;
    line-height: 1.6;
    margin-top: 0.8rem;
}

.whisper {
    font-style: italic;
    color: #d4a857;
    opacity: 0.7;
    margin-top: 2rem;
}

/* Arc connectors */
.arc-connector {
    display: block;
    width: 100%;
    height: 120px;
    overflow: visible;
    margin: -4vh 0;
    position: relative;
    z-index: 1;
}

.arc-path {
    stroke-dasharray: var(--path-length, 1000);
    stroke-dashoffset: var(--path-length, 1000);
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.arc-path.drawn {
    stroke-dashoffset: 0;
}

/* Alternating content position for ma effect */
.section-philosophy .content-block {
    margin-left: auto;
    margin-right: 12vw;
}

.section-method .content-block {
    margin-left: 18vw;
}

.section-practice .content-block {
    margin-left: auto;
    margin-right: 8vw;
}

.section-closing .content-block {
    margin-left: 15vw;
}

/* Scroll-triggered subtle parallax hint */
.section-closing {
    padding-bottom: 30vh;
}

/* Selection color */
::selection {
    background: #3d2e22;
    color: #e8d5c0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 15vh 20px;
        margin-top: 12vh;
    }

    .content-block,
    .section-philosophy .content-block,
    .section-method .content-block,
    .section-practice .content-block,
    .section-closing .content-block {
        margin-left: 6vw;
        margin-right: 6vw;
        max-width: 90vw;
    }
}
