/* 계엄령.quest - The Archive Quest */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FBF7F0;
    color: #3B2F28;
    font-family: 'Lora', serif;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Botanical SVG === */
.botanical {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.botanical-top-right {
    top: 15%;
    right: 12%;
    width: 100px;
    height: 140px;
}

/* === Cover Section === */
#cover {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FBF7F0;
}

.cover-content {
    position: relative;
    text-align: center;
}

#cover-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 80px;
    letter-spacing: 0.04em;
    color: #3B2F28;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

#cover-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.cover-date {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #8B7D6B;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 1s ease;
}

.cover-date.visible {
    opacity: 0.7;
}

.cover-subtitle {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 16px;
    color: #9B8EC4;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 1s ease;
}

.cover-subtitle.visible {
    opacity: 1;
}

/* Tape strips on cover */
.cover-tape {
    position: absolute;
    width: 40px;
    height: 12px;
    background-color: #E8DCC8;
    opacity: 0.6;
    border-radius: 1px;
}

.tape-left {
    top: -20px;
    left: -30px;
    transform: rotate(-2deg);
}

.tape-right {
    bottom: -20px;
    right: -30px;
    transform: rotate(1.5deg);
}

/* Lace border */
.cover-lace-border {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #8B7D6B 0px,
        #8B7D6B 4px,
        transparent 4px,
        transparent 8px
    );
    opacity: 0.25;
}

/* === Archive Section === */
.archive-section {
    position: relative;
    padding: 100px 40px 120px;
    max-width: 1100px;
    margin: 0 auto;
}

/* === Archive Cards === */
.archive-card {
    position: relative;
    background-color: #FFFFFF;
    border: 1px solid rgba(139, 125, 107, 0.15);
    padding: 40px 32px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(59, 47, 40, 0.04);
}

/* Stagger animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tape strips */
.tape-strip {
    position: absolute;
    width: 40px;
    height: 12px;
    background-color: #E8DCC8;
    opacity: 0.6;
    border-radius: 1px;
}

.tape-tl { top: -6px; left: 12px; transform: rotate(-1.5deg); }
.tape-tr { top: -6px; right: 12px; transform: rotate(2deg); }
.tape-br { bottom: -6px; right: 12px; transform: rotate(-1deg); }

.card-date {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9B8EC4;
    display: block;
    margin-bottom: 12px;
}

.archive-card h2 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 22px;
    color: #3B2F28;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.archive-card p {
    font-family: 'Lora', serif;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(59, 47, 40, 0.75);
}

/* Pull Quote */
.archive-pull-quote {
    position: relative;
    padding: 30px 0;
    text-align: center;
}

.archive-pull-quote blockquote {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 18px;
    color: #9B8EC4;
    line-height: 1.7;
    padding: 0 20px;
}

.lace-line {
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        #9B8EC4 0px,
        #9B8EC4 4px,
        transparent 4px,
        transparent 10px
    );
    opacity: 0.3;
    margin: 16px 0;
}

/* === Discovery Section === */
#discovery {
    background-color: #F8F2E8;
    padding: 100px 40px;
    text-align: center;
}

.discovery-inner {
    max-width: 600px;
    margin: 0 auto;
}

.discovery-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 36px;
    color: #3B2F28;
    margin-bottom: 8px;
}

.discovery-prompt {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 14px;
    color: #8B7D6B;
    margin-bottom: 36px;
}

.discovery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.quest-tag {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    background-color: #FFFFFF;
    color: #3B2F28;
    border: 1px solid rgba(139, 125, 107, 0.25);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.quest-tag:hover,
.quest-tag.active {
    background-color: #9B8EC4;
    color: #FFFFFF;
    border-color: #9B8EC4;
}

.reveal-text {
    font-family: 'Lora', serif;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(59, 47, 40, 0.8);
    min-height: 60px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* === Footer === */
#footer {
    text-align: center;
    padding: 60px 40px;
    background-color: #FBF7F0;
}

.footer-botanical {
    width: 100px;
    margin: 0 auto 20px;
}

.footer-botanical svg {
    width: 100%;
    height: auto;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #8B7D6B;
}

/* Gold highlight for year marker */
.quest-tag[data-reveal]::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #F2C94C;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* === Responsive === */
@media (max-width: 768px) {
    #cover-title {
        font-size: 48px;
    }

    .archive-card {
        max-width: 100% !important;
        left: 0 !important;
        margin-left: 0;
    }

    .archive-pull-quote {
        left: 0 !important;
        max-width: 100% !important;
    }

    .archive-section {
        padding: 60px 20px 80px;
    }

    .discovery-title {
        font-size: 28px;
    }

    .botanical-top-right {
        display: none;
    }
}

@media (max-width: 480px) {
    #cover-title {
        font-size: 40px;
    }

    .archive-card h2 {
        font-size: 18px;
    }

    .archive-card p {
        font-size: 14px;
    }

    #discovery {
        padding: 60px 20px;
    }
}
