/* Folly Beach PorchFest
   Layout concept: a screen-printed gig poster on white paper. Black ink does the work,
   one sunset (marigold + coral) is the only loud colour, stage colours are small coded dots. */
:root {
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;            /* quiet panels */
  --ink: #17171a;
  --ink-2: #55565c;
  --ink-3: #8a8b90;
  --line: #e3e1db;
  --sun: #ffc23d;                /* marigold: highlights, backup */
  --coral: #ff5a3c;              /* sunset coral: live / now */
  --sea: #129b92;                /* sea glass: waves, links */

  --font-display: 'Shrikhand', 'Cooper Black', Georgia, serif;
  --font-script: 'Caveat', 'Segoe Script', cursive;
  --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: var(--font-display);

  --r: 14px;
  --tabbar-h: 62px;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--paper); padding: 8px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }

/* ---------- chrome ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 8px) max(var(--gutter), env(safe-area-inset-right)) 8px max(var(--gutter), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; line-height: 1; }
.brand-script { font-family: var(--font-script); font-weight: 700; font-size: 21px; }
.brand-main { font-family: var(--font-display); font-size: 21px; }
.topbar-date { font-size: 14px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  -webkit-tap-highlight-color: transparent;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] svg { fill: var(--sun); }
.tab-badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--coral); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; text-align: center;
}

main { max-width: 1120px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); outline: none; }
.view-enter { animation: fade .22s ease-out; }
@keyframes fade { from { opacity: .4; transform: translateY(4px); } }

/* ---------- shared ---------- */
.page-head { padding-top: 22px; }
.page-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 10vw, 56px); line-height: 1.05; margin: 0 0 4px; }
.page-sub { margin: 0 0 14px; color: var(--ink-2); }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0 0 12px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.card.sand { background: var(--paper-2); border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink);
  -webkit-tap-highlight-color: transparent; transition: transform .08s ease, background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary svg { fill: var(--sun); stroke: var(--sun); }
.btn.sun { background: var(--sun); border-color: var(--sun); }
.btn.coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: 14.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--stage, var(--ink)); flex: none; display: inline-block; }
.stage-num {
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--stage, var(--ink)); color: #fff;
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.badge-now { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--coral); }
.badge-now::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.empty { text-align: center; padding: 24px; color: var(--ink-2); }

.wave { display: block; width: 100%; height: 22px; color: var(--sea); margin: 10px 0 0; overflow: visible; }
.wave path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.wave path + path { stroke: var(--sun); opacity: 1 !important; }
.wave.anim path { animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(-25px); } }

/* ---------- home ---------- */
.hero { padding-top: 18px; text-align: center; }
.hero-title { margin: 0; font-weight: 400; line-height: .9; }
.hero-title .folly { display: block; font-family: var(--font-script); font-weight: 700; font-size: clamp(38px, 11vw, 64px); transform: rotate(-4deg); margin-bottom: -4px; }
.hero-title .porch { display: block; font-family: var(--font-display); font-size: clamp(56px, 17vw, 108px); letter-spacing: -.01em; }
.datebar {
  display: inline-flex; align-items: center; gap: clamp(10px, 3vw, 16px); justify-content: center; max-width: 100%;
  margin: 16px 0 0; padding: 10px 20px; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: clamp(15px, 4.3vw, 26px); line-height: 1.1; border-radius: 4px; white-space: nowrap; padding-inline: clamp(14px, 4vw, 22px);
}
.datebar i { width: 2px; align-self: stretch; background: var(--paper); opacity: .7; }
.hero-sub { margin: 12px auto 0; max-width: 34ch; color: var(--ink-2); }
/* The art is framed like the print on the 2026 poster: an ink rule around it, never over it. */
.hero-art { position: relative; margin: 18px auto 0; max-width: 560px; padding: 10px; background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--sun); }
.hero-art img { width: 100%; height: auto; }

.live { margin: 18px auto 0; max-width: 520px; text-align: left; }
.live-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); justify-content: center; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.countdown div { padding: 10px 0 8px; border-radius: 12px; background: var(--paper-2); }
.countdown b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,90,60,.6); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,90,60,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,60,0); } }
.now-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--paper-2); border-radius: var(--r); padding: 6px 12px; }
.now-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.now-list li + li { border-top: 1px solid var(--line); }
.now-list .who { display: block; font-weight: 700; font-size: 17px; text-decoration: none; }
.now-list .where { font-size: 14px; color: var(--ink-2); }
.now-list .where a { text-decoration: none; }

.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px auto 0; max-width: 520px; }
.cta .btn { min-height: 52px; font-size: 17px; }

.home-side { display: grid; gap: 30px; margin-top: 36px; }
.porch-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.porch-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.porch-name { flex: 1; min-width: 0; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.2; }
.porch-name small { display: block; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.walk-link { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: var(--paper-2); text-decoration: none; font-size: 14px; font-weight: 700; }
.walk-link svg { width: 17px; height: 17px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 22px; line-height: 1.2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); }
.flyer { margin: 0; }
.flyer button { all: unset; cursor: zoom-in; display: block; border-radius: 6px; }
.flyer img { border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 30px -10px rgba(0,0,0,.25); }
.flyer figcaption { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* ---------- lineup ---------- */
.toolbar {
  position: sticky; top: 49px; z-index: 20;
  margin: 0 calc(-1 * max(var(--gutter), env(safe-area-inset-left))); padding: 8px max(var(--gutter), env(safe-area-inset-right)) 8px max(var(--gutter), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.toolbar-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.search { position: relative; flex: 1 1 140px; min-width: 0; }
.search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-3); }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 8px 12px 8px 36px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.time-chips { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
.time-chips::-webkit-scrollbar { display: none; }
.time-chips a { flex: none; font-size: 14px; font-weight: 700; text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-variant-numeric: tabular-nums; }
.time-chips a.is-now { background: var(--coral); border-color: var(--coral); color: #fff; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 4px; font-size: 13.5px; color: var(--ink-2); }
.legend svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -2px; }

.slot { margin-top: 18px; }
.slot-h { display: flex; align-items: baseline; gap: 6px; margin: 0 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; }
.slot-h small { font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: .06em; color: var(--ink-3); }
.slot-h .badge-now { margin-left: 6px; align-self: center; }
.sets { display: grid; border-top: 1px solid var(--line); }

.set { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
.set-body { min-width: 0; }
.set .artist { display: block; font-weight: 700; font-size: 17.5px; line-height: 1.2; text-decoration: none; }
.set .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.set .meta a { text-decoration: none; }
.set.is-past, td.is-past { opacity: .5; }
.set.picked-p::before, .set.picked-b::before { content: ''; position: absolute; left: calc(-1 * var(--gutter)); top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ink); }
.set.picked-b::before { background: var(--sun); }

.picks { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; flex: none; }
.pick {
  display: inline-flex; align-items: center; gap: 5px; justify-content: center;
  min-height: 36px; padding: 0 11px; border: 0; background: #fff; cursor: pointer;
  font-size: 13.5px; font-weight: 700; -webkit-tap-highlight-color: transparent;
}
.pick + .pick { border-left: 1.5px solid var(--ink); }
.pick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.pick-p[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pick-p[aria-pressed="true"] svg { fill: var(--sun); stroke: var(--sun); }
.pick-b[aria-pressed="true"] { background: var(--sun); }
.picks.compact .lbl { display: none; }
.picks.compact .pick { min-height: 32px; padding: 0 10px; }
@media (max-width: 380px) { .set .picks .lbl { display: none; } }

.stage-cols { display: grid; gap: 26px; margin-top: 14px; }
.stage-col header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px; }
.stage-col header .stage-num { margin-top: 3px; }
.stage-col h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.stage-col h2 a { text-decoration: none; }
.addr { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.stage-sets { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.stage-sets .set { grid-template-columns: 46px 1fr auto; }
.stage-sets .t { font-family: var(--font-display); font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.stage-sets .t small { font-family: var(--font-body); font-size: 11px; font-weight: 800; color: var(--ink-3); margin-left: 2px; }
.stage-sets .set.picked-p::before, .stage-sets .set.picked-b::before { left: -10px; }

.grid-wrap { overflow-x: auto; margin: 10px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px; }
.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; table-layout: fixed; }
.grid th, .grid td { padding: 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.grid thead th { position: sticky; top: 0; background: var(--paper); font-size: 14px; font-weight: 800; line-height: 1.2; border-bottom: 2px solid var(--ink); }
.grid thead th a { text-decoration: none; display: block; margin-top: 6px; }
.grid thead th:first-child { width: 64px; }
.grid tbody th { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; }
.grid tbody th small { font-family: var(--font-body); font-size: 11px; font-weight: 800; color: var(--ink-3); margin-left: 2px; }
.grid td .artist { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none; margin-bottom: 8px; min-height: 2.4em; }
.grid td .badge-now { display: flex; margin: -4px 0 6px; }
.grid td.picked-p { background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 3px 0 var(--ink); }
.grid td.picked-b { background: color-mix(in srgb, var(--sun) 18%, transparent); box-shadow: inset 0 3px 0 var(--sun); }
.grid tr.is-now th { color: var(--coral); }
.empty-cell { color: var(--ink-3); }

/* ---------- my day ---------- */
.day { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.day::before { content: ''; position: absolute; left: 25px; top: 14px; bottom: 14px; border-left: 2px dashed var(--line); }
.day-slot { display: grid; grid-template-columns: 52px 1fr; gap: 12px; margin-bottom: 14px; position: relative; }
.day-slot > div { min-width: 0; }
.day-time { font-family: var(--font-display); font-size: 26px; line-height: 1; text-align: center; padding: 10px 0 6px; background: var(--paper); position: relative; z-index: 1; height: fit-content; font-variant-numeric: tabular-nums; }
.day-time small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); margin-top: 2px; }
.day-slot.is-now .day-time { color: var(--coral); }
.day-slot.is-past { opacity: .55; }
.walk-note { font-size: 13.5px; color: var(--ink-2); margin: 0 0 6px; display: flex; gap: 6px; align-items: center; }
.walk-note svg { width: 15px; height: 15px; }
.pick-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.pick-card + .pick-card { margin-top: 8px; }
.pick-label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.pick-label.p { color: var(--ink); }
.pick-label.b { color: #9a6a00; }
.pick-card .artist { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.15; text-decoration: none; margin: 2px 0 6px; }
.pick-card.backup { background: var(--paper-2); border-color: transparent; padding: 10px 14px; }
.pick-card.backup .artist { font-family: var(--font-body); font-weight: 700; font-size: 17px; }
.pick-card .btn-row { margin-top: 10px; }
.pick-card .chip .dot { width: 9px; height: 9px; }
.open-slot { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 12px 14px; color: var(--ink-2); font-size: 15px; }
.open-slot a { font-weight: 700; color: var(--ink); }

.panel { margin-top: 18px; }
.panel h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.panel p { margin: 6px 0; }
.panel hr { border: 0; border-top: 1px solid var(--line) !important; }
.field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; font-size: 15px; }
.field select { font: inherit; font-size: 16px; padding: 6px 10px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.status-ok { color: var(--sea); font-weight: 700; }
.notice { background: color-mix(in srgb, var(--sun) 16%, #fff); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.notice ol { margin: 6px 0 0; padding-left: 20px; }

/* ---------- stages ---------- */
.map-wrap { position: relative; margin: 6px 0 16px; }
#map { height: min(52vh, 440px); border-radius: var(--r); background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
#map .leaflet-tile-pane { filter: grayscale(1) contrast(.95) brightness(1.06); }
#map.leaflet-container { background: var(--paper-2); font-family: var(--font-body); }
.map-note { font-size: 13px; color: var(--ink-3); margin: 6px 2px 0; }
.pin-body {
  width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--stage); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: grid; place-items: center;
}
.pin-body span { transform: rotate(45deg); font-size: 13px; font-weight: 800; color: #fff; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2f7bf6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,123,246,.2); }
.leaflet-popup-content-wrapper { border-radius: 12px !important; }
.leaflet-popup-content { font-family: var(--font-body); font-size: 14px; margin: 10px 12px !important; }
.leaflet-popup-content b { font-size: 16px; }
.map-locate { position: absolute; right: 10px; top: 10px; z-index: 500; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.stage-list { display: grid; gap: 12px; }
.stage-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stage-card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.stage-card h3 a { text-decoration: none; }
.stage-card .addr { margin-top: 2px; }
.stage-card .dist { font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--sea); }
.stage-card .on { margin: 10px 0 12px; font-size: 15px; }
.stage-card .on b { font-weight: 700; }
.alt-link { font-size: 13px; color: var(--ink-3); }
.stage-card { border-top: 4px solid var(--stage); }

/* ---------- artist ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.artist-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 11vw, 64px); line-height: 1.05; margin: 10px 0 14px; }
.artist-hero .card.set { border-top: 4px solid var(--stage); padding: 14px 16px; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); }
.artist-hero .card.set .when-line { font-size: 19px; font-weight: 800; }
.artist-hero .card.set .badge-now { margin-left: 6px; }
.steps li span { padding-top: 5px; }
.artist-hero .section-title { margin-top: 28px; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.links .btn { justify-content: flex-start; min-height: 52px; }
.links .btn svg { width: 22px; height: 22px; }
.btn.spotify svg { color: #1db954; }
.btn.youtube svg { color: #e62117; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: 10px 0; border-top: 1px solid var(--line); }

/* ---------- years ---------- */
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin-top: 8px; }
.year-card { text-decoration: none; padding: 0; border: 0; background: none; }
.year-card img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; border-radius: 8px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.3); }
.year-card b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.1; margin-top: 10px; }
.year-card span { display: block; font-size: 14px; color: var(--ink-2); }
.year-layout { display: grid; gap: 22px; }
.flyer-card { margin: 0; padding: 0; border: 0; background: none; }
.flyer-card button { all: unset; cursor: zoom-in; display: block; }
.flyer-card img { border-radius: 6px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.3); }
.flyer-card figcaption { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.tape { display: none; }

/* ---------- misc ---------- */
.loading { display: grid; place-items: center; min-height: 60vh; font-weight: 700; color: var(--ink-2); }
.loading-wave { width: 80px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--sun), var(--coral)); animation: drift 1s linear infinite alternate; }
#lightbox { padding: 0; border: 0; border-radius: 10px; background: var(--paper); max-width: min(96vw, 900px); max-height: 92dvh; }
#lightbox::backdrop { background: rgba(23,23,26,.8); }
#lightbox img { max-height: 88dvh; width: auto; margin: 0 auto; }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: 18px; cursor: pointer; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 12px;
  font-size: 15px; font-weight: 600; width: max-content; max-width: calc(100vw - 32px); text-align: center;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast button { background: none; border: 0; color: var(--sun); font-weight: 800; cursor: pointer; margin-left: 10px; padding: 0; }
.footer { text-align: center; margin: 48px 0 12px; font-size: 13.5px; color: var(--ink-3); }
.footer a { color: var(--ink-2); }
.noscript { padding: 20px; }

/* ---------- wide screens ---------- */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  body { padding-bottom: 0; display: flex; flex-direction: column; }
  .topbar { order: 0; position: static; border-bottom: 0; }
  .tabbar { order: 1; position: sticky; top: 0; bottom: auto; height: auto; padding: 0; display: flex; justify-content: center; gap: 4px; border-top: 0; border-bottom: 1px solid var(--line); }
  .tabbar a { flex-direction: row; gap: 7px; font-size: 15px; padding: 12px 16px; }
  .tab-badge { position: static; }
  main { order: 2; width: 100%; }
  .toolbar { top: 49px; }
  .toast { bottom: 24px; }
  .home-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
  .home-side { margin-top: 30px; }
  .sets { grid-template-columns: repeat(2, 1fr); column-gap: 36px; }
  .stage-cols { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); column-gap: 36px; }
  .stage-list { grid-template-columns: repeat(2, 1fr); }
  .stages-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
  .stages-layout .map-wrap { position: sticky; top: 70px; }
  .year-layout { grid-template-columns: 340px 1fr; }
  .day-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
  .day-wrap > div > .panel:first-child { margin-top: 8px; }
  .grid-wrap { margin: 10px 0 0; padding: 0 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
