@layer theme {
  @media screen {
    :root {
      --vice-blue: #4d62d5;
      --vice-violet: #964dd2;
      --vice-magenta: #d82cd0;
      --vice-pink: #f453ba;
      --vice-rose: #f36b91;
      --vice-coral: #f28368;
      --vice-orange: #faa65d;
      --vice-cover: url("cover.webp");
      --vice-cover-tint: #c79abf;
      --vice-cover-ratio: 16 / 9;
      --vice-cover-focus: 58% 30%;
      --vice-cover-fade: 46%;
      --vice-cover-overlap: var(--space-2xl);
      --vice-glow-height: 58%;
      --vice-horizon: var(--space-md);
      --vice-ink-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.4);
      --vice-line: 0.1875rem;
      --vice-drift: 14s;
      --vice-sunset: linear-gradient(
        90deg,
        var(--vice-blue),
        var(--vice-violet),
        var(--vice-magenta),
        var(--vice-pink),
        var(--vice-orange),
        var(--vice-pink),
        var(--vice-magenta),
        var(--vice-violet),
        var(--vice-blue)
      );

      --color-highlight: var(--vice-pink);
      --color-accent: #a3216e;
      --color-accent-emphasis: #7a1552;
      --color-accent-soft: rgba(244, 83, 186, 0.16);
      --color-soon: rgba(244, 83, 186, 0.08);
      --color-navbar-muted: rgba(255, 255, 255, 0.86);
      --color-navbar-faint: rgba(255, 255, 255, 0.72);
    }
    :root[data-color-scheme="dark"] {
      --color-accent: #ff8fc0;
      --color-accent-emphasis: #ffb3d4;
    }
    .app-sidebar {
      background:
        linear-gradient(
            to top,
            var(--vice-orange) 0,
            var(--vice-coral) calc(0.5 * var(--vice-horizon)),
            var(--vice-rose) var(--vice-horizon),
            var(--vice-pink) calc(4 * var(--vice-horizon)),
            rgba(216, 44, 208, 0.82) 30%,
            rgba(150, 77, 210, 0.62) 46%,
            rgba(150, 77, 210, 0.4) 58%,
            rgba(77, 98, 213, 0.24) 72%,
            rgba(77, 98, 213, 0.1) 86%,
            rgba(77, 98, 213, 0) 100%
          )
          bottom / 100% var(--vice-glow-height) no-repeat,
        var(--color-navbar);
    }
    .app-sidebar::before {
      content: "";
      flex: none;
      aspect-ratio: var(--vice-cover-ratio);
      margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-sm))
        calc(-1 * var(--vice-cover-overlap));
      background:
        linear-gradient(
          to top,
          var(--color-navbar),
          transparent var(--vice-cover-fade)
        ),
        var(--vice-cover) var(--vice-cover-focus) / cover no-repeat
          var(--vice-cover-tint);
    }
    .app-nav a {
      text-shadow: var(--vice-ink-shadow);
    }
    .app-nav-classes a[aria-current="page"] {
      color: var(--color-navbar-text);
    }
    .app-sidebar-head {
      position: relative;
    }
    .app-brand {
      background: var(--vice-sunset) 0 0 / 200% 100%;
      background-clip: text;
      color: transparent;
      animation: vice-drift var(--vice-drift) linear infinite;
    }
    @keyframes vice-drift {
      to {
        background-position: -200% 0;
      }
    }
  }
  @media screen and (max-width: 74.99em) {
    .app-topbar-main {
      background:
        var(--vice-sunset) bottom / 100% var(--vice-line) no-repeat,
        var(--color-navbar);
    }
  }
}
