.aboutPage {
  position: relative;
  isolation: isolate;
  padding: var(--gap);
  background: linear-gradient(90deg, rgba(231, 230, 204, 0.010), transparent 28%, transparent 72%, rgba(87, 83, 84, 0.050));
}

.aboutPage > .weatherLayer {
  border-radius: inherit;
}

.aboutGrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr);
  gap: var(--gap);
  align-items: start;
}

.aboutGrid > div {
  min-width: 0;
  display: grid;
  gap: var(--gap);
  align-content: start;
}

.aboutBio,
.aboutCurrent,
.aboutComputer,
.aboutFavorites,
.aboutPokemon {
  min-width: 0;
}

.aboutBio .panelBody {
  padding: 0.78rem;
}

.aboutBio h1 {
  margin: 0 0 0.55rem;
  color: var(--boneText);
  font-size: 1.6rem;
  font-weight: 400;
}

.aboutBio p {
  margin: 0;
  line-height: 1.42;
}

.aboutBio p + p {
  margin-top: 0.7rem;
}

.aboutBio code {
  color: var(--lunarViolet);
  font-family: inherit;
}

.aboutCurrent dl,
.aboutComputer dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.3rem 0.7rem;
  margin: 0;
}

.aboutCurrent dt,
.aboutComputer dt {
  color: var(--muted);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.82);
}

.aboutCurrent dt::after,
.aboutComputer dt::after {
  content: " ...";
}

.aboutCurrent dd,
.aboutComputer dd {
  min-width: 0;
  margin: 0;
  color: var(--bodyText);
  overflow-wrap: anywhere;
}

.currentMarquee {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.currentMarquee > span,
.currentMarquee > a {
  width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currentMarquee:hover > span,
.currentMarquee:hover > a,
.currentMarquee:focus-visible > span,
.currentMarquee:focus-visible > a,
.currentMarquee:focus-within > span,
.currentMarquee:focus-within > a {
  overflow: visible;
  text-overflow: clip;
}

.currentMarquee:focus-visible {
  outline: 1px solid var(--lunarViolet);
  outline-offset: 1px;
}

#lastfmListening {
  color: inherit;
  text-decoration: none;
}

#lastfmListening > span:last-child {
  min-width: 0;
  line-height: inherit;
}

#lastfmListening strong,
#lastfmListening small {
  white-space: nowrap;
}

#lastfmListening strong {
  color: var(--boneText);
  font-size: inherit;
  font-weight: 400;
}

#lastfmListening small {
  color: var(--muted);
  font-size: inherit;
}

#lastfmListening small::before {
  content: " — ";
}

#lastfmListening:hover strong,
#lastfmListening:focus-visible strong {
  color: var(--lunarViolet);
}

.aboutFavorites > .panelBody {
  display: grid;
  gap: 0.55rem;
}

.favoriteGroup {
  min-width: 0;
  padding: 0.52rem;
  border: 1px solid var(--line);
  background: var(--panelDeep);
  box-shadow: inset 1px 1px 0 rgba(231, 230, 204, 0.04);
}

.favoriteGroup h3 {
  margin: 0 0 0.42rem;
  color: var(--boneText);
  font-family: var(--fontTitle);
  font-size: 1.02rem;
  font-weight: 400;
}

.favoriteGroup p {
  margin: 0;
  line-height: 1.35;
}

.albumGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
}

.posterGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
}

.posterGrid .albumItem {
  aspect-ratio: 2 / 3;
}

.albumItem {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: url("../assets/cursors/link select.cur") 4 1, pointer;
  outline: 0;
}

.favoriteGroup:nth-of-type(3) .albumItem {
  aspect-ratio: 5 / 7;
}

.albumCover {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(154, 132, 152, 0.18), transparent 45%),
    repeating-linear-gradient(0deg, var(--panelDeep) 0 2px, var(--container) 2px 4px);
}

.albumItem > span:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 0.35rem;
  background: rgba(52, 49, 50, 0.92);
  color: var(--boneText);
  font-size: 0.68rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 120ms ease, transform 120ms ease;
}

.albumItem:hover,
.albumItem:focus-visible {
  border-color: var(--lunarViolet);
}

.albumItem:hover > span:last-child,
.albumItem:focus-visible > span:last-child {
  opacity: 1;
  transform: translateY(0);
}

.albumItem small {
  color: var(--muted);
  font-size: inherit;
}


.aboutPokemon > .panelBody {
  padding: 0.38rem;
}

.pokemonTeam {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.22rem;
  align-items: end;
}

.pokemonSprite {
  --holoX: 50%;
  --holoY: 50%;
  --holoOpacity: 0.82;
  min-width: 0;
  height: 5.6rem;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: 0.12rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: url("../assets/cursors/link select.cur") 4 1, pointer;
}

.pokemonSprite:focus-visible {
  outline: 1px solid var(--lunarViolet);
  outline-offset: 1px;
}

.pokemonSprite img {
  max-width: 100%;
  max-height: 5rem;
  display: block;
  position: relative;
  z-index: 0;
  image-rendering: pixelated;
  filter: drop-shadow(1px 1px 0 rgba(20, 17, 20, 0.82));
}

.pokemonSprite.lunarHolo::before,
.pokemonSprite.lunarHolo::after {
  inset: auto;
  top: 50%;
  left: 50%;
  width: calc(100% - 0.24rem);
  height: 5rem;
  transform: translate(-50%, -50%);
}

.pokemonSprite[data-pokemon="ampharos"] {
  --holoMask: url("../assets/images/pokemon/ampharos.gif");
}

.pokemonSprite[data-pokemon="dragonite"] {
  --holoMask: url("../assets/images/pokemon/dragonite.gif");
}

.pokemonSprite[data-pokemon="flygon"] {
  --holoMask: url("../assets/images/pokemon/flygon.gif");
}

.pokemonSprite[data-pokemon="lapras"] {
  --holoMask: url("../assets/images/pokemon/lapras.gif");
}

.pokemonSprite[data-pokemon="megaAbsol"] {
  --holoMask: url("../assets/images/pokemon/megaAbsol.gif");
}

.pokemonSprite[data-pokemon="metagross"] {
  --holoMask: url("../assets/images/pokemon/metagross.gif");
}

.pokemonSprite.lunarHolo::before {
  filter: brightness(0.78) contrast(1.12);
}

.pokemonSprite.lunarHolo::after {
  filter: brightness(0.9) contrast(1.02);
}

.pokemonSprite.lunarHolo:hover::before,
.pokemonSprite.lunarHolo:focus-visible::before {
  opacity: 0.3;
}

.pokemonSprite.lunarHolo:hover::after,
.pokemonSprite.lunarHolo:focus-visible::after {
  opacity: 0.46;
}

@media (max-width: 58rem) {
  .aboutGrid {
    display: flex;
    flex-direction: column;
  }

  .aboutGrid > div {
    display: contents;
  }

  .aboutBio {
    order: 1;
  }

  .aboutCurrent {
    order: 2;
  }

  .aboutComputer {
    order: 3;
  }

  .aboutPokemon {
    order: 4;
  }

  .aboutFavorites {
    order: 5;
  }

  .pokemonTeam {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 41.6rem) {
  .aboutPage {
    padding: var(--gap);
  }

  .albumGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .posterGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .pokemonSprite {
    height: 5.25rem;
    padding: 0.1rem;
  }

  .pokemonSprite img {
    max-height: 4.7rem;
  }

  .pokemonSprite.lunarHolo::before,
  .pokemonSprite.lunarHolo::after {
    width: calc(100% - 0.2rem);
    height: 4.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .currentMarquee > span,
  .currentMarquee > a {
    transform: none !important;
  }
}
