/* ══════════════════════════════════════════
   Blog Page (blogs.html)
   ══════════════════════════════════════════ */

:root {
    --cream: #f7f3ee;
    --linen: #ede8e0;
    --warm-white: #fdfbf8;
    --ink: #1c1a18;
    --warm-gray: #7a736b;
    --soft-brown: #a8957e;
    --accent: #8b6e52;
    --gold: #c9a96e;
    --rule: rgba(139, 110, 82, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.6;
}

/* ── PAGE LAYOUT ── */

/* Match nav & footer font to other pages (leave .nav-brand alone) */
nav ul li a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

footer, footer * {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.page-wrapper {
    min-width: 0;
}

/* ── SIDEBAR ── */
.sidebar {
    position: sticky;
    top: 80px;
    padding: 2rem 0;
}

.sidebar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--rule);
}

.sidebar-posts {
    list-style: none;
}

.sidebar-posts li {
    margin-bottom: 0;
}

.sidebar-posts a {
    display: block;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: var(--ink);
    border-left: 2px solid transparent;
    transition: all 0.25s ease;
}

.sidebar-posts a:hover {
    background: var(--linen);
    border-left-color: var(--gold);
    color: var(--accent);
}

.sidebar-posts a.active-post {
    background: var(--linen);
    border-left-color: var(--accent);
    color: var(--accent);
    font-weight: 400;
}

.sidebar-post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.sidebar-post-meta {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    font-family: 'Jost', sans-serif;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 1.5rem 0;
}

/* ── SECTION LABEL ── */
.section-label {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 3.5rem;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.2s;
}

.section-label::before,
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.section-label span {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--soft-brown);
    white-space: nowrap;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
}

/* ── HERO ── */
.hero {
    padding: 4rem 0 2rem;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.35s;
}

.hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 2rem;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.hero-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--soft-brown);
    border-radius: 50%;
    display: inline-block;
}

/* ── DECORATIVE RULE ── */
.ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.5s;
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rule), transparent);
}

.ornament-glyph {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 300;
    line-height: 1;
}

/* ── ARTICLE BODY ── */
.article-body {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.6s;
}

.opening-drop {
    float: left;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.8rem;
    line-height: 0.82;
    font-weight: 300;
    color: var(--accent);
    margin: 0.1em 0.12em 0 0;
    padding: 0;
}

.article-body p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.85;
    color: #2e2b28;
    margin-bottom: 2rem;
}

.article-body p:first-of-type::after {
    content: '';
    display: table;
    clear: both;
}

/* ── PULL QUOTE ── */
.pull-quote {
    position: relative;
    margin: 3.5rem 0;
    padding: 2.5rem 3rem;
    background: var(--warm-white);
    border-left: 2px solid var(--gold);
}

.pull-quote::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 7rem;
    color: var(--gold);
    opacity: 0.25;
    position: absolute;
    top: -1.5rem;
    left: 1.5rem;
    line-height: 1;
}

.pull-quote p {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.55rem !important;
    font-style: italic;
    line-height: 1.6 !important;
    color: var(--accent) !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

/* ── JOURNAL NOTE ── */
.journal-note {
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    background: var(--linen);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.journal-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--soft-brown), transparent);
}

.journal-note-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--soft-brown);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.journal-note p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--ink);
    margin: 0 !important;
}

/* ── REFLECTION CARD ── */
.reflection-card {
    margin: 4rem 0;
    padding: 3rem;
    background: var(--ink);
    color: var(--cream);
    position: relative;
}

.reflection-card::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.reflection-card-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: block;
}

.reflection-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--linen);
    margin: 0 !important;
}

.reflection-card em {
    color: var(--gold);
    font-style: italic;
}

/* ── BOOK CTA ── */

/* ── BACK TO BLOG ── */
.back-to-blog {
    margin: 2rem 0 3rem;
    text-align: center;
}

.back-to-blog a {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--rule);
    transition: all 0.3s ease;
}

.back-to-blog a:hover {
    background: var(--accent);
    color: var(--cream);
    border-color: var(--accent);
}

/* ── BLOG LISTING (index page) ── */
.blog-listing {
    margin: 2rem 0 4rem;
}

.blog-listing-card {
    display: block;
    padding: 2.5rem;
    margin-bottom: 2rem;
    background: var(--warm-white);
    border: 1px solid var(--rule);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

.blog-listing-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 24px rgba(139, 110, 82, 0.12);
    transform: translateY(-3px);
}

.blog-listing-meta {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-gray);
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.blog-listing-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-listing-card:hover .blog-listing-title {
    color: var(--accent);
}

.blog-listing-excerpt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 1.2rem;
}

.blog-listing-read {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.book-cta {
    margin: 4.5rem 0 3rem;
    padding: 2.5rem;
    border: 1px solid var(--rule);
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: var(--warm-white);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.book-cta:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 24px rgba(139, 110, 82, 0.12);
}

.book-icon {
    flex-shrink: 0;
    width: 56px;
    height: 70px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.book-icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: rgba(0,0,0,0.2);
}

.book-icon svg {
    color: var(--cream);
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
}

.book-cta-text {
    flex: 1;
}

.book-cta-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--soft-brown);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.book-cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.4rem;
    font-style: italic;
}

.book-cta-subtitle {
    font-size: 0.78rem;
    color: var(--warm-gray);
    letter-spacing: 0.03em;
}

.book-cta-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    transition: background 0.2s, color 0.2s;
}

.book-cta:hover .book-cta-arrow {
    background: var(--accent);
    color: var(--cream);
}

/* ── PAGE NUMBER DECORATION ── */
.page-ref {
    text-align: center;
    margin: 2rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--warm-gray);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        border-top: 1px solid var(--rule);
        padding-top: 2rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 3rem;
    }

    .pull-quote {
        padding: 2rem 1.5rem;
    }

    .book-cta {
        flex-direction: column;
        text-align: center;
    }
}
