/*
 * blackstone-blog.css
 * Blackstone Blog Template — Seasonal Variant Stylesheet
 *
 * Two visual systems, one file:
 *   .bs-season-summer  — Scout/badge aesthetic: warm ochre, forest green, parchment
 *   .bs-season-winter  — Tarot/arcana aesthetic: bone white, iron grey, midnight black
 *
 * All selectors are prefixed .bs- to avoid conflicts with the Go theme
 * and any Gutenberg block styles.
 *
 * Enqueue via functions.php on pages using this template:
 *
 *   function bvnemba_blackstone_blog_styles() {
 *       if ( ! is_page_template( 'page-blackstone-blog.php' ) ) return;
 *       wp_enqueue_style(
 *           'bvnemba-blackstone-blog',
 *           get_stylesheet_directory_uri() . '/assets/css/blackstone-blog.css',
 *           array( 'go-parent-style' ),
 *           '1.0.0'
 *       );
 *   }
 *   add_action( 'wp_enqueue_scripts', 'bvnemba_blackstone_blog_styles' );
 *
 * Version: 1.0 — May 2026
 */

/* ================================================================
   GOOGLE FONTS IMPORT
   Work Sans (body/UI) — Karla (body copy) are already loaded by
   the BVNEMBA child theme. The Blackstone template adds:
     - 'Playfair Display' as a Broadsheet-adjacent serif for winter
   Summer display headings use Work Sans Bold (already available).
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

/* ================================================================
   DESIGN TOKENS
   Summer and winter custom properties scoped to their wrapper class.
   ================================================================ */

/* ── Shared ──────────────────────────────────────────────────── */
:root {
    --bs-transition: 0.2s ease;
    --bs-radius:     4px;
    --bs-content-max: 760px;
    --bs-full-max:    1140px;
}

/* ── Summer tokens ───────────────────────────────────────────── */
.bs-season-summer {
    /* Palette */
    --bs-bg:            #F5F2EB;        /* warm parchment canvas         */
    --bs-bg-alt:        #EDE8DC;        /* slightly deeper parchment     */
    --bs-hero-bg:       #33312D;        /* deep umber fallback           */
    --bs-overlay:       rgba(51,49,45,0.52);
    --bs-bar-bg:        #665C48;        /* muted olive                   */
    --bs-bar-text:      #F5F2EB;
    --bs-badge-bg:      #FEB11B;        /* golden ochre                  */
    --bs-badge-text:    #33312D;
    --bs-accent:        #E97132;        /* ember — shared BVNEMBA brand  */
    --bs-accent-dim:    #C4561A;
    --bs-rule:          #C9BCA4;
    --bs-text-head:     #33312D;        /* deep umber                    */
    --bs-text-body:     #3D3830;
    --bs-text-muted:    #66604F;
    --bs-text-hero:     #F5F2EB;
    --bs-kicker-color:  #FEB11B;
    --bs-lore-color:    rgba(245,242,235,0.70);
    --bs-mark-color:    #99804E;        /* warm taupe                    */
    --bs-cta-bg:        #33312D;
    --bs-cta-text:      #F5F2EB;
    --bs-cta-btn-bg:    #FEB11B;
    --bs-cta-btn-text:  #33312D;
    --bs-nav-bg:        #EDE8DC;
    --bs-nav-border:    #C9BCA4;
    --bs-nav-hover:     #E97132;
    --bs-blockquote-bg: #E5DFD2;
    --bs-blockquote-bar:#FEB11B;

    /* Typography */
    --bs-font-display:  'Work Sans', sans-serif;
    --bs-font-body:     'Karla', sans-serif;
    --bs-font-kicker:   'Work Sans', sans-serif;

    /* Letter spacing for display */
    --bs-head-spacing:  0.01em;
    --bs-kicker-spacing:0.14em;
}

/* ── Winter tokens ───────────────────────────────────────────── */
.bs-season-winter {
    /* Palette */
    --bs-bg:            #F6F3EF;        /* bone white canvas             */
    --bs-bg-alt:        #EDEAE4;
    --bs-hero-bg:       #1A1A1A;        /* midnight black                */
    --bs-overlay:       rgba(15,15,15,0.68);
    --bs-bar-bg:        #1A1A1A;
    --bs-bar-text:      #C6D3E1;        /* frost blue                    */
    --bs-badge-bg:      #C6D3E1;
    --bs-badge-text:    #1A1A1A;
    --bs-accent:        #C19A3E;        /* gold leaf                     */
    --bs-accent-dim:    #9A7A2E;
    --bs-rule:          #C4BCAF;
    --bs-text-head:     #1A1A1A;        /* midnight black                */
    --bs-text-body:     #2A2622;
    --bs-text-muted:    #5C5550;
    --bs-text-hero:     #F6F3EF;
    --bs-kicker-color:  #C6D3E1;        /* frost blue                    */
    --bs-lore-color:    rgba(198,211,225,0.75);
    --bs-mark-color:    #C19A3E;
    --bs-cta-bg:        #1A1A1A;
    --bs-cta-text:      #F6F3EF;
    --bs-cta-btn-bg:    #C19A3E;
    --bs-cta-btn-text:  #1A1A1A;
    --bs-nav-bg:        #EDEAE4;
    --bs-nav-border:    #C4BCAF;
    --bs-nav-hover:     #C19A3E;
    --bs-blockquote-bg: #E8E3DB;
    --bs-blockquote-bar:#C19A3E;

    /* Typography */
    --bs-font-display:  'Playfair Display', Georgia, serif;
    --bs-font-body:     'Karla', sans-serif;
    --bs-font-kicker:   'Work Sans', sans-serif;

    --bs-head-spacing:  0.02em;
    --bs-kicker-spacing:0.16em;
}

/* ================================================================
   BREAKOUT WRAPPER
   Escapes the Go theme .entry-content max-width constraint.
   ================================================================ */
.bs-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--bs-bg);
    color: var(--bs-text-body);
    font-family: var(--bs-font-body);
}

/* ================================================================
   SEASON BAR
   ================================================================ */
.bs-season-bar {
    background: var(--bs-bar-bg);
    color: var(--bs-bar-text);
    padding: 10px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--bs-font-kicker);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bs-season-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bs-badge-bg);
    color: var(--bs-badge-text);
    padding: 4px 12px 4px 9px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.bs-season-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    fill: none;
    flex-shrink: 0;
}

.bs-season-divider {
    color: rgba(255,255,255,0.25);
}

.bs-season-site {
    color: rgba(255,255,255,0.40);
    font-size: 10px;
}

/* ================================================================
   HERO
   ================================================================ */
.bs-hero {
    position: relative;
    background: var(--bs-hero-bg);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.bs-hero--flat {
    min-height: 320px;
    justify-content: center;
    padding: 80px 40px 60px;
}

.bs-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.bs-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--bs-overlay);
}

.bs-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--bs-content-max);
    margin: 0 auto;
    width: 100%;
    padding: 0 40px 56px;
}

.bs-hero--flat .bs-hero-inner {
    padding: 0;
    text-align: center;
}

/* Kicker */
.bs-kicker {
    font-family: var(--bs-font-kicker);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--bs-kicker-spacing);
    text-transform: uppercase;
    color: var(--bs-kicker-color);
    margin: 0 0 14px;
}

/* Title */
.bs-post-title {
    font-family: var(--bs-font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: var(--bs-head-spacing);
    color: var(--bs-text-hero);
    margin: 0 0 14px;
}

.bs-hero--flat .bs-post-title {
    color: var(--bs-text-head);
}

/* Winter title: italic display */
.bs-season-winter .bs-post-title {
    font-style: italic;
}

/* Lore tag */
.bs-lore-tag {
    font-family: var(--bs-font-body);
    font-size: 15px;
    font-style: italic;
    color: var(--bs-lore-color);
    margin: 0 0 20px;
    line-height: 1.5;
}

.bs-hero--flat .bs-lore-tag {
    color: var(--bs-text-muted);
}

/* Meta */
.bs-hero-meta {
    font-family: var(--bs-font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-hero--flat .bs-hero-meta {
    justify-content: center;
    color: var(--bs-text-muted);
}

.bs-meta-sep {
    opacity: 0.5;
}

/* Hero rule — accent color bar at bottom of hero */
.bs-hero-rule {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bs-accent);
    z-index: 3;
}

/* ================================================================
   BODY LAYOUT
   ================================================================ */
.bs-body-wrap {
    max-width: var(--bs-full-max);
    margin: 0 auto;
    padding: 0 40px;
}

.bs-content-col {
    max-width: var(--bs-content-max);
    margin: 0 auto;
    padding: 56px 0 40px;
}

/* ================================================================
   SEASON MARK
   Decorative glyph beneath the hero rule — sets the seasonal tone
   before the first paragraph.
   ================================================================ */
.bs-season-mark {
    text-align: center;
    margin-bottom: 40px;
}

.bs-mark-glyph {
    font-size: 22px;
    color: var(--bs-mark-color);
    display: inline-block;
    line-height: 1;
}

/* ================================================================
   POST CONTENT
   Typography for the_content() output.
   ================================================================ */
.bs-post-content {
    font-family: var(--bs-font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--bs-text-body);
}

.bs-post-content p {
    margin: 0 0 1.5em;
}

.bs-post-content p:last-child {
    margin-bottom: 0;
}

/* Headings inside post content */
.bs-post-content h2,
.bs-post-content h3,
.bs-post-content h4 {
    font-family: var(--bs-font-display);
    font-weight: 700;
    color: var(--bs-text-head);
    letter-spacing: var(--bs-head-spacing);
    margin: 2em 0 0.6em;
    line-height: 1.2;
}

.bs-post-content h2 { font-size: 1.65rem; }
.bs-post-content h3 { font-size: 1.3rem; }
.bs-post-content h4 { font-size: 1.1rem; }

/* Winter: italic h2 display headings */
.bs-season-winter .bs-post-content h2 {
    font-style: italic;
}

/* Accent rule after h2 */
.bs-post-content h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--bs-accent);
    margin-top: 10px;
    border-radius: 2px;
}

/* Links */
.bs-post-content a {
    color: var(--bs-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0,0,0,0.2);
    transition: color var(--bs-transition), text-decoration-color var(--bs-transition);
}

.bs-post-content a:hover {
    color: var(--bs-accent-dim);
    text-decoration-color: var(--bs-accent-dim);
}

/* Blockquote */
.bs-post-content blockquote {
    background: var(--bs-blockquote-bg);
    border-left: 4px solid var(--bs-blockquote-bar);
    border-radius: 0 var(--bs-radius) var(--bs-radius) 0;
    margin: 2em 0;
    padding: 22px 28px;
    font-size: 1.1em;
    font-style: italic;
    color: var(--bs-text-body);
}

.bs-post-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.82em;
    font-style: normal;
    font-family: var(--bs-font-kicker);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-text-muted);
}

.bs-post-content blockquote cite::before {
    content: '\2014\00A0';
}

/* Images inside content */
.bs-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bs-radius);
    display: block;
    margin: 2em auto;
}

.bs-post-content figure {
    margin: 2em 0;
}

.bs-post-content figcaption {
    font-size: 13px;
    color: var(--bs-text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Lists */
.bs-post-content ul,
.bs-post-content ol {
    margin: 0 0 1.5em 1.4em;
    padding: 0;
}

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

/* Horizontal rule */
.bs-post-content hr {
    border: none;
    border-top: 2px solid var(--bs-rule);
    margin: 3em 0;
}

/* ================================================================
   CLOSING RULE
   ================================================================ */
.bs-closing-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 56px 0 40px;
    color: var(--bs-mark-color);
}

.bs-closing-dash {
    flex: 1;
    height: 1px;
    background: var(--bs-rule);
    display: block;
}

.bs-closing-glyph {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* ================================================================
   POST NAVIGATION
   ================================================================ */
.bs-post-nav {
    margin-top: 8px;
}

.bs-nav-inner {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.bs-nav-link {
    flex: 1 1 280px;
    background: var(--bs-nav-bg);
    border: 1px solid var(--bs-nav-border);
    border-radius: var(--bs-radius);
    padding: 20px 22px;
    text-decoration: none;
    color: var(--bs-text-body);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color var(--bs-transition), background var(--bs-transition);
}

.bs-nav-link:hover {
    border-color: var(--bs-nav-hover);
    background: var(--bs-bg-alt);
}

.bs-nav-arrow {
    font-size: 20px;
    color: var(--bs-accent);
    line-height: 1;
}

.bs-nav-label {
    font-family: var(--bs-font-kicker);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--bs-text-muted);
}

.bs-nav-title {
    font-family: var(--bs-font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--bs-text-head);
    line-height: 1.3;
}

.bs-nav-next {
    text-align: right;
    align-items: flex-end;
}

/* ================================================================
   FOOTER CTA
   ================================================================ */
.bs-footer-cta {
    background: var(--bs-cta-bg);
    color: var(--bs-cta-text);
    text-align: center;
    padding: 64px 40px 40px;
    margin-top: 0;
}

.bs-footer-cta-inner {
    max-width: 520px;
    margin: 0 auto 32px;
}

.bs-footer-cta-label {
    font-family: var(--bs-font-display);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: var(--bs-head-spacing);
    color: var(--bs-cta-text);
    margin: 0 0 12px;
    line-height: 1.1;
}

.bs-season-winter .bs-footer-cta-label {
    font-style: italic;
}

.bs-footer-cta-sub {
    font-family: var(--bs-font-body);
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin: 0 0 28px;
    line-height: 1.6;
}

.bs-footer-cta-btn {
    display: inline-block;
    background: var(--bs-cta-btn-bg);
    color: var(--bs-cta-btn-text);
    font-family: var(--bs-font-kicker);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--bs-radius);
    transition: opacity var(--bs-transition), transform var(--bs-transition);
}

.bs-footer-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.bs-footer-values {
    font-family: var(--bs-font-kicker);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    margin-top: 36px;
}

.bs-footer-values span {
    margin: 0 10px;
    opacity: 0.5;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .bs-hero-inner {
        padding: 0 28px 44px;
    }

    .bs-body-wrap {
        padding: 0 24px;
    }

    .bs-content-col {
        padding: 40px 0 32px;
    }

    .bs-post-content {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .bs-hero {
        min-height: 360px;
    }

    .bs-hero--flat {
        min-height: 240px;
        padding: 60px 24px 48px;
    }

    .bs-hero-inner {
        padding: 0 20px 36px;
    }

    .bs-body-wrap {
        padding: 0 20px;
    }

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

    .bs-nav-inner {
        flex-direction: column;
    }

    .bs-nav-next {
        text-align: left;
        align-items: flex-start;
    }

    .bs-footer-cta {
        padding: 48px 24px 32px;
    }

    .bs-footer-cta-label {
        font-size: 1.6rem;
    }

    .bs-season-bar {
        padding: 10px 20px;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .bs-season-bar,
    .bs-hero-rule,
    .bs-post-nav,
    .bs-footer-cta { display: none; }

    .bs-wrap {
        width: auto;
        position: static;
        left: auto;
        margin: 0;
    }

    .bs-hero {
        min-height: auto;
        padding: 24px 0;
    }

    .bs-post-title {
        color: #000 !important;
    }
}
