:root {
  --ink: #17324d;
  --muted: #657482;
  --paper: #f6f4ec;
  --surface: #fffefa;
  --accent: #c45f32;
  --line: rgba(23, 50, 77, .16);
  --code: #10273b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.topbar { border-bottom: 1px solid var(--line); background: rgba(246,244,236,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 760; letter-spacing: .02em; display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 29px; height: 29px; border-radius: 9px; background: var(--ink); position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 8px; height: 2px; background: var(--paper); border-radius: 3px; }
.brand-mark::before { top: 10px; width: 13px; }
.brand-mark::after { top: 17px; width: 9px; background: #e7a47c; }
.nav-links { display: flex; gap: 25px; color: var(--muted); font-size: .9rem; }
.nav-links a:hover, .back:hover, .icp:hover { color: var(--accent); }
.page { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0 96px; }
.back { display: inline-block; color: var(--muted); font-size: .88rem; margin-bottom: 42px; }
.eyebrow { color: var(--accent); font: 650 .74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 16px 0 20px; font-size: clamp(2.35rem, 6vw, 4rem); line-height: 1.12; letter-spacing: -.055em; }
.dek { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #7b8790; font-size: .8rem; margin-top: 27px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.toc { margin: 38px 0; padding: 23px 25px; border-left: 3px solid var(--accent); background: rgba(255,254,250,.54); }
.toc strong { display: block; margin-bottom: 7px; }
.toc a { display: inline-block; color: var(--muted); margin-right: 18px; font-size: .9rem; }
.toc a:hover { color: var(--accent); }
.article h2 { font-size: 1.65rem; line-height: 1.35; letter-spacing: -.035em; margin: 58px 0 17px; scroll-margin-top: 92px; }
.article h3 { font-size: 1.12rem; margin: 32px 0 10px; }
.article p { margin: 0 0 20px; }
.article ul, .article ol { padding-left: 1.45rem; margin: 0 0 24px; }
.article li { margin: 8px 0; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: rgba(23,50,77,.08); border-radius: 4px; padding: .14em .38em; }
.article pre { overflow-x: auto; margin: 24px 0; padding: 21px 23px; background: var(--code); color: #dce8ed; border-radius: 10px; font: .86rem/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article pre code { background: none; padding: 0; font-size: inherit; }
.note { margin: 28px 0; padding: 19px 22px; background: #ebe8dd; border-radius: 8px; color: #445b6d; }
.note strong { color: var(--ink); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 29px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: #3f8164; font-weight: 800; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-nav a { padding: 17px 19px; background: rgba(255,254,250,.55); border: 1px solid var(--line); }
.article-nav a:last-child { text-align: right; }
.article-nav span { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.article-nav strong { font-size: .9rem; }
.listing { display: grid; gap: 14px; margin-top: 42px; }
.list-card { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; padding: 24px; border: 1px solid var(--line); background: rgba(255,254,250,.43); transition: background .2s ease, transform .2s ease; }
.list-card:hover { background: var(--surface); transform: translateY(-2px); }
.list-card time, .list-card .kind { color: var(--accent); font: 650 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.list-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.list-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.list-card .arrow { color: var(--muted); }
.profile { margin-top: 43px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; }
.profile-card { padding: 26px; background: var(--ink); color: #dce6eb; border-radius: 12px; }
.profile-card strong { display: block; color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.profile-copy p { margin-top: 0; }
footer { border-top: 1px solid var(--line); padding: 31px 0; color: var(--muted); font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 22px; }
@media (max-width: 680px) {
  .shell, .page { width: min(100% - 28px, 1080px); }
  .nav-links { gap: 14px; font-size: .82rem; }
  .nav-links a:first-child { display: none; }
  .page { padding-top: 52px; }
  .list-card { grid-template-columns: 1fr; gap: 9px; }
  .list-card .arrow { display: none; }
  .profile, .article-nav { grid-template-columns: 1fr; }
  .article-nav a:last-child { text-align: left; }
  .footer-inner { flex-direction: column; }
}
