/* 321 Things — sherbet palette, generated in OKLCH and verified in sRGB gamut.
   Colour rule: the page and the no-image tiles carry colour; image tiles stay
   near-white so 108 uncontrolled event photos don't fight the chrome. */

:root {
  --ground:   #FEF9F1;   /* warm sunlit off-white, never pure white */
  --ground-2: #F9F4EC;
  --card:     #FFFDFA;
  --ink:      #192230;   /* deep blue-charcoal; >12:1 on every sherbet tint */
  --ink-soft: rgba(25,34,48,.62);
  --ink-hair: rgba(25,34,48,.13);

  /* Vibrant tier — accents only. NEVER white text on these (2.7–2.9:1 fails);
     ink on vivid, or white only on the deep tier at large sizes. */
  --vivid-orange: #E08520;  --deep-orange: #BE711A;
  --vivid-blue:   #40A4FA;  --deep-blue:   #1C8BDF;
  --vivid-purple: #BA7BFA;  --deep-purple: #AA4DF8;

  --gap: 18px;
  --radius: 16px;
  --lift: 0 1px 2px rgba(25,34,48,.06), 0 4px 14px rgba(25,34,48,.08);
  --lift-hi: 0 2px 6px rgba(25,34,48,.09), 0 14px 32px rgba(25,34,48,.14);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0 28px 72px;
  background: var(--ground); color: var(--ink);
  font-family: var(--sans);
  font-synthesis-weight: none;
}

/* ------------------------------------------------------------- masthead */
.masthead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  max-width: 1560px; margin: 0 auto; padding: 30px 0 16px;
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.masthead h1 {
  margin: 0; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800;
  letter-spacing: -.028em;
}
.tag { margin: 0; color: var(--ink-soft); font-size: 15px; }
.now { margin: 0; color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- filters */
.filters { max-width: 1560px; margin: 0 auto; padding: 16px 0 8px; }

.filters-panel summary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: var(--card); box-shadow: var(--lift);
  list-style: none;               /* the disclosure triangle is drawn below instead */
}
/* Firefox draws its own marker even with list-style: none on the <summary>. */
.filters-panel summary::-webkit-details-marker { display: none; }
.filters-panel summary::marker { content: ""; }
.filters-panel summary::after {
  content: "▾"; font-size: 11px; color: var(--ink-soft); transition: transform .15s ease;
}
.filters-panel[open] summary::after { transform: rotate(180deg); }
.filters-panel summary .lab { width: auto; }
.filters-state { font-size: 13px; color: var(--ink-soft); }
.filters-panel .row { margin: 14px 0 0 2px; }
.filters-panel .row:first-of-type { margin-top: 16px; }

.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.lab {
  width: 52px; flex: none; font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft);
}
.chip-btn {
  font: inherit; font-size: 13.5px; line-height: 1;
  display: inline-flex; align-items: center; text-decoration: none;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--ink-hair);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.chip-btn:hover { box-shadow: var(--lift); transform: translateY(-1px); }
.chip-btn i { font-style: normal; color: var(--ink-soft); font-size: 12px; margin-left: 4px; }
/* Ink on vivid, never white — the vivid tier fails contrast against white. */
.chip-btn.on {
  background: var(--vivid-blue); border-color: transparent;
  font-weight: 650; box-shadow: var(--lift);
}
.chip-btn.on i { color: rgba(25,34,48,.7); }
.chip-btn.tiny { padding: 5px 10px; font-size: 12px; }

.empty { max-width: 1560px; margin: 40px auto; color: var(--ink-soft); }
.empty a { color: var(--deep-blue); }

/* ----------------------------------------------------------------- wall */
.wall {
  display: flex; align-items: flex-start; gap: var(--gap);
  max-width: 1560px; margin: 22px auto 0;
}
.wall .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }

.tile {
  position: relative; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--lift);
  overflow: hidden; isolation: isolate;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--lift-hi); }
.tile .hit { position: absolute; inset: 0; z-index: 3; }
.tile.no-shot { background: var(--tint); }

.shot { width: 100%; background: var(--ground-2); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Unmeasured ratio — the only tiles that can crop. */
.shot-guessed img { object-position: center top; }

.body { padding: 13px 15px 14px; }
.title {
  margin: 0; font-size: 16.5px; line-height: 1.2; font-weight: 680;
  letter-spacing: -.012em; text-wrap: pretty;
}
.venue {
  margin: 4px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.chips { margin: 9px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 999px;
  background: rgba(25,34,48,.07); color: rgba(25,34,48,.72);
}
.chip-series { background: rgba(25,34,48,.1); }
.chip-free   { background: var(--vivid-orange); color: var(--ink); }
.chip-tbc    { background: transparent; box-shadow: inset 0 0 0 1px rgba(25,34,48,.22); }

/* ---- 1b ticket stub: one silhouette for both variants ------------------- */
.t1b .stub {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 9px 15px; background: var(--ink); color: var(--ground);
}
.t1b.no-shot .stub { background: rgba(25,34,48,.9); }
.t1b .stub .d {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; opacity: .82;
}
.t1b .stub .t {
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------------------------------------------------------------- footer */
.foot {
  max-width: 1560px; margin: 30px auto 0; text-align: center;
  color: var(--ink-soft); font-size: 13.5px;
}
#sentinel { height: 1px; }

@media (max-width: 560px) {
  body { padding: 0 14px 56px; }
  .lab { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .chip-btn { transition: none; }
  .tile:hover { transform: none; }
}
