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

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: #070612 url("/assets/images/bg.jpg") no-repeat fixed 50% 0;
  background-size: cover;
  color: #dceaf2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

a {
  color: #feff37;
}

a:hover,
a:focus-visible {
  color: #fff;
}

header {
  padding: 3rem 1rem 2rem;
}

header h1 {
  margin: 0;
}

header img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  /* The logo was cropped to remove the old Twitch address; fade the cut edge of its glow. */
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

main {
  background: rgba(7, 6, 18, 0.8);
  padding: 2rem 1rem 1rem;
}

main > section {
  max-width: 60rem;
  margin: 0 auto 3rem;
}

h2 {
  color: #feff37;
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-size: 1.875rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-2deg);
  margin: 0 0 1.5rem;
}

.center {
  text-align: center;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 2px solid #feff37;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.button:hover,
.button:focus-visible {
  background: #feff37;
  color: #070612;
  text-shadow: none;
}

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.episode-list a {
  display: block;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #dceaf2;
  transition: transform 0.2s;
}

.episode-list a:hover,
.episode-list a:focus-visible {
  transform: scale(1.03) rotate(-1deg);
  outline: 2px solid #feff37;
}

.episode-list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.episode-text {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem 1rem;
}

.episode-number {
  color: #feff37;
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.episode-title {
  font-weight: 600;
}

.episode-date {
  font-size: 0.8125rem;
  opacity: 0.75;
}

footer {
  background: rgba(7, 6, 18, 0.8);
  text-align: center;
  font-size: 0.875rem;
  padding: 0 1rem 1.5rem;
  margin: 0;
}

footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  h2,
  .episode-list a,
  .episode-list a:hover,
  .episode-list a:focus-visible {
    transform: none;
    transition: none;
  }
}
