/* mores.dev - Mid-Century Modern Bento Grid Catalog */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f9f6f0;
    font-family: 'Inter', sans-serif;
    color: #2a2a2a;
    overflow-x: hidden;
}

/* Masthead / Hero */
#masthead {
    padding: 24px;
    min-height: 80vh;
    display: flex;
    align-items: stretch;
}

.bento-hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-cell {
    background: #f6f3ee;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Title Cell */
.hero-title-cell {
    background: #ffffff;
}

.site-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: #2a2a2a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.site-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 400;
    color: #6a6a6a;
    margin-top: 8px;
}

/* Network Cell */
.hero-network-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f6f0;
}

.network-svg {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.net-edge {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawEdge 0.8s ease-out forwards;
}

.net-edge:nth-child(1) { animation-delay: 0.1s; }
.net-edge:nth-child(2) { animation-delay: 0.2s; }
.net-edge:nth-child(3) { animation-delay: 0.3s; }
.net-edge:nth-child(4) { animation-delay: 0.4s; }
.net-edge:nth-child(5) { animation-delay: 0.5s; }
.net-edge:nth-child(6) { animation-delay: 0.6s; }
.net-edge:nth-child(7) { animation-delay: 0.7s; }

@keyframes drawEdge {
    to { stroke-dashoffset: 0; }
}

.net-node {
    opacity: 0;
    animation: nodeAppear 0.3s ease-out forwards;
}

.net-node:nth-child(8) { animation-delay: 0.9s; }
.net-node:nth-child(9) { animation-delay: 1.0s; }
.net-node:nth-child(10) { animation-delay: 1.1s; }
.net-node:nth-child(11) { animation-delay: 1.2s; }
.net-node:nth-child(12) { animation-delay: 1.3s; }
.net-node:nth-child(13) { animation-delay: 1.4s; }
.net-node:nth-child(14) { animation-delay: 1.5s; }

@keyframes nodeAppear {
    to { opacity: 1; }
}

/* Typewriter Cell */
.hero-typewriter-cell {
    background: #2a2a2a;
    color: #f6f3ee;
}

.typewriter-container {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.typewriter-label {
    color: #6a6a6a;
    display: block;
    margin-bottom: 4px;
}

.typewriter-text {
    color: #2a9d8f;
}

.typewriter-cursor {
    color: #2a9d8f;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Stat Cell */
.hero-stat-cell {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    background: #f6f3ee;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2a2a2a;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #8a8070;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* Catalog */
#catalog {
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.norm-card {
    background: #ffffff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.norm-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Category color tokens */
.norm-card[data-category="dining"] .card-color-bar,
.norm-card[data-category="silence"] .card-color-bar {
    background: #c4703a;
}

.norm-card:hover {
    background: #f2ede4;
}

.card-color-bar {
    height: 4px;
    width: 100%;
}

.card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: #2a2a2a;
    letter-spacing: -0.02em;
    padding: 20px 20px 0;
}

.card-body {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    font-weight: 400;
    color: #6a6a6a;
    line-height: 1.6;
    padding: 10px 20px 0;
}

.card-meta {
    padding: 16px 20px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-indicator {
    flex: 1;
    height: 4px;
    background: #e8e4dc;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    display: block;
    height: 100%;
    background: #2a9d8f;
    border-radius: 2px;
    transition: width 1s ease-out;
}

.strength-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #8a8070;
    white-space: nowrap;
}

/* Footer */
#footer {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid #e8e4dc;
    margin-top: 40px;
}

.footer-logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2a2a2a;
    letter-spacing: -0.02em;
}

.footer-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #8a8070;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }
}
