.event-archive {
  background: var(--brand-white);
  color: var(--brand-ink);
}

.event-archive__section-heading h2 {
  margin: 0;
  letter-spacing: -0.045em;
  text-wrap: balance;
  word-break: auto-phrase;
}

.event-archive__latest {
  background: var(--brand-light);
}

.event-archive__list {
  background: var(--brand-white);
}

.event-archive__section-heading {
  margin-bottom: var(--proposal-heading-gap);
}

.event-archive__section-heading--split {
  display: flex;
  width: min(100%, var(--proposal-copy-max));
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  margin-inline: auto;
}

.event-archive__section-heading h2 {
  font-size: var(--proposal-section-heading-size);
  line-height: var(--proposal-heading-line);
}

.event-archive__section-heading > p:last-child {
  max-width: 360px;
  margin: 0;
  color: var(--brand-gray);
  font-size: 15px;
  line-height: 1.8;
}

.event-card {
  min-width: 0;
  border: 1px solid var(--brand-line);
  border-top: 4px solid var(--brand-red);
  background: var(--brand-white);
}

.event-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.event-card__media {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--brand-line);
  background: var(--brand-light);
}

.event-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-card__body {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  padding: 28px;
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--brand-gray);
  font-size: 12px;
  font-weight: 700;
}

.event-card__meta span {
  color: var(--brand-red);
}

.event-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -0.025em;
  text-wrap: balance;
  word-break: auto-phrase;
}

.event-card__link {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--brand-line);
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 800;
}

.event-card__link span {
  font-size: 18px;
  line-height: 1;
}

.event-card > a:hover h3,
.event-card > a:focus-visible h3 {
  color: var(--brand-red);
}

.event-card > a:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 4px;
}

.event-card--featured > a {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.event-card--featured .event-card__media {
  min-height: 320px;
  border-right: 1px solid var(--brand-line);
  border-bottom: 0;
}

.event-card--featured .event-card__body {
  min-height: 320px;
  padding: 42px;
}

.event-card--featured h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.48;
}

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

@media (max-width: 1120px) {
  .event-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .event-archive__section-heading--split {
    display: grid;
    gap: 24px;
    align-items: start;
  }

  .event-card--featured > a {
    grid-template-columns: 1fr;
  }

  .event-card--featured .event-card__media {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }

  .event-card--featured .event-card__body {
    min-height: 0;
    padding: 32px;
  }
}

@media (max-width: 720px) {
  .event-archive__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .event-archive__section-heading {
    margin-bottom: var(--proposal-heading-gap);
  }

  .event-archive__section-heading h2 {
    font-size: var(--proposal-section-heading-size);
  }

  .event-archive__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-card__media {
    padding: 8px;
  }

  .event-card__body,
  .event-card--featured .event-card__body {
    min-height: 0;
    padding: 24px 20px;
  }

  .event-card h3,
  .event-card--featured h3 {
    font-size: 20px;
    line-height: 1.55;
  }

  .event-card__link {
    padding-top: 20px;
  }
}
