/* Tío Tóto: Version 2, "The band is the brand." Characters lead every section.
   White/cream base throughout; color lives in characters, bubbles, cards and buttons. */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font: 400 1.125rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
figure { margin: 0; }
section { padding-block: clamp(3rem, 8vw, 6rem); padding-inline: max(1rem, calc((100% - 72rem) / 2)); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--charcoal); color: var(--cream); padding: .5rem 1rem; z-index: 10; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: .75rem max(1rem, calc((100% - 72rem) / 2)); background: var(--cream-hi); border-bottom: 3px solid var(--charcoal); }
.logo { display: block; line-height: 0; transition: transform .15s; }
.logo img { width: 110px; }
.logo:hover { transform: rotate(-3deg) scale(1.05); }
.site-header ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.site-header nav a:not(.btn) { color: var(--charcoal); text-decoration: none; font-weight: 700; }
.site-header nav a:not(.btn):hover { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 800; text-decoration: none; padding: .65em 1.3em;
  border: 3px solid var(--charcoal); border-radius: .9rem; box-shadow: 0 5px 0 var(--charcoal);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--charcoal); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--charcoal); }
.btn-lg { font-size: 1.2rem; }
.btn-yellow { background: var(--yellow); color: var(--charcoal); }
.btn-white { background: var(--cream-hi); color: var(--charcoal); }
.btn-purple { background: var(--purple-lo); color: var(--cream); }   /* 8.5:1 */
.btn-charcoal { background: var(--charcoal); color: var(--cream); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-row.center { justify-content: center; }

/* ---------- Speech bubbles ---------- */
.bubble {
  position: relative; display: inline-block; margin: 0; padding: .35em .8em;
  font-weight: 900; font-size: 1.15rem; line-height: 1.2; white-space: nowrap;
  color: var(--charcoal); background: var(--cream-hi);
  border: 3px solid var(--charcoal); border-radius: 1.2em;
}
.bubble::after { /* tail */
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 20px; height: 20px; margin-left: -10px;
  background: inherit; border-right: 3px solid var(--charcoal); border-bottom: 3px solid var(--charcoal);
  transform: rotate(45deg) skew(10deg, 10deg); border-radius: 0 0 4px 0;
}
.bubble-lg { font-size: clamp(1.4rem, 3vw, 2rem); }

/* Flip-to-English: hover (mouse), focus (keyboard) or tap (JS toggles .flipped).
   Both languages stay in the DOM for screen readers and search; we only swap what's visible. */
button.bubble { font-family: inherit; cursor: pointer; transition: transform .15s; }
button.bubble:hover { transform: rotate(-3deg) scale(1.05); }
.bubble .en { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) {
  button.bubble:hover .es { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  button.bubble:hover .en { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
}
button.bubble:focus-visible .es, button.bubble.flipped .es { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button.bubble:focus-visible .en, button.bubble.flipped .en { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
button.bubble:hover .en, button.bubble.flipped .en, button.bubble:focus-visible .en { font-style: italic; }
@media (prefers-reduced-motion: reduce) { button.bubble { transition: none; } button.bubble:hover { transform: none; } }
.bubble-yellow { background: var(--yellow); }
.bubble-aqua   { background: var(--aqua); }
.bubble-red    { background: var(--red-hi); }
.bubble-purple { background: var(--purple-hi); }
.bubble-mint   { background: var(--mint); }

/* ---------- POP display words ---------- */
.pop {
  display: block; font-weight: 900; letter-spacing: -.02em; line-height: 1;
  font-size: clamp(2.6rem, 8vw, 5rem); margin-bottom: .2em;
  -webkit-text-stroke: .05em var(--charcoal); paint-order: stroke fill;
}
.pop-aqua   { color: var(--aqua);   text-shadow: .06em .06em 0 var(--charcoal); }
.pop-purple { color: var(--purple); text-shadow: .06em .06em 0 var(--charcoal); }

/* ---------- HERO: stage + lineup ---------- */
.stage { text-align: center; padding-bottom: 3rem; overflow: hidden;
  background:
    radial-gradient(circle at 12% 70%, var(--mint) 0 7rem, transparent 7rem),
    radial-gradient(circle at 88% 64%, var(--lavender) 0 8rem, transparent 8rem),
    radial-gradient(circle at 50% 78%, var(--yellow-hi) 0 12rem, transparent 12rem),
    var(--cream);
}
.stage-intro { max-width: 52rem; margin: 0 auto; }
.stage-logo { width: 280px; display: block; margin: 0 auto .5rem; }
.stage h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
.stage h1 mark { background: linear-gradient(transparent 55%, var(--yellow) 55% 92%, transparent 92%); color: inherit; }
.lede { font-size: 1.25rem; color: var(--charcoal-hi); max-width: 40rem; margin: 0 auto; }

.lineup {
  list-style: none; margin: 2.5rem auto 0; padding: 0; max-width: 72rem;
  display: flex; align-items: flex-end; justify-content: center;
}
.player { position: relative; display: flex; flex-direction: column; align-items: center; margin-inline: -1.2rem; }
.player img { display: block; width: 100%; height: auto; transition: transform .2s; }
.player .bubble { margin-bottom: 1.2rem; z-index: 2; }
.player:hover img:not(.tio-photo) { transform: translateY(-10px) rotate(-3deg); }
.p-octopus { width: 13%; }
.p-hippo   { width: 14%; }
.p-tio     { width: 24%; z-index: 3; margin-inline: .5rem; }
.p-dino    { width: 15%; }
.p-drums   { width: 18%; }
.p-cat     { width: 13%; }
.tio-photo {
  aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%;
  border: 4px solid var(--charcoal); border-radius: 50% 50% 1rem 1rem / 34% 34% 1rem 1rem;
  box-shadow: 0 0 0 8px var(--cream-hi), 0 0 0 11px var(--charcoal);
  background: var(--cream-hi);
}
.stage-floor { height: 14px; max-width: 72rem; margin: -4px auto 2.5rem; background: var(--charcoal); border-radius: 999px; }

@media (max-width: 800px) {
  .lineup { flex-wrap: wrap; row-gap: 1.5rem; }
  .player { margin-inline: 0; }
  .p-tio { order: -1; width: 70%; margin-bottom: 1rem; }
  .p-octopus, .p-hippo, .p-dino, .p-drums, .p-cat { width: 33%; }
  .player .bubble { font-size: .95rem; }
  .stage-floor { display: none; }
}

/* ---------- Hosted sections: big character + content ---------- */
.hosted { display: grid; gap: 2rem 4rem; align-items: center; }
.host-left  { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.host-right { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.host { display: flex; flex-direction: column; align-items: center; }
.host .bubble { margin-bottom: 1.4rem; }
.host img { width: min(100%, 300px); transition: transform .2s; }
.host:hover img { transform: rotate(-3deg) scale(1.03); }
@media (max-width: 800px) {
  .host-left, .host-right { grid-template-columns: 1fr; }
  .host { order: -1; }
  .host img { width: min(60%, 220px); }
}

/* ---------- Next show ticket ---------- */
.next-show { background: var(--cream-hi); border-block: 3px solid var(--charcoal); }
.ticket {
  background: var(--aqua-hi); border: 3px solid var(--charcoal); border-radius: 1.25rem; padding: 2rem 2.25rem;
  box-shadow: 10px 10px 0 var(--charcoal); max-width: 36rem;
  background-image: radial-gradient(circle, var(--aqua) 2px, transparent 2.5px); background-size: 18px 18px;
}
.ticket-label { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.ticket-date { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; line-height: 1.05; margin: .25rem 0; }
.ticket-venue { font-size: 1.25rem; font-weight: 700; margin: 0; }
.ticket-note { margin: .25rem 0 1.25rem; }

/* ---------- Steps ---------- */
.step-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); counter-reset: none; }
.step { position: relative; background: var(--cream-hi); border: 3px solid var(--charcoal); border-radius: 1.25rem; padding: 2.5rem 1.5rem 1.5rem; }
.step-num {
  position: absolute; top: -1.6rem; left: 1.25rem; width: 3.2rem; height: 3.2rem; display: grid; place-items: center;
  font-weight: 900; font-size: 1.6rem; border: 3px solid var(--charcoal); border-radius: 50%;
}
.s-yellow { box-shadow: 8px 8px 0 var(--yellow); } .s-yellow .step-num { background: var(--yellow); }
.s-aqua   { box-shadow: 8px 8px 0 var(--aqua); }   .s-aqua .step-num   { background: var(--aqua); }
.s-red    { box-shadow: 8px 8px 0 var(--red); }    .s-red .step-num    { background: var(--red-hi); }
.step h3 { font-size: 1.35rem; }
.step h3 span { display: block; color: var(--purple); font-size: .85em; }
.step p { margin: 0; }

/* ---------- Video ---------- */
.video-facade {
  aspect-ratio: 16/9; display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, var(--lavender), var(--lavender) 22px, var(--lavender-hi) 22px, var(--lavender-hi) 44px);
  border: 3px solid var(--charcoal); border-radius: 1.25rem; box-shadow: 10px 10px 0 var(--purple);
  font-weight: 900; font-size: 1.5rem;
}

/* ---------- Presenters ---------- */
.presenters { background: var(--cream-hi); border-block: 3px solid var(--charcoal); }
.presenter-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr; align-items: stretch; margin-top: 1.5rem; }
.notice { border: 3px solid var(--charcoal); border-radius: 1.25rem; padding: 2rem; background: var(--lavender-hi); box-shadow: 10px 10px 0 var(--purple-lo); }
.notice-tag { display: inline-block; margin: 0 0 .75rem; padding: .2em .8em; background: var(--purple-lo); color: var(--cream); font-weight: 800; border-radius: 999px; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.notice h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.big-num { color: var(--purple-lo); font-size: 1.5em; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stats li { border: 3px solid var(--charcoal); border-radius: 1.25rem; padding: 1rem; background: var(--cream); display: flex; flex-direction: column; justify-content: center; font-weight: 700; }
.stats strong { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; line-height: 1.05; }
.stats li:nth-child(1) strong { color: var(--red-lo); }
.stats li:nth-child(2) strong { color: var(--purple-lo); }
.stats li:nth-child(3) strong { color: var(--aqua-lo); }
.stats li:nth-child(4) strong { color: var(--charcoal); }
.trusted { margin: 2rem 0 0; text-align: center; color: var(--charcoal-hi); }
@media (max-width: 800px) { .presenter-grid { grid-template-columns: 1fr; } }

/* ---------- Families ---------- */
.section-lede { font-size: 1.3rem; font-weight: 700; max-width: 38rem; }
.mini-cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.mini-cards li { border: 3px solid var(--charcoal); border-radius: 1rem; padding: 1rem 1.25rem; background: var(--cream-hi); }
.mini-cards li:nth-child(1) { border-left: 14px solid var(--purple); }
.mini-cards li:nth-child(2) { border-left: 14px solid var(--aqua); }
.mini-cards li:nth-child(3) { border-left: 14px solid var(--yellow); }
.mini-cards h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.mini-cards p { margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border: 3px solid var(--charcoal); border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 1rem; background: var(--cream-hi); }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details[open] { box-shadow: 6px 6px 0 var(--aqua); }
.faq details p { margin: .75rem 0 0; }

/* ---------- Closer ---------- */
.closer { background: var(--cream-hi); border-top: 3px solid var(--charcoal); }
.closer h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 3rem 1rem; border-top: 3px solid var(--charcoal); }
.site-footer img { width: 140px; }
.site-footer a { color: var(--charcoal); font-weight: 700; }
.outro { font-size: 1.4rem; font-weight: 800; }
.fine { font-size: .95rem; color: var(--charcoal-hi); }

@media (prefers-reduced-motion: reduce) {
  .btn, .logo, .player img, .host img { transition: none; }
  .player:hover img, .host:hover img { transform: none !important; }
}

/* A flipped/hovered bubble always sits above neighbours (e.g. Tío's photo in the lineup) */
.player:has(button.bubble:hover), .player:has(button.bubble.flipped), .player:has(button.bubble:focus-visible) { z-index: 5; }


/* Live photo (shared: book, shows) */
.live { padding-block: 0 2rem; }
.live-photo { margin: 0; position: relative; }
.live-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1068; object-fit: cover; border: 4px solid var(--charcoal); border-radius: 1.5rem; box-shadow: 12px 12px 0 var(--yellow), 12px 12px 0 4px var(--charcoal); }
.live-photo figcaption { position: absolute; left: 1.25rem; bottom: 1.25rem; background: var(--cream-hi); border: 3px solid var(--charcoal); border-radius: 999px; padding: .35em 1em; font-weight: 700; }
.live-photo figcaption span { color: var(--purple-lo); font-weight: 900; margin-right: .35em; }
@media (max-width: 600px) { .live-photo figcaption { position: static; display: inline-block; margin-top: 1rem; } }
.live-photo.banner img { aspect-ratio: 21 / 9; object-position: 50% 85%; }
@media (max-width: 600px) { .live-photo.banner img { aspect-ratio: 4 / 3; } }

/* YouTube facade */
.video-facade[data-yt] { display: block; overflow: hidden; padding: 0; background: var(--charcoal); }
.video-facade iframe, .yt-link, .yt-link img { display: block; width: 100%; height: 100%; border: 0; }
.yt-link { position: relative; }
.yt-link img { object-fit: cover; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  background: var(--yellow); border: 4px solid var(--charcoal); border-radius: 50%; box-shadow: 0 6px 0 var(--charcoal);
  transition: transform .15s;
}
.yt-play::after { content: ""; position: absolute; left: 36px; top: 26px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent var(--charcoal); }
.yt-link:hover .yt-play, .yt-link:focus-visible .yt-play { transform: scale(1.1) rotate(-4deg); }
.video-credit { margin: 1.25rem 0 0; font-size: .95rem; color: var(--charcoal-hi); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .yt-play { transition: none; } }
.live-photo.banner-stage img { aspect-ratio: 1600 / 1221; }
.live-photo.banner-stage figcaption { bottom: auto; top: 1.25rem; }
@media (max-width: 600px) { .live-photo.banner-stage img { aspect-ratio: 4 / 3; } }
.stat-sub { display: block; font-size: .8rem; font-weight: 600; color: var(--charcoal-hi); margin-top: .2rem; }
.live-photo.native-1024 { max-width: 1024px; margin-inline: auto; }

/* Tips (shared) */
.btn-venmo { background: var(--aqua); color: var(--charcoal); }  /* charcoal on aqua 6.2:1 */
.tip-line { margin: .25rem 0 1rem; }
.tip-line a { display: inline-block; font-weight: 800; color: var(--charcoal); text-decoration: none; padding: .35em 1em; border: 2px solid var(--charcoal); border-radius: 999px; background: var(--yellow-hi); }
.tip-line a:hover { background: var(--yellow); }
.tip-band { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2rem; align-items: center; border: 3px solid var(--charcoal); border-radius: 1.25rem; padding: 1.25rem 1.75rem; background: var(--yellow-hi); box-shadow: 8px 8px 0 var(--charcoal); }
.tip-band img { width: 110px; height: auto; }
.tip-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .25rem; }
.tip-band p { margin: 0; }
@media (max-width: 700px) { .tip-band { grid-template-columns: 1fr; text-align: center; } .tip-band img { margin: 0 auto; } }
.mini-cards li:nth-child(4) { border-left: 14px solid var(--red); }

/* Newsletter (home) */
.newsletter { border-top: 3px solid var(--charcoal); }
.news-card { max-width: 52rem; margin-inline: auto; text-align: center; border: 3px solid var(--charcoal); border-radius: 1.5rem; background: var(--cream-hi); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 10px 10px 0 var(--aqua), 10px 10px 0 3px var(--charcoal); }
.news-card h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.news-card p { font-size: 1.15rem; max-width: 36rem; margin-inline: auto; }
.beehiiv-embed { display: block; width: 100%; max-width: 784px; height: 361px; margin: 0 auto; border: 0; background: transparent; }
