body {
  background:
    radial-gradient(circle at 85% 0%, var(--bg-accent-1) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, var(--bg-accent-2) 0%, transparent 40%),
    var(--bg-canvas);
}

main > section:first-of-type {
  position: relative;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel);
}

main > section:first-of-type > img {
  width: 100%;
  height: clamp(210px, 32vw, 320px);
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(1) brightness(.8);
}

main > section:first-of-type > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.2rem, 2vw + .9rem, 2rem);
  background: linear-gradient(to top, rgba(15, 23, 42, .78), rgba(15, 23, 42, .4) 45%, rgba(15, 23, 42, .15));
}

h1 {
  font-size: clamp(1.95rem, 4vw, 3rem);
  color: var(--hero-title);
}

main > section:first-of-type > div > p {
  max-width: 64ch;
  margin: .55rem 0 0;
  color: var(--hero-sub);
}

#creative {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas:
    "code code code repo repo"
    "books books freeware freeware trailers"
    "music music song song song";
  gap: .85rem;
}

#creative > article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: box-shadow .16s ease;
}

#repo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .7rem;
}

#creative > article:hover,
#creative > article:focus-within {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

#creative > article:has(:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

#code { grid-area: code; }
#freeware { grid-area: freeware; }
#repo { grid-area: repo; }
#books { grid-area: books; }
#trailers { grid-area: trailers; }
#music { grid-area: music; }
#song { grid-area: song; }

#code::after,
#repo::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2.5rem;
  transform: translateY(-50%) rotate(-11deg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .14;
  filter: grayscale(1) brightness(.58) contrast(1.04);
  pointer-events: none;
}

#code::after {
  width: clamp(8rem, 16vw, 11rem);
  height: clamp(8rem, 16vw, 11rem);
  background-image: url("../icons/github.svg");
}

#repo::after {
  width: clamp(8rem, 16vw, 11rem);
  height: clamp(8rem, 16vw, 11rem);
  background-image: url("../icons/bashly-icon-square.svg");
}

#code > *,
#repo > * {
  position: relative;
  z-index: 1;
}

@media (prefers-color-scheme: dark) {
  #code::after {
    filter: grayscale(1) invert(1) brightness(1.02) contrast(1.02);
    opacity: .16;
  }

  #repo::after {
    filter: grayscale(1) brightness(1.16) contrast(.95);
    opacity: .11;
  }
}

#creative article header p {
  margin: 0 0 .5rem;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 750;
}

#creative article h2 {
  margin: 0 0 .35rem;
  font-size: 1.2rem;
  line-height: 1.2;
  transition: color .16s ease;
}

#creative article h2 a {
  color: inherit;
  text-decoration: none;
}

#creative article h2 a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

#creative > article:hover h2,
#creative > article:focus-within h2 {
  color: var(--accent);
}

#creative article p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

#song > div {
  margin-top: .6rem;
  height: clamp(170px, 22vw, 210px);
}

#song iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

@media (max-width: 880px) {
  #code::after {
    right: -1.25rem;
  }

  #repo::after {
    right: -1.25rem;
  }

  #creative {
    grid-template-columns: 1fr;
    grid-template-areas:
      "code"
      "repo"
      "freeware"
      "books"
      "trailers"
      "music"
      "song";
  }
}
