/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #0f1113;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #eaeef2;
    line-height: 1.6;
}

:root{
    --bg: #0f1113;
    --card: #121314;
    --muted: #9aa0a6;
    --accent: #F6B54A;
    --glass: rgba(255,255,255,0.03);
    --radius: 12px;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 20px 44px 20px;
    background: linear-gradient(180deg, rgba(18,20,22,0.96), rgba(8,9,10,0.75));
    border-bottom: 1px solid rgba(255,255,255,0.03);
    backdrop-filter: blur(6px);
    position:relative;
    overflow:visible;
}

.header-inner{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.header h1{
    margin:0;
    font-family: 'Merriweather', Georgia, serif;
    font-weight:700;
    font-size:2.6rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    width:100%;
}

.header h1{ margin:0; }

.subtitle{
    margin-top:8px;
    color:var(--muted);
    font-weight:300;
}

.header-actions{ margin-top:18px; display:flex; gap:12px; justify-content:center; }

.cta{
    display:inline-block;
    background:var(--accent);
    color:#04221f;
    padding:10px 14px;
    border-radius:10px;
    font-weight:700;
    text-decoration:none;
    box-shadow: 0 6px 18px rgba(14,28,26,0.18);
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.cta:hover{ transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,28,26,0.28); }
.cta.ghost{ background: transparent; border:1px solid rgba(255,255,255,0.06); color:var(--accent); box-shadow:none; }

/* Decorative accent: subtle circle behind header content */
.header::before{
    content: '';
    position:absolute;
    right: -6%;
    top: 10px;
    width:260px;
    height:260px;
    background: radial-gradient(circle at 30% 30%, rgba(246,181,74,0.08), transparent 30%);
    filter: blur(18px);
    pointer-events:none;
    transform: rotate(-8deg);
    z-index:0;
}

/* Ensure header content sits above decorative accent */
.header-inner{ position:relative; z-index:1; }

.site-nav{
    margin-top:18px;
    display:inline-flex;
    gap:14px;
}

.site-nav a{
    color:var(--muted);
    text-decoration:none;
    padding:8px 12px;
    border-radius:8px;
    font-size:0.95rem;
    transition:all 180ms ease;
}
.site-nav a:hover{
    color: #2e1a00;
    background: linear-gradient(90deg, var(--accent), rgba(246,181,74,0.12));
}
.site-nav a:focus{ outline:2px solid rgba(246,181,74,0.28); outline-offset:3px; }

/* Intro section */
.intro {
    max-width: 820px;
    margin: 36px auto;
    padding: 0 20px;
}

.intro h2{
    margin-bottom:10px;
    font-size:1.5rem;
}

/* Blog posts */
.post{
    max-width: 1100px;
    margin: 40px auto;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, var(--card), rgba(115,115,115,0.02));
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 6px 20px rgba(2,6,8,0.6);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.post:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(2,6,8,0.7);
}

.post img{
    width:100%;
    display:block;
    height:auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 350ms ease;
}

.post:hover img{ transform: scale(1.03); }

.post-content{
    padding:22px;
}

.post-content h2{
    margin-top:0;
    margin-bottom:6px;
    font-size:1.4rem;
}

.date{
    color:var(--muted);
    font-size:0.9rem;
    margin-top:-4px;
    margin-bottom:14px;
}

.read-more{
    display:inline-block;
    text-decoration:none;
    background:transparent;
    border:1px solid rgba(255,255,255,0.06);
    color:var(--accent);
    padding:8px 12px;
    border-radius:8px;
    font-weight:600;
    transition:all 180ms ease;
}
.read-more:hover{ background: rgba(246,181,74,0.08); color:#0f0b00; border-color: rgba(246,181,74,0.28); }

/* Footer */
.footer{
    text-align:center;
    padding:28px 18px;
    margin-top:40px;
    color:var(--muted);
    border-top:1px solid rgba(255,255,255,0.03);
    font-size:0.95rem;
}

/* Responsive layout: show post as side-by-side card on larger screens */
@media (min-width: 900px){
    .post{
        display:flex;
        gap:0;
    }
    .post img{
        width:48%;
        height:auto;
        aspect-ratio: auto;
    }
    .post-content{
        width:52%;
        padding:28px 30px;
        display:flex;
        flex-direction:column;
        justify-content:center;
    }
    /* alternate layout for visual rhythm */
    .post:nth-of-type(even){ flex-direction: row-reverse; }
}

@media (max-width: 520px){
    .header h1{ font-size:1.8rem; }
    .site-nav{ gap:8px; }
}

@media (min-width:900px){
    .header{ padding:78px 20px 48px 20px; }
    .header h1{ font-size:3.2rem; }
    .subtitle{ font-size:1.05rem; }
    .header-actions{ justify-content:flex-start; }
    .site-nav{ margin-top:0; }
}