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

:root{
  --paper:#fdfbf7;
  --ash:#f5f5f5;
  --ink:#1a1a1a;
  --line:#e0e0e0;
  --mute:#6d6a63;
  --max:1040px;
  --stick:118px;
  --sans:'Cabin','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --serif:Georgia,'Songti SC','Noto Serif SC','Source Han Serif SC',serif;
  --hand:'Amatic SC','Cabin','PingFang SC',sans-serif;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  transition:none;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.45;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
}

h1,h2,h3{font-weight:700;letter-spacing:.01em}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* ---- 顶部 ---- */
.masthead{
  position:sticky;
  top:0;
  z-index:20;
  background:var(--paper);
  border-bottom:1px solid var(--ink);
}

.masthead__note{
  margin:0;
  padding:7px 18px;
  background:var(--ash);
  border-bottom:1px solid var(--line);
  text-align:center;
  font-size:15px;
  letter-spacing:.06em;
  color:var(--mute);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.masthead__row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 18px;
  max-width:var(--max);
  margin:0 auto;
  padding:8px 18px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 4px;
  text-decoration:none;
  font-family:var(--hand);
  font-size:27px;
  font-weight:700;
  letter-spacing:.06em;
  white-space:nowrap;
}

.brand__mark{
  width:12px;
  height:12px;
  flex:none;
  background:var(--ink);
  border-radius:2px;
}

.jump{margin-left:auto;min-width:0}
.jump p{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:0 2px;
  justify-content:flex-end;
}
.jump a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:8px 9px;
  font-size:16px;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:4px;
}
.jump a::before{
  content:"";
  width:5px;
  height:5px;
  flex:none;
  background:var(--ink);
}
.jump a:hover,
.jump a:focus-visible{background:var(--ash);border-color:var(--line)}

/* ---- 首屏 ---- */
.hero{
  position:relative;
  display:grid;
  place-items:center;
  min-height:100vh;
  min-height:100svh;
  padding:58px 20px 78px;
  text-align:center;
  border-bottom:1px solid var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(#dcd8d0 1px,transparent 1px);
  background-size:16px 16px;
}

.hero h1{
  margin:0;
  max-width:15em;
  font-family:var(--serif);
  font-size:clamp(27px,6.4vw,54px);
  line-height:1.34;
  text-wrap:balance;
}

.hero__art{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:start;
  gap:14px;
  width:100%;
  max-width:420px;
  margin:30px auto 0;
}

.hero__frame{
  margin:0;
  padding:6px;
  background:var(--paper);
  border:1px solid var(--ink);
  border-radius:4px;
}
.hero__frame--b{margin-top:36px}
.hero__pic{
  display:block;
  width:100%;
  height:auto;
  filter:grayscale(1) contrast(1.04);
}

/* ---- 主体 ---- */
.main{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px 64px;
}

.paper{
  min-width:0;
  font-family:var(--serif);
  font-size:18px;
  line-height:1.85;
}

.paper > section{
  padding:40px 0 30px;
  border-bottom:1px solid var(--line);
  scroll-margin-top:calc(var(--stick) + 12px);
}
.paper > section:last-child{border-bottom:0}

.paper h2{
  margin:0 0 12px;
  font-size:clamp(21px,3.2vw,29px);
  line-height:1.4;
}
.paper h3{margin:28px 0 10px;font-size:19px}
.paper p{margin:0 0 18px}
.paper ul,.paper ol{margin:0 0 18px;padding-left:1.35em}
.paper li{margin:0 0 8px}
.paper strong{font-weight:700}
.paper a{text-decoration:underline;text-underline-offset:3px}
.paper img{
  max-width:100%;
  height:auto;
  border:1px solid var(--line);
  border-radius:4px;
  filter:grayscale(1);
}
.paper blockquote{
  margin:22px 0;
  padding:10px 18px;
  border-left:3px solid var(--ink);
  background:var(--ash);
}
.paper hr,.side hr{
  width:56px;
  margin:0 0 20px;
  border:0;
  border-top:1px solid var(--ink);
}
.paper time{
  font-family:var(--sans);
  font-size:15px;
  letter-spacing:.04em;
  color:var(--mute);
}

/* ---- 侧栏 ---- */
.side{
  padding-top:8px;
  border-top:1px solid var(--line);
  font-family:var(--sans);
}
.side h2{
  margin:0 0 10px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.22em;
}
.side__list{
  list-style:none;
  margin:0 0 20px;
  padding:0;
  counter-reset:s;
}
.side__list li{counter-increment:s}
.side__list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:4px 2px;
  font-size:16px;
  text-decoration:none;
  border-bottom:1px dotted var(--line);
}
.side__list a::before{
  content:counter(s,decimal-leading-zero);
  font-size:13px;
  color:var(--mute);
}
.side__list a:hover{background:var(--ash)}
.side__top{margin:0}
.side__top a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 2px;
  font-size:16px;
  text-decoration:none;
  border-bottom:1px solid var(--ink);
}

/* ---- 页脚 ---- */
.foot{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"mark" "desc" "links" "copy";
  gap:14px;
  margin-top:8px;
  padding:56px max(20px,calc((100% - var(--max)) / 2)) 40px;
  background:var(--ink);
  color:var(--paper);
  border-top:1px solid var(--ink);
}

.foot__mark{
  grid-area:mark;
  margin:0;
  font-family:var(--hand);
  font-weight:700;
  font-size:clamp(44px,13vw,96px);
  line-height:.95;
  letter-spacing:.04em;
}

.foot__desc{
  grid-area:desc;
  margin:0;
  max-width:36ch;
  font-size:16px;
  line-height:1.7;
  color:#d8d4cc;
}

.foot__links{
  grid-area:links;
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
.foot__links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 2px;
  font-size:16px;
  text-decoration:none;
  border-bottom:1px solid rgba(253,251,247,.3);
}
.foot__links a:hover{border-bottom-color:var(--paper)}

.foot__copy{
  grid-area:copy;
  display:block;
  margin-top:24px;
  padding-top:14px;
  border-top:1px solid rgba(253,251,247,.25);
  font-size:15px;
  letter-spacing:.08em;
  color:#cfcbc2;
}

/* ---- 动效 ---- */
@media (prefers-reduced-motion: no-preference){
  .paper > section{animation:rise .32s ease-out both}
  .paper > section:nth-child(1){animation-delay:.02s}
  .paper > section:nth-child(2){animation-delay:.05s}
  .paper > section:nth-child(3){animation-delay:.08s}
  .paper > section:nth-child(4){animation-delay:.11s}
  .paper > section:nth-child(5){animation-delay:.14s}
  .paper > section:nth-child(6){animation-delay:.17s}
  .paper > section:nth-child(7){animation-delay:.2s}
  .paper > section:nth-child(n+8){animation-delay:.23s}
}

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

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

/* ---- 断点 ---- */
@media (max-width:640px){
  .jump{
    width:100%;
    margin-left:0;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .jump::-webkit-scrollbar{display:none}
  .jump p{flex-wrap:nowrap;justify-content:flex-start}
  .jump a{white-space:nowrap}
  .masthead__row{gap:0;padding:6px 12px}
  .side{padding-top:28px}
  .foot__links{flex-direction:column;align-items:flex-start}
}

@media (min-width:641px){
  :root{--stick:88px}
}

@media (min-width:900px){
  .main{grid-template-columns:minmax(0,1fr) 236px;gap:56px}
  .side{position:sticky;top:calc(var(--stick) + 14px);border-top:0;padding-top:44px}
  .paper > section{padding-top:44px}
}

@media (min-width:760px){
  .foot{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"mark links" "desc links" "copy copy";
    gap:12px 44px;
  }
  .foot__links{align-items:flex-end}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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