/* munju.org - Inflated 3D Problem Archive */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #7A6B7D;
    background: #F0EDED;
    overflow-x: hidden;
}

/* ===== Hero ===== */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #3A3535;
    text-shadow:
        2px 2px 0 #D4A5A5,
        4px 4px 0 rgba(212, 165, 165, 0.4),
        6px 6px 0 rgba(212, 165, 165, 0.2);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    color: #7A6B7D;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.hero-sub.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Archive ===== */
.archive {
    padding: 4rem 2rem 8rem;
    max-width: 720px;
    margin: 0 auto;
}

.card-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ===== Puffy Cards ===== */
.puffy-card {
    background: linear-gradient(145deg, #F7F5F5, #E6E2E2);
    border-radius: 32px;
    padding: 3rem;
    box-shadow:
        8px 8px 16px rgba(58, 53, 53, 0.08),
        -4px -4px 12px rgba(255, 255, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.puffy-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.puffy-card:hover {
    box-shadow:
        10px 10px 24px rgba(58, 53, 53, 0.12),
        -6px -6px 16px rgba(255, 255, 255, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.01);
}

.chapter-num {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #C4A882;
    display: block;
    margin-bottom: 0.75rem;
}

.puffy-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #3A3535;
    margin-bottom: 1rem;
}

.puffy-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #7A6B7D;
}

/* ===== Isometric Icons ===== */
.iso-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    opacity: 0.15;
}

.iso-cube {
    width: 40px;
    height: 40px;
    background: #D4A5A5;
    transform: rotateX(45deg) rotateZ(45deg);
    border-radius: 4px;
}

.iso-pyramid {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #A8B5A0;
    transform: rotateZ(0deg);
}

.iso-sphere {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #C4A882, #7A6B7D);
}

.iso-cylinder {
    width: 32px;
    height: 40px;
    background: #D4A5A5;
    border-radius: 16px 16px 4px 4px;
}

/* ===== Colophon ===== */
.colophon {
    text-align: center;
    padding: 3rem 2rem 6rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.colophon.revealed {
    opacity: 1;
}

.colophon p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: #A8B5A0;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .puffy-card {
        padding: 2rem;
        border-radius: 24px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}
