:root {
  color-scheme: dark;
  --page: #050608;
  --text: #f5f7fa;
  --hero-text: #fff;
  --hero-muted: rgba(245, 247, 250, 0.74);
  --hero-line: rgba(255, 255, 255, 0.82);
  --font-rounded-zh: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-rounded-en: "Segoe UI", Arial, sans-serif;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #000;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background: #000 url("/assets/erix-room-background.png") center bottom / cover no-repeat;
}

body::after {
  background: rgba(0, 0, 0, 0.16);
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

a {
  color: inherit;
}

img,
svg,
audio,
video {
  display: block;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#root,
#app,
.route-view {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  background: transparent;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

.hero-section > div {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  width: min(80rem, 100%);
  min-height: 100vh;
  padding: 7rem 1rem 4rem;
  margin: 0 auto;
  gap: 2rem;
}

.hero-section .max-w-3xl {
  max-width: 48rem;
}

.hero-section h1 {
  margin: 0;
  color: var(--hero-text);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-section .h-px {
  width: 4rem;
  height: 1px;
  margin-top: 2rem;
  background: var(--hero-line);
}

.hero-section .max-w-xl {
  max-width: 36rem;
  margin: 2rem 0 0;
  color: var(--hero-muted);
  font-size: 1rem;
  line-height: 2;
  text-wrap: pretty;
}

.hero-side {
  width: 100%;
}

.music-player-scale {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-section > div {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .hero-section .max-w-xl {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero-section > div {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
    padding-right: 2rem;
    padding-bottom: 5rem;
    padding-left: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
