*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#0a0a0a;--bg2:#111;--bg3:#1a1a1a;--text:#e0e0e0;--text2:#999;--accent:#3b82f6;--accent2:#60a5fa;--border:#222;--radius:8px;--max-w:860px}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:var(--bg);color:var(--text);line-height:1.7;font-size:17px;-webkit-font-smoothing:antialiased}
a{color:var(--accent2);text-decoration:none;transition:color .2s}
a:hover{color:#93c5fd}
.wrap{max-width:var(--max-w);margin:0 auto;padding:0 20px}

header{position:sticky;top:0;z-index:100;background:rgba(10,10,10,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);padding:14px 0}
header .wrap{display:flex;align-items:center;justify-content:space-between;max-width:1100px}
.logo{font-size:1.4rem;font-weight:700;letter-spacing:2px;color:#fff}
.logo span{color:var(--accent)}
nav{display:flex;align-items:center;gap:20px}
nav a{color:var(--text2);font-size:.9rem}
nav a:hover{color:#fff}
.lang-switch{display:flex;gap:4px;margin-left:12px;border-left:1px solid var(--border);padding-left:16px}
.lang-switch a{padding:4px 8px;border-radius:4px;font-size:.8rem;color:var(--text2);font-weight:500}
.lang-switch a:hover,.lang-switch a.active{color:#fff;background:var(--bg3)}

main{padding:48px 0 80px;min-height:60vh}

.hero-research{padding:40px 0 30px;border-bottom:1px solid var(--border);margin-bottom:40px}
.hero-research h1{font-size:clamp(1.8rem,4vw,2.6rem);color:#fff;margin-bottom:10px}
.lead{color:var(--text2);font-size:1.1rem}

.list-header{padding:20px 0 30px;border-bottom:1px solid var(--border);margin-bottom:40px}
.list-header h1{color:#fff;font-size:2rem;margin-bottom:8px}

.post-list{display:flex;flex-direction:column;gap:36px}
.post-item{padding-bottom:28px;border-bottom:1px solid var(--border)}
.post-item:last-child{border-bottom:none}
.post-item h2{font-size:1.4rem;margin-bottom:8px}
.post-item h2 a{color:#fff}
.post-item h2 a:hover{color:var(--accent2)}
.meta{color:var(--text2);font-size:.9rem;margin-bottom:10px}
.meta a{color:var(--text2)}
.meta a:hover{color:var(--accent2)}
.muted{color:var(--text2)}

.post-header{margin-bottom:32px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.post-header h1{color:#fff;font-size:clamp(1.7rem,4vw,2.4rem);margin-bottom:12px;line-height:1.25}
.post-body{font-size:1.05rem}
.post-body h2{color:#fff;font-size:1.5rem;margin:40px 0 16px}
.post-body h3{color:#fff;font-size:1.2rem;margin:32px 0 12px}
.post-body p,.post-body ul,.post-body ol,.post-body blockquote{margin-bottom:20px}
.post-body ul,.post-body ol{padding-left:24px}
.post-body li{margin-bottom:6px}
.post-body blockquote{border-left:3px solid var(--accent);padding-left:16px;color:var(--text2);font-style:italic}
.post-body code{background:var(--bg3);padding:2px 6px;border-radius:4px;font-size:.92em}
.post-body pre{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:16px;overflow-x:auto;margin-bottom:20px}
.post-body pre code{background:none;padding:0;font-size:.9rem}
.post-body img{max-width:100%;height:auto;border-radius:var(--radius);margin:20px 0}
.post-body a{border-bottom:1px dotted var(--accent2)}
.post-body hr{border:none;border-top:1px solid var(--border);margin:32px 0}
.post-body table{width:100%;border-collapse:collapse;margin-bottom:20px}
.post-body th,.post-body td{border:1px solid var(--border);padding:8px 12px;text-align:left}
.post-body th{background:var(--bg2);color:#fff}

.tag-cloud{list-style:none;display:flex;flex-wrap:wrap;gap:10px}
.tag-cloud li{background:var(--bg2);border:1px solid var(--border);border-radius:20px;padding:8px 16px;font-size:.9rem}
.tag-cloud .count{color:var(--text2);margin-left:6px;font-size:.8em}

.site-footer{border-top:1px solid var(--border);padding:28px 0;color:var(--text2);font-size:.9rem;text-align:center}

.search-box{margin-bottom:32px}
.search-box:empty{display:none}
:root{--pagefind-ui-scale:.9;--pagefind-ui-primary:#3b82f6;--pagefind-ui-text:#e0e0e0;--pagefind-ui-background:#111;--pagefind-ui-border:#222;--pagefind-ui-tag:#1a1a1a;--pagefind-ui-border-width:1px;--pagefind-ui-border-radius:8px;--pagefind-ui-font:inherit}
