:root {
  color-scheme: dark;
  --ink: #f8f5ff;
  --muted: #c6c0da;
  --faint: #8e88aa;
  --violet: #b7a2ff;
  --violet-soft: #ddceff;
  --gold: #cdb785;
  --glass: rgba(12, 11, 29, 0.44);
  --line: rgba(224, 214, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  background: #070812;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #070812;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #080814;
}

.backdrop,
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  z-index: -3;
  background-image: image-set(
    url("./assets/yeyu-night-hero.webp") type("image/webp"),
    url("./assets/yeyu-night-hero.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.02);
  transform: scale(1.015);
  animation: settle 2.2s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-shell::before {
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 18, 0.92) 0%,
      rgba(7, 8, 23, 0.79) 22%,
      rgba(8, 9, 26, 0.36) 45%,
      rgba(8, 9, 26, 0.05) 70%
    ),
    linear-gradient(
      180deg,
      rgba(3, 4, 14, 0.32) 0%,
      transparent 42%,
      rgba(3, 4, 13, 0.54) 100%
    );
}

.page-shell::after {
  z-index: -1;
  background:
    radial-gradient(
      circle at 18% 47%,
      rgba(114, 85, 186, 0.12),
      transparent 32%
    ),
    linear-gradient(180deg, transparent 72%, rgba(4, 5, 14, 0.35));
}

.stars {
  z-index: -1;
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(221, 206, 255, 0.82) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(205, 183, 133, 0.66) 0 0.8px, transparent 1.2px);
  background-position:
    12% 24%,
    34% 70%;
  background-size:
    170px 190px,
    240px 260px;
  mask-image: linear-gradient(90deg, black, transparent 53%);
}

.site-header,
.site-footer,
.hero {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(24px, 4vh, 48px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--violet-soft);
  border: 1px solid rgba(221, 206, 255, 0.38);
  transform: rotate(45deg);
  background: rgba(129, 104, 198, 0.11);
  box-shadow: 0 0 24px rgba(170, 142, 255, 0.18);
}

.brand-mark::first-letter {
  transform: rotate(-45deg);
}

.hero {
  display: flex;
  align-items: center;
  padding-top: 6vh;
  padding-bottom: 4vh;
}

.hero-copy {
  width: min(620px, 48vw);
  animation: reveal 1s 0.15s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

h1 {
  margin: 0;
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    ui-serif, Georgia, serif;
  font-size: clamp(3.5rem, 6.8vw, 6.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
  text-shadow: 0 12px 42px rgba(1, 2, 10, 0.48);
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  margin-top: 0.14em;
  color: transparent;
  background: linear-gradient(105deg, #ffffff 8%, #d9cbff 52%, #a98dec 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
  font-weight: 500;
}

.lead {
  margin: clamp(28px, 4vh, 42px) 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.13rem);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 24px rgba(1, 2, 10, 0.65);
}

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.traits li {
  padding: 8px 13px;
  color: rgba(239, 234, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

blockquote {
  position: relative;
  margin: clamp(32px, 5vh, 50px) 0 0;
  padding-left: 18px;
  color: rgba(221, 214, 239, 0.62);
  border-left: 1px solid rgba(205, 183, 133, 0.5);
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", ui-serif, Georgia, serif;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.site-footer {
  display: flex;
  align-items: center;
  padding-bottom: clamp(22px, 3.5vh, 40px);
  color: rgba(220, 215, 235, 0.42);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
}

.footer-separator {
  margin-inline: 10px;
  color: rgba(205, 183, 133, 0.56);
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .backdrop {
    background-position: 67% center;
  }

  .page-shell::before {
    background:
      linear-gradient(
        180deg,
        rgba(5, 6, 18, 0.26) 0%,
        rgba(5, 6, 18, 0.08) 34%,
        rgba(5, 6, 18, 0.72) 58%,
        rgba(5, 6, 18, 0.97) 100%
      ),
      linear-gradient(90deg, rgba(5, 6, 18, 0.28), transparent);
  }

  .stars {
    display: none;
  }

  .hero {
    align-items: end;
    padding-top: min(46vh, 430px);
    padding-bottom: 5vh;
  }

  .hero-copy {
    width: min(100%, 590px);
    padding: 22px 22px 24px;
    border: 1px solid rgba(224, 214, 255, 0.13);
    background: linear-gradient(
      135deg,
      rgba(10, 10, 27, 0.74),
      rgba(10, 10, 27, 0.46)
    );
    box-shadow: 0 20px 70px rgba(1, 2, 10, 0.3);
    backdrop-filter: blur(12px);
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4.3rem);
  }

  .lead {
    line-height: 1.75;
  }

  blockquote {
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .hero {
    padding-inline: 18px;
  }

  .site-header {
    padding-top: 20px;
  }

  .hero {
    padding-top: 47vh;
  }

  .hero-copy {
    padding: 19px 18px 21px;
  }

  .desktop-break {
    display: none;
  }

  .site-footer {
    flex-wrap: wrap;
    row-gap: 6px;
    padding-bottom: 18px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop,
  .hero-copy {
    animation: none;
  }
}
