:root {
  color-scheme: dark;
  --background: #000;
  --text: #f5f5f5;
  --muted: #737373;
  --line: rgba(255, 255, 255, .14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.profile {
  width: 100%;
  text-align: center;
  transform: translateY(-2vh);
  animation: profile-in .8s cubic-bezier(.22, 1, .36, 1) both;
}

h1 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.055em;
}

.profile > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.socials {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 4vw, 42px);
}

.social-link {
  width: 54px;
  height: 54px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  opacity: .58;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 1;
  transform: translateY(-4px);
}

.social-link:focus-visible,
.music-toggle:focus-visible,
.dialog-card button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 7px;
}

.social-link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.youtube {
  color: #ff0033;
}

.tiktok {
  color: #fff;
  filter: drop-shadow(-1px 0 #25f4ee) drop-shadow(1px 0 #fe2c55);
}

.discord {
  color: #5865f2;
}

.telegram {
  color: #26a5e4;
}

.roblox {
  color: #fff;
}

.roblox svg {
  width: 25px;
  height: 25px;
}

.music-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #a3a3a3;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.music-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
  transform: translateY(-2px);
}

.music-toggle svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.music-toggle .music-on {
  display: none;
}

.music-toggle[aria-pressed="true"] .music-on {
  display: block;
}

.music-toggle[aria-pressed="true"] .music-off {
  display: none;
}

.dialog[hidden] {
  display: none;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dialog.is-opening .dialog-backdrop {
  animation: backdrop-in .3s ease both;
}

.dialog.is-opening .dialog-card {
  animation: dialog-in .48s cubic-bezier(.16, 1, .3, 1) both;
}

.dialog.is-closing .dialog-backdrop {
  animation: backdrop-out .22s ease both;
}

.dialog.is-closing .dialog-card {
  animation: dialog-out .24s ease both;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.dialog-card {
  position: relative;
  width: min(320px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  background: #050505;
  text-align: center;
  transform: translateY(18vh);
}

.dialog-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.dialog-card strong {
  display: block;
  margin-top: 14px;
  font-family: "Newsreader", serif;
  font-size: 34px;
  font-weight: 500;
}

.dialog-card button {
  margin-top: 24px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: #b5b5b5;
  font-size: 11px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.dialog-card button:hover {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}

@keyframes profile-in {
  from {
    opacity: 0;
    transform: translateY(calc(-2vh + 12px));
  }
  to {
    opacity: 1;
    transform: translateY(-2vh);
  }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(calc(18vh + 30px)) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(18vh) scale(1);
  }
}

@keyframes dialog-out {
  from {
    opacity: 1;
    transform: translateY(18vh) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(calc(18vh + 18px)) scale(.98);
  }
}

@media (max-width: 560px) {
  main {
    padding: 20px;
  }

  h1 {
    font-size: clamp(3.6rem, 19vw, 5.4rem);
  }

  .socials {
    margin-top: 38px;
    gap: 15px;
  }

  .social-link {
    width: 46px;
    height: 46px;
  }

  .social-link svg {
    width: 24px;
    height: 24px;
  }

  .music-toggle {
    right: 18px;
    bottom: 18px;
  }

  .dialog-card {
    transform: translateY(13vh);
  }

  @keyframes dialog-in {
    from {
      opacity: 0;
      transform: translateY(calc(13vh + 24px)) scale(.97);
    }
    to {
      opacity: 1;
      transform: translateY(13vh) scale(1);
    }
  }

  @keyframes dialog-out {
    from {
      opacity: 1;
      transform: translateY(13vh) scale(1);
    }
    to {
      opacity: 0;
      transform: translateY(calc(13vh + 16px)) scale(.98);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
