/* Observer-like Theme Styles */
:root {
    --color-bg: #ffffff;
    --color-text: #15171a;
    --color-text-light: #738a94;
    --color-accent: #2c3e50;
    /* Deep Blue/Grey */
    --color-border: #DADCE0;
    /* Darker blue-grey for visibility */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gap: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent);
}

hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 60px 0;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Titles */
.section-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-accent);
    /* Colored underline */
    padding-bottom: 10px;
    display: inline-block;
}

/* Hero / Featured */
.hero-section {
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.featured-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.featured-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.featured-content {
    margin-top: 15px;
}

.featured-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.featured-content p {
    font-size: 18px;
    color: var(--color-text-light);
}

/* News Section (Sidebar-ish or list) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    font-size: 18px;
    font-family: var(--font-sans);
    /* News often punchy */
    margin-bottom: 5px;
}

.news-meta {
    font-size: 12px;
    color: var(--color-accent);
    text-transform: uppercase;
}

/* Decades Feed */
.feed-section {
    margin-bottom: 60px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap);
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    /* placeholder */
}

.post-card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.post-card-excerpt {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.post-card-meta {
    margin-top: 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.pagination a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
}

.pagination a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.page-number {
    color: var(--color-text-light);
    font-weight: 400;
}

/* ============================
   Post Typography & Spacing
   ============================ */

/* ============================
   Post Typography & Spacing
   ============================ */

/* Header Meta */
.post-header {
    text-align: center;
    /* Center align for magazine feel */
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.post-meta {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    /* Center the meta items */
    gap: 10px;
    align-items: center;
}

.post-meta i {
    font-style: normal;
    color: var(--color-border);
}

.post-meta a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 48px;
    /* Larger title */
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--color-text);
    letter-spacing: -1px;
}

.post-excerpt {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Post Image Container */
.post-header-image-container {
    margin-top: 40px;
    width: 100%;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    /* Slightly sharper styling */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    display: block;
}

/* Article Content */
.post-content {
    font-family: var(--font-serif);
    /* Switch body to Serif for readability like Observer */
    font-size: 20px;
    line-height: 1.8;
    color: #2c3e50;
    max-width: 740px;
    /* Optimal reading width */
    margin: 0 auto;
}

.post-content h2 {
    font-size: 28px;
    margin-top: 60px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.post-content h3 {
    font-size: 24px;
    margin-top: 45px;
    margin-bottom: 20px;
    color: #34495e;
}

.post-content p {
    margin-bottom: 30px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content hr {
    margin: 60px 0;
    border: 0;
    border-top: 1px solid #DADCE0;
}

/* Era/Meta Info Box (Injected HTML) */
.meta-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--color-accent);
    font-size: 16px;
}

.meta-info p {
    margin-bottom: 5px;
}

.meta-info p:last-child {
    margin-bottom: 0;
}


/* ============================
   Mobile Responsiveness
   ============================ */

@media (max-width: 768px) {

    /* Stack Header */
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    /* Scrollable Horizontal Nav */
    nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav ul {
        width: max-content;
        /* Allow expansion */
        padding-bottom: 10px;
        /* Space for scrollbar */
        margin: 0 auto;
        /* Center if unused width */
        gap: 15px;
    }

    /* Hide scrollbar */
    nav::-webkit-scrollbar {
        height: 4px;
    }

    nav::-webkit-scrollbar-thumb {
        background: #eee;
        border-radius: 4px;
    }

    nav a {
        white-space: nowrap;
        font-size: 14px;
        padding: 8px 12px;
        background: #f9f9f9;
        border-radius: 4px;
    }

    /* Hero Stacking */
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-card img {
        height: 250px;
    }

    .featured-content h2 {
        font-size: 26px;
    }

    /* Grid Stacking */
    .post-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* General Padding */
    .container {
        padding: 0 20px;
    }

    hr {
        margin: 40px 0;
    }
}