:root {
    --maroon: #0377DB;
    --gold: #d4a017;
    --ink: #241f1f;
    --paper: #faf7f2;
    --card-bg: #ffffff;
    --border: #e5ddd0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--maroon);
    color: #fff;
    padding: 16px 0;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.logo span { color: var(--gold); }
.logo-img {
    height: 36px;
    width: auto;
    display: block;
}
.site-nav a {
    color: #f1e7d8;
    text-decoration: none;
    font-weight: 600;
}
.site-nav a:hover { color: var(--gold); }

main.wrap { padding-top: 32px; padding-bottom: 60px; min-height: 60vh; }

.page-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--maroon);
}

/* Homepage band grid */
.band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.band-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: box-shadow 0.15s, transform 0.15s;
}
.band-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.band-card-avatar img,
.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-placeholder {
    background: var(--maroon);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
}
.avatar-placeholder.large { width: 120px; height: 120px; font-size: 3rem; border-radius: 12px; }
.band-card-name { font-size: 1.05rem; margin: 0 0 6px; color: var(--ink); }
.band-card-school, .band-card-location { margin: 2px 0; font-size: 0.88rem; color: #6b6b6b; }

.tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 999px;
    margin: 4px 0;
}
.tag-hs { background: #eaf1ff; color: #1d4fa3; }
.tag-college { background: #fdeee0; color: #b0530e; }

/* Band profile header */
.band-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}
.band-header-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}
.band-header-info h1 { margin: 0 0 6px; color: var(--maroon); }
.band-school { font-weight: 600; margin: 4px 0; }
.band-location { color: #6b6b6b; margin: 4px 0; }

.band-summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 32px;
}
.read-more {
    color: var(--maroon);
    font-weight: 700;
    text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* Gallery */
.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.gallery-header h2 { color: var(--maroon); margin: 0; }
.gallery-filter select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.gallery-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.gallery-year {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

/* About page */
.band-about {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    max-width: 750px;
}

.back-link { margin-top: 32px; }
.back-link a { color: var(--maroon); text-decoration: none; font-weight: 600; }
.back-link a:hover { text-decoration: underline; }

.empty-state { color: #888; font-style: italic; }

.site-footer {
    background: var(--maroon);
    color: #f1e7d8;
    text-align: center;
    padding: 18px 0;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .band-header { flex-direction: column; align-items: flex-start; }
    .gallery-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
