/* The Scarlet Verbs — site theme.
   Palette is taken from the band banner: deep damask red, near-black, cream, a little gold. */

:root {
    --red: #7d1116;
    --red-deep: #4a0a0d;
    --red-bright: #a8161d;
    --black: #141114;
    --ink: #2a2426;
    --cream: #f4ecdf;
    --cream-dark: #e6dac6;
    --gold: #c9a24a;
    --muted: #7b6f6a;
    --paper: #fbf7f0;
    --radius: 6px;
    --wrap: 1100px;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-bright); }

h1, h2, h3 { font-family: var(--font-display); color: var(--black); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding-block: 2.5rem; }
.section + .section { border-top: 1px solid var(--cream-dark); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section__more { font-weight: 600; text-decoration: none; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--red); margin: 0 0 .5rem; }
.lede { font-size: 1.2rem; color: var(--ink); max-width: 60ch; }
.page-head { padding-block: 2.5rem 1rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--black); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: .65rem 1.3rem;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: background .15s;
}
.btn:hover, .btn:focus-visible { background: var(--red-bright); color: #fff; }
.btn--lg { padding: .9rem 1.8rem; font-size: 1.1rem; }

/* Header */
.site-header { background: var(--black); color: var(--cream); border-bottom: 3px solid var(--red); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .25rem; }
.brand { display: block; flex: 0 0 auto; }
.brand__logo { height: 72px; width: auto; }
@media (max-width: 760px) { .brand__logo { height: 56px; } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
    display: block;
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .6rem .9rem;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: .5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--cream); }

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { flex-basis: 100%; display: none; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; padding-bottom: .5rem; }
    .site-nav a { border-bottom: 1px solid #2a2426; }
}

/* Home page: next show on the left, video or slideshow on the right */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.home-grid__media { padding-top: 3.1rem; }
.home-grid__subhead { font-size: 1.25rem; margin: 1.75rem 0 .75rem; }
.next-show { background: #fff; border: 1px solid var(--cream-dark); border-radius: var(--radius); overflow: hidden; }
.next-show__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.next-show__body { padding: 1.25rem 1.5rem 1.5rem; border-top: 4px solid var(--red); }
.next-show__date { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 600; color: var(--red); margin: 0 0 .35rem; }
.next-show__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .25rem; }
.next-show__title a { color: var(--black); text-decoration: none; }
.next-show__title a:hover { color: var(--red); }
.next-show__venue { margin: 0 0 .25rem; font-weight: 600; }
.next-show__meta { margin: 0; color: var(--muted); }
.next-show .btn { margin-top: 1rem; }
.home-video { margin: 0; max-width: none; }
.home-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.home-grid--single { grid-template-columns: 1fr; }
.home-grid--single .home-grid__media { display: none; }
.slideshow { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--black); }
.slideshow__slide { position: relative; margin: 0; }
.slideshow__slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.slideshow__slide figcaption { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1rem .6rem; background: linear-gradient(transparent, rgba(20,17,20,.75)); color: var(--cream); font-size: .9rem; }
.slideshow__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(20,17,20,.6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.slideshow__btn:hover, .slideshow__btn:focus-visible { background: var(--red); }
.slideshow__btn--prev { left: .75rem; }
.slideshow__btn--next { right: .75rem; }
@media (max-width: 800px) {
    .home-grid { grid-template-columns: 1fr; gap: 2rem; }
    .home-grid__media { padding-top: 0; }
}

/* Show cards */
.show-list { display: grid; gap: 1rem; }
.show-card {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.show-card--past { border-left-color: var(--cream-dark); background: transparent; }
.show-card__date {
    display: grid;
    justify-items: center;
    text-decoration: none;
    color: var(--black);
    background: var(--cream);
    border-radius: var(--radius);
    padding: .5rem .25rem;
    line-height: 1.1;
}
.show-card__month { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 600; }
.show-card__day { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.show-card__weekday { font-size: .75rem; color: var(--muted); }
.show-card__title { margin: 0 0 .15rem; font-size: 1.2rem; }
.show-card__title a { color: var(--black); text-decoration: none; }
.show-card__title a:hover { color: var(--red); }
.show-card__venue { margin: 0; font-weight: 600; }
.show-card__meta { margin: 0; color: var(--muted); font-size: .95rem; }
.show-card__thumb img { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; }
.show-list--compact .show-card { padding: .6rem 1rem; }
.show-list--compact .show-card__day { font-size: 1.4rem; }
.show-list--compact .show-card__thumb { display: none; }
@media (max-width: 560px) {
    .show-card { grid-template-columns: 64px 1fr; }
    .show-card__thumb { display: none; }
}
.booking-blurb { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--cream); border-radius: var(--radius); }
.booking-blurb p:last-child { margin-bottom: 0; }

/* Single show */
.show__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .show__grid { grid-template-columns: 1fr; } }
.show__poster { margin: 0 0 1.5rem; }
.show__poster img { border-radius: var(--radius); }
.show__aside { background: #fff; border: 1px solid var(--cream-dark); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.show__aside p { margin: 0 0 .5rem; }
.show__aside-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 1.25rem 0 .5rem; }
.show__aside-title:first-child { margin-top: 0; }
.back { padding-block: 2rem; }

/* About */
.band-photo { margin: 0 auto 2rem; }
.band-photo img { border-radius: var(--radius); }
.members { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.member__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--cream-dark); margin-bottom: .75rem; }
.member__photo--empty { display: grid; place-items: center; background: var(--red); color: var(--cream); font-family: var(--font-display); font-size: 3rem; }
.member__name { margin: 0; }
.member__role { margin: 0 0 .5rem; color: var(--red); font-weight: 600; }
.member__bio { margin: 0; font-size: .95rem; color: var(--ink); }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: transform .2s; }
.gallery__item a:hover img { transform: scale(1.02); }
.gallery__caption { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }

/* Photos & video on a show page */
.show-media__gallery + .show-media__gallery { margin-top: 2.5rem; }
.show-media__videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.show-media__video { margin: 0; max-width: none; }
.show-media__video figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }

/* Rich text & blocks */
.rich-text p, .rich-body p { max-width: 70ch; }
.rich-text h2, .rich-text h3 { margin-top: 1.5em; }
.rich-body > * + * { margin-top: 1.25rem; }
.block-heading { margin-top: 2rem; }
.block-image { margin: 0; }
.block-image img { border-radius: var(--radius); }
.block-image figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.block-embed { max-width: 900px; }
.block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.block-quote { margin: 0; padding: 1rem 1.5rem; border-left: 4px solid var(--gold); background: var(--cream); font-family: var(--font-display); font-style: italic; font-size: 1.25rem; max-width: 60ch; }
.block-quote p { margin: 0; }
.block-quote cite { display: block; margin-top: .5rem; font-family: var(--font-body); font-style: normal; font-size: .9rem; color: var(--muted); }

/* Forms */
.form { max-width: 620px; }
.form__row { margin-bottom: 1.25rem; }
.form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form input:not([type="checkbox"]):not([type="radio"]), .form textarea, .form select {
    width: 100%;
    font: inherit;
    padding: .6rem .75rem;
    border: 1px solid #c9bfb0;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form__help { margin: .25rem 0 0; font-size: .9rem; color: var(--muted); }
.form__error, .form__errors { color: var(--red-bright); font-weight: 600; margin: .25rem 0 0; }
.form__row--error input, .form__row--error textarea { border-color: var(--red-bright); }
.form--inline { display: flex; gap: .5rem; max-width: 520px; }
.form--inline input { flex: 1; }
/* Honeypot of the anonymous forms (accounts/antispam.py): off-screen, so only bots fill it in. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.results { list-style: none; padding: 0; margin: 0; }
.results li { padding-block: 1rem; border-bottom: 1px solid var(--cream-dark); }
.results h3 { margin: 0 0 .25rem; }
.pager { display: flex; gap: 1.5rem; justify-content: center; padding-block: 1.5rem; color: var(--muted); }

/* Footer */
.site-main { flex: 1; }
.site-footer { margin-top: 3rem; background: var(--black); color: var(--cream-dark); border-top: 3px solid var(--red); }
.site-footer__inner { padding-block: 2.5rem 2rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr auto; align-items: start; }
.site-footer__about p { margin: 0 0 .4rem; max-width: 50ch; }
.site-footer__name { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.site-footer__tagline { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--gold); }
.site-footer__intro { margin: 0 0 .75rem; max-width: 50ch; }
.site-footer__intro p { margin: 0 0 .4rem; }
.site-footer a { color: var(--gold); }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.social a { font-weight: 600; text-decoration: none; }
.site-footer__legal { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); border-top: 1px solid #2a2426; padding-top: 1rem; }
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gallery__item img, .btn { transition: none; }
}

/* ---- Accounts, requests, band pages ---- */
.page-head--narrow, .section--narrow { max-width: 680px; }
.btn--ghost { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--red); color: #fff; }
.btn--sm { padding: .35rem .8rem; font-size: .9rem; }
.form__row--check label { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.form__row--check input { width: auto; }
.messages { list-style: none; margin: 1rem 0 0; padding: 0; }
.message { padding: .6rem 1rem; border-radius: var(--radius); background: var(--cream); border-left: 4px solid var(--gold); margin-bottom: .5rem; }
.message--success { border-left-color: #2f6b3a; }
.message--error { border-left-color: var(--red-bright); }
code { background: var(--cream); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.site-nav { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; }
.site-nav ul + ul { margin-left: auto; }
.site-nav__account a { color: var(--cream-dark); font-weight: 500; }
.nav-live { color: var(--gold) !important; font-weight: 700 !important; }
@media (max-width: 760px) {
    .site-nav { display: none; }
    .site-nav.is-open { display: flex; flex-direction: column; }
    .site-nav ul + ul { margin-left: 0; border-top: 1px solid #2a2426; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.cards--tools { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--cream-dark); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card--link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); color: inherit; }
.card--link h3 { color: var(--red); }
.card--link p { color: var(--ink); font-size: .95rem; }

.live-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--red-deep), var(--red)); color: var(--cream); }
.live-banner h2 { color: #fff; margin: 0 0 .25rem; }
.live-banner p { margin: 0; }
.live-banner .eyebrow { color: var(--gold); }
.live-banner--off { background: var(--black); }
.live-banner .btn--ghost { color: var(--cream); border-color: var(--cream); }

.request-list { list-style: none; margin: 0; padding: 0; }
.request { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--cream-dark); }
.request__label { font-weight: 600; }
.request__meta { color: var(--muted); font-size: .9rem; }
.status { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 999px; background: var(--cream); color: var(--ink); white-space: nowrap; }
.status--played { background: #e2f0e4; color: #2f6b3a; }
.status--declined { background: #f6e3e1; color: var(--red-bright); }
.status--new { background: #fbf0d4; color: #8a6d1d; }

.request-form { position: relative; }
.search-results { position: absolute; z-index: 10; list-style: none; margin: .25rem 0 0; padding: 0; width: 100%; max-width: 620px; background: #fff; border: 1px solid var(--cream-dark); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 18rem; overflow-y: auto; }
.search-results button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--cream-dark); padding: .55rem .8rem; font: inherit; cursor: pointer; }
.search-results button span { color: var(--muted); margin-left: .4rem; }
.search-results button:hover { background: var(--cream); }

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.board__item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--cream-dark); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: .8rem 1rem; }
.board__item--played { border-left-color: #2f6b3a; opacity: .8; }
.board__item--declined { border-left-color: var(--red-bright); opacity: .8; }
.board__label { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--black); }
.board__note { display: block; font-style: italic; }
.board__meta { display: block; color: var(--muted); font-size: .9rem; }
.board__actions { display: flex; gap: .4rem; flex-shrink: 0; }
.count { display: inline-block; min-width: 1.6em; text-align: center; background: var(--red); color: #fff; border-radius: 999px; font-size: .9rem; padding: .1em .4em; vertical-align: middle; }

.repertoire-filter { width: 100%; max-width: 420px; font: inherit; padding: .6rem .8rem; border: 1px solid #c9bfb0; border-radius: var(--radius); }
.repertoire { columns: 3 260px; column-gap: 2rem; }
.repertoire__artist { break-inside: avoid; margin-bottom: 1.25rem; }
.repertoire__artist h2 { font-size: 1.1rem; margin-bottom: .25rem; }
.repertoire__artist ul { margin: 0; padding-left: 1.1rem; }
.setlist { margin-top: 2rem; }
.setlist__sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.setlist__set ol { padding-left: 1.3rem; }

/* Venues */
.venue-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.venue-card { background: #fff; border: 1px solid var(--cream-dark); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.venue-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.venue-card__media { display: block; aspect-ratio: 3 / 2; background: var(--red-deep); }
.venue-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.venue-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--gold); font-family: var(--font-display); font-size: 4rem; }
.venue-card__body { padding: 1rem 1.25rem 1.25rem; }
.venue-card__title { margin: 0 0 .15rem; font-size: 1.25rem; }
.venue-card__title a { color: var(--black); text-decoration: none; }
.venue-card__title a:hover { color: var(--red); }
.venue-card__where { margin: 0 0 .5rem; color: var(--red); font-weight: 600; font-size: .95rem; }
.venue-card__blurb { margin: 0 0 .5rem; color: var(--ink); }
.venue-card__meta { margin: 0; color: var(--muted); font-size: .9rem; }
.venue__hero { margin: 0 0 2rem; }
.venue__hero img { width: 100%; border-radius: var(--radius); max-height: 480px; object-fit: cover; }
.map-embed { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cream-dark); margin-top: 1.5rem; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .venue-card { transition: none; } }

/* Genre chips on the song list */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border: 1px solid var(--cream-dark); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip--active { background: var(--red); border-color: var(--red); color: var(--cream); }
.chip--active:hover { color: #fff; }
.chip__count { font-size: .8rem; opacity: .75; }
