:root {
  --base: #261717;
  --ink: #150c0c;
  --red: #ff0000;
  --pink: #ff1493;
  --fg: #f9eded;
  --muted: #c7aeb2;
  --line: rgba(255, 130, 165, 0.24);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --radius: 4px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.012em;
  overflow-x: hidden;
  font-weight: 400;
}

body::before {
  content: '';
  position: fixed;
  inset: -20% -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 16% 10%, rgba(255, 0, 0, 0.44), transparent 68%),
    radial-gradient(46% 42% at 84% 20%, rgba(255, 20, 147, 0.4), transparent 70%),
    radial-gradient(52% 48% at 48% 90%, rgba(255, 80, 120, 0.24), transparent 74%),
    linear-gradient(162deg, #2d1617, #261717 46%, #1a0f10);
  background-size: 200% 200%;
  filter: saturate(1.2);
  animation: aurora 11s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 82%);
}

@keyframes aurora {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
  }
  100% {
    background-position: 32% 26%, 68% 18%, 44% 78%, 0 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

a {
  color: var(--fg);
}

.masthead {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(38, 23, 23, 0.58);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

.masthead-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 8px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.wing {
  min-width: 0;
}

.wing-left {
  justify-self: start;
}

.wing-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  animation: rise 0.6s both;
}

.nav-list li:nth-child(1) {
  animation-delay: 0.04s;
}

.nav-list li:nth-child(2) {
  animation-delay: 0.09s;
}

.nav-list li:nth-child(3) {
  animation-delay: 0.14s;
}

.nav-list li:nth-child(4) {
  animation-delay: 0.19s;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(255, 20, 147, 0.18);
  color: #fff;
}

.brandmark {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  background: linear-gradient(94deg, #ffffff, #ffc3d9 62%, #ff7fae);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.3s ease;
}

.brandmark:hover {
  transform: translateY(-1px);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--red), var(--pink));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 6px 20px rgba(255, 20, 147, 0.28);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.cta:hover {
  filter: brightness(1.1) saturate(1.1);
  transform: translateY(-1px);
}

.anchor-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid var(--line);
  background: rgba(26, 15, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-bar::-webkit-scrollbar {
  display: none;
}

.anchor-list {
  display: flex;
  gap: 4px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4px 22px;
  list-style: none;
}

.anchor-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  border-radius: var(--radius);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.anchor-list a:hover,
.anchor-list a.is-active {
  color: #fff;
  border-bottom-color: var(--pink);
}

.hero-zone {
  max-width: 1300px;
  margin: 0 auto;
  padding: 44px 22px 56px;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 44px;
}

.hero-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(255, 0, 0, 0.5), transparent 70%),
    radial-gradient(60% 60% at 75% 70%, rgba(255, 20, 147, 0.46), transparent 72%),
    linear-gradient(150deg, #3a1d1f, #241213);
  box-shadow: 0 26px 70px rgba(10, 4, 5, 0.5);
  animation: rise 0.8s both;
}

.hero-frame::after {
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -2px;
  height: 78px;
  background: linear-gradient(100deg, var(--red), var(--pink));
  clip-path: polygon(0 100%, 100% 18%, 100% 100%);
  opacity: 0.92;
  mix-blend-mode: screen;
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.03);
}

.hero-copy {
  text-align: center;
  animation: rise 0.85s 0.1s both;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 700;
  background: linear-gradient(96deg, #ffffff 12%, #ffc8dd 58%, #ff69b4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.body-zone {
  max-width: 1300px;
  margin: 0 auto;
  padding: 6px 22px 72px;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 66px;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rise 0.7s 0.15s both;
}

.rail small {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1.5;
}

.rail h2 {
  margin: 4px 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rail-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-nav li {
  animation: rise 0.55s both;
}

.rail-nav li:nth-child(1) {
  animation-delay: 0.18s;
}

.rail-nav li:nth-child(2) {
  animation-delay: 0.22s;
}

.rail-nav li:nth-child(3) {
  animation-delay: 0.26s;
}

.rail-nav li:nth-child(4) {
  animation-delay: 0.3s;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 2px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: color 0.22s ease, padding-left 0.22s ease;
}

.rail-nav a:hover {
  color: #fff;
  padding-left: 6px;
}

.prose {
  min-width: 0;
  max-width: 76ch;
}

.prose article[id] {
  scroll-margin-top: 118px;
}

.prose h2 {
  margin: 2.1em 0 0.6em;
  padding-top: 0.7em;
  font-size: clamp(1.34rem, 2.4vw, 1.78rem);
  line-height: 1.32;
  letter-spacing: -0.024em;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin: 1.7em 0 0.5em;
  font-size: 1.16rem;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose li {
  margin: 0 0 0.45em;
}

.prose a {
  color: #ff9dc4;
  text-underline-offset: 3px;
}

.prose strong {
  color: #fff;
}

.prose figure {
  margin: 1.5em 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.1em;
  border-left: 3px solid var(--pink);
  background: var(--glass);
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--ink);
}

.site-foot {
  max-width: 1300px;
  margin: 0 auto;
  padding: 56px 22px 40px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 38px;
  border-top: 1px solid var(--line);
}

.foot-mega {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  background: linear-gradient(96deg, var(--red), var(--pink) 58%, #ffd2e3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-note {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.foot-nav small {
  display: block;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1.5;
}

.foot-nav h2 {
  margin: 4px 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.foot-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-list li {
  animation: rise 0.5s both;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.22s ease;
}

.foot-list a:hover {
  color: #fff;
}

.colophon {
  grid-column: 1 / -1;
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .masthead-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 6px 12px;
    gap: 2px;
  }

  .brandmark {
    order: -1;
    justify-self: center;
  }

  .wing-left,
  .wing-right {
    justify-self: stretch;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .wing-left::-webkit-scrollbar,
  .wing-right::-webkit-scrollbar {
    display: none;
  }

  .wing-right {
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 4px;
  }

  .nav-list {
    justify-content: center;
  }

  .anchor-list {
    padding: 4px 12px;
  }

  .hero-zone {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 24px 18px 44px;
  }

  .hero-copy {
    order: -1;
  }

  .hero-frame {
    aspect-ratio: 5 / 4;
  }

  .body-zone {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 0 18px 56px;
  }

  .rail {
    position: static;
  }

  .rail-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }

  .site-foot {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 40px 18px 32px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero-visual {
    object-position: center 22%;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 8.4vw, 2.4rem);
  }

  .foot-list {
    grid-template-columns: 1fr;
  }
}

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

  body::before,
  body::after,
  .nav-list li,
  .rail-nav li,
  .foot-list li,
  .hero-frame,
  .hero-copy,
  .rail {
    animation: none !important;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
