@import url('root.css');

body{
    background-image: url('../images/esbirds-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Header (shared look with index) ---------- */
.site-header{
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(34, 66, 81, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(234, 235, 229, 0.15);
}
.site-header .logo img{
    height: 70px;
    width: auto;
    display: block;
    margin-top: -8px;
}
.site-header nav{
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.site-header nav a{
    font-family: var(--font1);
    font-size: 1.3rem;
    color: var(--004);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-header nav a:hover{
    color: var(--003);
}

/* ---------- Article body ---------- */
.article{
    flex: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    background: var(--004);
    color: var(--005);
}

.article-back{
    display: inline-block;
    font-family: var(--font1);
    font-size: 1rem;
    font-weight: 600;
    color: var(--002);
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.article-back:hover{
    color: var(--001);
}
.article-back--bottom{
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.article-header{
    border-bottom: 2px solid var(--003);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}
.article-header h1{
    font-family: var(--font3);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6rem;
    color: var(--001);
}
.article-byline{
    margin: 0;
    font-family: var(--font1);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--002);
}

.article-lead{
    font-size: 1.25rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--005);
    margin: 0 0 2rem;
}

.article h2{
    font-family: var(--font3);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--001);
    margin: 2.25rem 0 0.75rem;
}

.article p{
    font-family: var(--font1);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.article-gallery{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}
.article-gallery img{
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.article-video{
    margin: 1rem 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.article-video video{
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Footer ---------- */
.site-footer{
    background: rgba(34, 66, 81, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(234, 235, 229, 0.15);
    color: var(--004);
}
.site-footer .footer-bottom{
    padding: 1.5rem 3rem;
    text-align: center;
}
.site-footer .footer-bottom p{
    font-family: var(--font1);
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--003);
    margin: 0 auto;
    max-width: 900px;
}
.site-footer .footer-credit{
    margin-top: 0.6rem;
    font-size: 0.85rem;
}
.site-footer .footer-credit a{
    color: var(--004);
    text-decoration: none;
}
.site-footer .footer-credit a:hover{
    color: var(--003);
}

@media (max-width: 768px){
    .site-header{
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }
    .site-header nav{
        gap: 1rem;
        justify-content: center;
    }
    .site-header nav a{
        font-size: 1.05rem;
    }
    .article-gallery{
        grid-template-columns: 1fr;
    }
}
