/*
Theme Name: Postcolonial Writers Series
Theme URI: https://postcolonialwriters.com/
Author: @peelart
Description: A clean, modern, accessible, and editorial theme designed specifically for postcolonial African discourse and literary publishing.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: postcolonialwriters
*/

/* ==========================================================================
   1. CSS Variables (The Design System based on postcoloniallogo.jpg)
   ========================================================================== */
:root {
    --color-brand-black: #111518;
    --color-brand-gold:  #C29B57;
    --color-text-main:   #374151;
    --color-text-muted:  #6B7280;
    --color-bg-white:    #FFFFFF;
    --color-bg-light:    #F9FAFB;
    --color-border:      #E5E7EB;
    
    --font-heading: 'Times New Roman', Times, Georgia, serif;
    --font-body:    'Times New Roman', Times, Georgia, serif;
    
    --container-max:     1200px;
    --spacing-sm:        1rem;
    --spacing-md:        2rem;
    --spacing-lg:        4rem;
}

/* ==========================================================================
   2. Base & Resets
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
button,
input,
select,
textarea {
    font-family: 'Times New Roman', Times, Georgia, serif !important;
}

body {
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.7;
    font-size: 12pt; /* Professional academic reading size */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, Georgia, serif !important;
    color: var(--color-brand-black);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-brand-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-brand-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==========================================================================
   3. Header & Navigation (White background, centered or flexed)
   ========================================================================== */
.site-header {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding-top: var(--spacing-md);
}

.header-inner-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.site-branding img {
    max-height: 120px; /* Controls your logo size */
    width: auto;
}

/* Navigation Menu */
.navigation-wrapper {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
}

.primary-menu-list {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 1rem 0;
    gap: 2rem;
}

.primary-menu-list a {
    font-family: 'Times New Roman', Times, Georgia, serif !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.primary-menu-list a:hover {
    color: var(--color-brand-gold);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
}

/* ==========================================================================
   4. Homepage / Main Content Grid
   ========================================================================== */
.site-main {
    padding: var(--spacing-lg) 0;
}

/* Hero / Intro Section */
.home-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.home-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.home-hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.article-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--spacing-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(17, 21, 24, 0.05);
    border-color: var(--color-brand-gold);
}

.article-category {
    color: var(--color-brand-gold);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-brand-black);
    color: var(--color-bg-white);
    padding: var(--spacing-lg) 0 2rem;
    margin-top: auto;
}

.site-footer a {
    color: var(--color-brand-gold);
}

.site-footer a:hover {
    color: var(--color-bg-white);
    text-decoration: underline;
}

.footer-inner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-widgets-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    width: 100%;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.widget-title {
    color: var(--color-brand-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    width: 100%;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   6. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .header-inner-wrap {
        flex-direction: column;
        text-align: center;
    }
    
    .primary-menu-list {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .home-hero h1 {
        font-size: 2rem;
    }
}

/* ==========================================================
   7. Global Times New Roman 12pt Typography Enforcement
   ========================================================== */
body,
.entry-content,
.post-content,
.page-content,
article p,
.single-post p,
.page p,
.entry-content li,
.entry-content blockquote,
.post-content li,
.page-content li {
    font-family: 'Times New Roman', Times, Georgia, serif !important;
    font-size: 12pt !important;
    line-height: 1.65 !important;
}