:root {
    --bb-bg: #f3efec;
    --bb-card: #faf8f6;
    --bb-card-strong: #ffffff;
    --bb-text: #2e2b28;
    --bb-muted: #6c665f;
    --bb-line: rgba(53, 44, 35, 0.1);
    --bb-shadow: 0 12px 35px rgba(54, 44, 35, 0.08);
    --bb-blue: #3d78ae;
    --bb-blue-dark: #2d5d8a;
    --bb-radius-xl: 22px;
    --bb-radius-lg: 18px;
    --bb-radius-md: 14px;
    --bb-content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bb-bg);
    color: var(--bb-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-shell {
    width: min(calc(100% - 32px), 1380px);
    margin: 28px auto;
}

.site-header,
.site-footer,
.hero-card,
.content-section,
.feature-card,
.post-card,
.post-list__item,
.single-entry {
    background: var(--bb-card);
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow);
}

.site-header {
    border-radius: var(--bb-radius-xl);
    overflow: hidden;
    position: sticky;
    top: 12px;
    z-index: 20;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
}

.custom-logo {
    max-height: 82px;
    width: auto;
}


.site-branding__link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
.site-logo--default img {
    max-height: 82px;
    width: auto;
}
.site-logo .custom-logo-link {
    display: block;
}
.site-branding {
    min-width: 0;
}

.site-branding__text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: Georgia, serif;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 0.95;
}

.site-tagline {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-top: 8px;
}

.primary-navigation .menu {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.primary-navigation .menu li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    color: #413a35;
    font-size: 1rem;
    transition: 0.2s ease;
}

.primary-navigation .menu li.current-menu-item a,
.primary-navigation .menu li.current_page_item a,
.primary-navigation .menu li a:hover {
    color: var(--bb-blue-dark);
    background: rgba(61, 120, 174, 0.08);
}

.primary-navigation .menu li:last-child a {
    background: linear-gradient(180deg, #4e88bc 0%, #336ea3 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(61, 120, 174, 0.25);
}

.primary-navigation .menu li:last-child a:hover {
    background: linear-gradient(180deg, #447eaf 0%, #2d5d8a 100%);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #fff;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--bb-line);
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: #3c352f;
    margin: 5px 0;
    border-radius: 999px;
}

.site-main {
    margin-top: 22px;
}

.hero-card {
    overflow: hidden;
    border-radius: 28px;
}

.hero-card__image {
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-card__content {
    padding: 34px;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bb-blue-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-card h1,
.archive-header h1,
.single-entry__header h1,
.feature-card h2,
.section-heading h2 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.05;
}

.hero-card h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.hero-card p {
    font-size: 1.06rem;
    color: var(--bb-muted);
    margin: 0 0 18px;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    background: linear-gradient(180deg, #4e88bc 0%, #336ea3 100%);
    color: #fff;
    font-weight: 700;
}

.feature-grid,
.post-grid {
    display: grid;
    gap: 22px;
}

.feature-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 22px;
}

.feature-card,
.content-section,
.single-entry {
    border-radius: 24px;
}

.feature-card {
    padding: 24px;
}

.feature-card p,
.section-heading p,
.archive-description,
.single-entry__content,
.post-card__body p,
.post-list__content p,
.empty-state p {
    color: var(--bb-muted);
}

.feature-card a {
    color: var(--bb-blue-dark);
    font-weight: 700;
}

.content-section {
    padding: 26px;
    margin-top: 22px;
}

.content-section--narrow {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    margin-bottom: 18px;
}

.post-grid {
    grid-template-columns: repeat(3, 1fr);
}

.post-card,
.post-list__item {
    border-radius: 20px;
    overflow: hidden;
}

.post-card__thumb img,
.single-entry__image img,
.post-list__thumb img {
    width: 100%;
    height: auto;
}

.post-card__placeholder {
    min-height: 220px;
    background: linear-gradient(135deg, #e9dfd7, #d6e1ea);
}

.post-card__body,
.post-list__content {
    padding: 20px;
}

.post-card__meta {
    font-size: 0.85rem;
    color: var(--bb-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 700;
}

.post-card h3,
.post-list__content h2 {
    margin: 0 0 10px;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.14;
}

.post-list {
    display: grid;
    gap: 22px;
}

.post-list__item {
    display: grid;
    grid-template-columns: 300px 1fr;
}

.single-entry {
    padding: 30px;
}

.single-entry__image {
    margin: 20px 0 24px;
    border-radius: 18px;
    overflow: hidden;
}

.single-entry__content > *:first-child { margin-top: 0; }
.single-entry__content > *:last-child { margin-bottom: 0; }
.single-entry__content a { color: var(--bb-blue-dark); }
.single-entry__content h2,
.single-entry__content h3,
.single-entry__content h4 {
    font-family: Georgia, serif;
}

.empty-state {
    padding: 18px 0 6px;
}

.pagination-wrap,
.post-navigation-wrap {
    margin-top: 24px;
}

.site-footer {
    border-radius: 24px;
    margin-top: 22px;
}

.site-footer__inner {
    padding: 22px 28px;
    text-align: center;
    color: var(--bb-muted);
}

@media (max-width: 1100px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-list__item {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 860px) {
    .site-shell {
        width: min(calc(100% - 20px), 1380px);
        margin: 10px auto 18px;
    }

    .site-header {
        top: 8px;
    }

    .site-header__inner {
        padding: 18px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .primary-navigation {
        width: 100%;
        display: none;
    }

    .primary-navigation.is-open {
        display: block;
    }

    .primary-navigation .menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-top: 10px;
    }

    .primary-navigation .menu li a {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-card__image {
        min-height: 260px;
    }

    .hero-card__content,
    .content-section,
    .single-entry {
        padding: 20px;
    }

    .post-grid,
    .feature-grid,
    .post-list__item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .custom-logo {
        max-height: 62px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-tagline {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .hero-card {
        border-radius: 20px;
    }

    .hero-card__image {
        min-height: 220px;
    }

    .hero-card h1 {
        font-size: 2rem;
    }
}
