@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

:root {
  --red: #ff0000;
  --pink: #ff006e;
  --ink: #1a1a2e;
  --deep: #0a0a16;
  --fg: #ece9f7;
  --dim: #a49dc2;
  --line: rgba(255, 0, 110, .34);
  --line-soft: rgba(255, 0, 110, .16);
  --serif: 'EB Garamond', 'Crimson Text', Georgia, 'Songti SC', 'SimSun', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
  --sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(16px, 4vw, 44px);
  --r: 4px;
}

* { box-sizing: border-box; }

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

html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  overflow-x: hidden;
  background:
    radial-gradient(880px 520px at 88% -8%, rgba(255, 0, 110, .22), transparent 68%),
    radial-gradient(720px 460px at -6% 26%, rgba(255, 0, 0, .14), transparent 66%),
    linear-gradient(180deg, #0a0a16 0%, #0d0d1e 42%, #08080f 100%);
  background-color: var(--deep);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 0, 110, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, .06) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 82%);
  opacity: .7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .42) 0 1px, transparent 1px 3px);
  opacity: .42;
}

a { color: #ffb3cf; text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px var(--pad);
  background: rgba(9, 9, 20, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.top-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.top-nav-right { justify-content: flex-end; }

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  font-size: 16px;
  color: var(--dim);
  border-radius: var(--r);
  transition: color .18s, background .18s, box-shadow .18s;
}

.top-link:hover,
.top-link:focus-visible {
  color: #fff;
  background: rgba(255, 0, 110, .14);
  box-shadow: 0 0 14px -2px rgba(255, 0, 110, .7);
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .08em;
  text-shadow: 0 0 14px rgba(255, 0, 110, .85), 0 0 34px rgba(255, 0, 0, .45);
  white-space: nowrap;
}

.brand-logo { height: 34px; width: auto; }

.top-end { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 52px;
  min-height: 44px;
  padding: 6px 8px;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  background: rgba(255, 0, 110, .1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  box-shadow: 0 0 14px -4px rgba(255, 0, 110, .9), inset 0 -2px 0 var(--pink);
}

.burger:hover { background: rgba(255, 0, 110, .22); }
.burger-bar { width: 18px; height: 2px; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.burger-txt { font-size: 16px; line-height: 1.2; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 6, 14, .97);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .42s cubic-bezier(.6, .05, .2, 1), visibility .42s;
  visibility: hidden;
}

.veil.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

.veil-in {
  height: 100%;
  overflow-y: auto;
  padding: 18px var(--pad) 48px;
  max-width: 760px;
  margin: 0 auto;
}

.veil-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

.veil-mark {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .08em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, .8);
}

.veil-close {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 16px;
  font-family: var(--sans);
  color: #fff;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}

.veil-close:hover { background: rgba(255, 0, 110, .2); }

.veil-nav { display: flex; flex-direction: column; margin-top: 12px; }

.veil.is-open .veil-nav a { animation: rise .44s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 45ms); }

.veil-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 2px;
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 30px);
  color: var(--fg);
  border-bottom: 1px dashed var(--line-soft);
}

.veil-nav a:hover { color: #fff; text-shadow: 0 0 16px var(--pink); }

main { display: block; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: clamp(28px, 8vw, 64px) var(--pad) 48px;
  scroll-margin-top: 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  align-items: center;
  gap: clamp(18px, 5vw, 56px);
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-copy { text-align: left; }

.badge {
  display: inline-block;
  padding: 6px 13px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .16em;
  color: #ffd0de;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 0 16px -4px rgba(255, 0, 110, .95), inset 0 -2px 0 var(--pink);
  animation: bob 5.5s ease-in-out infinite;
}

.hero-title {
  position: relative;
  margin: 16px 0 0;
  font-size: clamp(2.15rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 110, .55), 0 0 46px rgba(255, 0, 0, .3);
}

.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .58;
  mix-blend-mode: screen;
}

.hero-title::before { color: var(--pink); animation: gl1 7s steps(2, end) infinite; }
.hero-title::after { color: var(--red); animation: gl2 9s steps(2, end) infinite; }

.hero-sub {
  max-width: 46ch;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--dim);
}

.hero-art {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(26, 26, 46, .9), rgba(10, 10, 22, .9));
  box-shadow: 0 0 0 1px rgba(255, 0, 110, .12), 0 24px 60px -28px rgba(255, 0, 110, .8);
  justify-self: end;
  will-change: transform;
}

.pix { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 14px rgba(255, 0, 110, .75)); }

.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: clamp(20px, 4vw, 48px);
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px var(--pad) 0;
  align-items: start;
}

.content { min-width: 0; }

.content > div {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 92px;
  animation: fadeUp .6s ease both;
}

.content > div:last-child { border-bottom: 0; }

.content h2 {
  margin: 0 0 .55em;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  line-height: 1.28;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 110, .4);
}

.content h3 {
  margin: 1.5em 0 .5em;
  font-size: 1.22rem;
  line-height: 1.35;
  color: #ffe3ec;
}

.content h2 > span,
.end-t > span,
.rail-t > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--pink);
  box-shadow: 0 8px 20px -10px rgba(255, 0, 110, .95);
}

.content p { margin: 0 0 1.05em; font-size: 17px; line-height: 1.85; }
.content ul, .content ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.content li { margin: .35em 0; line-height: 1.8; }
.content li::marker { color: var(--pink); }
.content a { color: #ff9fc4; text-decoration: underline; text-underline-offset: 3px; }
.content strong { color: #fff; }
.content blockquote {
  margin: 1.2em 0;
  padding: 10px 0 10px 18px;
  border-left: 3px solid var(--pink);
  color: #ffd7e4;
  background: rgba(255, 0, 110, .06);
}
.content img { margin: 1em 0; border-radius: var(--r); border: 1px solid var(--line-soft); }
.content figure { margin: 1.2em 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1.1em 0; font-size: 16px; }
.content th, .content td { padding: 9px 10px; border: 1px solid var(--line-soft); text-align: left; }
.content th { background: rgba(255, 0, 110, .12); color: #fff; }

.rail {
  position: sticky;
  top: 92px;
  padding: 16px;
  background: rgba(26, 26, 46, .62);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: inset 0 -2px 0 rgba(255, 0, 110, .6), 0 18px 46px -30px rgba(255, 0, 110, .9);
}

.rail-t {
  margin: 0 0 10px;
  font-size: 16px;
  font-family: var(--mono);
  letter-spacing: .2em;
  color: #ffd0de;
}

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

.rail-nav li { border-bottom: 1px dashed var(--line-soft); }

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 2px;
  font-size: 16px;
  color: var(--dim);
  transition: color .16s, padding-left .16s;
}

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

.totop {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 8px;
  font-family: var(--sans);
  font-size: 16px;
  color: #fff;
  background: rgba(255, 0, 110, .14);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}

.totop:hover { background: rgba(255, 0, 110, .3); }

.end {
  max-width: 1160px;
  margin: 12px auto 0;
  padding: 26px var(--pad) 34px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.end-t {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .2em;
  color: #ffd0de;
}

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

.end-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 16px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(26, 26, 46, .8);
  box-shadow: inset 0 -2px 0 var(--pink);
  transition: box-shadow .18s, background .18s;
}

.end-list a:hover { background: rgba(255, 0, 110, .2); box-shadow: 0 0 20px -4px var(--pink), inset 0 -2px 0 var(--pink); }

.foot {
  padding: 22px var(--pad) 18px;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 12, .92);
}

.foot-mark {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 10.5vw, 6.4rem);
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 0 26px rgba(255, 0, 110, .5);
}

.foot-mark a { color: inherit; }

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.foot-nav dl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; }

.foot-nav dt {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .16em;
  color: var(--pink);
}

.foot-nav dd { margin: 0; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 16px;
  color: var(--dim);
}

.foot-nav a:hover { color: #fff; text-shadow: 0 0 12px var(--pink); }

.copy { margin: 0; font-size: 16px; color: #7f7897; }

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

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

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes gl1 {
  0%, 90%, 100% { transform: translate(2px, -2px); }
  93% { transform: translate(7px, -3px) skewX(-7deg); }
  96% { transform: translate(-3px, 2px); }
}

@keyframes gl2 {
  0%, 88%, 100% { transform: translate(-2px, 2px); }
  91% { transform: translate(-6px, 3px) skewX(6deg); }
  95% { transform: translate(3px, -1px); }
}

@media (max-width: 1000px) {
  .body-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: 2; margin-bottom: 8px; }
  .rail-nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
}

@media (max-width: 880px) {
  .top { grid-template-columns: 1fr auto; padding: 6px var(--pad); }
  .top-nav-left { display: none; }
  .top-nav-right { display: none; }
  .brand { justify-self: start; }
  .hero { min-height: auto; padding-top: 34px; padding-bottom: 34px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: start; width: min(52vw, 210px); }
  .hero-title { font-size: clamp(1.95rem, 8vw, 2.7rem); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .rail-nav ol { grid-template-columns: minmax(0, 1fr); }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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