/* Catch a Show (gigbandapp.com). See notes-design.md. */
:root {
  --paper: #e5eaf0;
  --raised: #f3f6f9;
  --ink: #15202d;
  --slate: #566476;
  --rule: rgba(21, 32, 45, 0.14);
  --link: #2448c8;
  --link-hi: #1a37a3;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.05rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 0.16em; }
a:hover { color: var(--link-hi); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: clamp(260px, 38vw, 470px); display: flex; align-items: flex-end; overflow: hidden; background: #2b3645; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 22, 32, 0.78), rgba(15, 22, 32, 0.15) 60%, rgba(15, 22, 32, 0)); }
.hero-text { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(24px, 5vh, 52px); color: #fff; }
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 850; font-stretch: 125%;
  font-size: clamp(2.8rem, 9vw, 6.4rem); line-height: 0.92; letter-spacing: -0.01em;
}
.sub { margin: 0.7rem 0 0; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 34rem; color: rgba(255, 255, 255, 0.9); }

/* ---- Controls ------------------------------------------------------------ */
.controls {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: end; gap: 10px 18px;
  padding: 12px var(--gutter); background: var(--raised); border-bottom: 1px solid var(--rule);
}
.view-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.view-switch button { font: 600 0.95rem var(--body); padding: 0.45rem 0.9rem; border: 0; background: transparent; color: var(--slate); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter { display: grid; gap: 2px; font-size: 0.8rem; color: var(--slate); }
.filter select { font: 400 0.95rem var(--body); padding: 0.4rem 0.5rem; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); min-width: 10rem; }
.chip { font: 600 0.95rem var(--body); padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--link); border-color: var(--link); color: #fff; }
/* Phones: the filter bar is too tall to pin while scrolling */
@media (max-width: 640px) { .controls { position: static; } }

main { padding: 0 var(--gutter) 40px; max-width: 1120px; }
.status { color: var(--slate); margin: 2rem 0; }
.status:empty { display: none; }

/* ---- List: a big date numeral per day, that day's shows on the right ------- */
.days { list-style: none; margin: 0; padding: 0; }
.day { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: clamp(16px, 3vw, 40px); padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.date { position: sticky; top: 76px; align-self: start; }
.date .num { display: block; font-family: var(--display); font-weight: 850; font-stretch: 125%; font-size: 4.2rem; line-height: 0.85; letter-spacing: -0.02em; }
.date .wk { display: block; font-weight: 700; font-size: 1rem; margin-top: 0.35rem; }
.date .mo { display: block; color: var(--slate); font-size: 0.95rem; }
.shows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.show { display: grid; grid-template-columns: 1fr auto; column-gap: 1.2rem; align-items: start; }
.show-time { color: var(--slate); font-size: 0.95rem; font-weight: 600; }
.show-title { font-family: var(--display); font-weight: 750; font-stretch: 110%; font-size: 1.55rem; line-height: 1.12; margin: 0.1rem 0 0.2rem; }
.show-bands { font-size: 1.02rem; }
.show-bands a, .show-bands span { font-weight: 600; }
.show-venue { color: var(--slate); font-size: 0.98rem; margin-top: 0.15rem; }
.show-venue .venue-name { color: var(--ink); font-weight: 600; }
.show-venue .map { margin-left: 0.45rem; }
.desc { margin: 0.4rem 0 0; max-width: 40rem; }
.tix {
  align-self: center; font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  color: #fff; background: var(--ink); padding: 0.55rem 1rem; border-radius: 6px;
}
.tix:hover { background: var(--link); color: #fff; }
@media (max-width: 640px) {
  .day { grid-template-columns: 1fr; row-gap: 0.8rem; padding: 1.6rem 0; }
  .date { position: static; display: flex; align-items: baseline; gap: 0.6rem; }
  .date .num { font-size: 2.6rem; }
  .date .wk, .date .mo { display: inline; margin: 0; }
  .show { grid-template-columns: 1fr; row-gap: 0.6rem; }
  .tix { justify-self: start; }
}

/* ---- Calendar ------------------------------------------------------------ */
.calendar { margin-top: 1.6rem; }
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cal-head h2 { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 1.8rem; margin: 0; min-width: 12rem; }
.cal-head button { font: 600 1rem var(--body); border: 1px solid var(--rule); background: #fff; color: var(--ink); border-radius: 6px; padding: 0.3rem 0.7rem; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); background: var(--raised); }
.cal-dow { font-size: 0.8rem; font-weight: 700; color: var(--slate); padding: 6px 8px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cal-cell { min-height: 92px; padding: 6px 8px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.85rem; }
.cal-cell.out { background: var(--paper); color: var(--slate); }
.cal-cell.today .cal-n { background: var(--ink); color: #fff; border-radius: 999px; padding: 0 6px; }
.cal-n { font-weight: 700; display: inline-block; margin-bottom: 4px; }
.cal-show { display: block; width: 100%; text-align: left; border: 0; background: #fff; border-left: 3px solid var(--link); padding: 2px 5px; margin-top: 3px; font: 600 0.8rem/1.25 var(--body); color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-show:hover { background: #e9eefb; }
.cal-cell.has { cursor: pointer; }
.cal-cell.has:hover { background: #fff; }
.cal-cell.picked { box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.cal-more { display: block; border: 0; background: none; padding: 2px 5px 0; font: 700 0.78rem var(--body); color: var(--link); cursor: pointer; }
.cal-count { display: none; }
.cal-hint { color: var(--slate); margin: 0.8rem 0 0; }
.cal-hint:empty { display: none; }
@media (max-width: 640px) {
  .cal-cell { min-height: 58px; padding: 4px; }
  .cal-show, .cal-more { display: none; }
  .cal-count { display: block; width: fit-content; margin: 2px auto 0; min-width: 1.4em; padding: 0 5px; border-radius: 999px; background: var(--link); color: #fff; font: 700 0.75rem/1.4 var(--body); text-align: center; }
}

/* ---- Footer -------------------------------------------------------------- */
.site-foot { padding: 32px var(--gutter) 48px; color: var(--slate); font-size: 0.95rem; max-width: 1120px; }
.site-foot p { max-width: 42rem; }
.site-foot nav { display: flex; gap: 1.2rem; }
.site-foot .credit { font-size: 0.85rem; margin: 0 0 1rem; }
.site-foot .credit a { color: inherit; }
.show-title a { color: inherit; text-decoration-color: rgba(36, 72, 200, 0.5); text-decoration-thickness: 2px; }
.show-title a:hover { color: var(--link); }
