/* Block Booking Board — marquee header band, filter rail, grid of artist cards.
   Palette and type follow the Arts Northwest form theme (teal, gold, Lora + Raleway). */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #eef2f1; --fg: #1d2a2b; --muted: #5d6c6d; --line: #d8ddd9;
  --teal: #1c5a5e; --teal-ink: #ffffff; --gold: #9a773c; --gold-soft: #f3ebdc;
  --chip: #e4eeee; --chip-fg: #184a4d; --danger: #a33a2c; --ok: #2b7a4b;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Raleway", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #131b1c; --surface: #1b2526; --surface-2: #223031; --fg: #e8ecea; --muted: #9fb0b0; --line: #2f3e3f;
    --teal: #2f8a90; --teal-ink: #0d1718; --gold: #d2aa63; --gold-soft: #3a3020; --chip: #223d3f; --chip-fg: #bfe3e3;
    --danger: #e07b6e; --ok: #6cc08b; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--teal); }
[hidden] { display: none !important; }

.band { background: var(--teal); color: var(--teal-ink); }
.band-inner, .wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band-inner { padding-block: 26px 24px; display: grid; gap: 12px; }
.band-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .85; }
.band a { color: inherit; opacity: .8; font-size: 13px; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0; text-wrap: balance; }
.lede { max-width: 62ch; margin: 0; font-size: 15px; opacity: .95; }
.lede b { font-weight: 700; }
.wrap { padding-block: 18px 48px; }

.flash { background: var(--gold-soft); color: var(--fg); border: 1px solid var(--gold); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-weight: 500; }

.rail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.rail input[type=search] { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; }
.chipbtn { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chipbtn[aria-pressed="true"] { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }
.count { color: var(--muted); font-size: 13px; margin-left: auto; font-variant-numeric: tabular-nums; }
:is(input, textarea, select, button, a).focus-visible, :is(input, textarea, select, button, a):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 16px; }
.card:target { outline: 2px solid var(--gold); }
.photo { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--display); font-size: 44px; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; }
.body { padding: 16px 16px 18px; display: grid; gap: 12px; }
h2 { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
.genre { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; font-size: 14px; }
dl.facts dt { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.notes { font-size: 14px; color: var(--muted); margin: 0; white-space: pre-line; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.btn.primary { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.btn svg { width: 15px; height: 15px; }

.roster { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.roster-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.roster-head h3 { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.roster-head .n { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--chip); color: var(--chip-fg); border-radius: 6px; padding: 4px 9px; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; display: inline-flex; gap: 6px; align-items: center; }
.chips li .lvl { opacity: .7; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.chips li form { display: inline; }
.chips li button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; }
.empty { color: var(--muted); font-size: 14px; font-style: italic; margin: 0; }

/* inline sign-up form */
.signup { border: 1px solid var(--gold); background: var(--gold-soft); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.signup h4 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 600; }
.signup label { display: grid; gap: 3px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.signup input, .signup select, .signup textarea { font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); width: 100%; min-width: 0; }
.signup textarea { min-height: 56px; resize: vertical; }
.signup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.signup .actions { display: flex; gap: 8px; justify-content: flex-end; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.updated, .foot { color: var(--muted); font-size: 13px; margin-top: 26px; }
.nothing { padding: 40px 0; text-align: center; color: var(--muted); }

/* admin */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.panel h2 { font-size: 20px; }
.panel label { display: grid; gap: 3px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.panel input, .panel select, .panel textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); width: 100%; }
.panel textarea { min-height: 70px; resize: vertical; }
.panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel .actions { display: flex; gap: 8px; flex-wrap: wrap; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
table.list img { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; }
.table-wrap { overflow-x: auto; }
.login { max-width: 380px; margin: 60px auto; }
@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } .panel .row, .signup .row { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
