/* ============================================================================
 * WIT'S END COMEDY CLUB — HOME PAGE STYLES
 * ----------------------------------------------------------------------------
 * Page-specific styles for / (home page with hero carousel + featured 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 */
body{font-family:var(--font-body);background:var(--bg);color:var(--text);overflow-x:clip}   /* clip, not hidden: hidden makes body the scroll container and sticky/anchor scrolling misbehave (audit B2) */
/* NAV — PAINT ONLY. The geometry lives in core.css, which every public page
   loads, and this file must not restate it.
   This rule used to be a whole second copy of `nav`, `.nav-ham`, `.nav-ham
   span`, `.mob-menu` and the mobile-menu CTA — and the two copies drifted:
     · the burger was 44×44 here and 30×23 in core.css, so the header measured
       73px on / and 53px everywhere else and shrank on every navigation;
     · this file's unmediated `padding:18px 48px` outranked witsend.css's
       `@media (max-width:900px)` rule (same specificity, later file), so
       between 769px and 900px the home page still showed the DESKTOP nav
       while every other page had already collapsed to the burger;
     · the mobile menu was inset 24px here and 32px in core.css, and this copy
       never got `overscroll-behavior:contain`, so scrolling the home menu to
       its end scrolled the page behind it.
   Only the blur is home's own: this nav sits over the hero photograph, and
   nothing else on the site does. */
nav{background:var(--nav-bg-home);backdrop-filter:blur(12px)}
/* HERO — photo carousel behind logo */
.hero{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:100px 24px 80px;position:relative;overflow:hidden}
.btn-red{padding:14px 32px;background:var(--red);color:var(--on-accent);border-radius:4px;font-family:var(--font-big);font-size:1.2rem;letter-spacing:.08em;text-decoration:none;transition:background .2s}
.btn-outline{padding:14px 32px;border:1px solid rgba(var(--ink-rgb),.35);color:var(--text);border-radius:4px;font-family:var(--font-big);font-size:1.2rem;letter-spacing:.08em;text-decoration:none;transition:all .2s}
@keyframes fadeup{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
/* SECTIONS */
section{padding:80px 48px}
.container{max-width:1200px;margin:0 auto}
.scroll-dot{width:6px;height:6px;border-radius:50%;background:rgba(var(--tint-rgb),.15);transition:background .2s,width .2s;cursor:pointer;position:relative}
/* Phantom hit area extends to ~30x30 for touch without changing the visible dot */
.scroll-dot::before{content:'';position:absolute;inset:-12px -8px}
/* STATUS BADGES */
.badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:10px;font-size:.6rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.show-list-arrow{font-size:1.05rem;color:var(--text);opacity:0;transform:translateX(-4px);transition:opacity .2s ease,transform .2s ease;margin-left:4px;margin-right:18px}
/* 16px font prevents iOS auto-zoom on focus */
/* On the accent band: a darker well of the band itself, in the accent's own ink.
   The --text/--surface pair read as grey boxes pasted onto red (25 Sep). */
.mailing-form input{flex:1;min-width:160px;padding:13px 18px;background:rgba(0,0,0,.2);border:1px solid rgba(0,0,0,.25);border-radius:4px;color:var(--on-accent);font-family:var(--font-body);font-size:1rem;outline:none}
.mailing-form input::placeholder{color:var(--on-accent);opacity:.78}
.mailing-btn{padding:13px 28px;background:var(--bg);color:var(--text);border:none;border-radius:4px;font-family:var(--font-big);font-size:1.1rem;cursor:pointer;transition:background .2s,opacity .2s}
.mailing-btn:disabled{opacity:.6;cursor:not-allowed}
.mailing-error{color:var(--text);font-size:.88rem;font-weight:500;margin-top:14px;min-height:1.2em;text-shadow:0 1px 2px rgba(var(--shadow-rgb),.2)}
.mailing-error:empty{display:none}
@media(max-width:768px){
  /* nav padding / .nav-links / .nav-ham are NOT repeated here — witsend.css
     collapses the nav at 900px for every page, and a second copy at 768px is
     what made the home page disagree with the rest of the site between those
     two widths. */
  section{padding:60px 20px}
  /* Gallery strip on mobile: swipeable with snap, peek still works */
  .gallery-strip{overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .gallery-strip::-webkit-scrollbar{display:none}
  .gallery-thumb{flex:0 0 calc(100%/3.4);scroll-snap-align:start}
  .gallery-strip-header{padding:16px 20px 10px}
  .mailing-section{padding:48px 20px}
  .info-block{padding:18px 22px}   /* no dividers now: tighter rhythm on a phone */
  .info-block-value{font-size:1.1rem}
  .featured-card{flex:0 0 82vw}
  .featured-card-name{font-size:1.25rem}
  .show-list-date{width:62px}
  .show-list-day{font-size:1.5rem}
  .show-list-thumb,.show-list-thumb-ph{width:44px;height:44px;margin:0 10px}
  .show-list-arrow{display:none}
  .section-meta{font-size:.7rem}
}

/* No-hover devices: the "Tickets →" affordance must show on touch */
@media (hover: none) {
  .featured-card-cta{opacity:1;transform:translateX(0)}
}

/* Accessibility: respect user motion preferences (UX_PRINCIPLES §6 ambient rule) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .hero-eyebrow,.hero-title,.hero-btns{opacity:1 !important;transform:none !important}
  .hero-carousel-slide{transition:none !important}
}

/* Screen-reader-only — visually hide labels while keeping them in the a11y tree */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── THE HERO LOCKUP ─────────────────────────────────────────────────────────
   MOVED HERE FROM witsend.css, and the move is the point. `.hero-title` is
   ALSO the class /groups uses for marketing copy ("Bring Your Whole Crew."),
   in groups.css, which loads after witsend.css and shadows font-family and
   colour — but only those two. Any NEW property added over there leaks onto a
   page whose .hero-title is not a wordmark at all. home.css loads last and
   only on /, so the club's lockup cannot reach anything else.

   Same shape as the .nav-logo regression: a site whose identity depended on
   which tab you were on. Cheaper to make impossible than to catch. */
.hero-title {
  /* The club's own display face — the same one the nav and the email masthead
     use. Defaults to var(--font-big), so a club declaring nothing is
     unchanged. core/theme.face_block already ships the woff2 per club. */
  font-family: var(--font-wordmark);
  /* Two ceilings, the lower wins. The clamp is the size the lockup WANTS; the
     second term is the size at which this club's widest word still fits 88vw
     (the hero's 24px side padding, plus a little). --wordmark-em-width is the
     widest word measured in the club's own face, emitted per club by
     core.theme.wordmark_em_width; a club that emits none divides by 1, which
     is 88vw — always larger than the clamp, so min() never picks it and
     nothing moves. COBBLESTONE, 8.39em, ran off both edges before this. */
  font-size: min(clamp(5rem, 16vw, 12rem), calc(88vw / var(--wordmark-em-width, 1)));

  /* .92 IS TUNED TO BEBAS'S 0.700em CAP and does not survive a taller face.
     Measured: Anton's cap is 0.859em, which at .92 collapses the gap between
     WIT'S and END from 42.2px to 11.6px on desktop and 4.9px on a phone —
     ~3.3px once the S overshoot is counted. Touching.

     DO NOT REACH FOR THE CSS `cap` UNIT HERE. It was tried and it shipped a
     broken page: browsers resolve `1cap` from OS/2.sCapHeight, and Rye
     declares 0.177em against a real cap of 0.757em, so calc(1cap + .22em)
     became 0.397 and the Laugh Barn's LAUGH and BARN printed on top of each
     other. core.theme derives this per club from the MEASURED outline instead:
     Bebas .920 (unchanged), Anton 1.079, Rye .977. */
  line-height: var(--wordmark-leading);
  text-shadow: none;                        /* the glow below is for a photograph; on the club's own ground it read as mud */

  /* --on-scrim, NOT --wordmark-ink, and this is not an inconsistency.
     tokens.css records THIS ELEMENT as the site of the incident: "the Laugh
     Barn's hero wordmark ... went invisible the moment the club went light",
     because it read a themed ink over a scrim that had not flipped.
     --on-scrim is mode-independent by contract, like --on-accent and
     --qr-plate: a functional requirement wearing a colour.

     The nav's ground is a flat token this repo can measure. The hero's ground
     is a photograph a club uploaded this morning, and brand.wordmark_ink has
     no luminance floor — #02231F is a legal value. The nav can survive that
     (it has --wordmark-plate as an escape hatch); the hero cannot. */
  /* NO PHOTO: the page's own ink, which the theme guarantees against --bg.
     Not --wordmark-ink (no luminance floor, no plate here) and not --on-scrim
     (there is no scrim). The scrim family applies only under .has-photo. */
  color: var(--text);

  opacity: 0;
  animation: fadeup .7s .35s forwards;
}
.hero.has-photo .hero-title { color: var(--on-scrim); text-shadow: 0 4px 40px rgba(var(--shadow-rgb),.6); }
.hero-title span { color: var(--wordmark-accent); }
/* A CLUB'S OWN STACKED MARK in place of the typed lockup (core.render
   _hero_wordmark). Sized by width, because the art sets its own proportions;
   the h1 keeps the club's name for readers and search through the alt. On a
   photograph a soft shadow does what the text-shadow did for type. */
.hero-title .hero-mark { display: block; margin: 0 auto; width: min(520px, 76vw); height: auto; }
.hero.has-photo .hero-title .hero-mark { filter: drop-shadow(0 6px 28px rgba(var(--shadow-rgb),.55)); }

/* THE RAIL SHARES THE ROW ON A DESKTOP (queue D17 H3). It holds at most three
   comics now; at a fixed 310px, three cards left a dead quarter where the
   fourth used to be. A third each, and a lone card stays card-sized. Under
   901px the cards keep scrolling at 82vw (witsend.css). */
@media (min-width: 901px){
  .featured-card{flex:1 1 0;min-width:0;max-width:calc((100% - 32px) / 3)}
}
