:root {
  color-scheme: dark;
  font-family: Georgia, "Times New Roman", serif;
  background: #02030a;
  color: #d8c9e9;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20em;
  min-height: 100%;
  background: #02030a;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(to bottom, rgba(1, 4, 12, 0.18), rgba(0, 0, 5, 0.72)),
    url("assets/bg.webp") center top / cover fixed no-repeat;
}

.archive {
  min-height: 100vh;
  padding: 1em 3.5em 2em;
  overflow: hidden;
}

.archive__header {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 3.5em;
  text-align: center;
}

.archive__logo {
  display: block;
  width: min(33em, 64vw);
  height: auto;
  filter: drop-shadow(0 1.2em 1em rgba(0, 0, 0, 0.72));
}

.archive__subtitle {
  margin: -0.5em 0 0;
  color: #bb8bd0;
  font-size: 1.18em;
  letter-spacing: 0.48em;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 0 1em rgba(139, 53, 180, 0.68);
}

.current-event {
  position: relative;
  display: flex;
  width: min(48em, 100%);
  margin: 8em auto 8em;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.current-event__logo-link {
  display: block;
  width: min(40em, 92%);
  border-radius: 0.25em;
  outline: none;
  transition: filter 180ms ease, transform 180ms ease;
}

.current-event__logo-link:hover,
.current-event__logo-link:focus-visible {
  filter: brightness(1.12) drop-shadow(0 0 1em rgba(198, 139, 54, 0.24));
  transform: translateY(-0.2em) scale(1.015);
}

.current-event__logo-link:focus-visible,
.current-event__button:focus-visible {
  outline: 0.12em solid #e6c07b;
  outline-offset: 0.28em;
}

.current-event__logo {
  display: block;
  width: 100%;
  height: auto;
  margin: -3.5em 0 -1.25em;
  filter: drop-shadow(0 1.1em 0.8em rgba(0, 0, 0, 0.64));
}

.current-event__title {
  position: absolute;
  width: 0.0625em;
  height: 0.0625em;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.current-event__button {
  position: absolute;
  bottom: 0.9375em;
  left: 12.5%;
  display: flex;
  min-width: min(21em, 88%);
  min-height: 3.15em;
  align-items: center;
  justify-content: center;
  padding: 0.95em 2em;
  border: 0.0625em solid #a97635;
  background:
    linear-gradient(rgba(255, 237, 183, 0.1), transparent 48%),
    linear-gradient(#4c2c10, #241306);
  box-shadow:
    inset 0 0 0 0.16em #100b07,
    inset 0 0 0 0.23em rgba(232, 183, 80, 0.46),
    0 0.35em 0.8em rgba(0, 0, 0, 0.6);
  color: #f0d49a;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  outline: none;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.current-event__button:hover,
.current-event__button:focus-visible {
  background:
    linear-gradient(rgba(255, 241, 196, 0.16), transparent 48%),
    linear-gradient(#704216, #321a08);
  box-shadow:
    inset 0 0 0 0.16em #100b07,
    inset 0 0 0 0.23em rgba(255, 205, 101, 0.6),
    0 0 1.3em rgba(191, 123, 38, 0.34);
  color: #fff0c5;
  transform: translateY(-0.12em);
}

.events {
  display: grid;
  width: min(90em, 100%);
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25em;
}

.event-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 0.57;
  color: inherit;
  outline: none;
  text-align: center;
  text-decoration: none;
  transform: translateZ(0);
  transition: filter 180ms ease, transform 180ms ease;
}

.event-card::before {
  position: absolute;
  z-index: 0;
  inset: 5.7% 5.6% 3.7%;
  border-radius: 0.5em;
  background: linear-gradient(to bottom, rgba(3, 3, 8, 0.12) 0 54%, #08090d 54% 100%);
  box-shadow: 0 1.2em 2.2em rgba(0, 0, 0, 0.72);
  content: "";
}

.event-card:hover,
.event-card:focus-visible {
  z-index: 2;
  filter: brightness(1.12) drop-shadow(0 0 1.2em rgba(148, 57, 201, 0.34));
  transform: translateY(-0.35em) scale(1.015);
}

.event-card:focus-visible::after {
  position: absolute;
  z-index: 5;
  inset: 3.8% 4.2% 2.4%;
  border: 0.12em solid #d29bea;
  border-radius: 0.5em;
  content: "";
}

.event-card__art {
  position: absolute;
  z-index: 1;
  top: 8.4%;
  right: 6.3%;
  bottom: 46.4%;
  left: 6.3%;
  display: block;
  overflow: hidden;
  background-color: #080b14;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -1.4em 1.6em rgba(0, 0, 0, 0.36);
}

.event-card__art--2023 { background-image: url("assets/event-2023.webp"); }
.event-card__art--2024 { background-image: url("assets/event-2024.webp"); }
.event-card__art--2025 { background-image: url("assets/event-2025.webp"); }

.event-card__content {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 8.5%;
  left: 8%;
  display: flex;
  height: 34%;
  align-items: center;
  flex-direction: column;
  padding-bottom: 15%;
}

.event-card__title,
.event-card__edition,
.event-card__button {
  display: block;
  text-transform: uppercase;
}

.event-card__title {
  margin-top: 0.05em;
  color: #d9cce8;
  font-size: clamp(0.86em, 1.75vw, 1.64em);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.1;
  text-shadow: 0 0 0.55em rgba(148, 90, 184, 0.25);
}

.event-card__edition {
  margin-top: 0.9em;
  color: #b77ad0;
  font-size: clamp(0.8125em, 1.05vw, 1em);
  letter-spacing: 0.035em;
  line-height: 1.2;
  white-space: nowrap;
}

.event-card__divider {
  position: relative;
  display: flex;
  width: 84%;
  margin: auto 0;
  align-items: center;
  justify-content: center;
}

.event-card__divider::before,
.event-card__divider::after {
  width: 42%;
  height: 0.0625em;
  background: linear-gradient(to var(--line-direction), transparent, rgba(127, 116, 137, 0.55));
  content: "";
}

.event-card__divider::before { --line-direction: right; }
.event-card__divider::after { --line-direction: left; }

.event-card__divider i {
  width: 0.58em;
  height: 0.58em;
  margin: 0 0.8em;
  border: 0.0625em solid rgba(139, 124, 148, 0.68);
  box-shadow: inset 0 0 0 0.1em #090a0f, 0 0 0 0.0625em rgba(0, 0, 0, 0.8);
  transform: rotate(45deg);
}

.event-card__button {
  position: relative;
  width: 91%;
  padding: 0.82em 0.45em;
  border: 0.0625em solid #6e5681;
  background: linear-gradient(#2c153b, #160b22);
  box-shadow:
    inset 0 0 0 0.16em #0d0a13,
    inset 0 0 0 0.23em rgba(134, 79, 162, 0.42),
    0 0.24em 0.5em rgba(0, 0, 0, 0.58);
  color: #decbea;
  font-size: clamp(0.8125em, 1.05vw, 1em);
  letter-spacing: 0.085em;
  line-height: 1;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.event-card:hover .event-card__button,
.event-card:focus-visible .event-card__button {
  background: linear-gradient(#4c2464, #241030);
  box-shadow:
    inset 0 0 0 0.16em #0d0a13,
    inset 0 0 0 0.23em rgba(183, 109, 218, 0.56),
    0 0 1em rgba(136, 48, 184, 0.4);
  color: #f4e9fa;
}

.event-card__frame {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -56.65%;
  display: block;
  width: 213.3%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 68em) {
  .archive {
    padding-right: 2em;
    padding-left: 2em;
  }

  .events {
    width: min(43em, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2em;
  }

  .event-card__title {
    font-size: clamp(1.1em, 3.2vw, 1.6em);
  }

  .event-card__edition,
  .event-card__button {
    font-size: clamp(0.8125em, 2vw, 1em);
  }
}

@media (max-width: 37em) {
  body {
    background-attachment: scroll;
  }

  .archive {
    padding: 1.5em 1.1em 3.5em;
  }

  .archive__header {
    margin-bottom: 2.75em;
  }

  .archive__logo {
    width: min(24em, 86vw);
  }

  .archive__subtitle {
    margin-top: -0.5em;
    font-size: 0.8125em;
    letter-spacing: 0.3em;
  }

  .current-event {
    width: min(32em, 96vw);
    margin-bottom: 4em;
  }

  .current-event__logo-link {
    width: 100%;
  }

  .current-event__logo {
    margin: -2.8em 0 -0.75em;
  }

  .current-event__button {
    position: static;
    min-width: min(18em, 88%);
    font-size: 0.875em;
  }

  .events {
    width: min(22em, 94vw);
    grid-template-columns: 1fr;
    gap: 2.35em;
  }

  .event-card__title {
    font-size: 1.55em;
  }

  .event-card__edition,
  .event-card__button {
    font-size: 0.95em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .current-event__logo-link,
  .current-event__button,
  .event-card,
  .event-card__button {
    transition: none;
  }
}

