/*******************************************************************************
* 1. VARIABLES & RESET
*******************************************************************************/
:root {
    --primary-text-color: #333;
    --secondary-text-color: #666;
    --body-bg-color: #f8f9fa;
    --border-color: #ddd;
    --link-color: #007bff;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*******************************************************************************
* 2. BASE STYLES
*******************************************************************************/
body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--primary-text-color);
    background-color: var(--body-bg-color);
    flex-direction: column;
}

/*******************************************************************************
* 3. LAYOUT COMPONENTS
*******************************************************************************/
.feature-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mt-5vh {
    margin-top: 15vh;
}

/*******************************************************************************
* 4. HEADER COMPONENTS
*******************************************************************************/
header {
    margin-top: 60px;
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.5em;
    margin: 0;
}

.header-overlay h1 {
    margin-top: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-text-color);
}

.byline {
    font-size: 0.9em;
    color: var(--secondary-text-color);
}

/*******************************************************************************
* 5. MEDIA ELEMENTS
*******************************************************************************/
.lead-image img, 
.inline-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

figcaption {
    font-size: 0.8em;
    color: var(--secondary-text-color);
    text-align: center;
    margin-top: -10px;
}

/*******************************************************************************
* 6. CONTENT STYLES
*******************************************************************************/
.story-content {
    padding-inline: 15px;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

/*******************************************************************************
* 7. RELATED ARTICLES
*******************************************************************************/
.related-articles {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.related-articles h3 {
    font-size: 1.25rem;
    color: var(--primary-text-color);
}

.related-articles ul {
    list-style-type: none;
    padding: 0;
}

.related-articles li {
    margin: 5px 0;
}

.related-articles a {
    text-decoration: none;
    color: var(--link-color);
}

.related-articles a:hover {
    text-decoration: underline;
}

/*******************************************************************************
* 8. PINNED POST
*******************************************************************************/
.pinned-post {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin: 20px 0;
    padding: 20px;
}

.pinned-post img {
    max-width: 100%;
    height: auto;
}

.pinned-post h2 {
    font-size: 1.5rem;
    color: var(--primary-text-color);
}

.pinned-post p {
    color: #555;
}

.pinned-post .author {
    font-weight: bold;
    display: flex;
    align-items: center;
}

.pinned-post .author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}