:root{
--bg:#0f1724;
--card:#ffffff;
--muted:#6b7280;
--accent:#ef6c35;
--glass: rgba(255,255,255,0.06);
--max-width:1100px;
--radius:12px;
--gap:5px;
--shadow: 0 6px 20px rgba(2,6,23,0.5);
--fw-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
font-family:var(--fw-sans);
background:linear-gradient(180deg,#071027 0%, #0d1320 100%);
color:#e6eef8;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
line-height:1.45;
}

.container{max-width:var(--max-width);margin:0 auto;padding:24px;}

header.site-header{
position:sticky;
top:12px;
z-index:40;
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
margin-bottom:22px;
}
.nav-wrap{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
padding:10px;
border-radius:14px;
box-shadow:var(--shadow);
}
.brand{
display:flex;align-items:center;gap:12px;
text-decoration:none;color:inherit;
}
.logo{
width:46px;height:46px;border-radius:10px;
background:linear-gradient(135deg,#ffb86b 0%, #ef6c35 100%);
display:flex;align-items:center;justify-content:center;
color:#fff;font-weight:700;font-size:18px;
box-shadow:0 6px 18px rgba(239,108,53,0.25);
}
.brand h1{font-size:16px;margin:0}
nav.primary{
display:flex;gap:12px;align-items:center;
}
nav.primary a{
color:var(--muted);text-decoration:none;padding:8px 12px;border-radius:8px;font-size:14px;
}
nav.primary a:hover{color:#fff;background:var(--glass)}
/* Hamburger */
.menu-toggle{
display:none;
background:transparent;border:0;color:inherit;font-size:22px;padding:8px;border-radius:8px;
}
.hero-visual{
position:relative;border-radius:14px;overflow:hidden;height:360px;
display:flex;align-items:flex-end;
background-size:cover;background-position:center center;
}
.hero-visual::after{
content:"";
position:absolute;left:0;right:0;top:0;bottom:0;
background:linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.4));
}
/* Responsive */
@media (max-width:1000px){
.hero{grid-template-columns:1fr}
.hero-visual{height:300px}
.featured{grid-template-columns:repeat(2,1fr)}

}
@media (max-width:700px){
.container{padding:16px}
nav.primary{display:none;flex-direction:column;gap:6px;width:100%}
.menu-toggle{display:inline-block}
.nav-wrap{flex-direction:row;align-items:center}
.hero-visual{height:220px}
.featured{grid-template-columns:1fr}

}
/* Dropdown active */
.nav-open nav.primary{display:flex;position:absolute;left:16px;right:16px;top:74px;background:linear-gradient(180deg, rgba(2,6,23,0.85), rgba(2,6,23,0.95));padding:12px;border-radius:12px;box-shadow:0 18px 40px rgba(2,6,23,0.6)}
footer.site-footer{
    margin-top:28px;padding:20px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    box-shadow:var(--shadow);
}
.footer-row{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap}
.social a{margin-right:10px;color:var(--muted);text-decoration:none}
.fab{list-style: none;font-size: 30px; color: #fff;}
.muted{color:var(--muted)}

/* Responsive tweaks */
@media (max-width:740px){
    .controls{ width:100%; margin-top:12px; }
    .search input{ width:110px; }

}
@media (max-width:420px){
    body{ padding:16px; }
    .brand h1{ font-size:16px; }
    .thumb{ height:120px; }
}

/* helper for hidden */
.hidden{ display:none !important; }



main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero-section {
   background:linear-gradient(135deg,#ffb86b 0%, #ef6c35 100%);
    color: #fff8f0;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(139, 69, 19, 0.2);
}

article img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: #a0522d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-content p {
    color: #555;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    background: linear-gradient(135deg, #cd853f, #a0522d);
    color: #fff8f0;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.read-more:hover,
.read-more:focus {
    background: linear-gradient(135deg, #a0522d, #8b4513);
    transform: scale(1.05);
    outline: none;
}

.category-tag {
    display: inline-block;
    background: #ffe8d6;
    color: #8b4513;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

aside {
    background: #fff8f0;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #d2691e;
    margin-bottom: 3rem;
}

aside h2 {
    color: #8b4513;
    margin-bottom: 1rem;
}

aside ul {
    list-style: none;
}

aside li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #d2691e;
}

aside a {
    color: #a0522d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

aside a:hover,
aside a:focus {
    color: #8b4513;
    text-decoration: underline;
    outline: none;
}

footer {
    background: #3e2723;
    color: #fff8f0;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 4px solid #d2691e;
}

footer p {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-section {
        padding: 2rem 1.5rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid #d2691e;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #8b4513;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}