/* ============================================================
   munju.org — non-profit pamphlet scroll
   palette: #fefcf8 #2d3436 #6c5ce7 #00b894 #ffeaa7 #fdcb6e #b2bec3
   fonts:   Poppins (display + body), Caveat (step labels)
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fefcf8;
    color: #2d3436;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* a soft watercolor wash that hints at warmth without using imagery */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60vw 40vh at 15% -5%, rgba(255, 234, 167, 0.45), transparent 60%),
        radial-gradient(ellipse 50vw 35vh at 95% 30%, rgba(108, 92, 231, 0.08), transparent 65%),
        radial-gradient(ellipse 70vw 50vh at 50% 110%, rgba(0, 184, 148, 0.07), transparent 60%);
}

.paper {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 5rem 1.75rem 4rem;
}

/* ------------------------------------------------------------
   shared step labels (Caveat handwritten)
   ------------------------------------------------------------ */
.step-label {
    font-family: 'Caveat', 'Poppins', cursive;
    font-weight: 700;
    font-size: 1.4rem;
    color: #6c5ce7;
    line-height: 1;
    margin-bottom: 0.75rem;
    transform: rotate(-1.5deg);
    display: inline-block;
}

/* ------------------------------------------------------------
   hero
   ------------------------------------------------------------ */
.hero {
    margin-bottom: 7rem;
    padding-top: 1rem;
}

.hero-eyebrow {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.3rem;
    color: #b2bec3;
    transform: rotate(-1deg);
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #2d3436;
    letter-spacing: -0.01em;
}

.hero-title .wavy {
    text-decoration: underline wavy #6c5ce7;
    text-decoration-thickness: 3px;
    text-underline-offset: 12px;
}

.hero-korean {
    font-size: 1.05rem;
    color: #2d3436;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-korean em {
    font-style: italic;
    color: #6c5ce7;
    font-weight: 500;
}

.hero-lede {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #2d3436;
    max-width: 56ch;
    margin-bottom: 2.5rem;
}

.hero-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    align-items: center;
}

.hero-progress-caption {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.15rem;
    color: #b2bec3;
    transform: rotate(-0.5deg);
    display: inline-block;
}

/* ------------------------------------------------------------
   progress dots
   ------------------------------------------------------------ */
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #b2bec3;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.dot.filled {
    background: #00b894;
    border-color: #00b894;
}

/* ------------------------------------------------------------
   initiative sections (single column, stacked, 6rem gap)
   ------------------------------------------------------------ */
.initiatives {
    display: block;
}

.initiative {
    position: relative;
    margin-bottom: 6.5rem;
    padding: 2rem 0 1rem;
    overflow: visible;
}

.initiative .step-watermark {
    position: absolute;
    top: -1.5rem;
    left: -0.75rem;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 8rem;
    line-height: 1;
    color: rgba(253, 203, 110, 0.28);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.initiative-content {
    position: relative;
    z-index: 1;
}

.initiative-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    line-height: 1.25;
    color: #2d3436;
    margin-bottom: 1rem;
    letter-spacing: -0.005em;
}

.initiative-text {
    font-size: 1rem;
    line-height: 1.85;
    color: #2d3436;
    margin-bottom: 1.75rem;
    max-width: 60ch;
}

/* hand-drawn border accent on second initiative's quote block */
.quote-block {
    border: 2px solid #6c5ce7;
    border-radius: 8px 4px 12px 6px;
    padding: 1.5rem 1.6rem 1.25rem;
    margin: 1.5rem 0 2rem;
    background: rgba(255, 234, 167, 0.35);
    position: relative;
}

.quote-block::before {
    content: "“";
    position: absolute;
    top: -0.8rem;
    left: 1rem;
    font-family: 'Poppins', serif;
    font-size: 3rem;
    line-height: 1;
    color: #6c5ce7;
    background: #fefcf8;
    padding: 0 0.4rem;
    font-weight: 700;
}

.quote-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.quote-attrib {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.15rem;
    color: #6c5ce7;
}

/* stats — laid out as a soft horizontal trio, not a grid card */
.initiative-stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.25rem;
    margin: 1.5rem 0 1.75rem;
    padding: 0;
}

.initiative-stats li {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.stat-num {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.65rem;
    color: #6c5ce7;
    margin-bottom: 0.15rem;
}

.stat-label {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.05rem;
    color: #2d3436;
    transform: rotate(-0.5deg);
    display: inline-block;
}

/* checklist — third initiative */
.initiative-checklist {
    list-style: none;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
}

.initiative-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.45rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3436;
}

.check {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% 40% 50% 45%;
    background: #00b894;
    color: #fefcf8;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.check.open {
    background: transparent;
    border: 2px solid #b2bec3;
    color: #b2bec3;
}

.initiative-progress {
    display: flex;
    gap: 0.5rem;
    margin: 1.25rem 0 0.6rem;
}

.initiative-meta {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.15rem;
    color: #b2bec3;
    transform: rotate(-0.4deg);
    display: inline-block;
}

/* pending initiative — softer */
.initiative.pending {
    opacity: 0.95;
}

.initiative.pending .initiative-title {
    color: #2d3436;
}

.initiative.pending .step-watermark {
    color: rgba(178, 190, 195, 0.32);
}

/* ------------------------------------------------------------
   how we work
   ------------------------------------------------------------ */
.how-block {
    margin-bottom: 6.5rem;
    padding: 2.25rem 1.75rem 2rem;
    border: 2px solid #6c5ce7;
    border-radius: 14px 6px 18px 8px;
    background: rgba(255, 252, 248, 0.7);
    position: relative;
}

.how-block::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.4rem;
    height: 1.4rem;
    background: #ffeaa7;
    border-radius: 50% 40% 60% 45%;
    z-index: 0;
}

.how-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3.5vw, 1.75rem);
    color: #2d3436;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.how-text {
    font-size: 1rem;
    line-height: 1.85;
    color: #2d3436;
    margin-bottom: 1rem;
}

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

/* ------------------------------------------------------------
   join
   ------------------------------------------------------------ */
.join-block {
    margin-bottom: 6.5rem;
}

.join-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3.5vw, 1.75rem);
    color: #2d3436;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.join-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: join;
}

.join-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(178, 190, 195, 0.6);
    align-items: flex-start;
}

.join-list li:last-child {
    border-bottom: none;
}

.join-num {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.6rem;
    color: #00b894;
    line-height: 1.2;
    flex-shrink: 0;
    min-width: 2rem;
    transform: rotate(-1deg);
}

.join-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #2d3436;
}

.join-text strong {
    font-weight: 600;
    color: #2d3436;
}

/* ------------------------------------------------------------
   footer
   ------------------------------------------------------------ */
.footer {
    border-top: 2px solid #ffeaa7;
    padding: 2.25rem 0 1rem;
    text-align: center;
}

.footer-line {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.footer-line.soft {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.2rem;
    color: #b2bec3;
    transform: rotate(-0.5deg);
    display: inline-block;
    margin-top: 0.5rem;
}

/* ------------------------------------------------------------
   reveal animations (handled in JS via .is-visible)
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* gentle drift on step watermark when section is in view */
.initiative .step-watermark {
    transition: transform 0.9s ease, opacity 0.9s ease;
    transform: translateY(8px);
    opacity: 0.6;
}

.initiative.is-visible .step-watermark {
    transform: translateY(0);
    opacity: 1;
}

/* dot fill cascade */
.dot {
    transform-origin: center;
}

.initiative.is-visible .initiative-progress .dot.filled {
    animation: dot-pulse 0.6s ease both;
}

.initiative.is-visible .initiative-progress .dot.filled:nth-child(1) { animation-delay: 0.05s; }
.initiative.is-visible .initiative-progress .dot.filled:nth-child(2) { animation-delay: 0.15s; }
.initiative.is-visible .initiative-progress .dot.filled:nth-child(3) { animation-delay: 0.25s; }
.initiative.is-visible .initiative-progress .dot.filled:nth-child(4) { animation-delay: 0.35s; }
.initiative.is-visible .initiative-progress .dot.filled:nth-child(5) { animation-delay: 0.45s; }
.initiative.is-visible .initiative-progress .dot.filled:nth-child(6) { animation-delay: 0.55s; }
.initiative.is-visible .initiative-progress .dot.filled:nth-child(7) { animation-delay: 0.65s; }

@keyframes dot-pulse {
    0%   { transform: scale(0.4); opacity: 0; }
    60%  { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* hero wavy underline draws in */
@keyframes wavy-draw {
    from { background-size: 0% 3px; }
    to   { background-size: 100% 3px; }
}

/* small responsive adjustments */
@media (max-width: 540px) {
    .paper {
        padding: 3.5rem 1.25rem 3rem;
    }
    .initiative .step-watermark {
        font-size: 6.5rem;
        top: -1rem;
    }
    .initiative-stats {
        gap: 1rem 1.5rem;
    }
    .stat-num {
        font-size: 1.4rem;
    }
    .hero {
        margin-bottom: 5.5rem;
    }
    .initiative {
        margin-bottom: 5rem;
    }
    .how-block, .join-block {
        margin-bottom: 5rem;
    }
}
