/* monopole.wiki — Glassmorphic Knowledge Encyclopedia */

:root {
    --cream: #faf7f0;
    --cream-warm: #f5efe6;
    --parchment: #ede4d3;
    --dark-brown: #2d2018;
    --deep-brown: #3d2b1a;
    --amber: #a85c32;
    --orange: #d4882e;
    --gold: #f0c36d;
    --warm-gray: #7a6652;
}

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

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--cream-warm);
    color: var(--dark-brown);
    overflow-x: hidden;
}

/* Hero */
#hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-warm);
    position: relative;
}

.hero-content {
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

#monopole-svg {
    margin-bottom: 2rem;
}

#monopole-svg .field-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 2s ease forwards;
}

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

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

.site-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

.tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--warm-gray);
    margin-bottom: 2rem;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--amber);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Knowledge Grid */
#knowledge-grid {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.grid-header h2 {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--deep-brown);
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
}

.pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--amber);
    background: transparent;
    color: var(--amber);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pill.active,
.pill:hover {
    background: var(--orange);
    color: var(--cream);
    border-color: var(--orange);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Glassmorphic Cards */
.glass-card {
    background: rgba(250, 247, 240, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(212, 136, 46, 0.15);
    border-top-color: rgba(212, 136, 46, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 32px rgba(45, 32, 24, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: rgba(212, 136, 46, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 48px rgba(45, 32, 24, 0.12);
    transform: translateY(-4px);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    display: block;
    margin-bottom: 0.75rem;
}

.glass-card h3 {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--deep-brown);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.glass-card p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--warm-gray);
}

.card-annotation {
    display: block;
    margin-top: 1rem;
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--amber);
    opacity: 0.8;
}

.equation {
    display: block;
    margin-top: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    color: var(--orange);
    background: rgba(212, 136, 46, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Footer */
#site-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--parchment);
}

.footer-note .caveat {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--amber);
}

.footer-domain {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--warm-gray);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .grid-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
