@font-face {
  font-family: DISTRO;
  src: url("fonts/distro.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: DISTROB;
  src: url("fonts/distrob.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cover-fade: 2100ms ease;
}
* {
  box-sizing: border-box;
}
::selection {
  background: #ffdc55;
  color: #56261e;
}
a {
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: #56261e;
  color: #ffdc55;
  font-family: DISTRO, sans-serif;
  min-height: 100svh;
  isolation: isolate;
}
header,
main:not(.home-main),
footer:not(.home-footer) {
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  header,
  main:not(.home-main),
  footer:not(.home-footer),
  .home-main .covers,
  .home-footer > * {
    animation: content-fade-in 3s ease backwards;
  }
  @keyframes content-fade-in {
    from {
      opacity: 0;
    }
  }
}
.back {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: -1;
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
header .home-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 42px 6% 15px;
  color: inherit;
  text-decoration: none;
}
header .home-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -4px;
}
header h1 {
  font-family: DISTROB, DISTRO, sans-serif;
  font-size: clamp(23px, 3.3vw, 45px);
  letter-spacing: -2px;
  margin: 0;
  font-weight: 700;
}
header .line {
  height: 2px;
  background: currentColor;
  flex: 1;
}
.symbol {
  display: block;
  flex: none;
  width: 72px;
  height: auto;
}
main {
  height: calc(100svh - 200px);
  display: grid;
  place-content: center;
  padding: 24px;
}
.covers {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(69vw, 1000px);
}
.column {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.cover {
  color: inherit;
  text-decoration: none;
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 5px;
  isolation: isolate;
  width: 100%;
}
.cover img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0.8;
  transition: opacity var(--cover-fade);
}
.cover:is(:hover, :focus-visible) img {
  opacity: 1;
}
.cover:after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid #ffe36c;
  border-radius: 5px;
  box-shadow:
    0 0 4px #ffdf6780,
    0 0 12px #ffcf4d40,
    inset 0 0 4px #ffe36c30;
  opacity: 0;
  transition: opacity var(--cover-fade);
  pointer-events: none;
}
.cover:hover:after,
.cover:focus-visible:after {
  opacity: 1;
}
.cover:focus-visible {
  outline: 1px solid #fff1ab;
  outline-offset: 4px;
}
footer {
  position: fixed;
  bottom: 56px;
  width: 100%;
  padding-left: 6%;
  padding-right: 6%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.cover-title {
  position: fixed;
  bottom: 56px;
  left: 6%;
  max-width: 50vw;
  font-size: 17px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity var(--cover-fade),
    visibility var(--cover-fade);
}
/* A hovered cover takes precedence over a keyboard-focused cover. */
.covers:not(:has(.cover:hover)) .cover:focus-visible .cover-title {
  visibility: visible;
  opacity: 0.6;
}
@media (hover: hover) {
  .cover:hover .cover-title {
    visibility: visible;
    opacity: 0.6;
  }
}
.footer-nav {
  font-size: 17px;
  white-space: nowrap;
}
.footer-nav a {
  color: inherit;
  text-decoration: none;
}
.home-footer .footer-nav-row a {
  opacity: 0.6;
  transition: opacity var(--cover-fade);
  margin-left: 24px;
}
.home-footer .footer-nav-row a:is(:hover, :focus-visible) {
  opacity: 1;
}
.footer-nav a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}
.transmissions-footer .footer-nav-row {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.transmissions-footer .footer-nav-row::before,
.transmissions-footer .footer-nav-row::after {
  content: "";
  height: 2px;
  background: currentColor;
  flex: 1;
  opacity: 0.6;
}
@media (max-width: 650px) {
  body {
    display: flex;
    flex-direction: column;
    padding-bottom: 52px;
  }
  header .home-link {
    flex-direction: column;
    gap: 10px;
    padding: 20px 8% 0;
  }
  header h1 {
    font-size: clamp(23px, 8vw, 40px);
    letter-spacing: -1px;
    text-align: center;
  }
  header .line {
    order: 1;
    flex: none;
    width: 100%;
  }
  .symbol {
    width: clamp(76px, 28vw, 110px);
  }

  main {
    flex: 1;
    min-height: 0;
    padding: 16px 0;
  }
  .covers {
    display: grid;
    width: min(84vw, 400px, max(120px, calc(60svh - 156px)));
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(4px, 1.5vw, 8px);
  }
  .column {
    display: contents;
  }
  .cover {
    grid-column: span 2;
    border-radius: 3px;
  }
  .column:nth-child(3) .cover:nth-child(1) {
    grid-area: 1 / 3 / auto / span 2;
  }
  .column:nth-child(2) .cover:nth-child(1) {
    grid-area: 2 / 2 / auto / span 2;
  }
  .column:nth-child(4) .cover:nth-child(1) {
    grid-area: 2 / 4 / auto / span 2;
  }
  .column:nth-child(1) .cover {
    grid-area: 3 / 1 / auto / span 2;
  }
  .column:nth-child(3) .cover:nth-child(2) {
    grid-area: 3 / 3 / auto / span 2;
  }
  .column:nth-child(5) .cover {
    grid-area: 3 / 5 / auto / span 2;
  }
  .column:nth-child(2) .cover:nth-child(2) {
    grid-area: 4 / 2 / auto / span 2;
  }
  .column:nth-child(4) .cover:nth-child(2) {
    grid-area: 4 / 4 / auto / span 2;
  }
  .column:nth-child(3) .cover:nth-child(3) {
    grid-area: 5 / 3 / auto / span 2;
  }
  footer {
    padding-left: 8%;
    padding-right: 8%;
    bottom: 26px;
  }
  .cover-title {
    display: none;
  }
  .footer-nav {
    flex: 1;
    min-width: 0;
    font-size: 14px;
  }
  .footer-nav-row {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
  }
  .home-footer .footer-nav-row a {
    margin-left: 0;
  }
  .footer-dashes {
    height: 2px;
    background: currentColor;
    flex: 1;
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
