/* jazzleftbank.org — layout: dark stage, amber light; flyer images carry the color, type stays quiet.
   Display: Cormorant Garamond. Body: Nunito Sans. Dark-first (the flyers' own palette), with a light theme for daylight reading. */
:root {
  --bg: #16100b;          /* stage black with warmth */
  --bg-2: #1f1610;        /* panels */
  --line: #3a2a1e;
  --fg: #f1e6d6;          /* warm paper */
  --fg-2: #c9b59d;        /* secondary text */
  --muted: #8f7b66;
  --amber: #d98a3a;       /* the varnish of the cello scroll */
  --amber-2: #f0b46b;
  --rust: #9a4413;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6efe4; --bg-2: #fbf6ee; --line: #e2d3bf; --fg: #24170e; --fg-2: #5b4633; --muted: #8a7460;
    --amber: #a3520f; --amber-2: #7e3d0a; --rust: #8b3a0e; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6efe4; --bg-2: #fbf6ee; --line: #e2d3bf; --fg: #24170e; --fg-2: #5b4633; --muted: #8a7460;
  --amber: #a3520f; --amber-2: #7e3d0a; --rust: #8b3a0e; color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--fg-2); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: .8em; }
.eyebrow a { color: inherit; }
.sr { position: absolute; left: -9999px; }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 1.5rem; padding: .7rem clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--fg); font-family: var(--display); font-size: 1.25rem; line-height: 1.05; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; }
.brand small { display: block; font-family: var(--body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.top nav { margin-left: auto; display: flex; gap: 1.4rem; font-size: .92rem; }
.top nav a { color: var(--fg-2); padding: .3rem 0; border-bottom: 2px solid transparent; }
.top nav a.on { color: var(--fg); border-color: var(--amber); }
.top nav a:hover { text-decoration: none; color: var(--fg); }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--fg); font-size: 1.2rem; padding: .3rem .7rem; border-radius: 4px; }
@media (max-width: 760px) {
  .menu { display: block; }
  .top { flex-wrap: wrap; }
  .top nav { display: none; width: 100%; flex-direction: column; gap: .2rem; padding: .6rem 0 .2rem; }
  body.nav-open .top nav { display: flex; }
}

main { max-width: var(--max); margin: 0 auto; padding-block: 2.5rem 4rem; padding-inline: clamp(16px, 4vw, 40px); }
footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; padding-inline: clamp(16px, 4vw, 40px); max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; font-size: .92rem; color: var(--fg-2); }
footer p { margin: 0 0 .6em; }

/* home */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.hero-img { border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn { display: inline-block; background: var(--amber); color: #1a0e08; font-weight: 700; padding: .7rem 1.2rem; border-radius: 3px; border: 1px solid var(--amber); font-size: .95rem; cursor: pointer; font-family: var(--body); }
.btn:hover { text-decoration: none; background: var(--amber-2); border-color: var(--amber-2); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-2); }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } .hero-img { order: -1; max-height: 240px; object-fit: cover; width: 100%; } }

.latest { margin-bottom: 3.5rem; }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1.2rem; color: var(--fg); }
.feature:hover { text-decoration: none; border-color: var(--amber); }
.feature img { border-radius: 3px; }
.feature h2 { margin-bottom: .2em; }
.feature p { color: var(--fg-2); margin-bottom: .4em; }
.feature .l { font-size: .95rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem 1.2rem; }
.card { display: flex; flex-direction: column; gap: .35rem; color: var(--fg); min-width: 0; }
.card img { aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); transition: transform .25s ease; }
.card:hover { text-decoration: none; }
.card:hover img { transform: translateY(-2px); border-color: var(--amber); }
.card .d { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-top: .5rem; font-variant-numeric: tabular-nums; }
.card .t { font-family: var(--display); font-size: 1.3rem; line-height: 1.15; }
.card .l { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.more { margin-top: 1.5rem; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 4rem; }
.three a { display: block; padding: 1.4rem; border: 1px solid var(--line); border-radius: 6px; color: var(--fg); background: var(--bg-2); }
.three a:hover { text-decoration: none; border-color: var(--amber); }
.three h3 { margin-bottom: .3em; }
.three p { color: var(--fg-2); font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; } }

/* section heads */
.head { margin-bottom: 2.5rem; }
.head.narrow { max-width: 68ch; }
.yearnav { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-variant-numeric: tabular-nums; font-size: .95rem; }
.year { margin-bottom: 3rem; }
.year h2 { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: 1.2rem; }
.year h2 small { font-family: var(--body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* concert page */
.concert .when { font-family: var(--display); font-size: 1.35rem; color: var(--fg-2); margin-bottom: 1.6rem; }
.flyer { margin: 0 0 2rem; }
.flyer img { border-radius: 4px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.lineup { list-style: none; margin: 0; padding: 0; }
.lineup li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.lineup .who { font-weight: 600; }
.lineup .inst { color: var(--muted); font-style: italic; text-align: right; }
.note { margin-top: 1.2rem; color: var(--fg-2); font-size: .95rem; }
.video { position: relative; aspect-ratio: 16/9; max-width: 100%; background: #000; border-radius: 4px; overflow: hidden; margin-bottom: .6rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cap { color: var(--muted); font-size: .9rem; }
.soon { border: 1px dashed var(--line); border-radius: 4px; padding: 1rem 1.2rem; color: var(--fg-2); font-size: .95rem; }
.soon span { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: .3rem; }
.pn { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.15rem; }
.pn a { color: var(--fg); max-width: 48%; }
.pn a.r { text-align: right; margin-left: auto; }
.pn small { display: block; font-family: var(--body); font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

/* musicians */
.letter { margin-bottom: 2rem; }
.letter h2 { color: var(--amber); border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: grid; grid-template-columns: 1.2fr 1fr 2fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); align-items: baseline; font-size: .97rem; }
.people .who { font-weight: 600; }
.people .inst { color: var(--muted); font-style: italic; }
.people .dates { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .88rem; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .people li { grid-template-columns: 1fr; gap: .15rem; } }

/* reading */
.shelf { margin: 0 0 4.5rem; padding-top: 2.2rem; border-top: 3px solid var(--amber); position: relative; }
.shelf h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.shelf h2 small { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.shelf > p { color: var(--fg-2); }
.shelf-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 5; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 3rem; padding: .6rem 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.shelf-nav a { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; }
.shelf-nav a:hover { text-decoration: none; border-color: var(--amber); color: var(--fg); }
.shelf { scroll-margin-top: 130px; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.links a { font-family: var(--display); font-size: 1.35rem; color: var(--fg); }
.links .meta { display: block; font-size: .85rem; color: var(--muted); margin: .15rem 0 .3rem; }
.links p { font-size: .97rem; color: var(--fg-2); margin: 0; }

/* guests */
.gate { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1.2rem; }
.gate input { font: inherit; padding: .65rem .9rem; border-radius: 3px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); min-width: 220px; }
.err { color: #e28b6a; width: 100%; font-size: .92rem; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* venues */
.venues { list-style: none; margin: 0; padding: 0; }
.venues li { padding: .45rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: baseline; }
.venues a { font-weight: 600; color: var(--fg); }
.venues .vn { color: var(--muted); font-size: .88rem; }
.venues.apps { margin-bottom: 1.6rem; }
.venues.apps a { font-family: var(--display); font-size: 1.3rem; }
.countries { display: flex; flex-direction: column; gap: .4rem; }
.country { border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
.country summary { cursor: pointer; padding: .8rem 1rem; font-family: var(--display); font-size: 1.35rem; display: flex; align-items: baseline; gap: 1rem; list-style: none; }
.country summary::-webkit-details-marker { display: none; }
.country summary::before { content: "+"; color: var(--amber); font-family: var(--body); font-size: 1rem; width: 1rem; }
.country[open] summary::before { content: "–"; }
.country summary small { font-family: var(--body); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .6rem 2rem; padding: 0 1rem 1rem; }
.cities.radio { padding: 0; }
.city h4 { margin: .6rem 0 .2rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); font-weight: 600; }

/* clubs: country list left, venues right */
.clubs { display: grid; grid-template-columns: 220px 1fr; gap: 0 2.5rem; align-items: start; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.clist { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: .6rem 0; max-height: 640px; overflow-y: auto; }
.clist button { background: none; border: 0; border-left: 3px solid transparent; color: var(--fg-2); font: 600 .95rem/1.3 var(--body); text-align: left; padding: .6rem 1rem .6rem 1.1rem; cursor: pointer; display: flex; justify-content: space-between; gap: .6rem; }
.clist button small { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.clist button:hover { color: var(--fg); background: color-mix(in srgb, var(--amber) 8%, transparent); }
.clist button.on { color: var(--fg); border-left-color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.cpanels { padding: 1.2rem 1.4rem 1.4rem 0; min-width: 0; }
.cpanel h3 { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .2rem; }
.cpanel h3 small { font-family: var(--body); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cpanel .cities { padding: 0; }
.csel-wrap { display: none; }
.csel { font: inherit; width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); color: var(--fg); }
@media (max-width: 760px) {
  .clubs { grid-template-columns: 1fr; border: 0; background: transparent; }
  .clist { display: none; }
  .csel-wrap { display: block; margin-bottom: 1rem; }
  .cpanels { padding: 0; }
}

/* birthdays */
.home-bd { margin-top: 4rem; }
.bd-month { margin-bottom: 2.5rem; }
.bd-month h2 { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: .6rem; }
.bd-month h2 small { font-family: var(--body); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bd { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 2rem; }
.bd li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.bd-day { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); font-variant-numeric: tabular-nums; }
.bd-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.1; }
.bd-what { grid-column: 2; font-size: .88rem; color: var(--muted); }
.home-bd .bd { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.cpanel .bd { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.clubs[data-switcher="b"] .cities, .clubs[data-switcher="r"] .cities { grid-template-columns: 1fr; }
