/* namu.market - Street-Style Artisanal Commerce */
/* Colors: #7A7068, #D4C8B0, #5A4A3A, #4A6A3A, #B8543A, #D0C4B0, #FFFFFF, #2A2420 */
/* Fonts: Nunito, Nunito Sans, Courier Prime */

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

body {
    font-family: 'Nunito Sans', sans-serif;
    color: #5A4A3A;
    background: #E8DCC8;
    overflow-x: hidden;
}

.market-header {
    text-align: center;
    padding: 80px 20px 60px;
}

.market-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: #2A2420;
}

.market-dot {
    font-family: 'Courier Prime', monospace;
    font-weight: 400;
    color: #B8543A;
}

.market-tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: #7A7068;
    margin-top: 8px;
}

.stall-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.stall {
    background: #FFFFFF;
    border-radius: 4px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.stall.visible { opacity: 1; transform: translateY(0); }
.stall:hover { box-shadow: 0 4px 16px rgba(42, 36, 32, 0.1); }

.stall--feature {
    grid-column: span 2;
    background: #4A6A3A;
    color: #FFFFFF;
}

.stall--grain {
    background: #D4C8B0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.grain-pattern {
    width: 100%;
    height: 80px;
    background: repeating-linear-gradient(
        85deg,
        rgba(90, 74, 58, 0.08) 0px,
        transparent 1px,
        transparent 8px,
        rgba(90, 74, 58, 0.05) 9px
    );
    border-radius: 2px;
    margin-bottom: 12px;
}

.grain-pattern--walnut {
    background: repeating-linear-gradient(
        92deg,
        rgba(90, 74, 58, 0.12) 0px,
        transparent 2px,
        transparent 6px,
        rgba(90, 74, 58, 0.08) 7px
    );
}

.grain-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: #7A7068;
    letter-spacing: 0.05em;
}

.stall__heading {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2A2420;
    margin-bottom: 10px;
}

.stall__heading--feature { color: #FFFFFF; }

.stall__text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #5A4A3A;
    margin-bottom: 12px;
}

.stall--feature .stall__text { color: rgba(255,255,255,0.85); }

.stall__price {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #B8543A;
    display: block;
}

.market-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #D0C4B0;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-text {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: #7A7068;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .stall-grid { grid-template-columns: 1fr; }
    .stall--feature { grid-column: 1; }
}
