:root{
--bg-base:#101214;
--bg-surface:#1a1c20;
--bg-input:#25282e;
--text-main:#e2e8f0;
--text-muted:#94a3b8;
--accent:#c87e4f;
--accent-hover:#e09260;
--border:#2d3139;
--font-heading:'Marcellus',ui-serif,Georgia,serif;
--font-body:'Manrope',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
--transition:all .3s ease;
--container:1600px;
}

*{margin:0;padding:0;box-sizing:border-box;word-break:break-word;hyphens:auto;}
html,body{height:100%;}
body{font-family:var(--font-body);background:var(--bg-base);color:var(--text-main);line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;transition:var(--transition);}

.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 5%;}

.site-header{background:var(--bg-base);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:30;}
.header-inner{display:flex;justify-content:space-between;align-items:center;padding:2rem 5%;gap:1.5rem;flex-wrap:wrap;}

.logo-container{display:flex;align-items:center;}
.logo-link{display:flex;align-items:center;gap:12px;}
.logo-icon svg{width:32px;height:32px;fill:var(--accent);}
.logo-text{font-family:var(--font-heading);font-size:24px;font-weight:400;letter-spacing:1px;text-transform:uppercase;}

.main-nav{display:flex;gap:3rem;flex-wrap:wrap;justify-content:center;}
.main-nav a{font-size:14px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--text-muted);}
.main-nav a:hover,.main-nav a:focus-visible{color:var(--accent);outline:none;}

.header-search{display:flex;align-items:center;}
.search-container{display:flex;align-items:center;background:var(--bg-input);border:1px solid var(--border);padding:4px 4px 4px 16px;min-width:260px;}
.search-container input{background:transparent;border:none;outline:none;color:var(--text-main);font-family:inherit;font-size:14px;width:100%;min-width:120px;}
.search-container input::placeholder{color:var(--text-muted);}

.search-btn{background:var(--bg-surface);border:1px solid var(--border);cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;transition:var(--transition);}
.search-btn:hover,.search-btn:focus-visible{background:var(--accent);border-color:var(--accent);outline:none;}
.search-btn svg{width:16px;height:16px;stroke:var(--text-main);stroke-width:2;fill:none;}

.site-main{padding:6rem 0 0;}
@media (max-width:768px){.site-main{padding:4rem 0 0;}}

.hero{display:none;}
.site--home .hero{display:block;}
.hero-inner{max-width:800px;margin:0 auto 4rem;padding:0 5%;}
.hero h1{font-family:var(--font-heading);font-size:48px;line-height:1.2;margin-bottom:1.5rem;color:#fff;}
.hero p{font-size:18px;color:var(--text-muted);font-weight:300;}

@media (max-width:1024px){.hero h1{font-size:40px;}}
@media (max-width:768px){.hero-inner{margin-bottom:3rem;}.hero h1{font-size:32px;}}

.main{padding-top:0;padding-bottom:4rem;}
.site--home .main>section>header{display:none;}

.main>section>header{max-width:800px;margin:0 auto 2.5rem;padding:0 5%;}
.main>section>header h2{font-family:var(--font-heading);font-size:40px;line-height:1.2;margin-bottom:1rem;color:#fff;}
.main>section>header p{font-size:18px;color:var(--text-muted);font-weight:300;}

.posts{display:grid;grid-template-columns:1fr;gap:2rem;padding:0 5%;}
@media (max-width:1024px){.posts{grid-template-columns:repeat(2,1fr);}}
@media (min-width:1200px){.posts{grid-template-columns:repeat(3,1fr);}}
@media (max-width:768px){.posts{grid-template-columns:1fr;}}

.post{display:flex;flex-direction:column;background:var(--bg-surface);border:1px solid var(--border);border-radius:0;overflow:hidden;transition:var(--transition);}
.post:hover{border-color:var(--accent);transform:translateY(-4px);}

.post__thumb{height:240px;background:var(--bg-input);display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--border);}
.post__thumb img{width:100%;height:100%;object-fit:cover;opacity:.92;filter:saturate(.92);}
.post__thumb--fallback{font-family:var(--font-heading);font-size:34px;color:var(--text-muted);}

.post__body{display:flex;flex-direction:column;flex-grow:1;padding:2.5rem;}
.post__meta{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px;color:var(--text-muted);font-size:13px;}

.post__tags{display:flex;flex-wrap:wrap;gap:8px;}
.post__tags a{font-size:12px;padding:4px 10px;background:var(--bg-input);border:1px solid var(--border);color:var(--text-main);letter-spacing:.5px;}
.post__tags a:hover,.post__tags a:focus-visible{border-color:var(--accent);color:#fff;outline:none;}

.post__body h2{font-family:var(--font-heading);font-size:24px;margin-bottom:1rem;color:#fff;line-height:1.3;}
.post__body h2 a:hover,.post__body h2 a:focus-visible{color:var(--accent);outline:none;}
.post__body p{font-size:15px;color:var(--text-muted);margin:0 0 2rem;}

.tip,.warn{margin:0 auto 1.5rem;max-width:800px;background:var(--bg-surface);border:1px solid var(--border);padding:14px 16px;color:var(--text-muted);} 
.tip a,.warn a{color:var(--accent);} 
.tip a:hover,.warn a:hover{color:var(--accent-hover);} 

.pagination{display:flex;justify-content:center;margin:2.5rem 0 0;padding:0 5%;}
.pagination nav{display:flex;align-items:center;gap:12px;color:var(--text-muted);}
.pagination a{color:var(--text-main);text-transform:uppercase;letter-spacing:1px;font-size:14px;font-weight:600;}
.pagination a:hover,.pagination a:focus-visible{color:var(--accent);outline:none;}
.pagination span[aria-disabled="true"]{opacity:.55;}

.article{max-width:900px;margin:0 auto;padding:2.5rem;background:var(--bg-surface);border:1px solid var(--border);border-radius:0;}
@media (max-width:768px){.article{padding:1.6rem;}}
.article header{margin-bottom:1.6rem;}
.article h1{font-family:var(--font-heading);font-size:40px;line-height:1.15;color:#fff;margin-top:.75rem;}
@media (max-width:768px){.article h1{font-size:30px;}}
.article time{color:var(--text-muted);font-size:13px;}

.article p{margin:12px 0;color:var(--text-main);}
.article h2,.article h3,.article h4{font-family:var(--font-heading);color:#fff;margin:22px 0 10px;line-height:1.25;}
.article ul,.article ol{margin:12px 0 12px 22px;}
.article li{margin:6px 0;}
.article blockquote{border-left:3px solid var(--accent);padding:12px 16px;margin:18px 0;background:var(--bg-input);color:var(--text-muted);} 
.article pre{overflow:auto;padding:14px 16px;background:var(--bg-input);border:1px solid var(--border);}
.article code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;}
.article figure{margin:18px 0;}
.article figcaption{margin-top:10px;color:var(--text-muted);font-size:13px;}
.article iframe{width:100%;aspect-ratio:16/9;border:0;background:#000;}
.article table{width:100%;border-collapse:collapse;margin:18px 0;}
.article th,.article td{border:1px solid var(--border);padding:10px 12px;vertical-align:top;}
.article th{background:var(--bg-input);color:#fff;font-family:var(--font-heading);} 

.article a{color:var(--accent);border-bottom:1px solid rgba(200,126,79,.7);padding-bottom:1px;}
.article a:hover,.article a:focus-visible{color:var(--accent-hover);border-bottom-color:var(--accent-hover);outline:none;}

.article .post__tags{margin-top:14px;gap:8px;}

.related{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--border);} 
.related h2{font-size:18px;margin:0 0 10px;color:#fff;} 
.related a:hover{color:var(--accent-hover);} 

.site-footer{background:var(--bg-surface);border-top:1px solid var(--border);padding:4rem 0;}
.site-footer-inner{display:flex;justify-content:space-between;align-items:flex-start;gap:3rem;}
.footer-links{display:flex;flex-direction:column;gap:1rem;}
.footer-links a{font-size:14px;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;}
.footer-links a:hover,.footer-links a:focus-visible{color:var(--accent);outline:none;}

.footer-tags-block{max-width:460px;text-align:right;}
.footer-tags-title{font-family:var(--font-heading);font-size:16px;margin-bottom:1rem;color:#fff;text-transform:uppercase;letter-spacing:2px;}
.footer-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;}
.footer-tags a{font-size:12px;color:var(--text-muted);} 
.footer-tags a:hover,.footer-tags a:focus-visible{color:var(--accent);outline:none;} 

.copyright{margin-top:2.5rem;color:var(--text-muted);font-size:13px;padding:0 5%;}

@media (max-width:768px){
.header-inner{flex-direction:column;align-items:flex-start;padding:2rem 5%;gap:2rem;}
.main-nav{gap:1.5rem;}
.header-search{width:100%;}
.search-container{width:100%;justify-content:space-between;min-width:0;}
.site-footer-inner{flex-direction:column;align-items:flex-start;}
.footer-tags-block{text-align:left;}
.footer-tags{justify-content:flex-start;}
}
