/* tanso.wiki - Hexagonal Carbon Encyclopedia */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --mint-white: #F8FAF8;
    --pale-mint: #EEFAEE;
    --wiki-green: #2A8A4A;
    --warm-coral: #C85040;
    --neon-mint: #40E878;
    --text-primary: #1A2A1A;
    --text-secondary: #2A3A2A;
    --text-mono: #6A7A6A;
}
body {
    background: var(--mint-white);
    color: var(--text-primary);
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Hero */
#hero {
    padding: 4rem 2rem 2rem;
    text-align: center;
}
.hero-title {
    font-family: 'Righteous', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2rem;
}
.hero-meta {
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--text-mono);
    margin-top: 1.5rem;
}

/* Hex Navigation */
.hex-nav {
    max-width: 800px;
    margin: 0 auto;
}
.hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.hex-tile {
    width: 120px;
    height: 138px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--pale-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
}
.hex-tile:hover {
    background: var(--wiki-green);
}
.hex-tile:hover .hex-label {
    color: #fff;
}
.hex-tile.active {
    background: var(--wiki-green);
    animation: hexGlow 2s ease-in-out infinite;
}
@keyframes hexGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(64,232,120,0.3)); }
    50% { filter: drop-shadow(0 0 16px rgba(64,232,120,0.5)); }
}
.hex-label {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wiki-green);
    transition: color 0.3s ease;
}

/* Wiki Sections */
.wiki-section {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(3rem, 5vw, 5rem) 2rem;
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(42,138,74,0.1);
}

/* Page Corner */
.page-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent rgba(200,80,64,0.12) transparent transparent;
}

.section-title {
    font-family: 'Righteous', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.section-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* Margin Notes */
.margin-note {
    padding-top: 3.5rem;
    border-left: 3px solid rgba(200,80,64,0.25);
    padding-left: 1rem;
    align-self: start;
}
.note-text {
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--text-mono);
    line-height: 1.6;
}

/* Section Animation */
.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(42,138,74,0.1);
}
.footer-text {
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-mono);
    letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 768px) {
    .wiki-section {
        grid-template-columns: 1fr;
    }
    .margin-note {
        padding-top: 0;
        border-left: 3px solid rgba(200,80,64,0.25);
        padding-left: 1rem;
    }
    .hex-tile {
        width: 90px;
        height: 104px;
    }
    .hex-label { font-size: 0.75rem; }
}
