*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, .64);
  --line: rgba(255, 255, 255, .34);
  --lime: #c7ff00;
  --magenta: #ff2bd6;
  --cyan: #24f7ff;
  --panel: rgba(0, 0, 0, .72);
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(120deg, rgba(199, 255, 0, .1) 0%, transparent 28%),
    linear-gradient(250deg, rgba(255, 43, 214, .13) 0%, transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255, 255, 255, .05) 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(255, 255, 255, .05) 20px);
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .88)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 18px);
}

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

a {
  color: inherit;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2rem);
}

.site-main {
  width: min(100%, 1360px);
  min-height: calc(100vh - clamp(2rem, 6vw, 4rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(1.5rem, 5vw, 4rem) 0 0;
}

.brand-link {
  display: inline-flex;
  justify-content: center;
  width: min(42vw, 178px);
  min-width: 118px;
}

.brand-logo {
  width: 100%;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, .18));
  background-repeat: no-repeat;
  animation: shimmer 2s infinite;
  -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right / 300% 100%;
  mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right / 300% 100%;
}

.section-bar,
.event-card__number,
.event-card__meta,
.event-card__action,
.social-link {
  font-size: .76rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.events {
  display: grid;
  gap: .9rem;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lime);
}

.section-bar::before {
  flex: 1;
  order: 1;
  height: 1px;
  margin: 0 .75rem;
  content: "";
  background: linear-gradient(90deg, var(--lime), var(--magenta), var(--cyan));
}

.section-bar span:last-child {
  order: 2;
}

.event-grid {
  display: grid;
  gap: .85rem;
}

.event-card {
  --accent: var(--lime);
  --accent-2: var(--cyan);
  position: relative;
  isolation: isolate;
  min-height: clamp(218px, 60vw, 360px);
  display: grid;
  align-content: end;
  gap: .9rem;
  padding: clamp(1rem, 5vw, 2rem);
  overflow: hidden;
  color: var(--fg);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 42%),
    linear-gradient(24deg, rgba(255, 255, 255, .08), transparent 40%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .84);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.event-card::before {
  position: absolute;
  inset: .7rem;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 6px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent), transparent 42%),
    repeating-linear-gradient(116deg, transparent 0 13px, rgba(255, 255, 255, .1) 14px 15px);
}

.event-card::after {
  position: absolute;
  right: clamp(1rem, 4vw, 2rem);
  top: clamp(.95rem, 4vw, 1.8rem);
  z-index: -1;
  width: clamp(118px, 34vw, 260px);
  aspect-ratio: 1;
  content: "";
  opacity: .22;
  background:
    conic-gradient(from 90deg, transparent 0 8deg, var(--accent) 8deg 16deg, transparent 16deg 24deg, var(--accent-2) 24deg 32deg, transparent 32deg);
  clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
}

.event-card:hover,
.event-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent),
    0 22px 80px rgba(0, 0, 0, .72);
}

.event-card:focus-visible,
.social-link:focus-visible,
.brand-link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.event-card--sonne {
  --accent: var(--magenta);
  --accent-2: var(--cyan);
}

.event-card__number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-grid;
  min-width: 2.6rem;
  min-height: 2.25rem;
  place-items: center;
  color: #000;
  background: var(--accent);
  border: 2px solid var(--fg);
  box-shadow: 5px 5px 0 var(--fg);
}

.event-card__meta {
  color: var(--accent);
}

.event-card__title {
  display: block;
  max-width: 11ch;
  font-size: clamp(2.05rem, 8.8vw, 4.1rem);
  font-weight: 950;
  line-height: .83;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    2px 0 0 var(--cyan),
    -2px 0 0 var(--magenta);
}

.event-card__action {
  justify-self: start;
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  color: var(--fg);
  background: rgba(0, 0, 0, .7);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
}

.event-card:hover .event-card__action,
.event-card:focus-visible .event-card__action {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  padding: .5rem 0 clamp(2rem, 5vw, 3rem);
}

.social-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.1rem;
  color: var(--fg);
  text-decoration: none;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #000;
  background: var(--fg);
  border-color: var(--fg);
}

@media (min-width: 980px) {
  .site-shell {
    padding: clamp(1.5rem, 4vw, 4rem);
  }

  .hero {
    padding-top: clamp(2rem, 6vw, 5rem);
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.25rem);
  }

  .events--single {
    width: min(100%, 980px);
    margin-inline: auto;
  }

  .event-grid--single {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .event-card {
    min-height: clamp(420px, 48vw, 560px);
  }

  .event-grid--single .event-card {
    min-height: clamp(380px, 36vw, 500px);
  }

  .event-card__title {
    font-size: clamp(2.85rem, 4.2vw, 4.5rem);
  }
}

@media (min-width: 1180px) {
  .site-main {
    gap: 2.75rem;
  }

  .event-card__title {
    font-size: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes shimmer {
  100% {
    -webkit-mask-position: left;
    mask-position: left;
  }
}
