/* Library Page */

.library-section-title {
    font-family: var(--serif);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--dark);
    max-width: 700px;
    margin-bottom: 3rem;
}

.sample-heading { max-width: 600px; margin: 0 auto 1rem; }
.sample-sub { color: var(--tan); max-width: 500px; margin: 0 auto 3rem; font-size: 1.05rem; line-height: 1.6; }
.browse-cta { margin-top: 3rem; }
.value-heading { margin: 0 auto 1.5rem; max-width: 100%; }
.value-sub { max-width: 600px; margin: 0 auto 3rem; font-size: 1.1rem; line-height: 1.6; color: var(--mid); }

/* Stats */
.library-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.library-stat-number {
    font-family: var(--sans);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.library-stat-label {
    font-family: var(--ui);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tan);
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: white;
    border: 1px solid rgba(43, 38, 28, 0.08);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.category-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.category-card h3 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.category-card p {
    font-family: var(--sans);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--mid);
    margin-bottom: 1rem;
}

.category-count {
    font-family: var(--ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Sample Works */
.sample-works {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.sample-work {
    text-align: center;
}

.sample-cover {
    width: 100%;
    aspect-ratio: 3/4;
    background: rgba(251, 249, 247, 0.06);
    border: 1px solid rgba(251, 249, 247, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.sample-work:hover .sample-cover {
    background: rgba(249, 160, 27, 0.08);
    border-color: rgba(249, 160, 27, 0.2);
}

.sample-title {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--cream);
    margin-bottom: 0.25rem;
}

.sample-author {
    font-family: var(--ui);
    font-size: 0.75rem;
    color: var(--tan);
}

/* Value */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.value-item {
    text-align: center;
}

.value-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.value-item h4 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.value-item p {
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--mid);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sample-works {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .library-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .value-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .sample-works {
        grid-template-columns: repeat(2, 1fr);
    }
}
