:root {
  color-scheme: light;
  --bg: #fff7fb;
  --bg-2: #f9edf4;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --text: #312430;
  --muted: #846c7b;
  --accent: #a65f82;
  --accent-dark: #7b415f;
  --accent-soft: #edd1df;
  --line: rgba(166, 95, 130, 0.2);
  --shadow: 0 24px 75px rgba(92, 45, 69, 0.13);
  --radius: 28px;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(237, 209, 223, 0.95), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(255, 225, 239, 0.9), transparent 24rem),
    linear-gradient(145deg, var(--bg), #fff 54%, var(--bg-2));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(circle, rgba(166, 95, 130, 0.14) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 1px, transparent 1px);
  background-size: 42px 42px, 78px 78px;
  background-position: 0 0, 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.page-shell {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 35px rgba(92, 45, 69, 0.07);
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.35rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.counter-card {
  justify-self: end;
  width: min(100%, 340px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.counter-card strong {
  display: block;
  color: var(--accent-dark);
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.counter-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 50px rgba(92, 45, 69, 0.08);
  backdrop-filter: blur(18px);
}

.search-box { flex: 1; }

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
}

.search-box input::placeholder { color: rgba(132, 108, 123, 0.8); }

.ghost-button,
.primary-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
}

.ghost-button {
  padding: 13px 18px;
  background: rgba(166, 95, 130, 0.1);
  color: var(--accent-dark);
}

.ghost-button:hover { background: rgba(166, 95, 130, 0.16); }

.status {
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.6;
}

.status:empty { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-image-link {
  display: block;
  text-decoration: none;
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(166, 95, 130, 0.18), rgba(255, 255, 255, 0.6)),
    var(--accent-soft);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
}

.card-image[hidden] { display: none; }

.card-image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(123, 65, 95, 0.75);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-image:not([hidden]) + .card-image-placeholder { display: none; }

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.card-meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 54%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(166, 95, 130, 0.1);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-date {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.card-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.card-venue,
.card-address {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-address {
  margin-top: 6px;
  font-size: 0.92rem;
}

.card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 14px 32px rgba(123, 65, 95, 0.22);
}

.primary-button:hover { filter: brightness(1.05); }

.secondary-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.secondary-link:hover { text-decoration: underline; }

.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;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .counter-card {
    justify-self: stretch;
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, var(--max));
    padding-top: 34px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .ghost-button {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-link {
    width: 100%;
    text-align: center;
  }
}
