/*
Theme Name: Editorial Network
Description: Clean editorial reading experience for GeneratePress sites. Montserrat typography, single-column posts, whitespace-first design.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Template: generatepress
License: Proprietary
Text Domain: editorial-network
*/

/* ── Base Typography ────────────────────────────────────────────────── */

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #2e3236;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Headings ───────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6,
.entry-title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
}

h1, .entry-title {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.entry-content h2 {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.entry-content h3 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

.entry-content h4 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* ── Body Content ───────────────────────────────────────────────────── */

.entry-content p {
    margin-bottom: 1.5em;
    font-weight: 400;
}

.entry-content a {
    color: #2e3236;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: #000;
}

.entry-content blockquote {
    border-left: 3px solid #2e3236;
    margin: 1.5em 0;
    padding: 0.5em 1.5em;
    font-style: italic;
    color: #555;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content img {
    border-radius: 4px;
}

/* ── Single Post Layout ─────────────────────────────────────────────── */

.editorial-single .site-content .content-area {
    max-width: 720px;
    margin: 0 auto;
    float: none;
}

.editorial-single .inside-article {
    padding: 40px 20px;
}

.editorial-single .entry-header {
    margin-bottom: 2em;
}

.editorial-single .entry-meta {
    font-size: 14px;
    color: #888;
    margin-top: 0.75em;
}

.editorial-single .post-image {
    margin-bottom: 2em;
}

.editorial-single .post-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ── Reading Time Badge ─────────────────────────────────────────────── */

.en-reading-time {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.02em;
    margin-top: 0.5em;
}

/* ── Navigation ─────────────────────────────────────────────────────── */

.main-navigation,
.main-navigation .main-nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* ── Footer Archives ────────────────────────────────────────────────── */

.en-footer-archives {
    padding: 30px 0;
    border-top: 1px solid #e8e8e8;
    text-align: center;
    font-size: 13px;
    color: #595959;
}

.en-footer-archives-title {
    font-weight: 600;
    color: #2e3236;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.en-footer-archives-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
}

.en-footer-archives-list a {
    color: #666;
    text-decoration: none;
}

.en-footer-archives-list a:hover {
    color: #2e3236;
    text-decoration: underline;
}

.en-footer-archives-list .count {
    color: #595959;
    font-size: 12px;
}

/* ── Archive/Homepage Cards ─────────────────────────────────────────── */

.site-content .inside-article {
    border-bottom: 1px solid #f0f0f0;
}

/* ── Sidebar Tweaks (archive/home pages) ────────────────────────────── */

.widget-area .widget {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.widget-area .widget-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2e3236;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    h1, .entry-title {
        font-size: 28px;
    }

    .entry-content h2 {
        font-size: 24px;
    }

    .entry-content h3 {
        font-size: 20px;
    }

    .editorial-single .inside-article {
        padding: 24px 16px;
    }
}

/* ── Mobile Typography ──────────────────────────────────────────────── */

@media (max-width: 480px) {
    body,
    .entry-content p,
    .entry-content li {
        font-size: 18px !important;
        line-height: 1.75 !important;
    }

    h1, .entry-title {
        font-size: 26px;
    }

    .entry-content h2 {
        font-size: 22px;
    }

    .entry-content h3 {
        font-size: 19px;
    }

    .entry-content h4 {
        font-size: 17px;
    }
}

/* ── Homey Blog Styling ────────────────────────────────────────────────
   Light background shading + a serif contrast note for a warmer,
   more personal-blog feel. Per-site accent colors are layered on top
   via each site's Additional CSS (Customizer), which overrides the
   --homey-* custom properties below with brand-derived tints. ──────── */

:root {
    --homey-bg: #f7f5f1;
    --homey-card-bg: #fffdfa;
    --homey-border: #ece7dd;
    --homey-accent: #8a7a63;
}

body {
    background-color: var(--homey-bg);
}

.site-content .inside-article {
    background-color: var(--homey-card-bg);
    border: 1px solid var(--homey-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(30, 20, 10, 0.05);
    margin-bottom: 24px;
    padding: 28px 28px 8px;
}

.editorial-single .inside-article {
    padding: 44px 40px;
    border-radius: 12px;
}

.entry-content {
    line-height: 1.75;
}

.entry-content > p:first-of-type {
    font-size: 1.07em;
    color: #333;
}

.entry-content blockquote {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.08em;
    font-style: italic;
    line-height: 1.6;
    background: var(--homey-bg);
    border-left: 3px solid var(--homey-accent);
    border-radius: 0 6px 6px 0;
}

.entry-content h2 {
    padding-bottom: 0.35em;
    border-bottom: 1px solid var(--homey-border);
}

.entry-content a {
    color: var(--homey-accent);
    text-decoration-color: var(--homey-border);
}

.entry-content a:hover {
    color: #1a1a1a;
    text-decoration-color: var(--homey-accent);
}

.editorial-single .entry-meta,
.en-reading-time {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-style: italic;
    letter-spacing: 0.01em;
}

.en-footer-archives {
    background-color: var(--homey-card-bg);
    border-radius: 10px 10px 0 0;
}

@media (max-width: 768px) {
    .site-content .inside-article {
        padding: 20px 18px 4px;
        border-radius: 8px;
    }

    .editorial-single .inside-article {
        padding: 28px 20px;
    }
}
