:root {
  --foreground: rgba(112, 92, 76, 0.74);
  --shadow-light: rgba(255, 255, 255, 0.78);
  --shadow-warm: rgba(88, 71, 58, 0.16);
  --background-1: url("/assets/shaoruiyi-background.jpg?v=20260607-photo2");
}

* {
  box-sizing: border-box;
}

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

body {
  font-family:
    "Noto Serif SC",
    "Songti SC",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
  color: var(--foreground);
  background: #eef3f5;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  grid-template-rows: 1fr;
}

.background-stack,
.background-image {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.background-image {
  background-image: var(--background-1);
  background-position: center;
  background-size: cover;
}

.site-shell::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 81% 36%, rgba(255, 255, 255, 0.22), transparent 16rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08) 58%, rgba(255, 255, 255, 0.24));
}

.site-shell::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.hero {
  display: grid;
  min-height: 100svh;
  align-items: start;
  justify-items: end;
  padding: clamp(5.5rem, 13vh, 9rem) clamp(6rem, 12vw, 12rem) clamp(2rem, 8vh, 5rem) clamp(2rem, 6vw, 5rem);
  text-align: center;
}

h1 {
  margin: 0;
  max-width: 8rem;
  font-family:
    "Kaiti SC",
    "STKaiti",
    "KaiTi",
    "Songti SC",
    serif;
  font-size: clamp(3rem, 4.8vw, 5.3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.16em;
  text-wrap: balance;
  writing-mode: vertical-rl;
  text-shadow:
    0 0.04em 0.08em var(--shadow-light),
    0 1rem 2.5rem var(--shadow-warm);
}

@media (max-width: 640px) {
  .background-image {
    background-position: 42% center;
  }

  .hero {
    align-items: start;
    justify-items: end;
    padding: 12svh 10vw 2rem 1.5rem;
  }

  h1 {
    max-width: 6rem;
    font-size: clamp(2.6rem, 12vw, 4rem);
    letter-spacing: 0.12em;
  }
}
