/* The Sunday Show — colours and type taken from the weekly flyer:
   black space, flyer yellow, orange/gold rings, Black Circle teal and purple. */

:root {
  --space: #121214;
  --space-2: #1c1c21;
  --ink: #111;
  --cream: #f6efdc;
  --cream-2: #e9dfc2;
  --yellow: #ffd23f;
  --gold: #f2a01f;
  --orange: #ff8a1e;
  --red: #d9341f;
  --red-deep: #9e2118;
  --teal: #3fd6cb;
  --purple: #7b5cc4;
  --green: #4caf6a;
  --muted: #6c6658;
  /* dark surfaces (easier on the eyes than cream panels) */
  --card: #24212b;
  --card-2: #2e2a36;
  --field: #17161c;
  --line: #4a4456;
  --line-soft: #363240;
  --dim: #b3ab9b;
  --text: #f6efdc;
  --radius: 14px;
  --outline: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --display: 'Luckiest Guy', 'Arial Black', sans-serif;
  --label: 'Anton', 'Impact', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--space);
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 120px, #fff8 50%, transparent 51%),
    radial-gradient(2px 2px at 160px 60px, #ffffffb0 50%, transparent 51%),
    radial-gradient(1px 1px at 230px 170px, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60px 210px, #fff8 50%, transparent 51%);
  background-size: 260px 240px;
  color: var(--text);
  font: 16px/1.5 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar / tabs ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--space) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 24px; text-decoration: none; white-space: nowrap; padding-top: 4px;
}
/* Flyer-style lettering: yellow-to-gold fill, red then black offset shadow. */
.brand span, .display {
  background: linear-gradient(180deg, #fff6b0 0%, #ffd23f 48%, #f2a01f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px #3a1a00;
  filter: drop-shadow(2px 2px 0 var(--red)) drop-shadow(2px 2px 0 #000);
}
.brand img { width: 96px; height: auto; margin: -10px 0 -12px; filter: drop-shadow(2px 2px 0 #0008); }
.tabs { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.tab {
  font-family: var(--label); font-size: 17px; letter-spacing: .8px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; text-decoration: none;
  color: var(--cream); border: 2px solid transparent; background: none; cursor: pointer; text-shadow: 2px 2px 0 #000;
}
.tab:hover { border-color: var(--cream-2); }
.tab[aria-current="page"] { background: linear-gradient(180deg, #ffe98a, var(--yellow) 50%, #e9a800); color: var(--ink); border-color: #000; text-shadow: 0 1px 0 #fff8;
  box-shadow: inset 0 2px 0 #fff9, inset 0 -3px 0 #0003, 0 3px 0 #000, 0 5px 10px #0007; }
.tab.private::before { content: '🔒 '; font-size: 12px; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; padding: 0 .08em .08em 0;
  filter: drop-shadow(3px 3px 0 var(--red)) drop-shadow(3px 3px 0 #000); }
h1.display { font-size: clamp(44px, 8vw, 84px); }
h2.display { font-size: clamp(30px, 5vw, 44px); margin-bottom: 18px; }
h3 { font-family: var(--label); font-weight: 400; font-size: 22px; margin: 0 0 6px; letter-spacing: .6px; text-transform: uppercase; color: var(--yellow); text-shadow: 2px 2px 0 #000; }
.kicker { font-family: var(--label); color: var(--teal); letter-spacing: 2px; text-transform: uppercase; font-size: 15px; margin: 0 0 8px; text-shadow: 2px 2px 0 #000; }
.muted { color: #a9a290; }

/* ---------- panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--card-2), var(--card) 120px); color: var(--cream);
  border: 2px solid #000; border-radius: var(--radius);
  box-shadow: inset 0 1px 0 #ffffff14, 6px 6px 0 #000, 0 10px 30px #0006;
  padding: 20px;
}
.panel a { color: var(--yellow); }
.panel .muted { color: var(--dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--label); font-size: 18px; letter-spacing: .8px; text-transform: uppercase; text-decoration: none;
  --b1: #fff0a0; --b2: var(--yellow); --b3: #e3a100;
  background: linear-gradient(180deg, var(--b1) 0%, var(--b2) 48%, var(--b3) 100%); color: var(--ink);
  border: 2px solid #000; border-radius: 999px; text-shadow: 0 1px 0 #ffffff90;
  box-shadow: inset 0 2px 0 #ffffffa0, inset 0 -4px 0 #00000030, 0 4px 0 #000, 0 8px 16px #0008;
  padding: 9px 22px; cursor: pointer; transition: transform .08s, box-shadow .08s, filter .08s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 2px 0 #ffffffa0, inset 0 -4px 0 #00000030, 0 6px 0 #000, 0 12px 20px #0008; }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #ffffff60, inset 0 -2px 0 #00000030, 0 1px 0 #000, 0 3px 6px #0008; }
.btn.red { --b1: #ffc48a; --b2: var(--orange); --b3: #d45f08; }
.btn.teal { --b1: #a6f1ea; --b2: var(--teal); --b3: #1f9d93; }
.btn.ghost { --b1: #4a4454; --b2: #36313f; --b3: #25212c; color: var(--cream); text-shadow: 0 1px 0 #000; box-shadow: inset 0 1px 0 #ffffff30, inset 0 -3px 0 #00000040, 0 4px 0 #000, 0 8px 16px #0008; }
.btn.small { font-size: 15px; padding: 5px 14px; }
.btn:disabled { opacity: .55; cursor: wait; }

/* ---------- home: the flyer + this week's info ---------- */
.wrap.wide { max-width: 1380px; padding: 0 clamp(16px, 3vw, 40px); }
.home-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr);
  gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: 32px; padding-bottom: 20px;
}
.flyer-holder { width: 100%; max-width: 760px; }
.tap-hint { margin: 12px 0 0; color: var(--dim); font-size: 14px; text-align: center; }
.home-info { display: grid; gap: 14px; align-content: center; }
.home-info .kicker { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: 2.5px; }
.show-when { font-family: var(--label); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin: 0; text-shadow: 2px 2px 0 #000; }
.big-time { font-size: clamp(54px, 6.5vw, 96px); }
.info-list { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 14px; font-size: clamp(19px, 1.6vw, 23px); }
.info-list li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: baseline; }
.info-list b { font-family: var(--label); font-weight: 400; font-size: 1.15em; letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow); text-shadow: 2px 2px 0 #000; }
.follow { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.home-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- coming up ---------- */
.coming { padding-top: 40px; padding-bottom: 20px; }
.coming h2 { font-size: clamp(42px, 5vw, 72px); margin-bottom: 26px; }
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.up-card {
  position: relative; display: grid; gap: 14px; justify-items: center; text-align: center;
  background: linear-gradient(180deg, var(--card-2), var(--card) 160px); border: 2px solid #000; border-radius: 18px;
  box-shadow: inset 0 1px 0 #ffffff14, 6px 6px 0 #000, 0 12px 30px #0006; padding: 22px 18px 20px;
}
.up-card.off { opacity: .6; align-content: center; min-height: 220px; }
.up-date {
  position: absolute; top: 12px; left: 12px; z-index: 2; text-align: center; line-height: 1;
  background: linear-gradient(180deg, #fff0a0, var(--yellow) 50%, #e3a100); color: var(--ink);
  border: 2px solid #000; border-radius: 12px; padding: 6px 10px 7px; box-shadow: 0 3px 0 #000;
  font-family: var(--display); font-size: 22px;
}
.up-date span { display: block; font-family: var(--label); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 3px; }
.up-photo {
  width: min(100%, 210px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  border: 7px solid var(--gold); box-shadow: 0 0 0 3px #5a1a10, 0 10px 24px #000a;
  background: radial-gradient(circle at 35% 30%, #f7c96a, #c8692a);
  transition: transform .15s;
}
a.up-photo:hover { transform: scale(1.04) rotate(-2deg); }
.up-photo img { width: 100%; height: 100%; object-fit: cover; }
.up-photo .face { width: 100%; height: 100%; border: 0; box-shadow: none; font-size: 54px; }
.up-photo.tba { font-family: var(--display); font-size: 40px; color: #7a3b12; }
.up-body { display: grid; gap: 6px; justify-items: center; }
.up-role { font-family: var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--teal); font-size: 14px; text-shadow: 1px 1px 0 #000; }
.up-name {
  font-family: 'Flyer Hand', 'Covered By Your Grace', cursive; text-transform: uppercase; font-size: 30px; line-height: 1;
  background: #fff; color: #111; border: 3px solid #111; box-shadow: 2px 3px 0 #111; padding: 6px 14px 2px;
  -webkit-text-stroke: .04em #111; paint-order: stroke fill; transform: rotate(-1deg);
}
.up-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.up-links a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--cream); font-weight: 700; font-size: 14px;
  background: linear-gradient(180deg, #4a4454, #2c2833); border: 2px solid #000; border-radius: 999px; padding: 5px 12px 5px 9px;
  box-shadow: inset 0 1px 0 #ffffff30, 0 3px 0 #000;
}
.up-links a:hover { color: var(--yellow); transform: translateY(-1px); }
.up-links svg { width: 18px; height: 18px; }
.up-more { color: var(--dim); font-size: 14px; }
.up-off { font-family: var(--label); font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }

/* ---------- submit ---------- */
.submit-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 36px; padding-bottom: 40px; }
.submit-intro { position: sticky; top: 110px; display: grid; gap: 16px; }
.submit-intro .display { font-size: clamp(48px, 6vw, 88px); }
.lead { font-size: 19px; margin: 0; }
.submit-logo { width: min(100%, 380px); margin-top: 8px; filter: drop-shadow(0 12px 24px #000a); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
label.field, .field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.field small { font-weight: 400; color: var(--dim); }
.input, .form input[type=text], .form input[type=email], .form input[type=url], .form input[type=date], .form input[type=password], .form textarea, .form select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line);
  background: var(--field); color: var(--cream); box-shadow: inset 0 2px 4px #0008;
}
.form input::placeholder, .form textarea::placeholder, .input::placeholder { color: #7d7688; }
.form input[type=date], .input { color-scheme: dark; }
.form textarea { min-height: 96px; resize: vertical; }
.input:focus, .form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.drop {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  border: 2px dashed var(--line); border-radius: 12px; padding: 12px; background: var(--field); cursor: pointer;
}
.drop .face { width: 96px; height: 96px; font-size: 30px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 14px; border-radius: 10px; border: 2px solid; font-weight: 600; }
.alert.err { background: #3d1916; border-color: var(--red); color: #ffd6d0; }
.alert.ok { background: #183222; border-color: var(--green); color: #d3f5dc; }
.handle { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; background: var(--field); overflow: hidden; box-shadow: inset 0 2px 4px #0008; }
.handle span { padding: 0 4px 0 12px; color: var(--muted); font-weight: 700; }
.form .handle input { border: 0; border-radius: 0; padding-left: 2px; box-shadow: none; }
.form .handle:focus-within { outline: 3px solid var(--yellow); outline-offset: 1px; }
.form .handle input:focus { outline: none; }

/* availability picker */
.avail { display: grid; gap: 10px; }
.avail-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.avail-opts label {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--field); font-weight: 700; font-size: 14px;
}
.avail-opts input { accent-color: var(--orange); }
.avail-opts label:has(input:checked) { background: linear-gradient(180deg, #fff0a0, var(--yellow) 50%, #e3a100); color: var(--ink); border-color: #000; box-shadow: 0 3px 0 #000; }
.ranges { display: grid; gap: 10px; }
.range { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 12px; align-items: end; }
.range .x { background: none; border: 0; color: var(--cream); font-size: 28px; line-height: 1; cursor: pointer; padding-bottom: 8px; }
.sundays { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sundays label {
  display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 600;
  border: 2px solid var(--line-soft); border-radius: 10px; padding: 6px 10px; background: var(--field);
}
.sundays label:has(input:checked) { border-color: var(--yellow); background: #3a3220; color: var(--yellow); }
.sundays input { accent-color: var(--orange); }

/* faces (initials when there's no photo) */
.face {
  border-radius: 50%; border: 3px solid #000; box-shadow: 0 0 0 2px var(--gold); overflow: hidden; background: var(--yellow);
  display: grid; place-items: center; font-family: var(--display); color: var(--ink);
  font-size: clamp(14px, 4vw, 30px); flex: none;
}
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.c1 { background: var(--teal); } .face.c2 { background: var(--purple); color: var(--cream); }
.face.c3 { background: var(--orange); } .face.c4 { background: var(--gold); }

/* ---------- footer ---------- */
footer { border-top: 3px solid var(--ink); background: var(--space-2); padding: 28px 0 36px; margin-top: 40px; color: #b9b2a0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* ---------- toasts ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 99;
  background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--yellow); font-weight: 600; max-width: calc(100% - 32px); text-align: center;
}
.toast.err { border-color: var(--red); }
.skeleton { color: var(--muted); padding: 24px 0; }

@media (max-width: 820px) {
  .row2, .row3 { grid-template-columns: 1fr; }
  .tabs { margin-left: 0; width: 100%; }
  .home-grid, .submit-grid { grid-template-columns: 1fr; padding-top: 18px; }
  .submit-intro { position: static; }
  .submit-logo { display: none; }
  .home-info { text-align: center; justify-items: center; }
  .info-list { text-align: left; }
  .topbar .wrap { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
}
@media (max-width: 420px) {
  .tab { padding: 5px 11px; font-size: 15px; }
  .info-list li { grid-template-columns: 1fr; gap: 0; }
  .upcoming-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .up-name { font-size: 22px; }
  .up-date { font-size: 18px; }
}

.home .topbar { position: static; }

/* ---------- gallery ---------- */
.gallery-page { padding-top: 32px; padding-bottom: 40px; }
.gallery-page h1 { font-size: clamp(48px, 6vw, 88px); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { border: 2px solid var(--line); background: var(--field); color: var(--cream); border-radius: 999px; padding: 6px 16px; cursor: pointer; font-weight: 700; font-size: 14px; }
.chip[aria-pressed="true"] { background: linear-gradient(180deg, #fff0a0, var(--yellow) 50%, #e3a100); color: var(--ink); border-color: #000; box-shadow: 0 3px 0 #000; }
.gallery { columns: 4 260px; column-gap: 16px; }
.g-item { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 2px solid #000; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--card); box-shadow: 5px 5px 0 #000; break-inside: avoid; transition: transform .15s; }
.g-item:hover { transform: translateY(-3px) rotate(-.5deg); }
.g-item img { width: 100%; height: auto; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: #000d; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px #000; }
.lb-close, .lb-nav { position: fixed; background: #000a; color: #fff; border: 2px solid #fff4; border-radius: 999px; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }

/* ---------- past shows ---------- */
.year-tabs { margin-bottom: 22px; }
.year-tabs .chip { font-family: var(--label); font-size: 18px; letter-spacing: 1px; padding: 6px 18px; }
.year-tabs .chip[aria-selected="true"] { background: linear-gradient(180deg, #fff0a0, var(--yellow) 50%, #e3a100); color: var(--ink); border-color: #000; box-shadow: 0 3px 0 #000; }
.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.past-card { background: linear-gradient(180deg, var(--card-2), var(--card) 120px); border: 2px solid #000; border-radius: 16px; box-shadow: 5px 5px 0 #000; overflow: hidden; }
.past-card.open { box-shadow: 5px 5px 0 #000, 0 0 0 3px var(--yellow); }
.past-head { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 14px; cursor: pointer; }
.past-head:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.past-photo { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 5px solid var(--gold); box-shadow: 0 0 0 2px #5a1a10; background: radial-gradient(circle at 35% 30%, #f7c96a, #c8692a); }
.past-photo img { width: 100%; height: 100%; object-fit: cover; }
.past-photo .face { width: 100%; height: 100%; border: 0; box-shadow: none; font-size: 28px; }
.past-info { display: grid; gap: 4px; min-width: 0; }
.past-date { font-family: var(--label); letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); font-size: 14px; }
.past-name { font-family: 'Flyer Hand', 'Covered By Your Grace', cursive; text-transform: uppercase; font-size: 26px; line-height: 1.05; color: var(--cream); -webkit-text-stroke: .03em var(--cream); }
.past-count { color: var(--dim); font-size: 14px; }
.chev { display: inline-block; transition: transform .15s; }
.past-card.open .chev { transform: rotate(180deg); }
.past-lineup { border-top: 2px dashed var(--line-soft); padding: 12px 16px 16px; }
.past-lineup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.past-lineup li { display: grid; grid-template-columns: 82px 1fr; gap: 8px; font-size: 16px; }
.past-lineup .r { font-family: var(--label); letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); font-size: 13px; padding-top: 2px; }
.past-lineup a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--yellow); }
.past-more { text-align: center; margin-top: 20px; }
