@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

:root{
  --paper:#fdfbf7;
  --panel:#f5f5f5;
  --ink:#1a1a1a;
  --line:#e2ddd3;
  --mute:#6b665c;
  --radius:28px;
}

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

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

body{
  margin:0;
  position:relative;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans','Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:17px;
  line-height:1.72;
  font-weight:400;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.55;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
  background-size:180px 180px;
}

.sheet{
  position:relative;
  z-index:1;
  min-height:100vh;
}

a{color:inherit;transition:none}

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

h1,h2,h3,h4{
  font-family:'Be Vietnam Pro','Noto Sans',system-ui,sans-serif;
  line-height:1.16;
  letter-spacing:-.015em;
  margin:0 0 .5em;
  font-weight:700;
}

p{margin:0 0 1.05em}

/* 顶栏 */
.masthead{
  position:sticky;
  top:0;
  z-index:30;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  padding:10px 18px 14px;
}

.mast-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  max-width:1120px;
  margin:0 auto;
  padding-bottom:10px;
  border-bottom:1px dashed var(--line);
}

.brand{
  font-family:'Be Vietnam Pro',sans-serif;
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:.22em;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  min-height:44px;
}

.reach{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 20px;
  border:1px solid var(--ink);
  border-radius:999px;
  text-decoration:none;
  font-size:1rem;
  letter-spacing:.1em;
  background:var(--paper);
}

.reach:hover{background:var(--ink);color:var(--paper)}

.dock{max-width:1120px;margin:0 auto}

.dock-list{
  list-style:none;
  display:flex;
  gap:8px;
  margin:0;
  padding:12px 0 2px;
  overflow-x:auto;
  scrollbar-width:none;
}

.dock-list::-webkit-scrollbar{height:0}

.dock-list li{flex:0 0 auto}

.pill{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 17px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  text-decoration:none;
  font-size:1rem;
  line-height:1;
  white-space:nowrap;
}

.pill-n{
  font-style:normal;
  font-size:.8rem;
  letter-spacing:.12em;
  color:var(--mute);
}

.pill:hover{
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
}

.pill:hover .pill-n{color:var(--paper)}

/* 首屏 */
.hero{
  position:relative;
  min-height:45vh;
  display:grid;
  place-content:center;
  text-align:center;
  padding:7vh 20px 8vh;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}

.hero-mark{
  position:absolute;
  inset:0;
  margin:0;
  display:grid;
  place-items:center;
  overflow:hidden;
  pointer-events:none;
  user-select:none;
  font-family:'Be Vietnam Pro',sans-serif;
  font-weight:700;
  font-size:clamp(4rem,24vw,13rem);
  line-height:.78;
  letter-spacing:.02em;
  color:#eeebe1;
}

.hero-mark span{white-space:nowrap}

.hero h1{
  position:relative;
  z-index:1;
  margin:0 auto;
  max-width:22ch;
  font-size:clamp(2rem,7.2vw,4.6rem);
  line-height:1.06;
  letter-spacing:-.03em;
}

/* 主体 */
.stage{
  max-width:1120px;
  margin:0 auto;
  padding:36px 18px 0;
  display:grid;
  gap:34px;
  grid-template-columns:minmax(0,1fr);
}

.rail{
  border-top:2px solid var(--ink);
  padding-top:14px;
}

.rail-h{
  font-size:1rem;
  letter-spacing:.22em;
  margin:0 0 6px;
}

.subtitle{
  margin:0 0 14px;
  font-size:.85rem;
  letter-spacing:.16em;
  color:var(--mute);
}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 2px;
  text-decoration:none;
  font-size:1rem;
  border-bottom:1px dotted var(--line);
}

.rail-list a:hover{background:var(--panel);padding-left:10px}

.passage{
  min-width:0;
  max-width:70ch;
  padding-bottom:24px;
}

.passage section{
  scroll-margin-top:150px;
  padding-bottom:8px;
}

.passage section + section{
  margin-top:42px;
  padding-top:34px;
  border-top:1px solid var(--line);
}

.passage section:first-child{padding-top:0}

.passage h2{
  font-size:clamp(1.45rem,3.6vw,2.1rem);
}

.passage h3{
  font-size:clamp(1.15rem,2.4vw,1.35rem);
  margin-top:1.6em;
}

.passage a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}

.passage a:hover{background:var(--ink);color:var(--paper);text-decoration:none}

.passage ul,.passage ol{
  padding:0;
  margin:0 0 1.2em;
  list-style:none;
  display:grid;
  gap:12px;
}

.passage li{
  background:var(--panel);
  border-radius:var(--radius);
  padding:16px 20px;
  line-height:1.68;
}

.passage li::marker{content:""}

.passage blockquote,
.passage figure{
  margin:1.6em 0;
  padding:22px 24px;
  background:var(--panel);
  border-radius:var(--radius);
}

.passage blockquote p:last-child,
.passage figure p:last-child{margin-bottom:0}

.passage figcaption{
  margin-top:10px;
  font-size:.9rem;
  color:var(--mute);
}

.passage img{border-radius:var(--radius);margin:1.4em 0}

.passage strong{font-weight:700}

.passage table{
  width:100%;
  border-collapse:collapse;
  margin:1.4em 0;
  font-size:1rem;
}

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

.passage code{
  font-size:.95em;
  background:var(--panel);
  padding:1px 5px;
  border-radius:4px;
}

.passage hr{
  border:0;
  border-top:1px solid var(--line);
  margin:2em 0;
}

/* 页脚 */
.foot{
  margin-top:64px;
  border-top:2px solid var(--ink);
  background:var(--paper);
  padding:38px max(18px, calc((100% - 1120px) / 2)) 30px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:18px 24px;
  position:relative;
  z-index:1;
}

.foot p{margin:0}

.foot-brand{
  font-family:'Be Vietnam Pro',sans-serif;
  font-weight:700;
  letter-spacing:.18em;
  font-size:1rem;
}

.foot-cta a{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  font-family:'Be Vietnam Pro',sans-serif;
  font-weight:700;
  font-size:clamp(1.45rem,5vw,2.4rem);
  letter-spacing:-.02em;
  text-decoration:none;
  border-bottom:2px solid var(--ink);
}

.foot-cta a:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}

.foot small{
  grid-column:1 / -1;
  border-top:1px solid var(--line);
  padding-top:14px;
  font-size:.85rem;
  letter-spacing:.08em;
  color:var(--mute);
}

/* 滚动揭示 */
.reveal{opacity:0}
.reveal.in{opacity:1;transition:opacity .32s linear}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1 !important;transition:none !important}
}

@media (min-width:860px){
  .dock-list{flex-wrap:wrap;overflow:visible}
  .hero{min-height:45vh}
  .foot-cta a{font-size:2.4rem}
}

@media (min-width:960px){
  .stage{
    grid-template-columns:250px minmax(0,1fr);
    gap:52px;
    padding-top:52px;
  }
  .rail{
    position:sticky;
    top:150px;
    align-self:start;
  }
  .passage{max-width:68ch}
}

@media (max-width:560px){
  body{font-size:16px}
  .masthead{padding:8px 14px 12px}
  .brand{letter-spacing:.16em;font-size:1rem}
  .hero{padding:6vh 16px 7vh}
  .stage{padding:28px 14px 0}
  .passage li{padding:14px 16px}
  .foot{padding:32px 14px 26px;grid-template-columns:minmax(0,1fr)}
  .foot-cta a{font-size:1.6rem;border-bottom-width:2px}
}

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