/* saram.quest - 사람 (Human) - Field Journal */
/* Colors: #2A1F14, #5D4E37, #C4A24E, #C45C4A, #1A3A4A, #5A8F8F, #EDE5D8, #F5F0E8 */

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

body {
    background-color: #F5F0E8;
    color: #2A1F14;
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Paper Noise Texture */
.paper-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Sections */
.journal-section {
    position: relative;
    z-index: 1;
    padding: 5rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-journal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.section-heading {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #2A1F14;
    letter-spacing: 0.03em;
    margin-bottom: 2.5rem;
}

/* Journal Cards */
.journal-card {
    background: #EDE5D8;
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 4px 4px 12px rgba(42, 31, 20, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 97% 100%, 93% calc(100% - 3px), 89% 100%, 85% calc(100% - 5px), 80% 100%, 76% calc(100% - 2px), 72% 100%, 68% calc(100% - 4px), 64% 100%, 60% calc(100% - 6px), 55% 100%, 50% calc(100% - 3px), 45% 100%, 40% calc(100% - 5px), 35% 100%, 30% calc(100% - 4px), 25% 100%, 20% calc(100% - 7px), 15% 100%, 10% calc(100% - 3px), 5% 100%, 0 calc(100% - 6px));
}

.hero-card {
    max-width: 450px;
    text-align: center;
}

/* Tape Strips */
.tape-strip {
    position: absolute;
    background: #C4A24E;
    opacity: 0.5;
    border-radius: 2px;
}

.tape-top {
    width: 100px;
    height: 24px;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
}

.tape-left {
    width: 24px;
    height: 80px;
    top: 10%;
    left: -8px;
    transform: rotate(-2deg);
}

.tape-right {
    width: 24px;
    height: 80px;
    top: 10%;
    right: -8px;
    transform: rotate(2deg);
}

.tape-bottom {
    width: 100px;
    height: 24px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
}

/* Pin Dot */
.pin-dot {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C45C4A;
    box-shadow: 0 1px 3px rgba(42, 31, 20, 0.3);
}

/* Typography */
.journal-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #2A1F14;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.journal-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: #5D4E37;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.journal-entry-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #5D4E37;
    margin-bottom: 2rem;
}

.departure-stamp {
    display: inline-flex;
    flex-direction: column;
    border: 2px solid #C45C4A;
    padding: 0.5rem 1.5rem;
    transform: rotate(-3deg);
    opacity: 0.7;
}

.stamp-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #C45C4A;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.stamp-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #C45C4A;
    letter-spacing: 0.1em;
}

/* Compass Rose */
.compass-rose {
    width: 120px;
    height: 120px;
    animation: compassSpin 30s linear infinite;
}

@keyframes compassSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}

.masonry-grid .journal-card {
    break-inside: avoid;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.masonry-grid .journal-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.masonry-grid .journal-card.pinned {
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.masonry-grid .journal-card.pinned.revealed:hover {
    box-shadow: 6px 6px 16px rgba(42, 31, 20, 0.18);
}

.card-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2A1F14;
    margin-bottom: 0.5rem;
}

.card-kr {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #1A3A4A;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card-text {
    font-size: 0.95rem;
    color: #5D4E37;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #5A8F8F;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-top: 1px solid rgba(93, 78, 55, 0.2);
    padding-top: 0.75rem;
}

/* Map */
.map-card {
    padding: 3rem;
    position: relative;
    min-height: 300px;
}

.map-grid {
    position: relative;
    height: 200px;
}

.map-point {
    position: absolute;
}

.map-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C45C4A;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-dot:hover {
    transform: scale(1.5);
}

.map-point[data-label]::after {
    content: attr(data-label);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #5D4E37;
    white-space: nowrap;
}

.map-routes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
}

/* Final Entry */
.final-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.final-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.final-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #5D4E37;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.final-kr {
    font-family: 'Zilla Slab', serif;
    font-size: 2rem;
    color: #1A3A4A;
    margin-bottom: 0.5rem;
}

.final-translation {
    font-family: 'Lora', serif;
    font-style: italic;
    color: #5D4E37;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.expedition-stamp {
    font-size: 2rem;
    color: #C45C4A;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }

    .journal-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }

    .hero-journal {
        flex-direction: column;
        gap: 2rem;
    }
}
