:root{
  color-scheme: light;
  --bg:#f7f2e7;
  --paper:#fffdf8;
  --paper-soft:#f4efe4;
  --ink:#171412;
  --muted:#63584d;
  --line:rgba(23,20,18,.12);
  --line-strong:rgba(23,20,18,.2);
  --accent:#16213c;
  --accent-2:#8b3f29;
  --accent-3:#335b55;
  --shadow:0 18px 40px rgba(34, 28, 18, .09);
  --shadow-soft:0 10px 24px rgba(34, 28, 18, .07);
  --radius-xl:20px;
  --radius-lg:14px;
  --radius-md:10px;
  --max:1248px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-width:320px;
  color:var(--ink);
  font-family:"Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  line-height:1.78;
  background:
    radial-gradient(circle at 14% 0%, rgba(22,33,60,.09), transparent 19%),
    radial-gradient(circle at 88% 6%, rgba(139,63,41,.08), transparent 17%),
    linear-gradient(180deg, #f9f4eb 0%, var(--bg) 48%, #efe7da 100%);
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(23,20,18,.04) 1px, transparent 1px);
  background-size:100% 34px;
  opacity:.18;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.18), transparent 84%);
}
a{color:inherit;text-decoration:none}
p,ul,ol,table{margin:0}
strong{font-weight:700}

.skip-link{
  position:absolute;
  left:14px;
  top:10px;
  z-index:50;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow-soft);
  transform:translateY(-160%);
  transition:transform .2s ease;
}
.skip-link:focus{transform:translateY(0)}

.page-shell{
  width:min(var(--max), calc(100vw - 24px));
  margin:0 auto;
  padding:14px 0 42px;
}

.masthead{
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,252,.88);
  backdrop-filter:blur(14px);
  box-shadow:var(--shadow-soft);
}
.brand-lockup{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:12px;
  background:linear-gradient(145deg, var(--accent), #24365f);
  color:#fff9f0;
  font:800 18px/1 "Songti SC","Noto Serif SC",serif;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}
.brand-lockup strong{display:block;font-size:18px;line-height:1.08}
.brand-lockup p{margin-top:3px;color:var(--muted);font-size:12px}
.topnav{
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.topnav a{
  padding:8px 12px;
  border:1px solid transparent;
  border-radius:999px;
  background:rgba(22,33,60,.04);
  color:var(--muted);
}
.topnav a:hover,
.topnav a:focus-visible{
  background:rgba(22,33,60,.08);
  border-color:rgba(22,33,60,.14);
  color:var(--ink);
  outline:none;
}

.paper-grid{
  display:grid;
  grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr);
  gap:18px;
  align-items:start;
  margin-top:16px;
}

.lead-rail,
.story,
.about-card{
  min-width:0;
}

.lead-rail{
  position:sticky;
  top:94px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,239,228,.94));
  box-shadow:var(--shadow);
}
.eyebrow,
.section-kicker{
  display:inline-flex;
  width:fit-content;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(22,33,60,.12);
  border-radius:999px;
  background:rgba(22,33,60,.06);
  color:var(--accent);
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
}
h1,h2,h3{margin:0}
.lead-rail h1{
  margin-top:14px;
  font-family:"Songti SC","Noto Serif SC",serif;
  font-size:clamp(34px,4.3vw,58px);
  line-height:1.04;
  letter-spacing:-.05em;
}
.deck{
  margin-top:14px;
  color:var(--muted);
  line-height:1.88;
}
.rail-points{
  margin-top:18px;
  padding-left:18px;
  color:#4f4c49;
  line-height:1.9;
}
.rail-points li+li{margin-top:8px}

.story{
  display:grid;
  gap:16px;
}
.intro-band,
.section,
.about-card{
  border:1px solid var(--line);
  background:var(--paper);
  box-shadow:var(--shadow);
}
.intro-band{
  padding:26px 26px 24px;
  border-radius:18px;
}
.intro-band h2{
  margin-top:14px;
  font-family:"Songti SC","Noto Serif SC",serif;
  font-size:clamp(28px,3.2vw,44px);
  line-height:1.12;
  letter-spacing:-.04em;
}
.lead{
  margin-top:14px;
  max-width:62ch;
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.9;
}

.section{
  padding:24px;
  border-radius:18px;
}
.section-heading{
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.section h2{
  font-family:"Songti SC","Noto Serif SC",serif;
  font-size:clamp(22px,2.6vw,34px);
  line-height:1.14;
  letter-spacing:-.03em;
}

.prose-columns{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(270px,.85fr);
  gap:16px;
}
.prose-columns article{
  font-size:1.03rem;
  line-height:1.95;
  color:#2b2520;
}
.prose-columns p+p{margin-top:14px}
.fact-note{
  padding:18px;
  border-radius:14px;
  border:1px solid rgba(22,33,60,.12);
  background:linear-gradient(180deg, #faf7f0, #f1eadf);
}
.note-title{
  margin-bottom:10px;
  font-weight:700;
  color:var(--accent);
}
.fact-note ul{
  padding-left:18px;
  color:#4f4941;
  line-height:1.9;
}
.fact-note li+li{margin-top:8px}

.check-table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--line-strong);
  background:#fff;
}
.check-table th,
.check-table td{
  text-align:left;
  vertical-align:top;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.check-table thead th{
  background:#f4efe5;
  color:var(--accent);
  font-size:.92rem;
  letter-spacing:.01em;
}
.check-table tbody th{
  width:16%;
  color:var(--ink);
  background:#fcfaf6;
}
.check-table tbody tr:last-child th,
.check-table tbody tr:last-child td{border-bottom:0}

.step-list{
  list-style:none;
  padding:0;
  display:grid;
  gap:12px;
}
.step-list li{
  display:grid;
  gap:6px;
  padding:16px 16px 16px 18px;
  border-radius:14px;
  border-left:4px solid var(--accent);
  background:linear-gradient(180deg, #fff, #f8f4eb);
}
.step-list strong{
  color:var(--ink);
}
.step-list span{
  color:var(--muted);
  line-height:1.85;
}

.section--closing{
  border-left:4px solid var(--accent-2);
}
.closing-grid{
  display:grid;
  gap:10px;
  color:var(--muted);
  line-height:1.9;
}

.about-card{
  max-width:760px;
  margin:18px auto 0;
  padding:28px;
  border-radius:18px;
}
.about-card h1{
  margin-top:14px;
  font-family:"Songti SC","Noto Serif SC",serif;
  font-size:clamp(32px,4vw,54px);
  line-height:1.06;
  letter-spacing:-.05em;
}
.about-card p{
  margin-top:14px;
  color:var(--muted);
  line-height:1.92;
}
.home-link-row{margin-top:18px}
.home-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(22,33,60,.16);
  background:var(--accent);
  color:#f7f4ee;
}

.footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-top:18px;
  padding:12px 4px 0;
  color:var(--muted);
  font-size:.95rem;
}

@media (max-width: 980px){
  .paper-grid,
  .prose-columns{
    grid-template-columns:1fr;
  }
  .lead-rail{
    position:static;
  }
}

@media (max-width: 720px){
  .page-shell{
    width:min(var(--max), calc(100vw - 18px));
    padding-top:10px;
  }
  .masthead{
    align-items:flex-start;
    flex-direction:column;
    border-radius:16px;
  }
  .topnav{
    margin-left:0;
    justify-content:flex-start;
  }
  .lead-rail,
  .intro-band,
  .section,
  .about-card{
    padding:18px;
  }
  .lead-rail h1{
    font-size:clamp(30px,9vw,40px);
  }
  .intro-band h2,
  .about-card h1{
    font-size:clamp(26px,7vw,36px);
  }
  .check-table thead{
    display:none;
  }
  .check-table,
  .check-table tbody,
  .check-table tr,
  .check-table th,
  .check-table td{
    display:block;
    width:100%;
  }
  .check-table tr{
    border-bottom:1px solid var(--line);
  }
  .check-table th,
  .check-table td{
    border-bottom:0;
    padding:12px 12px 0;
  }
  .check-table td{
    padding-bottom:12px;
    color:var(--muted);
  }
  .check-table tbody th{
    background:transparent;
  }
  .footer{
    flex-direction:column;
    align-items:flex-start;
  }
}
