:root {
    --bg: #F5EFE0;
    --ink: #1a1a1a;
    --cream: #EDE8D8;
    --cream-mid: #D9D1BC;
    --mid: #7a7570;
    --white: #FFFFFF;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    padding-top: 80px;
}

/* ─── CUSTOM CURSOR ─── */
#bd-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .22s, height .22s, background .22s;
    mix-blend-mode: multiply;
}

#bd-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform .18s ease, width .28s, height .28s;
    opacity: .35;
}

@media (max-width: 960px) {

    #bd-cursor,
    #bd-cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }
}

@media (min-width: 961px) {
    body {
        cursor: none;
    }
}

.bd-blog-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: url('{{ blog.image.url }}') no-repeat center center / cover;
}

.bd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.10) 40%,
            rgba(0, 0, 0, 0.78) 100%);
    z-index: 1;
}

.bd-blog-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 3.5rem 4rem;
}

.bd-hero-eyebrow {
    font-size: 9px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    margin-bottom: .8rem;
}

.bd-blog-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.bd-blog-hero-date {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.bd-ticker {
    overflow: hidden;
    white-space: nowrap;
    background: var(--ink);
    padding: 13px 0;
}

.bd-ticker-track {
    display: inline-flex;
    animation: bdTicker 24s linear infinite;
}

.bd-ticker-track span {
    font-size: 10px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 2.5rem;
}

.bd-ticker-track .dot {
    opacity: .3;
}

@keyframes bdTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.bd-section {
    padding: 90px 3rem;
}

.bd-blog-body {
    max-width: 780px;
    margin: 0 auto;
}

.bd-blog-text {
    font-size: 17px;
    line-height: 1.95;
    color: var(--mid);
    font-weight: 300;
    white-space: pre-line;
}

.bd-divider {
    height: 1px;
    background: var(--cream-mid);
}

.bd-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .75s ease, transform .75s ease;
}

.bd-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .bd-section {
        padding: 64px 1.5rem;
    }

    .bd-blog-hero-content {
        padding: 0 1.5rem 3rem;
    }

    .bd-blog-hero {
        height: 55vh;
        min-height: 340px;
    }

    .bd-blog-text {
        font-size: 15px;
    }
}