/* ==========================================================================
   Kotori — Events
   Extends the existing identity (base.css tokens: sumi / hinoki / vermillion
   / gold / washi, Shippori Mincho B1 + Manrope). Kept in its own file so the
   81KB pages.css is never touched.
   ========================================================================== */

.ev-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 40px) 96px;
}

/* ── Page head ─────────────────────────────────────────────────────────── */
.ev-head { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }

.ev-eyebrow {
  font-family: Manrope, system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold, #b89968);
  margin-bottom: 18px;
}

.ev-head h1 {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(2.4rem, 6.5vw, 3.9rem);
  line-height: 1.08;
  color: var(--washi, #f4ece0);
  margin: 0 0 20px;
}

.ev-lede {
  font-family: Manrope, system-ui, sans-serif;
  max-width: 46ch;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(244, 236, 224, .72);
}

/* thin gold rule, fades at both ends */
.ev-rule {
  width: 96px; height: 1px; margin: 30px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold, #b89968), transparent);
}

/* ── Card grid ─────────────────────────────────────────────────────────── */
.ev-grid {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.ev-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .028);
  border: 1px solid rgba(184, 153, 104, .22);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  /* transform + opacity only — never animate layout properties */
  transition: transform .45s cubic-bezier(.22, .61, .36, 1),
              border-color .45s ease, box-shadow .45s ease;
}

.ev-card:hover,
.ev-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(184, 153, 104, .55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
}

.ev-card:focus-visible { outline: 2px solid var(--gold, #b89968); outline-offset: 3px; }

.ev-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1a1613; }

/* framed via JS: background-image + computed size/position from hero_focus */
.ev-media-img {
  position: absolute; inset: 0;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

.ev-card:hover .ev-media-img { transform: scale(1.045); }

/* date chip */
.ev-date {
  position: absolute; top: 14px; left: 14px;
  background: rgba(18, 16, 14, .88);
  border: 1px solid rgba(184, 153, 104, .4);
  padding: 8px 12px 7px;
  text-align: center;
  font-family: Manrope, system-ui, sans-serif;
  backdrop-filter: blur(6px);
}
.ev-date .m {
  display: block; font-size: .62rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold, #b89968);
}
.ev-date .d {
  display: block; font-family: "Shippori Mincho B1", serif;
  font-size: 1.5rem; line-height: 1.05; color: var(--washi, #f4ece0);
}

.ev-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }

.ev-body h2 {
  font-family: "Shippori Mincho B1", serif;
  font-size: 1.42rem; line-height: 1.25;
  color: var(--washi, #f4ece0);
  margin: 0 0 10px;
}

.ev-meta {
  font-family: Manrope, system-ui, sans-serif;
  font-size: .82rem; color: rgba(244, 236, 224, .58);
  margin-bottom: 14px;
}

.ev-excerpt {
  font-family: Manrope, system-ui, sans-serif;
  font-size: .92rem; line-height: 1.65;
  color: rgba(244, 236, 224, .72);
  margin: 0 0 22px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-foot {
  margin-top: auto; display: flex; align-items: baseline;
  justify-content: space-between; gap: 14px;
  padding-top: 16px; border-top: 1px solid rgba(184, 153, 104, .16);
}

.ev-price {
  font-family: "Shippori Mincho B1", serif;
  font-size: 1.24rem; color: var(--washi, #f4ece0);
}
.ev-price span {
  font-family: Manrope, system-ui, sans-serif;
  font-size: .74rem; color: rgba(244, 236, 224, .5);
}

/* ── Seat status ───────────────────────────────────────────────────────── */
.ev-seats {
  font-family: Manrope, system-ui, sans-serif;
  font-size: .76rem; letter-spacing: .05em;
}
.ev-seats.ok      { color: rgba(244, 236, 224, .62); }
.ev-seats.low     { color: var(--vermillion, #c14a2a); font-weight: 600; }
.ev-seats.soldout { color: rgba(244, 236, 224, .42); }

.ev-card.is-soldout .ev-media-img { filter: grayscale(.75) brightness(.65); }

.ev-sold-band {
  position: absolute; inset: auto 0 0 0;
  background: rgba(18, 16, 14, .9);
  border-top: 1px solid rgba(184, 153, 104, .34);
  padding: 9px;
  text-align: center;
  font-family: Manrope, system-ui, sans-serif;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold, #b89968);
}

/* ── Empty + loading ───────────────────────────────────────────────────── */
.ev-empty {
  text-align: center; padding: 84px 20px;
  border: 1px dashed rgba(184, 153, 104, .28);
  font-family: Manrope, system-ui, sans-serif;
  color: rgba(244, 236, 224, .6);
}
.ev-empty h3 {
  font-family: "Shippori Mincho B1", serif;
  font-size: 1.5rem; color: var(--washi, #f4ece0); margin: 0 0 10px;
}

.ev-skeleton { border: 1px solid rgba(184, 153, 104, .14); border-radius: 3px; overflow: hidden; }
.ev-skeleton .sk { background: rgba(255, 255, 255, .045); animation: sk 1.5s ease-in-out infinite; }
.ev-skeleton .sk-media { aspect-ratio: 4/3; }
.ev-skeleton .sk-line  { height: 13px; margin: 14px 24px 0; }
.ev-skeleton .sk-line.short { width: 52%; }
@keyframes sk { 0%, 100% { opacity: .45 } 50% { opacity: .95 } }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
.ev-reveal { opacity: 0; transform: translateY(16px); }
.ev-reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .ev-card, .ev-media-img, .ev-reveal { transition: none !important; animation: none !important; }
  .ev-reveal { opacity: 1; transform: none; }
  .ev-card:hover { transform: none; }
}

/* ── Phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ev-grid { grid-template-columns: 1fr; gap: 20px; }
  .ev-wrap { padding-top: 40px; }
  .ev-body { padding: 20px 20px 22px; }
}
