@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{
  --paper:#ffffff;
  --paper-2:#f5f5f5;
  --ink:#1f1f1f;
  --line:rgba(31,31,31,.14);
  --grid:rgba(31,31,31,.05);
  --mute:rgba(31,31,31,.68);
  --glass:rgba(255,255,255,.74);
  --shadow:0 4px 14px rgba(31,31,31,.07);
  --maxw:1200px;
  --pad:clamp(16px,4vw,36px);
  --font:"Space Grotesk","Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  background-color:var(--paper-2);
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:72px 72px;
  background-position:-1px -1px;
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.75;
  letter-spacing:.01em;
}

body.menu-lock{overflow:hidden}

img{display:block;max-width:100%;height:auto}
a{color:inherit}
ul{margin:0;padding:0;list-style:none}
p{margin:0}
h1,h2,h3,h4{margin:0;line-height:1.14;letter-spacing:-.03em}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:95;
  padding:12px 18px;
  border-radius:4px;
  background:var(--ink);
  color:#fff;
  font-size:16px;
  text-decoration:none;
}
.skip:focus{left:12px;top:12px}

.topbar{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px var(--pad);
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(14px) saturate(150%);
  border-bottom:1px solid var(--line);
}

.brand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1.5px solid var(--ink);
  border-radius:4px;
  background:var(--paper);
  color:var(--ink);
  text-decoration:none;
  transition:transform .25s ease,background .25s ease,color .25s ease;
}
.brand:hover{transform:rotate(-5deg);background:var(--ink);color:#fff}
.brand-ch{font-size:20px;font-weight:700;line-height:1}
.brand-img{width:26px;height:26px;object-fit:contain}

.burger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border:1.5px solid var(--ink);
  border-radius:4px;
  background:var(--paper);
  color:var(--ink);
  font-family:inherit;
  font-size:16px;
  font-weight:600;
  letter-spacing:.08em;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}
.burger:hover{background:var(--ink);color:#fff}
.burger[aria-expanded="true"]{background:var(--ink);color:#fff}

.strip{
  position:sticky;
  top:65px;
  z-index:50;
  overflow-x:auto;
  scrollbar-width:none;
  background:rgba(245,245,245,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.strip::-webkit-scrollbar{display:none}
.strip-list{
  display:flex;
  gap:8px;
  width:max-content;
  min-width:100%;
  padding:8px var(--pad);
}
.strip-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--paper);
  font-size:16px;
  font-weight:500;
  white-space:nowrap;
  text-decoration:none;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.strip-list a:hover,
.strip-list a.is-active{background:var(--ink);color:#fff;border-color:var(--ink)}

.menu{
  position:fixed;
  inset:0;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:84px 20px 40px;
  overflow-y:auto;
  background:rgba(245,245,245,.95);
  backdrop-filter:blur(18px);
  opacity:0;
  visibility:hidden;
  transform:translateY(-10px);
  transition:opacity .28s ease,transform .28s ease,visibility .28s;
}
.menu.is-open{opacity:1;visibility:visible;transform:none}
.menu-nav{width:100%;max-width:720px}
.menu-list{display:grid;gap:2px}
.menu-list a{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:58px;
  padding:10px 14px;
  border-bottom:1px solid var(--line);
  font-size:clamp(20px,4.4vw,30px);
  font-weight:600;
  letter-spacing:-.02em;
  text-decoration:none;
  transition:background .2s ease,transform .2s ease;
}
.menu-list a:hover{background:var(--paper);transform:translateX(6px)}
.menu-list em{font-style:normal;font-size:16px;font-weight:500;color:var(--mute)}

.hero{
  max-width:var(--maxw);
  min-height:45vh;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:clamp(36px,8vh,92px) var(--pad) clamp(28px,6vh,60px);
}
.hero-title{
  max-width:16ch;
  font-size:clamp(2.5rem,9vw,5.8rem);
  font-weight:700;
  line-height:1.02;
  letter-spacing:-.05em;
  will-change:transform;
}
.badge{
  display:inline-block;
  margin-top:22px;
  padding:8px 16px;
  border:1.5px solid var(--ink);
  border-radius:4px;
  background:var(--paper);
  box-shadow:var(--shadow);
  font-size:16px;
  font-weight:600;
  letter-spacing:.1em;
  transform:rotate(-2deg);
}
.subtitle{
  max-width:62ch;
  margin-top:14px;
  color:var(--mute);
  font-size:17px;
  line-height:1.7;
}

.shell{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 var(--pad) 80px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:clamp(20px,3vw,40px);
  align-items:start;
}

.prose{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.prose>div{
  padding:clamp(20px,3.2vw,36px);
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--glass);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
  scroll-margin-top:140px;
}
.js .prose>div{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease,transform .5s ease;
}
.js .prose>div.in{opacity:1;transform:none}

.prose h2{
  margin:0 0 12px;
  font-size:clamp(1.5rem,3.4vw,2.1rem);
  font-weight:700;
}
.prose h2::after{
  content:"";
  display:block;
  width:44px;
  height:4px;
  margin-top:12px;
  background:var(--ink);
}
.prose h3{margin:26px 0 8px;font-size:1.18rem;font-weight:600}
.prose p{margin:0 0 14px}
.prose p:last-child{margin-bottom:0}
.prose ul{margin:0 0 16px;padding-left:1.3em;list-style:disc}
.prose ol{margin:0 0 16px;padding-left:1.4em;list-style:decimal}
.prose li{margin:0 0 8px}
.prose a{text-decoration:underline;text-underline-offset:3px}
.prose blockquote{
  margin:18px 0;
  padding:12px 18px;
  border-left:4px solid var(--ink);
  background:rgba(31,31,31,.045);
}
.prose blockquote p:last-child{margin-bottom:0}
.prose img{
  margin:18px 0;
  border:1px solid var(--line);
  border-radius:4px;
}
.prose strong{font-weight:700}

.rail{
  position:sticky;
  top:132px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--paper);
  box-shadow:var(--shadow);
}
.rail-h{
  font-size:16px;
  font-weight:700;
  letter-spacing:.16em;
}
.rail .rail-sub{
  margin:8px 0 14px;
  font-size:16px;
  color:var(--mute);
}
.rail-list{display:grid;gap:2px}
.rail-list a{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-height:40px;
  padding:8px 6px;
  border-bottom:1px dashed var(--line);
  font-size:16px;
  text-decoration:none;
  transition:background .2s ease,color .2s ease;
}
.rail-list b{min-width:2ch;font-size:16px;font-weight:600;color:var(--mute)}
.rail-list a:hover,
.rail-list a.is-active{background:var(--paper-2);color:var(--ink)}
.rail-list li:last-child a{border-bottom:0}

.foot{
  margin-top:40px;
  padding:clamp(32px,6vw,60px) var(--pad) 22px;
  background:var(--ink);
  color:#fff;
}
.foot-cta{
  max-width:var(--maxw);
  margin:0 auto;
  padding-bottom:clamp(22px,5vw,44px);
  border-bottom:1px solid rgba(255,255,255,.22);
}
.cta{
  display:inline-flex;
  align-items:center;
  min-height:56px;
  padding-bottom:2px;
  border-bottom:3px solid #fff;
  font-size:clamp(1.8rem,6vw,3.2rem);
  font-weight:700;
  letter-spacing:-.04em;
  text-decoration:none;
  transition:opacity .2s ease,transform .2s ease;
}
.cta:hover{opacity:.72;transform:translateX(5px)}
.foot-cols{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  padding:26px 0;
}
.foot-id{display:flex;align-items:center;gap:12px;font-style:normal}
.foot-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border:1.5px solid #fff;
  border-radius:4px;
  font-size:20px;
  font-weight:700;
}
.foot-name{font-size:18px;font-weight:600;letter-spacing:.05em}
.foot-links{display:grid;grid-template-columns:1fr 1fr;gap:2px;align-content:start}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 4px;
  border-bottom:1px solid transparent;
  font-size:16px;
  color:rgba(255,255,255,.84);
  text-decoration:none;
  transition:color .2s ease,border-color .2s ease;
}
.foot-links a:hover{color:#fff;border-bottom-color:#fff}
.copy{
  max-width:var(--maxw);
  margin:10px auto 0;
  font-size:16px;
  color:rgba(255,255,255,.62);
}

@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;top:auto}
  .foot-cols{grid-template-columns:1fr;padding-bottom:6px}
}

@media (max-width:600px){
  body{font-size:16px}
  .hero{min-height:auto;padding-top:46px}
  .hero-title{font-size:clamp(2.2rem,10vw,3.4rem)}
  .prose>div{padding:20px 16px;scroll-margin-top:130px}
  .foot-links{grid-template-columns:1fr}
  .menu-list a{font-size:20px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .prose>div{opacity:1;transform:none;transition:none}
  .brand,.burger,.strip-list a,.menu,.menu-list a,.cta,.rail-list a{transition:none}
  .brand:hover,.cta:hover,.menu-list a:hover{transform:none}
}

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