/* yongzoon.xyz - Vintage Bento Archive */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --aged-paper: #F0E8D8;
    --module-surface: #FAF4E8;
    --warm-brown: #8A7060;
    --deep-brown: #3A2818;
    --terracotta: #C07040;
    --aged-gold: #B09040;
    --text-primary: #2A2018;
    --text-body: #4A3828;
}

body {
    background: var(--aged-paper);
    color: var(--text-primary);
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    overflow-x: hidden;
}

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

/* Bento Grid */
.bento-grid {
    max-width: 1060px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Module Sizes */
.bento-module {
    background: var(--module-surface);
    padding: 20px;
    position: relative;
    border: 1px solid rgba(138, 112, 96, 0.12);
    opacity: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(58, 40, 24, 0.08);
}
.bento-module.visible {
    animation: moduleReveal 0.4s ease forwards;
}
@keyframes moduleReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.bento-module:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(58, 40, 24, 0.12);
}
.bento-module.expanded {
    grid-column: 1 / -1 !important;
    grid-row: auto;
    z-index: 10;
}

.module-featured { grid-column: span 3; grid-row: span 2; }
.module-large { grid-column: span 2; grid-row: span 2; }
.module-medium { grid-column: span 2; }
.module-small { grid-column: span 1; }

/* Paper Vignette */
.bento-module::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(138, 112, 96, 0.06) 100%);
    pointer-events: none;
}

/* Corner Motifs */
.corner-motif {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 2;
}
.corner-tl { top: 4px; left: 4px; }
.corner-br { bottom: 4px; right: 4px; }
.corner-motif svg { width: 100%; height: 100%; }
.bento-module:hover .corner-motif svg {
    transform: rotate(15deg);
    transition: transform 0.2s ease;
}

/* Typography */
.archive-title {
    font-family: 'Bungee Hairline', cursive;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.archive-body {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 0.75rem;
}
.archive-label {
    font-family: 'Bungee Hairline', cursive;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-brown);
    display: block;
}

/* Shake Animation */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}
.shake {
    animation: shakeError 0.2s ease;
}

/* Bento row dividers */
.bento-grid > .bento-module:nth-child(n+4) {
    border-top: 1px solid rgba(138, 112, 96, 0.2);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
}
.footer-text {
    font-family: 'Bungee Hairline', cursive;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-brown);
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .module-featured { grid-column: 1 / -1; grid-row: span 1; }
    .module-large { grid-column: 1 / -1; grid-row: span 1; }
    .module-medium { grid-column: 1 / -1; }
}
