@keyframes flicker {
  0% {
    background-position: 50% 100%;
  }

  20% {
    background-position: 0% 50%;
  }

  40% {
    background-position: 75% 25%;
  }

  60% {
    background-position: 25% 0%;
  }

  80% {
    background-position: 50% 75%;
  }

  100% {
    background-position: 0% 0%;
  }
}

* {
  box-sizing: border-box;
}

:root {
  font-family: "Cascadia Code", monospace;
}

body,
html {
  padding: 0;
  margin: 0;

  width: 100%;
  min-height: 100vh;
}

body {
  background-image: url("/img/textures/noise.png"), linear-gradient(to bottom, #070007, #19001b);
  background-size: 600px;

  background-color: #000;
  color: #fff;

  font-size: 1rem;

  animation-name: flicker;
  animation-duration: 100ms;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: both;

  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
  }
}

p {
  padding: 0;
  margin: 0;
}

.masked-icon {
  display: inline-block;
  width: 24px;
  height: 24px;

  background-color: currentColor;
  mask-image: var(--src);
  mask-size: 100%;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;

  width: 100%;
  max-width: 640px;
  min-height: 100vh;

  padding: 1rem;
}

main > section {
  width: 100%;
}

section.identity {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 1rem;
}

section.identity > img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 2px;
}

section.identity > span {
  display: flex;
  flex-direction: column;
  width: 100%;
}

section.identity > span > b {
  font-size: 1.5rem;
}

section.identity > span > p {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.75;
}

section.holographic {
  background-image: url("/img/textures/holo.png");
  background-color: #230125;
  background-size: 75%;

  padding: 0.75rem;

  border: 1px solid #fff1;
  border-radius: 3px;
  box-shadow: 0 0 24px #f04cff22;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eyebrow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.375rem;

  color: #fcc7ff;
  text-transform: uppercase;
  font-weight: 350;
}

.eyebrow > .masked-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.socials,
.activity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;

  width: 100%;
}

.socials > a,
.activity > a {
  background-color: #ffffff18;
  color: #fff;

  backdrop-filter: blur(1rem);
  text-decoration: none;
  border-radius: 2px;

  transition: background-color 0.1s;

  overflow: hidden;
  width: 100%;
}
.socials > a[href]:hover,
.activity > a[href]:hover {
  background-color: #fff2;
}

.socials > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.625rem;
}

.socials > a > * {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  text-align: center;
}

.socials > a img {
  width: 1.5rem;
  height: 1.5rem;
}

.socials > a > span {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;

  font-size: 1.25rem;
}

.socials > a > small {
  font-size: 1rem;
  font-weight: 350;
  opacity: 0.5;
}

.activity > a {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
  padding: 0.625rem;
  gap: 0.5rem;
}

.activity > a:has(> aside) {
  grid-template-columns: 1fr max-content;
}

.activity > a > * {
  height: 100%;
}

.activity > a > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.25rem;

  width: 100%;
}

.activity > a > div span {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  width: 100%;
}

.activity > a > div span b {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.375rem;
}

.activity > a > div span b > .masked-icon {
  width: 1rem;
  height: 1rem;
  margin-left: auto;
}

.activity > a > div span b > img {
  width: 1.25rem;
  height: 1.25rem;
}

.activity > a > div span p {
  font-weight: 350;
  opacity: 0.75;
}

.activity > a > div small {
  font-weight: 300;
  opacity: 0.5;
}

.film-cover {
  background-color: #fff1;

  height: 6rem;
  aspect-ratio: 7/10;
  object-fit: cover;

  border-radius: 2px;
}

main > footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

main > footer img {
  max-height: 32px;
}

.credit {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  margin-top: -1.5rem;

  color: #fff4;
}

.credit > a {
  color: #fcc7ff44;
  transition: color 0.1s;
}

.credit > a:hover {
  color: #fcc7ff88;
}

@media screen and (max-width: 640px) {
  .activity {
    grid-template-columns: 1fr;
  }
}
