@font-face {
    font-family: "HaboroContrast";
    src: url("https://johnproulx.com/wp-content/uploads/fonts/HaboroContrast-NorReg.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
   
:root {
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-in: 340ms;
  --dur-out: 760ms;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.01em;
  background-color: #F7F8FA;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'HaboroContrast-NorReg';
}

.calendar-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6rem;
  background: #fff;
}

@media screen and (max-width: 768px) {
  .calendar-container {
      padding: 4rem 1.5rem;
  }
}

.secondary-title {
    font-family: 'HaboroContrast';
    letter-spacing: .2rem;
    font-size: 32px;
    width: 100%;
}

.secondary-subtitle {
    padding-bottom: 3rem;
    letter-spacing: .1rem;
    margin-bottom: 0 !important;
}
/* ============================================
   CALENDAR CONTAINER
   ============================================ */

#calendar {
  position: relative;
  background: linear-gradient(to bottom, #0a1929 0%, #1a2f45 35%, #2a4560 70%, #3a5a7a 100%);
  border-radius: 5px;
  box-shadow: 
    0 16px 48px rgba(10, 25, 41, 0.18), 
    0 8px 24px rgba(10, 25, 41, 0.12), 
    0 4px 12px rgba(10, 25, 41, 0.08);
  padding: 0;
  overflow: hidden;
}

#calendar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Event Cards Wrapper */
.event-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

/* Hide events beyond the first 5 until expanded */
.event-card:nth-child(n+6) {
  display: none;
}

.calendar-expanded .event-card:nth-child(n+6) {
  display: block;
}
    
.jp-music__buttons .wp-block-button__link {
    background: transparent !important;
    color: var(--jp-text, #1a1a1a) !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.9rem 2.6rem;
    transition: 
      background 0.35s ease,
      border-color 0.35s ease,
      transform 0.35s ease,
      box-shadow 0.35s ease;
}

/* keyboard focus – accessible */
.jp-music__buttons .wp-block-button__link:focus-visible,
.jp-music__buttons .wp-block-button__link:active,
.jp-music__buttons .wp-block-button__link:focus {
    outline: none;
    box-shadow: none;
}

/* More Dates button */
.more-dates-btn {
  display: block;
  margin: 3rem auto 0;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a5568;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.more-dates-btn:hover {
  background: rgba(74, 85, 104, 0.08);
  border-color: rgba(74, 85, 104, 0.5);
  color: #2d3748;
  box-shadow: none;
}

.more-dates-btn.hidden {
  display: none;
}

/* ============================================
   EVENT CARD BASE
   ============================================ */

.event-card {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, box-shadow;
  transition:
    transform var(--lux-dur) var(--lux-ease),
    box-shadow var(--lux-dur) var(--lux-ease),
    filter var(--lux-dur-fast) var(--lux-ease);
}

.event-card:hover {
  transform: translate3d(0, -4px, 0);
  filter: brightness(1.03);
}

.event-card:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid rgba(74, 124, 158, 0.6);
  outline-offset: 3px;
}

.card-content {
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 10;
}

/* ============================================
   FIRST EVENT CARD (HERO)
   ============================================ */

.event-card:first-child {
  background: linear-gradient(to right, #000000 0%, #000206 10%, #00050f 25%, #000a1e 45%, #00112f 70%, #001940 90%, #002051 100%);
  box-shadow: 
    0 8px 24px rgba(10, 20, 32, 0.6), 
    0 3px 10px rgba(0, 0, 0, 0.35), 
    inset 0 3px 8px rgba(255, 255, 255, 0.08), 
    inset 0 -12px 24px rgba(0, 0, 0, 0.35), 
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.event-card:first-child:hover {
  box-shadow: 
    0 12px 40px rgba(10, 20, 32, 0.7), 
    0 6px 18px rgba(0, 0, 0, 0.45), 
    inset 0 3px 8px rgba(255, 255, 255, 0.08), 
    inset 0 -12px 24px rgba(0, 0, 0, 0.35), 
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  padding-top: .75rem;
}

.event-card:first-child .date-rail {
  background: linear-gradient(to bottom, #000000 0%, #00030a 15%, #000815 35%, #000f24 60%, #001633 85%, #001d42 100%);
  box-shadow: 
    inset 3px 0 6px rgba(0, 0, 0, 0.35), 
    inset -2px 0 4px rgba(255, 255, 255, 0.12), 
    inset 0 -1px 0 rgba(255, 255, 255, 0.08), 
    2px 0 8px rgba(10, 20, 32, 0.4), 
    -1px 0 2px rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(74, 124, 158, 0.35);
}

.event-card:first-child .month {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.event-card:first-child .day {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.event-card:first-child .venue-name {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  line-height: 1.15;
}

.event-card:first-child .venue-location {
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  font-weight: 400;
}

.event-card:first-child .rsvp-btn {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.event-card:first-child .ticket-btn {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ============================================
   TIER 2 — MIDDLE (cards 2 and 3)
   ============================================ */

.event-card:nth-child(2),
.event-card:nth-child(3) {
  margin-top: 2px;
}

.event-card:nth-child(2) {
  background: linear-gradient(to right, #0c2138 0%, #142a48 15%, #1c3358 35%, #243c68 60%, #2c4578 85%, #344e88 100%);
  box-shadow: 
    0 4px 12px rgba(31, 53, 72, 0.28), 
    0 1px 4px rgba(0, 0, 0, 0.15), 
    inset 0 2px 6px rgba(255, 255, 255, 0.05), 
    inset 0 -8px 16px rgba(0, 0, 0, 0.22), 
    inset 0 -1px 4px rgba(0, 0, 0, 0.18);
}

.event-card:nth-child(3) {
  background: linear-gradient(to right, #1a3450 0%, #223d60 18%, #2a4670 40%, #324f80 65%, #3a5890 88%, #4261a0 100%);
  box-shadow: 
    0 2px 8px rgba(58, 79, 100, 0.18), 
    0 1px 2px rgba(0, 0, 0, 0.1), 
    inset 0 1px 4px rgba(255, 255, 255, 0.04), 
    inset 0 -6px 12px rgba(0, 0, 0, 0.15), 
    inset 0 -1px 3px rgba(0, 0, 0, 0.12);
}

.event-card:nth-child(2):hover,
.event-card:nth-child(3):hover {
  box-shadow: 
    0 8px 28px rgba(31, 53, 72, 0.38), 
    0 3px 10px rgba(0, 0, 0, 0.22), 
    inset 0 2px 6px rgba(255, 255, 255, 0.05), 
    inset 0 -8px 16px rgba(0, 0, 0, 0.22), 
    inset 0 -1px 4px rgba(0, 0, 0, 0.18);
}

.event-card:nth-child(2) .date-rail,
.event-card:nth-child(3) .date-rail {
  background: linear-gradient(to bottom, #0a1e36 0%, #12274a 25%, #1a305e 50%, #223972 75%, #2a4286 100%);
  box-shadow: 
    inset 2px 0 3px rgba(0, 0, 0, 0.2), 
    inset -1px 0 2px rgba(255, 255, 255, 0.06), 
    inset 0 -1px 0 rgba(255, 255, 255, 0.05), 
    1px 0 2px rgba(31, 53, 72, 0.15);
}

.event-card:nth-child(2) .venue-name,
.event-card:nth-child(3) .venue-name {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  opacity: 0.94;
}

.event-card:nth-child(2) .venue-location,
.event-card:nth-child(3) .venue-location {
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.65;
  font-weight: 400;
}

.event-card:nth-child(2) .rsvp-btn,
.event-card:nth-child(3) .rsvp-btn {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.74;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.event-card:nth-child(2) .ticket-btn,
.event-card:nth-child(3) .ticket-btn {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.92;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

/* ============================================
   TIER 3 — ALL REMAINING CARDS (4th onward)
   ============================================ */

.event-card:nth-child(n+4) {
  background: linear-gradient(to right, #2d4462 0%, #354d72 20%, #3d5682 45%, #455f92 70%, #4d68a2 92%, #5571b2 100%);
  box-shadow: 
    0 1px 4px rgba(101, 129, 154, 0.12), 
    inset 0 1px 3px rgba(255, 255, 255, 0.03), 
    inset 0 -4px 8px rgba(0, 0, 0, 0.08), 
    inset 0 -1px 2px rgba(0, 0, 0, 0.06);
  margin-top: 1px;
}

.event-card:nth-child(n+4):hover {
  box-shadow: 
    0 4px 14px rgba(101, 129, 154, 0.18), 
    0 1px 4px rgba(0, 0, 0, 0.1), 
    inset 0 1px 3px rgba(255, 255, 255, 0.03), 
    inset 0 -4px 8px rgba(0, 0, 0, 0.08), 
    inset 0 -1px 2px rgba(0, 0, 0, 0.06);
}

.event-card:nth-child(n+4) .date-rail {
  background: linear-gradient(to bottom, #2d4565 0%, #354d73 25%, #3d5581 50%, #455d8f 75%, #4d659d 100%);
  box-shadow: 
    inset 1px 0 1px rgba(0, 0, 0, 0.1), 
    inset -1px 0 1px rgba(255, 255, 255, 0.03), 
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.event-card:nth-child(n+4) .venue-name {
  font-size: 1.5rem;
  font-weight: 450;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  opacity: 0.92;
}

.event-card:nth-child(n+4) .venue-location {
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.62;
  font-weight: 450;
}

.event-card:nth-child(n+4) .rsvp-btn {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.68;
  text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.1);
}

.event-card:nth-child(n+4) .ticket-btn {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.89;
  text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.12);
}

/* ============================================
   OVERLAY LAYERS
   ============================================ */

.highlight-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 260ms cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 3;
}

.event-card:hover .highlight-overlay {
  opacity: 1.3;
  transition: opacity 180ms cubic-bezier(0.33, 1, 0.68, 1);
}

.event-card:nth-child(1) .highlight-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.03) 40%, transparent 65%);
}

.event-card:nth-child(2) .highlight-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.025) 40%, transparent 65%);
}

.event-card:nth-child(3) .highlight-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 20%, rgba(255, 255, 255, 0.02) 40%, transparent 65%);
}

.event-card:nth-child(n+4) .highlight-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.035) 20%, rgba(255, 255, 255, 0.015) 40%, transparent 65%);
}

.hover-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
  transition: opacity 280ms cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 2;
}

.event-card:hover .hover-vignette {
  opacity: 1;
  transition: opacity 200ms cubic-bezier(0.33, 1, 0.68, 1);
}

.bottom-shadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  pointer-events: none;
  z-index: 1;
}

.event-card:nth-child(1) .bottom-shadow {
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0.35) 100%);
}

.event-card:nth-child(2) .bottom-shadow {
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.25) 100%);
}

.event-card:nth-child(3) .bottom-shadow {
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0.18) 100%);
}

.event-card:nth-child(n+4) .bottom-shadow {
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.08) 70%, rgba(0, 0, 0, 0.12) 100%);
}

/* ============================================
   DATE RAIL
   ============================================ */

.date-rail {
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2.5rem 0;
}

.month {
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
}

.day {
  font-weight: 200;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-size: 2.75rem;
}

/* ============================================
   EVENT DETAILS
   ============================================ */

.event-details {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  gap: 1.5rem;
  padding: 1rem 2rem;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.venue-name {
  color: #ffffff;
  font-weight: normal;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.venue-location {
  color: #e8e8e8;
  letter-spacing: 0.06em;
}

.event-description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-description {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
  transition-delay: 100ms;
}

.event-description p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.6;
  max-width: 500px;
}

/* Keep shadow transitions smooth and consistent */
.event-card:nth-child(1),
.event-card:nth-child(2),
.event-card:nth-child(3),
.event-card:nth-child(n+4) {
  transition: box-shadow var(--lux-dur) var(--lux-ease);
}

/* --- Overlays should match same easing --- */
.highlight-overlay,
.hover-vignette {
  transition: opacity var(--lux-dur-fast) var(--lux-ease);
}

/* --- Smooth content expansion (replace max-height approach) --- */
.event-description {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows var(--lux-dur) var(--lux-ease),
    opacity var(--lux-dur-fast) var(--lux-ease),
    margin-top var(--lux-dur-fast) var(--lux-ease);
}

/* Important: wrap text clipping */
.event-description > p {
  overflow: hidden;
}

/* Hover expanded state */
.event-card:hover .event-description {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
}

.rsvp-btn,
.ticket-btn {
  color: #ffffff;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 280ms cubic-bezier(0.4, 0.0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  border: none;
  font-family: 'Montserrat', sans-serif;
}

.rsvp-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.rsvp-btn:hover {
  opacity: 0.95 !important;
  background: rgba(255, 255, 255, 0.08);
}

@media screen and (max-width: 768px) {
    .rsvp-btn {
         width: 100%;   
    }
}

.ticket-btn {
  background: rgba(74, 124, 158, 0.20);
  border: 1px solid rgba(74, 124, 158, 0.42);
}

.ticket-btn:hover {
  opacity: 1 !important;
  background: rgba(74, 124, 158, 0.28);
  border-color: rgba(74, 124, 158, 0.55);
}

.ticket-btn .arrow {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 280ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.ticket-btn:hover .arrow {
  transform: translateX(0.125rem);
}


/* Motion tokens */
:root {
  --card-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --card-dur: 520ms;
  --card-dur-fast: 420ms;
}

/* Keep card stable (hover hit area stays consistent) */
.event-card {
  position: relative;
  overflow: hidden;
  outline: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: box-shadow var(--dur-out) var(--ease-lux);
}

/* Animate inner layer instead of the card shell */
.event-card .card-content {
  transform: translate3d(0, 0, 0);
  filter: brightness(1);
  transition:
    transform var(--dur-out) var(--ease-lux),
    filter var(--dur-out) var(--ease-lux);
  will-change: transform;
}

.event-card:hover .card-content {
  transform: translate3d(0, -3px, 0);
  filter: brightness(1.03);
  transition-duration: var(--dur-in);
}

/* Remove transition declarations from :hover rules everywhere */
.event-card:hover {
  transition-duration: var(--dur-in);
}

/* Hover out = slower */
.event-card:not(:hover) .card-content {
  transition-duration: var(--dur-out);
}

/* Overlays should match the same easing + duration */
.highlight-overlay,
.hover-vignette {
  transition: opacity var(--card-dur-fast) var(--card-ease);
}

/* Smoother description reveal/collapse (avoid max-height jerk) */
.event-description {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows var(--dur-out) var(--ease-lux),
    opacity var(--dur-out) var(--ease-lux),
    margin-top var(--dur-out) var(--ease-lux);
}

.event-description > p {
  overflow: hidden;
}

.event-card:hover .event-description {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
  transition-duration: var(--dur-in);
}

/* Active state (from JS class) */
.event-card.is-hover .card-content,
.event-card:focus-within .card-content {
  transform: translate3d(0, -3px, 0);
  filter: brightness(1.03);
  transition-duration: var(--dur-in);
}

.event-card.is-hover .event-description,
.event-card:focus-within .event-description {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
  transition-duration: var(--dur-in);
}

.event-card.is-hover,
.event-card:focus-within {
  transition-duration: var(--dur-in);
}

@media screen and (max-width: 1024px) {
  .calendar-container {
    padding: clamp(1rem, 4vw, 2rem);
  }

  /* Keep date rail fixed, let content breathe */
  .card-content {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: stretch;
  }

  .date-rail {
    width: 86px;
    min-width: 86px;
    padding: 1.5rem 0;
  }

  .day {
    font-size: 2.75rem;
  }

  .event-details {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1rem 1rem 1.1rem;
    min-width: 0;
  }
  
    .event-info {
    min-width: 0;
  }

  /* Override nth-child typography sizing consistently */
  .event-card:nth-child(n) .venue-name {
    font-size: clamp(1.25rem, 3.6vw, 1.55rem);
    line-height: 1.2;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    margin-bottom: 0.4rem;
  }

  .event-card:nth-child(n) .venue-location {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .action-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  
    .rsvp-btn,
  .ticket-btn {
    width: 100%;
    text-align: center;
    justify-self: stretch;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .secondary-title {
    font-size: 2rem;
    letter-spacing: 0.08em;
  }

  .secondary-subtitle {
    padding-bottom: 1.5rem;
    padding-right: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .card-content {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .date-rail {
    width: 74px;
    min-width: 74px;
  }

  .month {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .day {
    font-size: 2.35rem;
  }
  
    .event-details {
    padding: 0.85rem 0.85rem 0.95rem 0.9rem;
    gap: 0.8rem;
  }

  .event-card:nth-child(n) .venue-name {
    font-size: clamp(1.05rem, 5vw, 1.3rem);
  }

  .event-card:nth-child(n) .venue-location {
    font-size: 0.82rem;
  }

  /* Stack buttons on narrow screens */
  .action-buttons {
    grid-template-columns: 1fr;
  }

  /* Touch devices don't have reliable hover states */
  .event-card:hover {
    transform: none;
  }

  /* Make description readable on mobile (no hover dependency) */
  .event-description {
    max-height: none;
    opacity: 1;
    margin-top: 0.6rem;
    transition: none;
  }
  
    .event-description p {
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  /* neutralize hover-only open behavior on touch */
  .event-card:hover {
    transform: none;
  }

  .event-card:hover .event-description {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition-delay: 0ms;
  }

  /* tapped open state */
  .event-card.is-open {
    transform: translateY(-2px);
  }

  .event-card.is-open .event-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
    transition-delay: 0ms;
  }

  .event-card.is-open .highlight-overlay {
    opacity: 1.3;
  }

  .event-card.is-open .hover-vignette {
    opacity: 1;
  }
}
