/* ==========================================================================
   CLASSIC EDITORIAL & PARCHMENT THEME - Archived Blog (2014)
   ========================================================================== */

/* Design Tokens - Vintage Editorial Style */
:root {
    --bg-primary: #faf7f0;       /* Parchment/Warm paper */
    --bg-secondary: #fffdf9;     /* Off-white paper for cards */
    --grid-dot: rgba(38, 33, 30, 0.02);
    
    --text-primary: #26211e;     /* Deep ink charcoal */
    --text-secondary: #4a413d;   /* Muted warm slate/brown */
    --text-muted: #8c7e75;       /* Sepia dust */
    
    /* Editorial Crimson Accent */
    --accent: #8c231a;           /* Burgundy/Crimson print ink */
    --accent-light: #fdf2f0;     /* Soft burgundy tint */
    --accent-glow: rgba(140, 35, 26, 0.1);
    
    /* Layout Borders */
    --border: #e3dac9;           /* Light sepia line */
    --border-dark: #bfae95;      /* Dark sepia line for highlights */
    
    --radius-sm: 2px;            /* Sharp print corners */
    --radius-md: 4px;
    
    /* Print Shadows (Flat, hard offset instead of fuzzy modern glow) */
    --shadow-sm: 1px 1px 0px rgba(38, 33, 30, 0.05);
    --shadow-md: 2px 2px 0px rgba(38, 33, 30, 0.06);
    --shadow-lg: 4px 4px 0px rgba(38, 33, 30, 0.06);
    --transition: all 0.25s ease;
    
    --max-width: 1060px;
    --reading-width: 820px;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    background-image: radial-gradient(var(--grid-dot) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--text-primary);
    font-family: 'Merriweather', Georgia, Garamond, serif;
    font-size: 18px;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, Garamond, serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-top: 0;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.3rem, 4.5vw, 3.4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin-bottom: 0.9rem;
}

h3 {
    font-size: 1.4rem;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    transition: var(--transition);
}

a:hover {
    color: var(--text-primary);
    text-decoration-color: var(--text-primary);
}

/* Layout Wrapper */
.site-main {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 56px 24px 80px;
    flex: 1;
}

/* ==========================================================================
   HEADER (Newspaper Banner Style)
   ========================================================================== */
.site-header {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--border-dark);
    border-bottom: 4px double var(--border-dark);
    padding: 20px max(24px, calc((100% - var(--max-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo: Newspaper Heading style */
.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-pagan {
    color: var(--accent);
}

.archive-tag {
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
    background-color: transparent;
    padding: 2px 8px;
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-sm);
    margin-left: 12px;
    display: inline-block;
}

/* Navigation inside header */
.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav a {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ==========================================================================
   PAGE HEADER & HERO
   ========================================================================== */
.page-head {
    max-width: var(--reading-width);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.page-head h1 {
    margin: 0 0 12px;
    font-style: italic;
}

.page-head p:not(.eyebrow) {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 720px;
}

/* ==========================================================================
   POST LISTING (VINTAGE COLUMNS)
   ========================================================================== */
.post-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.post-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-lg);
}

.post-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.9rem;
    line-height: 1.3;
}

.post-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Meta Area (Typewriter Font) */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 20px;
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
}

.post-date {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    color: var(--text-secondary);
}

/* Badges for taxonomies (Typewriter Links) */
.post-taxonomies {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tax-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: bold;
    text-transform: lowercase;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.category-badge {
    color: var(--accent);
}

.category-badge:hover {
    color: var(--text-primary);
    text-decoration-style: solid;
}

.tag-badge {
    color: var(--text-secondary);
}

.tag-badge:hover {
    color: var(--accent);
    text-decoration-style: solid;
}

/* Card Content Excerpt */
.entry-summary {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: var(--reading-width);
}

.entry-summary p {
    margin: 0;
}

/* Read More Links (Newspaper Style) */
.read-more {
    display: inline-flex;
    align-items: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
    text-decoration: underline;
}

.read-more:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   SINGLE POST DETAIL (EDITORIAL LAYOUT)
   ========================================================================== */
.single-post {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 56px;
    box-shadow: var(--shadow-lg);
}

.archive-label {
    margin-bottom: 16px;
}

.archive-label a {
    display: inline-flex;
    align-items: center;
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 0.82rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
}

.archive-label a::before {
    content: "← ";
}

.archive-label a:hover {
    color: var(--accent);
}

.single-post h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.25;
    margin-bottom: 16px;
}

.single-post .post-meta {
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-dark);
}

/* Rich Text Content Styling */
.entry-content {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.entry-content p {
    margin-top: 0;
    margin-bottom: 1.5em;
    text-align: justify;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-style: italic;
    color: var(--text-primary);
}

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

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

/* Newspaper pull-quotes */
.entry-content blockquote {
    margin: 40px 10%;
    padding: 20px 0;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: center;
}

.entry-content blockquote p {
    text-align: center;
    margin-bottom: 0;
}

/* Images, Captions and Figures */
.entry-content img {
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    padding: 4px;
    background-color: var(--bg-secondary);
    display: block;
    margin: 1.8em 0;
}

.entry-content figure {
    margin: 40px 0;
    border: 1px solid var(--border);
    padding: 8px;
    background-color: var(--bg-secondary);
}

.entry-content figure img {
    margin: 0 0 10px;
    width: 100%;
}

.entry-content figcaption,
.wp-caption-text {
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
    padding-inline: 8px;
}

/* Alignments (Classic WordPress classes) */
.entry-content .aligncenter,
.wp-caption.aligncenter {
    margin-inline: auto;
    text-align: center;
}

.entry-content .alignnone {
    margin-inline: 0;
}

.entry-content .alignleft,
.wp-caption.alignleft {
    float: left;
    margin: 8px 24px 20px 0;
}

.entry-content .alignright,
.wp-caption.alignright {
    float: right;
    margin: 8px 0 20px 24px;
}

.wp-caption {
    max-width: 100%;
    background: var(--bg-secondary);
    padding: 8px;
    border: 1px solid var(--border-dark);
}

.wp-caption img {
    margin: 0 0 8px;
    border: none;
    padding: 0;
}

.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Video & Embed placeholders */
.entry-content iframe {
    display: block;
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    margin: 36px 0;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background-color: var(--text-primary);
}

.embed-placeholder {
    padding: 16px 20px;
    border-top: 1px dashed var(--accent);
    border-bottom: 1px dashed var(--accent);
    border-left: none;
    background-color: transparent;
    color: var(--accent);
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    margin: 28px 0;
}

/* ==========================================================================
   NAVIGATION COMPONENTS
   ========================================================================== */

/* Main archive pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.pagination a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--accent-light);
}

.pagination span {
    flex: 1;
}

/* Single post pagination cards */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-nav-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    height: 100%;
}

.post-nav-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.nav-label {
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 0.78rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.post-nav-card:hover .nav-label {
    color: var(--accent);
}

.nav-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.post-nav-placeholder {
    height: 100%;
}

/* ==========================================================================
   TAXONOMIES SECTION
   ========================================================================== */
.archive-taxonomies {
    margin-top: 56px;
    padding: 36px;
    border: 1px solid var(--border-dark);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.archive-taxonomies h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-dark);
    padding-bottom: 8px;
}

.taxonomy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.taxonomy-group h3 {
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.taxonomy-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-family: 'Courier Prime', Courier, monospace;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
}

.taxonomy-list a:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.taxonomy-count {
    font-weight: bold;
    background-color: rgba(38, 33, 30, 0.06);
    color: var(--text-muted);
    padding: 0px 5px;
    font-size: 0.72rem;
    transition: var(--transition);
}

.taxonomy-list a:hover .taxonomy-count {
    background-color: var(--accent-light);
    color: var(--accent);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    width: 100%;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 36px max(24px, calc((100% - var(--max-width)) / 2));
    margin-top: 64px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-kicker {
    margin: 0 0 6px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.footer-note {
    margin: 0;
    font-size: 0.82rem;
    font-family: 'Courier Prime', Courier, monospace;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.footer-nav a {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
    .taxonomy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 17px;
    }
    
    .site-main {
        padding: 36px 16px 56px;
    }
    
    .post-card {
        padding: 28px 24px;
    }
    
    .single-post {
        padding: 36px 24px;
    }
    
    .post-nav {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer-nav {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Layout alignments responsive reset */
    .entry-content .alignleft,
    .wp-caption.alignleft,
    .entry-content .alignright,
    .wp-caption.alignright {
        float: none;
        display: block;
        margin: 24px auto;
        text-align: center;
    }
}
