/* opensource.bar - Art Deco Community Greenhouse */
/* Colors: #C47A80, #1A2418, #4A6A48, #6A7468, #F4F0E8, #C4A050, #FFFFFF */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    color: #1A2418;
    background: #F4F0E8;
    overflow-x: hidden;
}

/* Art Deco Corners */
.deco-corner {
    position: fixed; width: 60px; height: 60px; z-index: 100; pointer-events: none;
    border-color: #C4A050; border-style: solid;
    opacity: 0; animation: fadeIn 0.5s ease 0.3s forwards;
}
.deco-tl { top: 16px; left: 16px; border-width: 3px 0 0 3px; }
.deco-tr { top: 16px; right: 16px; border-width: 3px 3px 0 0; }
.deco-bl { bottom: 16px; left: 16px; border-width: 0 0 3px 3px; }
.deco-br { bottom: 16px; right: 16px; border-width: 0 3px 3px 0; }

.hero {
    text-align: center; padding: 100px 24px 60px; position: relative;
}

.hero-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700; color: #4A6A48;
    letter-spacing: 0.02em;
    opacity: 0; animation: fadeInUp 0.8s ease 0.5s forwards;
}

.chevron-bar {
    display: flex; justify-content: center; gap: 4px;
    margin: 16px 0; opacity: 0; animation: fadeIn 0.6s ease 1s forwards;
}

.chevron {
    display: inline-block; width: 12px; height: 12px;
    border-right: 2px solid #C4A050; border-bottom: 2px solid #C4A050;
    transform: rotate(-45deg);
}

.hero-sub {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem; color: #6A7468;
    opacity: 0; animation: fadeInUp 0.6s ease 1.2s forwards;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px; max-width: 1000px; margin: 0 auto;
    padding: 0 24px 100px;
}

.module {
    background: #FFFFFF; border: 1px solid rgba(74, 106, 72, 0.12);
    border-radius: 4px; padding: 28px; position: relative; overflow: hidden;
    opacity: 0; animation: cardAppear 0.5s ease forwards;
    transition: box-shadow 0.3s ease;
}

.module:hover { box-shadow: 0 4px 16px rgba(26, 36, 24, 0.08); }

.module:nth-child(1) { animation-delay: 1.3s; }
.module:nth-child(2) { animation-delay: 1.4s; }
.module:nth-child(3) { animation-delay: 1.5s; }
.module:nth-child(4) { animation-delay: 1.6s; }
.module:nth-child(5) { animation-delay: 1.7s; }
.module:nth-child(6) { animation-delay: 1.8s; }

.span-2 { grid-column: span 2; }

.featured { animation-name: pulseAttention; animation-duration: 3s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-delay: 2s; }

.module-deco-frame {
    position: absolute; top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px solid rgba(196, 160, 80, 0.1); border-radius: 2px;
    pointer-events: none;
}

.module-label {
    font-family: 'Anonymous Pro', monospace;
    font-size: 11px; font-weight: 700; color: #C4A050;
    letter-spacing: 0.1em; display: block; margin-bottom: 8px;
}

.module-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.3rem; font-weight: 700; color: #1A2418; margin-bottom: 8px;
}

.module-body {
    font-size: 0.95rem; line-height: 1.75; color: #6A7468; margin-bottom: 12px;
}

.module-code {
    font-family: 'Anonymous Pro', monospace;
    font-size: 13px; color: #4A6A48;
    background: rgba(74, 106, 72, 0.06);
    padding: 4px 8px; border-radius: 3px; display: inline-block;
}

.botanical-svg {
    position: absolute; bottom: 8px; right: 8px; width: 60px; height: 80px;
}
.botanical-wide { width: 120px; height: 60px; }

/* Blob shapes */
.blob-garden { position: fixed; border-radius: 50% 40% 60% 45%; pointer-events: none; z-index: -1; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardAppear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseAttention {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(26,36,24,0.05); }
    50% { transform: scale(1.01); box-shadow: 0 4px 20px rgba(196,160,80,0.12); }
}

@media (max-width: 768px) {
    .module-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .deco-corner { display: none; }
}
