:root{--ink:#0f172a;--muted:#475569;--accent:#d97706;--bg:#f8fafc;--card:#ffffff;--line:#e2e8f0;--navy:#0b1220}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.7;font-size:17px}
a{color:#1d4ed8;text-decoration:none}a:hover{text-decoration:underline}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
header.site{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-weight:800;font-size:20px;color:var(--ink)}.logo span{color:var(--accent)}
nav.top a{margin-left:22px;color:var(--muted);font-weight:600;font-size:15px}nav.top a:hover{color:var(--ink);text-decoration:none}
.hero{background:linear-gradient(135deg,#0b1220 0%,#1e293b 60%,#334155 100%);color:#e2e8f0;padding:72px 0 64px}
.hero h1{font-size:40px;line-height:1.15;color:#fff;max-width:760px}
.hero p{margin-top:16px;font-size:19px;color:#cbd5e1;max-width:640px}
.hero .tag{display:inline-block;background:var(--accent);color:#0b1220;font-weight:700;font-size:13px;letter-spacing:.08em;text-transform:uppercase;padding:6px 12px;border-radius:999px;margin-bottom:18px}
.section{padding:56px 0}
h2.sec{font-size:28px;margin-bottom:8px}
p.sec-sub{color:var(--muted);margin-bottom:32px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s}
.card:hover{box-shadow:0 10px 30px rgba(15,23,42,.08)}
.card .art{height:170px}
.card .body{padding:20px 22px 24px;flex:1;display:flex;flex-direction:column}
.card h3{font-size:19px;line-height:1.35;margin-bottom:10px}.card h3 a{color:var(--ink)}
.card p{color:var(--muted);font-size:15px;flex:1}
.card .meta{margin-top:14px;font-size:13px;color:#94a3b8}
article.post{max-width:760px;margin:0 auto;padding:48px 20px 64px}
.crumbs{font-size:14px;color:#94a3b8;margin-bottom:26px}.crumbs a{color:#64748b}
.post h1{font-size:36px;line-height:1.2;margin-bottom:14px}
.post .byline{color:var(--muted);font-size:15px;margin-bottom:28px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.post h2{font-size:25px;margin:38px 0 14px}
.post h3{font-size:20px;margin:28px 0 10px}
.post p{margin-bottom:16px}
.post ul,.post ol{margin:0 0 16px 24px}.post li{margin-bottom:8px}
.post table{width:100%;border-collapse:collapse;margin:20px 0 24px;font-size:15px}
.post th,.post td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.post th{background:#f1f5f9}
.post .heroart{border-radius:16px;margin:8px 0 30px}
.callout{background:#fffbeb;border:1px solid #fcd34d;border-radius:12px;padding:16px 20px;margin:24px 0;font-size:15px}
.toc{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px 22px;margin:26px 0;font-size:15px}
.toc strong{display:block;margin-bottom:8px}
.related{max-width:760px;margin:0 auto;padding:0 20px 64px}
.related .grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
footer.site{background:var(--navy);color:#94a3b8;padding:44px 0;margin-top:20px;font-size:14px}
footer.site .wrap{display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between;align-items:center}
footer.site a{color:#cbd5e1;margin-right:18px}
.prose-note{font-size:13px;color:#94a3b8;margin-top:36px;padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:640px){.hero h1{font-size:30px}.post h1{font-size:28px}nav.top a{margin-left:14px;font-size:14px}}