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

body {
    font-family: 'Libre Franklin', sans-serif;
    background: #FAF0E6;
    color: #4A3A2A;
    line-height: 1.7;
    font-size: 15px;
}

h1, h2, h3 {
    font-family: 'Josefin Sans', sans-serif;
    color: #3A2A1A;
}

/* Header */
.site-header {
    text-align: center;
    padding: 80px 24px 48px;
    background: #F5E8D8;
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C8A080, #5A8A6A, #B85A3A, #8A6A4A);
}

.site-title {
    font-size: 56px;
    font-weight: 600;
    color: #3A2A1A;
    letter-spacing: -0.5px;
}

.site-subtitle {
    font-size: 18px;
    color: #8A7A6A;
    margin-top: 8px;
    font-weight: 400;
}

/* Honeycomb Grid */
.honeycomb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 64px 24px;
}

.honeycomb-grid > .hex-cell:nth-child(3n+1) {
    transform: translateY(0);
}

.honeycomb-grid > .hex-cell:nth-child(3n+2) {
    transform: translateY(40px);
}

.honeycomb-grid > .hex-cell:nth-child(3n+3) {
    transform: translateY(0);
}

.hex-cell {
    background: #F5E8D8;
    border-radius: 24px 48px 24px 48px;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
}

.hex-cell.visible {
    opacity: 1;
}

.hex-inner {
    background: #FAF0E6;
    border-radius: 20px 44px 20px 44px;
    padding: 32px 24px;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
    transition: background 0.3s ease;
}

.hex-cell:hover .hex-inner {
    background: #F5E8D8;
}

.hex-cell:hover .hex-icon {
    color: #B85A3A;
    transform: scale(1.2);
}

.hex-icon {
    font-size: 36px;
    color: #5A8A6A;
    margin-bottom: 12px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    margin-top: 16px;
}

.hex-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.hex-desc {
    font-size: 14px;
    color: #4A3A2A;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.hex-formula {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #8A7A6A;
    background: rgba(200, 160, 128, 0.15);
    padding: 4px 12px;
    border-radius: 4px;
}

/* Paper grain overlay */
.hex-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 48px 24px;
    background: #F5E8D8;
    border-top: 2px solid #E8D8C8;
}

.footer-brand {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #3A2A1A;
    display: block;
}

.footer-note {
    font-size: 13px;
    color: #8A7A6A;
}

/* Palette refs: #C8A080 #8A6A4A */

@media (max-width: 900px) {
    .honeycomb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .honeycomb-grid > .hex-cell:nth-child(2n+1) { transform: translateY(0); }
    .honeycomb-grid > .hex-cell:nth-child(2n+2) { transform: translateY(30px); }
}

@media (max-width: 600px) {
    .honeycomb-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hex-cell { transform: translateY(0) !important; }
    .hex-inner { min-height: auto; padding: 24px 20px; }
    .site-title { font-size: 40px; }
}
