/* Town, concert and index pages (scripts/build_pages.mjs). Same night-stage palette as the map (app/template.html). */
:root {
  --night: #140a22;
  --stage: #1f1236;
  --stage-hi: #2b1a49;
  --rule: #3e2965;
  --ink: #fff3e6;
  --ink-2: #cfc1e6;
  --ink-3: #a291c2;
  --past: #7d8af0;
  --next: #f5398a;
  --gold: #ffc23d;
  --coral: #ff7a45;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--ink); }
body { font-family: var(--font-ui); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }

.wrap {
  max-width: 920px; margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
}

/* header: small wordmark back to the map */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 14px; }
.brand { text-decoration: none; line-height: .9; display: inline-flex; flex-direction: column; }
.brand i { font-style: normal; font-family: var(--font-script); font-size: 17px; transform: rotate(-5deg); transform-origin: left bottom; margin: 0 0 -3px 3px; }
.brand b {
  font-weight: 900; font-stretch: 68%; font-size: 34px; letter-spacing: -.01em; transform: skewX(-7deg); display: inline-block;
  background: linear-gradient(180deg, #ff6fb5 0%, #f5398a 45%, #d81b78 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--stage); text-decoration: none; font-weight: 750; font-size: 14px; white-space: nowrap;
}
.pill:hover { border-color: var(--ink-3); }

.crumbs { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* hero */
/* phones: title and a small map side by side, the rest full width; wider: the map beside everything */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 92px; grid-template-areas: "title map" "body body"; column-gap: 14px; align-items: start; margin-bottom: 8px; }
.hero h1 { grid-area: title; }
.hero .mini-map { grid-area: map; margin-top: 14px; }
.hero-body { grid-area: body; }
@media (min-width: 680px) {
  .hero { grid-template-columns: minmax(0, 1fr) 210px; grid-template-areas: "title map" "body map"; column-gap: 24px; }
  .hero .mini-map { margin-top: 0; align-self: center; }
}
h1 { margin: 0; line-height: 1.02; font-weight: 900; font-stretch: 72%; font-size: clamp(34px, 9vw, 56px); text-transform: uppercase; letter-spacing: -.005em; overflow-wrap: anywhere; }
h1 .who { display: block; font-family: var(--font-script); font-weight: 400; font-stretch: 100%; text-transform: none; font-size: .5em; color: var(--next); transform: rotate(-4deg); transform-origin: left bottom; margin-bottom: 4px; }
h1 small { display: block; font-size: .52em; color: var(--ink-2); font-weight: 800; margin-top: 4px; letter-spacing: .02em; word-spacing: .14em; }
.lead { font-size: 16px; color: var(--ink-2); margin: 12px 0 0; max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.mini-map { position: relative; width: 100%; aspect-ratio: 1024 / 960.7; }
.mini-map img { display: block; width: 100%; height: 100%; }
.mini-map .pin {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--night); box-shadow: 0 0 0 4px rgba(255, 194, 61, .3), 0 0 18px rgba(255, 194, 61, .8);
}

.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 750; font-stretch: 85%; letter-spacing: .05em; text-transform: uppercase;
  background: var(--stage-hi); color: var(--ink-2);
}
.chip.pink { background: rgba(245, 57, 138, .16); color: #ff8fbd; }
.chip.gold { background: rgba(255, 194, 61, .16); color: var(--gold); }
.chip.warn { background: rgba(255, 122, 69, .16); color: #ffab85; }

h2 { margin: 30px 0 12px; font-size: 12px; font-weight: 750; font-stretch: 80%; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

/* concert rows */
.gigs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gig { border-radius: 16px; background: var(--stage); border: 1px solid var(--rule); overflow: hidden; }
.gig.cancelled .gig-day b, .gig.cancelled .gig-title { text-decoration: line-through; text-decoration-color: var(--coral); }
.gig-main { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; }
a.gig-main:hover .gig-title { text-decoration: underline; text-decoration-color: var(--rule); }
.gig-day { font-variant-numeric: tabular-nums; line-height: 1.1; }
.gig-day b { display: block; font-size: 20px; font-weight: 800; }
.gig-day span { font-size: 11px; color: var(--ink-3); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gig-title { font-weight: 750; overflow-wrap: anywhere; }
.gig-sub { color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.ticket {
  display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; text-decoration: none;
  background: linear-gradient(100deg, var(--next), var(--coral)); color: #1b0a1e;
  font-size: 13px; font-weight: 800; font-stretch: 90%; letter-spacing: .05em; text-transform: uppercase;
}
.ticket:hover { filter: brightness(1.08); }
.ticket.solo { border-radius: 999px; display: inline-flex; margin-top: 16px; min-height: 46px; padding: 0 22px; font-size: 14px; }

/* concert details */
.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--stage); border: 1px solid var(--rule); }
.details dt { color: var(--ink-3); font-size: 13px; }
.details dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.note { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 122, 69, .12); color: #ffcdb5; font-size: 14px; }

/* fan posts */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.post { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--stage); border: 1px solid var(--rule); text-decoration: none; }
.post:hover { border-color: var(--ink-3); }
.post img, .post .ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--stage-hi); }
.post .ph { display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-weight: 750; font-size: 13px; }
.post-body { padding: 9px 11px 11px; display: grid; gap: 4px; }
.post-cap { font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.post-meta { font-size: 12px; color: var(--ink-3); }

.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--stage); text-decoration: none; font-size: 14px; font-weight: 650; }
.links a:hover { border-color: var(--ink-3); }
.links a small { color: var(--ink-3); font-weight: 600; margin-left: 6px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pager a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--stage); border: 1px solid var(--rule); text-decoration: none; min-width: 0; }
.pager a:hover { border-color: var(--ink-3); }
.pager a.next { text-align: right; grid-column: 2; }
.pager small { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pager b { overflow-wrap: anywhere; }

.src { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.src a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-block: 6px 1px; display: inline-block; }

/* index of towns */
.regions { columns: 1; column-gap: 28px; }
@media (min-width: 640px) { .regions { columns: 2; } }
.region { break-inside: avoid; margin: 0 0 18px; }
.region h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.region ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.region a { text-decoration: none; border-bottom: 1px solid var(--rule); font-size: 14px; }
.region a small { color: var(--ink-3); margin-left: 3px; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
footer p { margin: 0 0 8px; max-width: 70ch; }
footer a { color: var(--ink-2); }
