/* ============================================================================
 * WIT'S END COMEDY CLUB — COMEDIAN PROFILE PAGE STYLES
 * ----------------------------------------------------------------------------
 * Page-specific styles for /comedians/<slug> (individual comedian bio + their shows).
 * Loaded alongside witsend.css.
 * ============================================================================ */

/* Tokens come from tokens.css + the tenant theme, both loaded first. */
*{box-sizing:border-box;margin:0;padding:0;touch-action:manipulation}  /* kills double-tap zoom; pinch-zoom still works */
.nav-logo{font-family:var(--font-wordmark);font-size:1.4rem;color:var(--wordmark-ink);text-decoration:none;background:var(--wordmark-plate);padding:var(--wordmark-plate-pad);border-radius:3px;display:inline-block;line-height:1.05}
.nav-cta{padding:9px 22px;background:var(--red);color:var(--on-accent) !important;border-radius:4px}
.mob-menu{display:none;position:fixed;inset:0;z-index:99;background:var(--bg);padding:90px 32px 48px;flex-direction:column;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}

/* HERO */
.hero{padding-top:74px;min-height:540px;display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,36%,600px);position:relative;overflow:hidden;border-bottom:1px solid var(--border)}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 68% 38%,rgba(var(--red-rgb),.22) 0%,transparent 64%);pointer-events:none}
/* Cap the text block so it doesn't drift apart from the photo on very wide
   screens; fluid side padding keeps the rhythm tight on laptops, roomy on big
   displays. z-index:2 keeps copy above the photo's blend gradient. */
.hero-left{padding:64px clamp(24px,5vw,72px) 56px;max-width:900px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2;text-align:left}
.hero-eyebrow{font-size:.66rem;font-weight:700;letter-spacing:.28em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:10px}
.hero-name{font-family:var(--font-big);font-size:clamp(4rem,9.5vw,8rem);color:var(--text);line-height:.84;letter-spacing:-.01em;margin-bottom:16px}
.hero-credits{font-size:.92rem;font-weight:300;color:var(--muted);line-height:1.6;margin-bottom:24px;max-width:500px}
.hero-bio{font-size:.95rem;font-weight:300;color:rgba(var(--ink-rgb),.7);line-height:1.8;max-width:560px;margin-bottom:20px}
.hero-bio p{margin-bottom:14px}
.hero-bio p:last-child{margin-bottom:0}
.hero-meta{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:28px}
.hero-meta-item{display:flex;flex-direction:column;gap:2px}
.hero-meta-label{font-size:.58rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
.hero-meta-value{font-size:.92rem;font-weight:600;color:var(--text)}
.hero-cta{display:inline-flex;align-items:center;gap:8px;padding:16px 40px;background:var(--red);color:var(--on-accent);border-radius:4px;font-family:var(--font-big);font-size:1.4rem;letter-spacing:.06em;text-decoration:none;transition:all .2s;align-self:flex-start;box-shadow:0 4px 20px rgba(var(--red-rgb),.3)}
.hero-cta:hover{background:var(--red-deep);transform:translateY(-1px);box-shadow:0 6px 24px rgba(var(--red-rgb),.4)}
.hero-cta-sub{font-size:.8rem;color:var(--muted);margin-top:10px}   /* 11.5px at 3.14:1: the line that says which night (audit P5) */
.hero-right{position:relative;overflow:hidden}
/* Blend the photo's left edge into the dark hero so it reads as one composition
   instead of a pasted-in rectangle. Overridden to a bottom-blend when stacked. */
.hero-right::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,var(--bg) 0%,rgba(var(--scrim-rgb),.4) 12%,transparent 34%);pointer-events:none;z-index:1}
.hero-headshot{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.hero-headshot-ph{width:100%;height:100%;min-height:400px;background:linear-gradient(135deg,rgba(var(--red-rgb),.15),rgba(var(--scrim-rgb),.8));display:flex;align-items:center;justify-content:center;font-family:var(--font-big);font-size:8rem;color:rgba(var(--red-rgb),.3)}

.section-eyebrow{font-size:.64rem;font-weight:700;letter-spacing:.28em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:8px}
.section-title{font-family:var(--font-big);font-size:clamp(2rem,4vw,3rem);color:var(--text);line-height:1;margin-bottom:6px}
.section-sub{font-size:.82rem;color:var(--muted);margin-bottom:32px}

/* Show cards */
.shows-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin-bottom:48px}
.show-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:20px;text-decoration:none;color:inherit;transition:all .22s;display:flex;flex-direction:column;gap:10px;position:relative;overflow:hidden}
.show-card::before{content:'';position:absolute;inset:0;background:rgba(var(--red-rgb),.0);transition:background .2s;pointer-events:none}
.show-card:hover{border-color:rgba(var(--ink-rgb),.18);transform:translateY(-2px);box-shadow:0 8px 32px rgba(var(--shadow-rgb),.4)}
.show-card:hover::before{background:rgba(var(--red-rgb),.04)}
.show-card.upcoming{border-color:rgba(var(--red-rgb),.25);background:rgba(var(--red-rgb),.04)}
.show-card.sold-out{opacity:.65}
.show-card-price{font-size:.82rem;font-weight:600;color:var(--text)}
.show-card.sold-out .show-card-cta{color:var(--muted)}
.urgency-dot{width:6px;height:6px;border-radius:50%;background:var(--amber);flex-shrink:0;animation:pulse-dot 1.5s infinite}
@keyframes pulse-dot{0%,100%{opacity:1}50%{opacity:.4}}
/* Hero "Get Tickets ↓" (multi-date comedians) scrolls to the list below;
   offset clears the fixed nav. Smooth only when motion is welcome. */
#showsSection{scroll-margin-top:84px}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* ENTRANCE — "the marquee lights coming up." Staggered fade-up on the REAL hero
   (the skeleton carries aria-hidden, so :not([aria-hidden]) excludes it).
   Compositor-only (opacity + transform); nothing for reduced-motion users. */
@media (prefers-reduced-motion: no-preference){
  .hero:not([aria-hidden]) .hero-left > *{animation:heroRise .7s cubic-bezier(.22,1,.36,1) both}
  .hero:not([aria-hidden]) .hero-left > *:nth-child(2){animation-delay:.06s}
  .hero:not([aria-hidden]) .hero-left > *:nth-child(3){animation-delay:.12s}
  .hero:not([aria-hidden]) .hero-left > *:nth-child(4){animation-delay:.18s}
  .hero:not([aria-hidden]) .hero-left > *:nth-child(5){animation-delay:.24s}
  .hero:not([aria-hidden]) .hero-left > *:nth-child(n+6){animation-delay:.30s}
  .hero:not([aria-hidden]) .hero-right{animation:heroFade .9s cubic-bezier(.22,1,.36,1) both;animation-delay:.05s}
}
@keyframes heroRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes heroFade{from{opacity:0}to{opacity:1}}

/* LOADING SKELETON — static tonal blocks (no shimmer), shown until the API
   resolves so a shared link never opens to a blank screen. */
.sk{background:var(--surface2);border-radius:6px}
.hero[aria-hidden="true"] .hero-right{background:var(--surface-1)}
.hero[aria-hidden="true"] .hero-right::after{display:none}
.sk-kicker{width:90px;height:11px;margin-bottom:18px}
.sk-name{width:68%;height:52px;margin-bottom:12px;border-radius:4px}
.sk-name.short{width:42%;margin-bottom:26px}
.sk-bio{width:90%;height:12px;margin-bottom:10px}
.sk-bio.short{width:60%;margin-bottom:28px}
.sk-cta{width:210px;height:50px;border-radius:4px}
.sk-photo{width:100%;height:100%;min-height:340px}

/* PAST SHOWS — collapsed disclosure so the page ends on upcoming shows. */
.past-toggle{margin-top:24px}
.past-toggle summary{font-size:.64rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;padding:8px 0;transition:color .2s}
.past-toggle summary:hover{color:var(--text)}
.past-toggle summary::-webkit-details-marker{display:none}
.past-toggle summary::after{content:'+';font-size:1rem;line-height:1}
.past-toggle[open] summary::after{content:'\2013'}

/* SHARE — lives in the hero social-icons row as the one RED action so it pops
   (a filled "stage light" among the muted outlined social circles). No orphan
   band. Native share sheet on mobile, copy-link (flash green) on desktop. */
.social-share-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex-shrink:0;padding:0;border:none;border-radius:50%;background:var(--red);color:var(--on-accent);cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s;box-shadow:0 3px 14px rgba(var(--red-rgb),.4);-webkit-tap-highlight-color:transparent}
.social-share-btn:hover{background:var(--red-deep);transform:translateY(-2px);box-shadow:0 6px 22px rgba(var(--red-rgb),.55)}
.social-share-btn:active{transform:translateY(0) scale(.96)}
.social-share-btn.copied{background:var(--green-deep);box-shadow:0 3px 14px rgba(var(--green-rgb),.4)}
.social-share-btn .ic{width:1.05em;height:1.05em}

.back-link{display:inline-flex;align-items:center;gap:6px;font-size:.74rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);text-decoration:none;margin-bottom:20px;transition:color .2s}
/* Top row: "All Shows" on the left, Share as the focal red action on the right.
   The toprow owns the bottom spacing, so the back-link's own margin is zeroed. */
.hero-toprow{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.hero-toprow .back-link{margin-bottom:0}
.hero-share-btn{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;padding:9px 18px;border:none;border-radius:999px;background:var(--red);color:var(--on-accent);font-family:inherit;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s;box-shadow:0 3px 14px rgba(var(--red-rgb),.4);-webkit-tap-highlight-color:transparent}
.hero-share-btn:hover{background:var(--red-deep);transform:translateY(-2px);box-shadow:0 6px 22px rgba(var(--red-rgb),.55)}
.hero-share-btn:active{transform:translateY(0) scale(.97)}
.hero-share-btn.copied{background:var(--green-deep);box-shadow:0 3px 14px rgba(var(--green-rgb),.4)}
.hero-share-btn .ic{width:1.1em;height:1.1em}

/* ── TABLET & BELOW: stack to a single column, photo on top ──────────────── */
@media(max-width:860px){
  nav{padding:14px 20px}.nav-links{display:none}.nav-ham{display:flex}
  .hero{grid-template-columns:1fr;padding-top:64px;min-height:auto}
  .hero-right{height:clamp(280px,42vw,420px);order:-1}
  /* photo now sits ABOVE the copy — blend its bottom edge into the text area */
  .hero-right::after{background:linear-gradient(0deg,var(--bg) 0%,rgba(var(--scrim-rgb),.25) 24%,transparent 50%)}
  .hero-left{padding:28px 20px 40px;max-width:none}
  .social-icon-link,.social-share-btn{width:44px;height:44px}   /* 44px touch target on phones/tablets */
  .clip-section{padding:32px 20px}
  .clip-inner{grid-template-columns:1fr;gap:24px}
  .shows-section{padding:40px 20px}
}
/* ── PHONES: tighter photo, full-width primary action, fit long names ─────── */
@media(max-width:480px){
  .hero-name{font-size:clamp(2.7rem,13vw,4.2rem)}
  .hero-right{height:clamp(240px,62vw,320px)}
  .hero-cta{width:100%;justify-content:center}
  .shows-grid{grid-template-columns:1fr}
}
