/* ========================================================================
   PLAYBOOK PAGE — Editorial Mini-Book Design
   ======================================================================== */

:root {
    --pb-font-editorial: 'Playfair Display', Georgia, serif;
    --pb-font-body: 'Quicksand', sans-serif;
    --pb-reading-width: 65ch;
    --pb-warm-bg: #faf8f5;
    --pb-warm-bg-alt: #f4f0eb;
    --pb-accent: var(--color-primary, #4f46e5);
    --pb-ink: var(--color-ink, #1e1e2f);
    --pb-muted: var(--color-muted, #6b7280);
}


/* COVER SECTION */

.playbook-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 50px 25px;
    text-align: center;
    background: var(--pb-warm-bg);
}

.playbook-cover .playbook-cover__rule {
    width: 80px;
    height: 2px;
    background: var(--pb-accent);
    border: none;
    margin: 25px auto;
}

.playbook-cover .playbook-cover__title {
    font-family: var(--pb-font-editorial);
    font-size: 48px;
    font-weight: 700;
    color: var(--pb-ink);
    line-height: 1.15;
    margin: 0;
}

.playbook-cover .playbook-cover__subtitle {
    font-family: var(--pb-font-editorial);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: var(--pb-muted);
    margin: 10px 0 0 0;
}

.playbook-cover .playbook-cover__intro {
    font-family: var(--pb-font-body);
    font-size: 18px;
    line-height: 1.75;
    color: var(--pb-ink);
    max-width: var(--pb-reading-width);
    margin: 0 auto;
}

.playbook-cover .playbook-cover__author {
    font-family: var(--pb-font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pb-muted);
    margin: 0;
}


/* CHAPTER DIVIDER */

.playbook-divider {
    text-align: center;
    padding: 50px 0;
    font-family: var(--pb-font-editorial);
    font-size: 24px;
    color: var(--pb-muted);
    letter-spacing: 10px;
    user-select: none;
}


/* CHAPTER SECTION */

.playbook-chapter {
    position: relative;
    padding: 50px 25px;
    overflow: hidden;
}

.playbook-chapter--warm {
    background: var(--pb-warm-bg);
}

.playbook-chapter--white {
    background: #ffffff;
}

.playbook-chapter .playbook-chapter__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

.playbook-chapter .playbook-chapter__text {
    position: relative;
}

.playbook-chapter .playbook-chapter__number {
    font-family: var(--pb-font-editorial);
    font-size: 80px;
    font-weight: 700;
    color: var(--pb-accent);
    opacity: 0.06;
    line-height: 1;
    margin: 0 0 -25px 0;
    user-select: none;
}

.playbook-chapter .playbook-chapter__title {
    font-family: var(--pb-font-editorial);
    font-size: 32px;
    font-weight: 700;
    color: var(--pb-ink);
    line-height: 1.2;
    margin: 0 0 25px 0;
}

.playbook-chapter .playbook-chapter__body {
    font-family: var(--pb-font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--pb-ink);
    max-width: var(--pb-reading-width);
}

.playbook-chapter .playbook-chapter__body p {
    margin: 0 0 25px 0;
}

.playbook-chapter .playbook-chapter__body p:last-child {
    margin-bottom: 0;
}


/* DROP CAP */

.playbook-chapter .playbook-chapter__body p:first-child::first-letter {
    font-family: var(--pb-font-editorial);
    font-size: 72px;
    float: left;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 6px;
    color: var(--pb-accent);
    font-weight: 700;
}


/* PULL QUOTE */

.playbook-chapter .playbook-chapter__pullquote {
    font-family: var(--pb-font-editorial);
    font-style: italic;
    font-size: 24px;
    line-height: 1.5;
    color: var(--pb-accent);
    border-left: 4px solid var(--pb-accent);
    padding: 10px 0 10px 25px;
    margin: 25px 0;
    max-width: var(--pb-reading-width);
}


/* IMAGE PLACEHOLDER */

.playbook-chapter .playbook-chapter__image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    border: 2px dashed var(--pb-muted);
    border-radius: 10px;
    background: var(--pb-warm-bg-alt);
    opacity: 0.7;
}

.playbook-chapter .playbook-chapter__image svg {
    width: 48px;
    height: 48px;
    color: var(--pb-muted);
    margin-bottom: 10px;
}

.playbook-chapter .playbook-chapter__image-label {
    font-family: var(--pb-font-body);
    font-size: 13px;
    color: var(--pb-muted);
    letter-spacing: 1px;
}


/* SCROLL ANIMATIONS */

.playbook-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.playbook-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}


/* RESPONSIVE — TABLET+ (768px) */

@media (min-width: 768px) {

    .playbook-cover .playbook-cover__title {
        font-size: 64px;
    }

    .playbook-chapter .playbook-chapter__number {
        font-size: 100px;
    }

    .playbook-chapter .playbook-chapter__title {
        font-size: 40px;
    }

    .playbook-chapter .playbook-chapter__inner {
        grid-template-columns: 1fr 1fr;
    }

    .playbook-chapter--text-left .playbook-chapter__text {
        order: 1;
    }

    .playbook-chapter--text-left .playbook-chapter__image {
        order: 2;
    }

    .playbook-chapter--text-right .playbook-chapter__text {
        order: 2;
    }

    .playbook-chapter--text-right .playbook-chapter__image {
        order: 1;
    }

    .playbook-chapter .playbook-chapter__pullquote {
        font-size: 28px;
    }

}


/* RESPONSIVE — DESKTOP (1024px) */

@media (min-width: 1024px) {

    .playbook-cover .playbook-cover__title {
        font-size: 72px;
    }

    .playbook-chapter {
        padding: 50px 50px;
    }

    .playbook-chapter .playbook-chapter__number {
        font-size: 120px;
    }

    .playbook-chapter .playbook-chapter__title {
        font-size: 48px;
    }

    .playbook-chapter .playbook-chapter__pullquote {
        font-size: 32px;
    }

}
