/* =================================================
   PAGES: layout specific to Home, About, Festivals,
   and the Event Detail page.
   ================================================= */

/* -------------------------------------------------
   HOME HERO
------------------------------------------------- */

/* Identity block (who we are / what improv is) plus a fast path into events,
   with a compact "up next" card alongside. */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
}

.home-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.5rem;
}

.home-hero-heading {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}

@media (min-width: 900px) {
  .home-hero-heading { font-size: 2.8rem; }
}

@media (min-width: 1200px) {
  .home-hero-heading { font-size: 3rem; }
}

.home-hero-lede {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0.8rem 0 0;
}

@media (min-width: 900px) {
  .home-hero-lede { font-size: 1.15rem; }
}

@media (min-width: 1200px) {
  .home-hero-lede { font-size: 1.25rem; }
}

.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
}

/* Compact "up next" card. Square, flat aesthetic to match the event cards. */
.home-hero-next {
  display: flex;
  align-items: stretch;
  background: var(--card-bg-vert);
  border: var(--card-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--card-shadow);
}

.home-hero-next:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-lift);
}

/* Poster is the hero of the card: larger share of the width, fills edge to
   edge (cover, no letterbox). The info column gets the smaller remainder. */
.home-hero-next-poster {
  display: block;
  flex: 1 1 60%;
  min-width: 0;
  align-self: stretch;
  object-fit: cover;
  background: var(--ink);
}

.home-hero-next-body {
  display: flex;
  flex: 1 1 40%;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.2rem 1.3rem;
}

.home-hero-next-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.home-hero-next-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.home-hero-next-title::after {
  content: " →";
  color: var(--text-faint);
}

.home-hero-next-blurb {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Same "+N more dates" flag on the home hero card. Plain text (whole card is
   a link), so no hover state. */
.home-hero-next-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  background: #eaf0fe;
  border: 1px solid #cfddfb;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .home-hero {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
  .home-hero-intro { flex: 1 1 48%; }
  .home-hero-next {
    flex: 1 1 52%;
    align-self: stretch;
  }
  .home-hero-heading { font-size: 2.5rem; }
  .home-hero-lede { font-size: 1.1rem; }
  .home-hero-next-title { font-size: 1.6rem; }
  .home-hero-next-blurb { font-size: 1.08rem; }
}

/* Mobile: a side-by-side card crops the portrait poster to a thin strip. Stack
   it instead so the portrait crops far less. */
@media (max-width: 759px) {
  .home-hero-next { flex-direction: column; }
  .home-hero-next-poster {
    width: 100%;
    aspect-ratio: 4 / 3;
    align-self: stretch;
    object-position: top;
  }
  .home-hero-next-body { padding: 1rem 1.2rem 1.2rem; }
}

/* -------------------------------------------------
   ABOUT PAGE
------------------------------------------------- */

.about-intro {
  margin: 0 0 1.6rem;
}

.about-lede {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 0.8rem;
}

.about-where {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Top spacing for a prose paragraph that continues a block (e.g. a follow-up
   line after a list or lede on the legal/about pages). Replaces per-element
   inline style="margin-top" so spacing lives in the stylesheet. */
.prose-gap   { margin-top: 0.8rem; }
.prose-gap-l { margin-top: 1rem; }

.about-subhead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

/* Start-anywhere paths — whole-card links. The <li> keeps the border/padding;
   the <a> fills it and carries the hover state. */
.about-paths {
  margin-bottom: 1.2rem;
}

.about-paths li {
  padding: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.about-paths li:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.about-path-link {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: inherit;
}

.about-path-link strong::after {
  content: " →";
  font-weight: 700;
  color: var(--text-faint);
}

@media (min-width: 900px) {
  .about-paths {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .about-paths li {
    flex-direction: column;
    gap: 0.5rem;
  }
  .about-paths .book-offer-icon {
    font-size: 1.6rem;
  }
}

/* Stat band */
.about-stats {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.about-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  background: var(--card-bg);
  border: var(--card-border);
  padding: 0.9rem 0.6rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.about-stats li:hover {
  border-color: var(--yellow);
  box-shadow: var(--card-shadow-yellow);
}

.about-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.1;
}

.about-stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}

/* Start-here ladder */
.about-ladder {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.about-ladder li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--card-bg);
  border: var(--card-border);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.about-ladder li:hover {
  border-color: var(--yellow);
  box-shadow: var(--card-shadow-yellow);
}

.about-ladder-step {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--pill-yellow);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.about-ladder strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.about-ladder p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Signature shows with posters */
.about-shows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.about-shows li {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: var(--card-border);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--card-shadow);
}

.about-shows li:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-lift);
}

.about-show-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.about-show-card strong::after {
  content: " ↗";
  font-weight: 700;
  color: var(--text-faint);
}

.about-show-poster-wrap {
  position: relative;
}

.about-show-poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
}

.about-show-body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.about-shows strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.about-shows span {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .about-shows { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .about-shows { grid-template-columns: repeat(3, 1fr); }
}

/* Marks the formats we tour to international festivals. */
.festival-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: #f0c419;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.festival-badge::before {
  content: "✦";
  font-size: 0.85em;
  line-height: 1;
}

/* -------------------------------------------------
   FESTIVALS PAGE: timeline
   Mirrors the about-ladder card style, but the leading marker is a year
   instead of a step number.
------------------------------------------------- */

.fest-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.fest-stop {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card-bg);
  border: var(--card-border);
  padding: 0.85rem 0.95rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.fest-stop:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--card-shadow-yellow);
}

.fest-stop-year {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: var(--pill-yellow);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.fest-stop-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.fest-stop-body p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.fest-stop-city {
  font-weight: 600;
  color: var(--ink);
}

.fest-stop-when {
  position: relative;
  padding-left: 0.55rem;
}

.fest-stop-when::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bbb;
}

/* Wide screens: Book & Visit promos lay out as a grid. The lead "Book Us" card
   spans full width; the two smaller promos sit side by side. */
@media (min-width: 900px) {
  .page-section-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: start;
  }
  .page-section-info .section-heading { grid-column: 1 / -1; }
  .page-section-info .book-card { grid-column: 1 / -1; }
  .promo-card { margin: 0; }
}

/* -------------------------------------------------
   EVENT DETAIL PAGE
------------------------------------------------- */

.event-detail-root {
  margin-top: 1.5rem;
}

.event-detail {
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.event-detail.event-type-show     { border-top: 4px solid var(--yellow); border-left: 4px solid rgba(245, 196, 0, 0.3); }
.event-detail.event-type-jam      { border-top: 4px solid var(--green);  border-left: 4px solid rgba(46, 204, 113, 0.3); }
.event-detail.event-type-workshop { border-top: 4px solid var(--blue);   border-left: 4px solid rgba(37, 99, 235, 0.3); }

.event-detail-back {
  display: inline-block;
  margin: 1rem 1.5rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
}

.event-detail-back:hover {
  color: var(--ink);
}

.event-detail-image {
  width: 100%;
  margin-top: 1rem;
  background: #f0f0f0;
  line-height: 0;
}

.event-detail-image img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.event-detail-body {
  padding: 1.4rem 1.5rem 1.8rem;
}

@media (min-width: 900px) {
  .event-detail-body { padding: 1.6rem 1.8rem 2rem; }
}

@media (min-width: 1200px) {
  .event-detail-body { padding: 1.8rem 2rem 2.2rem; }
}

.event-detail-title {
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 0.3rem 0 0.9rem;
  color: var(--ink);
}

@media (min-width: 900px) {
  .event-detail-title { font-size: 1.95rem; }
}

@media (min-width: 1200px) {
  .event-detail-title { font-size: 2.1rem; }
}

.event-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.event-detail-when strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
}

.event-detail-when span {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.event-detail-where {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.event-detail-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.2rem;
}

.event-detail-meta-empty {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.event-detail-meta-empty strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.event-detail-meta-empty span {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.event-detail-cadence {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  background: var(--surface-warm);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
}

/* Multi-day workshop schedule. The feed carries only one date, so this block
   lists every session as the authoritative timetable. */
.event-detail-sessions {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1rem;
  background: var(--surface-warm);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
}

.event-detail-sessions-heading {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.event-detail-sessions-note {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.event-detail-sessions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.event-detail-sessions-list li {
  padding: 0.3rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}

.event-detail-sessions-extra {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.event-detail-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
}

.event-detail-content p {
  margin: 0 0 0.9rem;
}

.event-detail-expect {
  margin-top: 1.4rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface-warm);
  border: 1px solid var(--border-hairline);
}

.event-detail-expect h2 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.5rem;
}

.event-detail-expect p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body);
}

.event-detail .event-buttons {
  margin-top: 1.5rem;
}

.event-detail-source {
  margin-top: 1.4rem;
  font-size: 0.72rem;
}

.event-detail-source a {
  color: #b0a09a;
  text-decoration: none;
  border-bottom: 1px dotted #d0d0d0;
}

.event-detail-source a:hover {
  color: var(--text-soft);
  border-bottom-color: var(--text-soft);
}

@media (max-width: 480px) {
  .event-detail-body { padding: 1.1rem 1.1rem 1.4rem; }
  .event-detail-title { font-size: 1.4rem; }
}
