@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

:root{
  --paper:#fdfbf7;
  --mist:#f5f5f5;
  --ink:#1a1a1a;
  --line:#e0e0e0;
  --dim:#6b6760;
  --radius:18px;
  --shadow:0 3px 14px rgba(26,26,26,.055);
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:104px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Cormorant Infant","Songti SC","Noto Serif SC","Source Han Serif SC",Georgia,"PingFang SC",serif;
  font-size:17px;
  line-height:1.78;
  letter-spacing:.012em;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:9999;
  opacity:.26;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
}

a{color:var(--ink)}
img{max-width:100%;height:auto;display:block}

/* 顶部细条 */
.strip{
  margin:0;
  padding:9px 18px;
  text-align:center;
  font-size:16px;
  line-height:1.5;
  color:#453f38;
  letter-spacing:.1em;
  background:var(--mist);
  border-bottom:1px solid var(--line);
}

/* 页头 */
.masthead{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}

.brandline{
  max-width:1080px;
  margin:0 auto;
  padding:14px 20px 8px;
  display:flex;
  align-items:center;
  gap:10px;
}

.brandmark{display:flex;align-items:center;min-height:40px}
.brandmark .mark{height:34px;width:auto;border-radius:6px}
.brand{
  font-size:19px;
  letter-spacing:.16em;
  font-weight:600;
}

nav.pills{
  max-width:1080px;
  margin:0 auto;
  padding:0 10px 12px;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
nav.pills::-webkit-scrollbar{display:none}
nav.pills p{
  display:flex;
  gap:8px;
  margin:0;
  padding:0 10px;
  width:max-content;
}
nav.pills a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 17px;
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  color:var(--ink);
  background:var(--mist);
  border:1px solid var(--line);
  border-radius:999px;
}
nav.pills a:hover,
nav.pills a:focus-visible{border-color:var(--ink)}

/* 首屏 */
.hero{
  position:relative;
  overflow:hidden;
  background:var(--mist);
  border-bottom:1px solid var(--line);
}
.hero::before{
  content:"";
  position:absolute;
  inset:-20%;
  pointer-events:none;
  background-image:radial-gradient(#d7d2c7 1px,transparent 1px);
  background-size:22px 22px;
  opacity:.9;
}
.hero-inner{
  position:relative;
  z-index:1;
  max-width:1080px;
  margin:0 auto;
  padding:56px 20px;
  min-height:70vh;
  display:flex;
  align-items:center;
  gap:34px;
  flex-wrap:wrap;
}
.hero-text{flex:1 1 320px;min-width:0}
.hero h1{
  margin:0 0 18px;
  font-size:clamp(30px,5.6vw,54px);
  line-height:1.24;
  font-weight:600;
  letter-spacing:.02em;
}
.lede{
  margin:0;
  max-width:44ch;
  font-size:17px;
  line-height:1.8;
  color:#4a453f;
}
.hero-figure{flex:0 0 auto;width:200px}
.hero-art{
  width:100%;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 6px 18px rgba(26,26,26,.08);
  will-change:transform;
}

/* 主体网格 */
.wrap{
  max-width:1080px;
  margin:0 auto;
  padding:46px 20px 0;
  display:grid;
  grid-template-columns:212px minmax(0,1fr);
  gap:46px;
  align-items:start;
}

/* 侧栏 */
.toc{
  position:sticky;
  top:132px;
  padding:16px 15px 18px;
  background:var(--mist);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.toc h2{
  margin:0;
  font-size:16px;
  line-height:1.6;
  letter-spacing:.22em;
  font-weight:600;
  color:#4a453f;
}
.toc hr{
  margin:10px 0 12px;
  border:0;
  border-top:1px solid var(--line);
}
.toc ul{list-style:none;margin:0;padding:0}
.toc li + li{margin-top:1px}
.toc a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:7px 4px;
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  border-bottom:1px dotted transparent;
}
.toc a:hover{border-bottom-color:var(--ink)}

/* 正文 */
.prose{
  padding:34px 30px 38px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  min-width:0;
  overflow-wrap:break-word;
}
.prose > section{scroll-margin-top:118px}
.prose > section + section{
  margin-top:52px;
  padding-top:34px;
  border-top:1px solid var(--line);
}
.prose h2{
  margin:38px 0 0;
  font-size:clamp(22px,3vw,28px);
  line-height:1.36;
  font-weight:600;
  letter-spacing:.03em;
}
.prose > section > h2:first-child{margin-top:0}
.prose h3{
  margin:30px 0 0;
  font-size:20px;
  line-height:1.45;
  font-weight:600;
}
.prose hr{
  border:0;
  border-top:1px solid var(--line);
  margin:14px 0 22px;
}
.prose p{margin:14px 0}
.prose ul,.prose ol{margin:14px 0;padding-left:1.25em}
.prose li{margin:6px 0}
.prose a{
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.prose blockquote{
  margin:22px 0;
  padding:10px 18px;
  background:var(--mist);
  border-left:3px solid var(--ink);
  border-radius:0 12px 12px 0;
  color:#3a3730;
}
.prose blockquote p:first-child{margin-top:0}
.prose blockquote p:last-child{margin-bottom:0}
.prose img,
.prose figure img{
  margin:20px 0;
  border:1px solid var(--line);
  border-radius:14px;
}
.prose figcaption{
  margin:-10px 0 20px;
  font-size:16px;
  color:var(--dim);
}
.prose strong{font-weight:700}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:15px;
  background:var(--mist);
  border:1px solid var(--line);
  border-radius:6px;
  padding:1px 5px;
}
.prose table{
  display:block;
  overflow-x:auto;
  width:100%;
  margin:20px 0;
  border-collapse:collapse;
  font-size:16px;
}
.prose th,.prose td{
  border:1px solid var(--line);
  padding:8px 12px;
  text-align:left;
}

/* 页脚 */
footer{
  margin-top:76px;
  padding:40px 20px 30px;
  background:var(--mist);
  border-top:1px solid var(--line);
}
.cta{
  max-width:1080px;
  margin:0 auto 30px;
  padding:26px 26px 30px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.cta a{
  display:inline-block;
  font-family:"Great Vibes","Cormorant Infant","Songti SC",Georgia,serif;
  font-size:clamp(28px,6vw,46px);
  line-height:1.25;
  letter-spacing:.03em;
  text-decoration:none;
}
.foot-row{
  max-width:1080px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 26px;
}
.foot-mark{
  display:flex;
  align-items:center;
  font-size:16px;
  letter-spacing:.16em;
  color:var(--dim);
}
.foot-mark .mark{height:30px;width:auto}
.foot-nav{
  display:flex;
  flex-wrap:wrap;
  gap:2px 14px;
  flex:1 1 auto;
  justify-content:center;
}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:7px 2px;
  font-size:16px;
  line-height:1.5;
  color:#57524a;
  text-decoration:none;
}
.foot-nav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.foot-copy{
  font-size:16px;
  line-height:1.6;
  color:var(--dim);
  letter-spacing:.12em;
}

/* 揭示 */
@media (prefers-reduced-motion: no-preference){
  html.reveal .revealable{transition:opacity .18s linear}
  html.reveal .revealable:not(.is-in){opacity:0}
}

/* 窄屏 */
@media (max-width:900px){
  body{font-size:17px}
  .hero-inner{min-height:auto;padding:38px 18px;gap:22px}
  .hero-figure{width:130px}
  .wrap{
    grid-template-columns:1fr;
    gap:26px;
    padding:28px 16px 0;
  }
  .toc{position:static;padding:14px}
  .toc ul{display:flex;flex-wrap:wrap;gap:6px}
  .toc li + li{margin:0}
  .toc a{
    padding:8px 12px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--paper);
  }
  .prose{padding:22px 16px 28px}
  .prose > div{scroll-margin-top:96px}
  footer{padding:32px 16px 24px}
  .cta{padding:20px 18px 24px}
  .foot-nav{justify-content:flex-start}
}

@media (max-width:420px){
  .hero-figure{width:104px}
  .brand{font-size:17px}
  .foot-row{gap:10px}
}

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