/*
Theme Name: Remnant Compass
Theme URI: https://remnantcompass.com
Author: Manic Rants Productions
Description: Official theme for Remnant Compass — Navigate Truth. Bridge Faith. Fear Not.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: remnant-compass
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

/* ============================================================
   CSS VARIABLES — REMNANT COMPASS DESIGN SYSTEM
   ============================================================ */
:root {
    /* Backgrounds */
    --bg-dark:     #0f0d0a;
    --bg-surface:  #1a1712;
    --bg-card:     #24201a;
    --bg-card-hover: #2e2920;
    --bg-band:     #1f1b13;

    /* Brand Colors */
    --gold:        #c9a557;
    --gold-light:  #e8c878;
    --gold-dark:   #9a7c3a;
    --cream:       #f2ead8;
    --cream-muted: #c4b89a;
    --olive:       #5a6b45;
    --olive-dark:  #3d4a2f;
    --ember:       #8b3a2a;

    /* Text */
    --text:        #e8ddc8;
    --text-muted:  #8e8070;
    --text-dim:    #5c5448;

    /* Borders */
    --border:      #3a3024;
    --border-gold: #6b5930;

    /* Typography */
    --font-heading:    'Cinzel', 'Palatino Linotype', Georgia, serif;
    --font-body:       'Lato', 'Helvetica Neue', Arial, sans-serif;
    --font-scripture:  'EB Garamond', Georgia, 'Times New Roman', serif;

    /* Spacing */
    --max-width: 1200px;
    --section-pad: 80px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--cream);
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }

blockquote {
    font-family: var(--font-scripture);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--cream);
    border-left: 3px solid var(--gold);
    padding: 1.2rem 2rem;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: 0 4px 4px 0;
}

blockquote cite {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--gold);
    margin-top: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scripture-ref {
    font-family: var(--font-scripture);
    font-style: italic;
    color: var(--gold);
    font-size: 0.95rem;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
}

.section--dark { background: var(--bg-dark); }
.section--surface { background: var(--bg-surface); }
.section--card { background: var(--bg-card); }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

.divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem auto;
}

.divider--left { margin-left: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 2px;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn--gold {
    background: var(--gold);
    color: var(--bg-dark);
}
.btn--gold:hover {
    background: var(--gold-light);
    color: var(--bg-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201,165,87,0.3);
}

.btn--outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn--outline:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.btn--dark {
    background: var(--bg-card);
    color: var(--cream);
    border: 1px solid var(--border);
}
.btn--dark:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 13, 10, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s;
}

#site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-logo__name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}
.site-logo__name:hover { color: var(--gold); }

.site-logo__tagline {
    font-family: var(--font-scripture);
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    font-style: italic;
    margin-top: 2px;
}

/* Primary Nav */
#primary-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

#primary-nav li a {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 14px;
    display: block;
    transition: color 0.2s;
    text-decoration: none;
}

#primary-nav li a:hover,
#primary-nav li.current-menu-item > a {
    color: var(--gold);
}

.nav-subscribe a {
    background: var(--gold) !important;
    color: var(--bg-dark) !important;
    border-radius: 2px;
    padding: 7px 16px !important;
    margin-left: 8px;
}
.nav-subscribe a:hover {
    background: var(--gold-light) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream);
    transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    padding: 12px 24px;
    transition: color 0.2s;
    text-decoration: none;
}

.mobile-nav a:hover { color: var(--gold); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(201,165,87,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(90,107,69,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-compass {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
    opacity: 0.7;
}

/* CSS compass rose */
.hero-compass::before {
    content: '✦';
    font-size: 4rem;
    color: var(--gold);
    display: block;
    text-align: center;
    line-height: 1;
    animation: gentle-pulse 4s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    color: var(--cream);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: var(--font-scripture);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: var(--cream-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-mission {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    animation: scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator::after {
    content: '↓';
    font-size: 0.9rem;
    color: var(--gold);
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ============================================================
   SCRIPTURE BAND
   ============================================================ */
.scripture-band {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 24px;
    text-align: center;
}

.scripture-band blockquote {
    background: transparent;
    border: none;
    font-family: var(--font-scripture);
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    font-style: italic;
    color: var(--cream);
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    line-height: 1.6;
}

.scripture-band blockquote cite {
    margin-top: 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--gold);
}

/* ============================================================
   START HERE SECTION
   ============================================================ */
.start-here {
    padding: var(--section-pad) 0;
    background: var(--bg-dark);
}

.start-here__header {
    text-align: center;
    margin-bottom: 3rem;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    margin-top: 2rem;
}

.path-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    position: relative;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.path-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.path-card__icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

.path-card__label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.path-card__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.path-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.5rem;
}

.path-card__link {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

.path-card__link:hover { color: var(--gold-light); }
.path-card__link::after { content: ' →'; }

/* ============================================================
   LATEST TEACHINGS GRID
   ============================================================ */
.teachings-section {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
}

.teachings-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.post-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-surface);
}

.post-card__img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--border-gold);
}

.post-card__body {
    padding: 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.post-card__cat {
    font-family: var(--font-heading);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    background: rgba(201,165,87,0.1);
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid rgba(201,165,87,0.25);
}

.post-card__cat:hover { background: rgba(201,165,87,0.2); color: var(--gold); }

.post-card__date {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
}

.post-card__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--cream);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex: 1;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.post-card__title a:hover { color: var(--gold); }

.post-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.post-card__read-more {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s;
}
.post-card__read-more:hover { color: var(--gold-light); }
.post-card__read-more::after { content: ' →'; }

/* ============================================================
   DOWNLOAD PROMO BAND
   ============================================================ */
.download-band {
    background: var(--bg-card);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    padding: 64px 24px;
}

.download-band__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.download-band__badge {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    background: rgba(201,165,87,0.12);
    border: 1px solid rgba(201,165,87,0.3);
    padding: 4px 12px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 1rem;
}

.download-band__title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.download-band__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
}

/* ============================================================
   SHEMA MAP SECTION
   ============================================================ */
.shema-section {
    padding: var(--section-pad) 0;
    background: var(--bg-dark);
}

.shema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    margin-top: 2.5rem;
}

.shema-card {
    padding: 2rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.shema-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.shema-card--mind::before  { background: #6b8cba; }
.shema-card--heart::before { background: #b05a6a; }
.shema-card--soul::before  { background: #7a6bba; }
.shema-card--strength::before { background: #5a8a5a; }

.shema-card__hebrew {
    font-family: var(--font-scripture);
    font-size: 1.8rem;
    color: var(--gold);
    opacity: 0.4;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    line-height: 1;
}

.shema-card__facet {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.shema-card__title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.shema-card__attack {
    font-size: 0.8rem;
    color: var(--ember);
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.55rem;
    margin-bottom: 0.4rem;
    display: block;
}

.shema-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   SUBSCRIBE SECTION
   ============================================================ */
.subscribe-section {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    text-align: center;
    border-top: 1px solid var(--border);
}

.subscribe-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.subscribe-section__desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.subscribe-note {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================================
   ABOUT SECTION (homepage mini)
   ============================================================ */
.about-band {
    padding: var(--section-pad) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-band__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.about-band__title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.about-band__text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
#site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-brand__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.footer-brand__tagline {
    font-family: var(--font-scripture);
    font-style: italic;
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-brand__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col__title {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-family: var(--font-body);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
    margin-top: 3rem;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
}

.footer-bottom-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    margin-top: 0;
}

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.single-post-header {
    padding: 120px 24px 60px;
    background: var(--bg-dark);
    text-align: center;
}

.single-post-header .post-category {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.single-post-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.2;
}

.post-meta-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-meta-bar span::before {
    content: '·';
    margin-right: 24px;
}
.post-meta-bar span:first-child::before { content: none; margin: 0; }

.single-post-content {
    padding: 60px 24px;
}

.content-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-wrap--no-sidebar {
    grid-template-columns: 1fr;
    max-width: 760px;
}

/* Article Typography */
.entry-content {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin: 2.5rem 0 1rem;
    color: var(--cream);
}

.entry-content h2 { font-size: 1.4rem; }
.entry-content h3 { font-size: 1.15rem; }

.entry-content p { margin-bottom: 1.5rem; }

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

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

.entry-content blockquote {
    margin: 2rem 0;
}

.entry-content hr {
    border: none;
    border-top: 1px solid var(--border-gold);
    margin: 3rem 0;
}

.entry-content img {
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* Post navigation */
.post-nav {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.post-nav__label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: block;
    margin-bottom: 0.4rem;
}

.post-nav__title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    text-decoration: none;
}
.post-nav__title:hover { color: var(--gold-light); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.widget ul li a:hover { color: var(--gold); }

/* Widget: Subscribe CTA */
.widget-subscribe {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 1.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.widget-subscribe .widget-title { border-color: var(--border-gold); }

.widget-subscribe p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
    padding: 100px 24px 50px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
}

.archive-header__label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.archive-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.archive-header__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-top: 1rem;
}

.archive-content {
    padding: 60px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-header {
    padding: 100px 24px 60px;
    background: var(--bg-dark);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* ============================================================
   FEATURED HERO POST (first on homepage blog loop)
   ============================================================ */
.post-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.post-card--featured .post-card__img,
.post-card--featured .post-card__img-placeholder {
    height: 100%;
    min-height: 300px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
}

.page-404__number {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 15vw, 10rem);
    color: var(--border);
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 1rem;
}

.page-404__title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 2rem auto;
}

.search-form input[type="search"] {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s;
}

.search-form input[type="search"]:focus {
    border-color: var(--gold);
}

.search-form input[type="search"]::placeholder {
    color: var(--text-dim);
}

.search-form button {
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s;
}

.search-form button:hover { background: var(--gold-light); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pagination a, .pagination span {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover, .pagination .current {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,165,87,0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    #primary-nav { display: none; }
    .hamburger { display: flex; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar { position: static; }

    .download-band__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .post-card--featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    :root { --section-pad: 56px; }

    .footer-grid { grid-template-columns: 1fr; }

    .footer-bottom { flex-direction: column; text-align: center; }

    .hero-ctas { flex-direction: column; align-items: center; }

    .post-nav { grid-template-columns: 1fr; }

    .paths-grid { grid-template-columns: 1fr; }

    .shema-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    #site-header, #site-footer, .sidebar { display: none; }
    body { background: white; color: black; }
    .content-wrap { grid-template-columns: 1fr; }
}
