/* ── Buffalo Data Project — global styles ────────────────────────────────── */

:root {
    --bdp-max-width: 1100px;
    --bdp-bg: #f8f9fa;
    --bdp-surface: #ffffff;
    --bdp-text: #1a1a2e;
    --bdp-muted: #6c757d;
    --bdp-accent: #2563eb;
    --bdp-accent-light: #dbeafe;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--bdp-text);
    background: var(--bdp-bg);
    line-height: 1.6;
}

.container {
    max-width: var(--bdp-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.site-header h1 {
    margin: 0 0 0.25rem;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-header .tagline {
    margin: 0;
    font-size: 1.15rem;
    opacity: 0.85;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

section {
    margin: 2.5rem 0;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bdp-accent-light);
    padding-bottom: 0.4rem;
}

.intro wa-card {
    font-size: 1.05rem;
}

/* ── Project grid ────────────────────────────────────────────────────────── */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    --padding: 1rem;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.15rem;
}

.project-card p {
    margin: 0.75rem 0;
}

.project-relevance {
    font-size: 0.9rem;
    color: var(--bdp-muted);
}

.project-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.project-card--coming-soon {
    border-style: dashed;
    opacity: 0.75;
}

/* ── Architecture cards ──────────────────────────────────────────────────── */

.arch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    text-align: center;
}

.arch-cards wa-card {
    padding: 1.5rem;
}

.arch-cards h3 {
    margin: 0.75rem 0 0.25rem;
}

.arch-cards p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--bdp-muted);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--bdp-muted);
    border-top: 1px solid #dee2e6;
}

.site-footer a {
    color: var(--bdp-accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .site-header h1 {
        font-size: 1.6rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}
