:root {
    --paper: #F5E6D0;
    --ink: #3D2B1F;
    --amber: #D4952A;
    --slate: #4A5568;
    --indigo: #2D3A5C;
    --red: #C0392B;
    --dark: #1A1410;
    --gold: #E8B84B;
}

/* IntersectionObserver watches each SVG container for hand-ink path drawing. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
}

.bokeh-canvas, .grain-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.bokeh-canvas { z-index: 0; filter: blur(11px); background: transparent; }
.grain-canvas { z-index: 30; opacity: 0.055; mix-blend-mode: multiply; }

.scroll-root {
    position: relative;
    z-index: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 1px;
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at 18% 15%, rgba(61,43,31,0.035) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 22%, rgba(61,43,31,0.03) 0 1px, transparent 3px),
        radial-gradient(circle at 34% 71%, rgba(212,149,42,0.08) 0 2px, transparent 4px),
        linear-gradient(90deg, rgba(61,43,31,0.025), transparent 14%, rgba(61,43,31,0.018) 21%, transparent 39%),
        var(--paper);
}
.scroll-root::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(3deg, rgba(61,43,31,0.018) 0 1px, transparent 1px 9px),
        repeating-linear-gradient(97deg, rgba(61,43,31,0.012) 0 1px, transparent 1px 13px);
    mix-blend-mode: multiply;
    z-index: 2;
}

.section {
    position: relative;
    min-height: 100vh;
    transform-style: preserve-3d;
    overflow: hidden;
}
.section-inner, .notice-grid, .timeline-stage, .quote, .vigil-center, .wall-title, .section-kicker, .timeline-heading, .voices-title { position: relative; z-index: 4; }
.plane-back { transform: translateZ(-0.65px) scale(1.65); }
.plane-mid { transform: translateZ(-0.35px) scale(1.35); }
.plane-front { transform: translateZ(0); }

.icon-strip {
    position: fixed;
    z-index: 20;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.nav-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: rgba(245,230,208,0.72);
    border: 1px solid rgba(61,43,31,0.35);
    transform: rotate(-2deg);
}
.nav-mark:nth-child(even) { transform: rotate(2deg); }
.nav-mark.active { background: rgba(232,184,75,0.52); }
.nav-mark svg { width: 33px; height: 33px; }

.broadsheet { min-height: 100vh; padding: 7vh 7vw; }
.paper-plane {
    position: absolute;
    left: -8vw; right: -8vw; top: -10vh; bottom: -10vh;
    background:
        radial-gradient(circle at 22% 20%, rgba(232,184,75,0.14), transparent 19%),
        radial-gradient(circle at 76% 67%, rgba(45,58,92,0.08), transparent 24%);
    z-index: 1;
}
.masthead-sheet {
    max-width: 1180px;
    margin-left: 2vw;
    padding-top: 12vh;
}
.issue-note, .side-scribble, .manifesto, .annotation, .red-note, .node span, .quote span {
    font-family: "Gaegu", "Comic Sans MS", cursive;
}
.issue-note { color: var(--slate); font-size: clamp(1rem, 1.8vw, 1.25rem); letter-spacing: .12em; }
h1 {
    font-family: "Barrio", Impact, fantasy;
    font-weight: 400;
    font-size: clamp(4rem, 10vw, 9rem);
    letter-spacing: .02em;
    line-height: 1;
    color: var(--ink);
    text-shadow: 4px 4px 0 rgba(212,149,42,0.23), -2px 1px 0 rgba(192,57,43,0.14);
    margin: 2vh 0 3vh;
}
.manifesto {
    width: min(720px, 72vw);
    margin-left: 8vw;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.6;
    color: var(--indigo);
    transform: rotate(-1.2deg);
}
.wide-rule { width: min(860px, 78vw); height: 42px; margin-top: 5vh; }
.side-scribble { margin-left: 53vw; color: var(--red); font-size: 1.35rem; transform: rotate(3deg); display: inline-block; }
.seal { position: absolute; right: 11vw; top: 12vh; width: 116px; height: 116px; transform: rotate(9deg); }
.seal text { font-family: "Gaegu", cursive; fill: var(--red); font-size: 22px; text-anchor: middle; opacity: 0; transition: opacity .5s ease 1s; }
.seal.is-drawn text { opacity: .85; }

h2, h3 {
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    letter-spacing: .04em;
    line-height: 1.15;
}
.notice-wall { min-height: 120vh; padding: 9vh 7vw 14vh; }
.wall-title { margin-left: 2vw; color: var(--slate); }
.wall-title span, .section-kicker { font-family: "Gaegu", cursive; font-size: 1.3rem; color: var(--red); }
.wall-title h2, .timeline-heading, .voices-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: var(--indigo);
}
.notice-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px 18px;
    max-width: 1180px;
    margin: 5vh auto 0;
}
.notice-card {
    min-height: 255px;
    padding: 2rem 2.1rem;
    background: rgba(245,230,208,0.78);
    position: relative;
    color: var(--ink);
    box-shadow: 5px 7px 0 rgba(61,43,31,0.08);
}
.notice-card:nth-child(2) { margin-top: 9vh; }
.notice-card:nth-child(3) { margin-top: -4vh; }
.notice-card:nth-child(4) { margin-top: 2vh; }
.card-border { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.notice-card h3 { font-weight: 700; text-transform: uppercase; color: var(--indigo); font-size: clamp(1.2rem, 2.5vw, 2rem); margin-bottom: .9rem; }
.notice-card p { font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.75; }
.annotation { display: block; margin-top: 1rem; color: var(--slate); font-size: 1.1rem; }
.red-note { display: block; color: var(--red); margin-top: .8rem; font-size: 1.25rem; }
.mini-flower { position: absolute; right: 20px; bottom: 12px; width: 70px; height: 55px; }

.timeline-section { min-height: 150vh; padding: 14vh 6vw; }
.section-kicker { margin-left: 10vw; }
.timeline-heading { margin-left: 10vw; margin-bottom: 12vh; }
.timeline-stage { height: 72vh; max-width: 1220px; margin: 0 auto; }
.timeline-svg { position: absolute; inset: 8vh 0 auto; width: 100%; height: 240px; overflow: visible; }
.timeline-path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1500; stroke-dashoffset: 1500; }
.leader { fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 250; stroke-dashoffset: 250; }
.node { position: absolute; width: 190px; padding: .85rem 1rem; background: rgba(245,230,208,.82); border: 1px solid rgba(61,43,31,.35); color: var(--ink); }
.node b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2rem; color: var(--red); }
.node-a { left: 6%; top: 1%; transform: rotate(-3deg); }
.node-b { left: 37%; top: 0; transform: rotate(2deg); }
.node-c { left: 64%; top: 48%; transform: rotate(-1deg); }
.node-d { right: 2%; top: 5%; transform: rotate(2.5deg); }

.voices { min-height: 100vh; padding: 9vh 7vw; }
.voices-title { margin: 0 0 4vh 12vw; }
.quote {
    position: absolute;
    max-width: 390px;
    color: var(--ink);
    padding: 1rem;
}
.quote p { font-weight: 300; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.7; }
.quote span { display: block; margin-top: .7rem; color: var(--slate); font-size: 1.1rem; }
.q1 { left: 9vw; top: 24vh; transform: rotate(-2deg); }
.q2 { right: 8vw; top: 18vh; transform: rotate(3deg); }
.q3 { left: 25vw; bottom: 15vh; transform: rotate(1deg); }
.q4 { right: 14vw; bottom: 9vh; transform: rotate(-2deg); }
.quote-mark { width: 65px; height: 50px; margin-bottom: .5rem; }
.leader-line { position: absolute; right: 80%; top: 78%; width: 180px; height: 80px; }
.fist { width: 86px; height: 96px; float: left; margin-right: 1rem; }

.vigil {
    min-height: 80vh;
    display: grid;
    place-items: center;
    background: var(--dark);
    color: var(--paper);
}
.vigil::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, rgba(232,184,75,.16), transparent 42%); }
.vigil-center { text-align: center; max-width: 850px; padding: 3rem; }
.vigil h2 { font-family: "Gaegu", cursive; font-size: clamp(2rem, 5vw, 4.2rem); color: var(--paper); font-weight: 400; line-height: 1.25; }
.vigil p { margin-top: 1rem; font-size: clamp(1rem, 1.7vw, 1.25rem); color: rgba(245,230,208,.74); }
.candle-line { width: min(360px, 80vw); height: 110px; margin-bottom: 1.5rem; }

.draw-path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1), fill-opacity .4s ease 1.2s;
}

@keyframes paper-breath {
    0% { opacity: 0.96; }
    50% { opacity: 1; }
    100% { opacity: 0.96; }
}
.draw-path.amber { stroke: var(--gold); }
.draw-path.red, .red { stroke: var(--red); }
.fill-late { fill: rgba(192,57,43,.06); fill-opacity: 0; }
.is-drawn .draw-path, .draw-path.is-drawn { stroke-dashoffset: 0; fill-opacity: 1; }
.reveal { opacity: 0; transition: opacity .75s ease .35s; }
.reveal.visible { opacity: 1; }

@media (max-width: 860px) {
    .icon-strip { right: 8px; }
    .nav-mark { width: 38px; height: 38px; }
    .manifesto { margin-left: 0; width: 82vw; }
    .seal { right: 5vw; width: 84px; height: 84px; }
    .notice-grid { display: block; }
    .notice-card { margin: 1.5rem 2.5rem 1.5rem 0 !important; }
    .timeline-stage { height: 92vh; }
    .node { width: 155px; }
    .node-a { left: 0; top: 0; }
    .node-b { left: 44%; top: 6%; }
    .node-c { left: 10%; top: 54%; }
    .node-d { right: 2%; top: 62%; }
    .quote { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 1rem auto; }
    .voices { min-height: 120vh; }
}
