/* ==========================================================================
   COMPONENT — .c-events
   Events. Nothing is scheduled yet, so this section is honest about that
   rather than filling itself with placeholder cards nobody can book.

   It is designed as a held slot: the plate, a standing "coming soon" mark,
   and a single line telling people how to hear about the first one. When
   real events exist, the .c-events__hold block is replaced by the same
   card grid the tours section uses.

   WP Phase 2 target: template-parts/sections/events.php
   ========================================================================== */

/*
  COLOUR NOTE. This section previously hard-coded --stone-100 as its
  background. That is a LIGHT limestone value, so in dark mode the section
  inverted: a pale block dropped into the middle of a dark page, with dark
  tokens sitting on it. Everything here is semantic now, so the section
  follows the scheme in both directions.
*/
.c-events {
  position: relative;
  padding-block: var(--section-pad);
  background: var(--c-bg);
  color: var(--c-ink);
  overflow: clip;
}

.c-events__hold {
  grid-column: content-start / content-end;
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  padding: var(--sp-8);
  border: var(--bw-rule) dashed var(--c-line-strong);
  text-align: center;
}

/* A faint diagonal rule field: reads as a held space, not an empty one. */
.c-events__hold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 14px,
    color-mix(in oklab, var(--c-ink) 4%, transparent) 14px 15px);
}

.c-events__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-accent);
  color: var(--c-accent-on);
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.c-events__badge::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: var(--radius-pill);
  background: var(--stone-50);
  animation: events-pulse 2.6s var(--ease-inout) infinite;
}

@keyframes events-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.c-events__title {
  font-family: var(--ff-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: var(--fw-light);
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  text-wrap: balance;
}

.c-events__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--c-accent-text);
}

.c-events__copy {
  position: relative;
  z-index: 1;
  max-inline-size: none;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--c-ink-soft);
  text-wrap: pretty;
}

.c-events__kinds {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-block-start: var(--sp-2);
}

.c-events__kinds li {
  padding: var(--sp-3) var(--sp-5);
  border: var(--bw-hair) solid var(--c-line-strong);
  font-family: var(--ff-mono);
  font-size: var(--fs-mono-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--c-ink-soft);
  white-space: nowrap;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.c-events__kinds li:hover { border-color: var(--c-accent); color: var(--c-ink); }

@media (max-width: 68rem) {
  .c-events__hold { padding: var(--sp-6); }
}
