:root {
    --ink: #141110;
    --ink-raised: #1e1815;
    --ink-line: #3a312c;
    --maroon: #7c2830;
    --maroon-bright: #b0424c;
    --gold: #cf992c;
    --gold-dim: #a67a28;
    --paper: #f4ede3;
    --paper-dim: #ad9f92;
    --good: #4a9a5c;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ink);
    color: var(--paper);
}

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.eyebrow {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--gold);
    display: block;
}

h1, h2, h3 {
    font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    text-wrap: balance;
    margin: 0;
    color: var(--paper);
}

a { color: var(--gold); }
p { margin: 0; }

/* ---- Buttons ---- */
.btn {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    padding: 0.9rem 1.6rem;
    border-radius: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    background: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1a1310; }
.btn-gold:hover { background: #e0aa3a; }
.btn-outline { border-color: var(--paper-dim); color: var(--paper); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.72rem; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ---- Live banner ---- */
.live-banner {
    display: none;
    background: var(--maroon);
    color: var(--paper);
    text-align: center;
    padding: 1.1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--maroon-bright);
}
.live-banner.show { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.live-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #ff5a5a;
    box-shadow: 0 0 0 rgba(255,90,90,0.5);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,90,90,0.55); }
    70% { box-shadow: 0 0 0 9px rgba(255,90,90,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,90,90,0); }
}
.live-banner strong { font-family: 'Big Shoulders Display', sans-serif; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    background-image:
        linear-gradient(180deg, rgba(20,17,16,0.15) 0%, rgba(20,17,16,0.55) 55%, rgba(20,17,16,0.97) 100%),
        url('/static/home/images/StevensonBrooksEvent.jpg');
    background-size: cover;
    background-position: center 30%;
    padding: clamp(1.5rem, 5vw, 4rem);
}
.hero-inner { max-width: 900px; }
.hero .eyebrow {
    margin-bottom: 0.9rem;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    letter-spacing: 0.12em;
    color: var(--paper);
    text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

@media (max-width: 640px) {
    .hero { background-position: 20% 25%; }
}
.hero h1 {
    font-size: clamp(3.2rem, 10vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: 0.01em;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
    margin: 1.4rem 0 0;
    max-width: 46ch;
    color: var(--paper-dim);
    font-size: 1.15rem;
}
.hero-cta { margin-top: 2.1rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Sections ---- */
section { padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.section-head .eyebrow { margin-bottom: 0.6rem; }
.section-narrow { max-width: 780px; margin: 0 auto; }

/* ---- Gig cards ---- */
.gig-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.gig-card { background: var(--ink); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.gig-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.gig-date { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--gold); white-space: nowrap; }
.gig-title { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 1.6rem; margin: 0.2rem 0 0.1rem; }
.gig-venue { color: var(--paper-dim); font-size: 0.9rem; }
.gig-desc { color: var(--paper-dim); font-size: 0.92rem; max-width: 56ch; }
.gig-rsvp-count { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--paper-dim); }
.gig-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.rsvp-form { display: none; flex-direction: column; gap: 0.7rem; background: var(--ink-raised); border: 1px solid var(--ink-line); padding: 1.2rem; margin-top: 0.4rem; }
.rsvp-form.show { display: flex; }
.rsvp-form input[type="text"], .rsvp-form input[type="email"] {
    background: var(--ink); border: 1px solid var(--ink-line); color: var(--paper);
    padding: 0.7rem 0.9rem; font-family: 'Lora', serif; font-size: 0.92rem; border-radius: 2px; outline: none;
}
.rsvp-form input:focus { border-color: var(--gold); }
.rsvp-form label.opt-in { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--paper-dim); }
.rsvp-form label.opt-in input { width: auto; }
.rsvp-confirm { display: none; flex-direction: column; gap: 0.6rem; background: var(--ink-raised); border: 1px solid var(--gold-dim); padding: 1.2rem; margin-top: 0.4rem; }
.rsvp-confirm.show { display: flex; }
.rsvp-confirm p { color: var(--paper); font-size: 0.9rem; }

.venue-history { display: none; margin-top: 0.6rem; padding: 1rem 1.2rem; background: var(--ink-raised); border-left: 2px solid var(--gold-dim); font-size: 0.85rem; color: var(--paper-dim); }
.venue-history.show { display: block; }
.venue-history .setlist-line { display: inline; }
.venue-history .setlist-line:not(:last-child)::after { content: ' \00b7 '; }

.empty-note { text-align: center; color: var(--paper-dim); font-size: 0.9rem; max-width: 780px; margin: 0 auto; }

/* ---- Recent gigs ---- */
.recap-card { background: var(--ink); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; }
.recap-text { color: var(--paper); font-size: 0.95rem; font-style: italic; }
.setlist-toggle { align-self: flex-start; }
.setlist-box { display: none; margin-top: 0.4rem; color: var(--paper-dim); font-size: 0.85rem; line-height: 1.9; }
.setlist-box.show { display: block; }

/* ---- Bio ---- */
.bio { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bio-photo { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold-dim); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-text p { color: var(--paper-dim); max-width: 58ch; }
.bio-text p:first-of-type { color: var(--paper); font-size: 1.2rem; }
.bio-text p + p { margin-top: 0.9rem; }

/* ---- Sound section ---- */
.sound {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(100deg, rgba(20,17,16,0.94) 20%, rgba(20,17,16,0.55) 65%, rgba(20,17,16,0.25) 100%),
        url('/static/home/images/GuitarShot.jpg');
    background-size: cover;
    background-position: center 40%;
}
.sound-inner { max-width: 480px; padding: clamp(1.5rem, 5vw, 4rem); }
.sound h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.sound p { color: var(--paper-dim); }
.sound .btn { margin-top: 1.6rem; }

/* ---- Newsletter ---- */
.newsletter { max-width: 520px; margin: 0 auto; text-align: center; }
.newsletter-form { display: flex; gap: 0.6rem; margin-top: 1.6rem; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
    flex: 1; min-width: 220px;
    background: var(--ink-raised); border: 1px solid var(--ink-line); color: var(--paper);
    padding: 0.9rem 1.1rem; font-family: 'Lora', serif; font-size: 0.95rem; border-radius: 2px; outline: none;
}
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }
.newsletter-note { margin-top: 1rem; color: var(--paper-dim); font-size: 0.8rem; }
.newsletter-confirm { display: none; margin-top: 1.6rem; color: var(--gold); }
.newsletter-confirm.show { display: block; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--ink-line); padding: 2.5rem clamp(1.5rem, 5vw, 4rem); text-align: center; }
footer p { color: var(--paper-dim); font-size: 0.85rem; margin: 0.3rem 0; }
footer a { color: var(--paper-dim); text-decoration: underline; }
footer a:hover { color: var(--gold); }

/* ---- Toast ---- */
.toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--ink-raised); border: 1px solid var(--gold-dim); color: var(--paper);
    padding: 0.8rem 1.4rem; border-radius: 3px; font-size: 0.85rem;
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
    .bio { grid-template-columns: 1fr; text-align: center; }
    .bio-photo { width: 160px; margin: 0 auto; }
    .gig-top { flex-direction: column; }
}
