/*
Theme Name: Bosphorus Stone
Theme URI: https://bosphorus-stone.com
Author: Bosphorus Stone
Author URI: https://bosphorus-stone.com
Description: Magazine francophone expert en pierre naturelle pour l'habitat. Marbre, granit, ardoise : guides techniques, inspirations decoration et conseils pour vos projets de renovation et construction.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bosphorusstone
Tags: blog, construction, renovation, custom-logo, custom-menu, featured-images, theme-options

Bosphorus Stone - L'excellence de la pierre naturelle pour votre habitat.
*/

/* ============================================================
   DESIGN SYSTEM - Stone Palette
   Architecture inspiree des veines du marbre
   ============================================================ */
:root {
    /* Stone Backgrounds - Nuances marbre et calcaire */
    --bs-surface-light: #f8f6f3;
    --bs-surface-warm: #f3efe9;
    --bs-surface-stone: #ebe6de;
    --bs-surface-white: #ffffff;
    
    /* Stone Accents - Gris anthracite et bronze */
    --bs-primary: #4a4a48;
    --bs-primary-dark: #2c2c2b;
    --bs-accent: #8b7355;
    --bs-accent-warm: #a08060;
    --bs-accent-gold: #c9a962;
    
    /* Text Hierarchy - WCAG AA Compliant (4.5:1 minimum) */
    --bs-ink: #1f1f1e;
    --bs-ink-soft: #3d3d3b;
    --bs-ink-muted: #595957;
    --bs-ink-faded: #767674;
    
    /* Functional */
    --bs-success: #4a7c59;
    --bs-error: #9e3a3a;
    --bs-info: #4a6b8a;
    
    /* Effects */
    --bs-border-subtle: rgba(0, 0, 0, 0.05);
    --bs-border-medium: rgba(0, 0, 0, 0.08);
    --bs-shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.03);
    --bs-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --bs-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --bs-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    
    /* Typography - Editorial sophistique */
    --bs-font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --bs-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Layout */
    --bs-max-width: 1240px;
    --bs-content-width: 780px;
    --bs-gutter: 1.5rem;
    --bs-radius-sm: 3px;
    --bs-radius-md: 6px;
    --bs-radius-lg: 10px;
    
    /* Motion */
    --bs-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --bs-duration-fast: 150ms;
    --bs-duration-base: 250ms;
    --bs-duration-slow: 400ms;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--bs-font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--bs-ink);
    background-color: var(--bs-surface-light);
}

::selection {
    background: var(--bs-accent);
    color: var(--bs-surface-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color var(--bs-duration-fast) var(--bs-ease);
}

a:hover {
    color: var(--bs-accent);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--bs-ink);
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
    margin-bottom: 1.5rem;
}

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

blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    background: var(--bs-surface-warm);
    border-left: 3px solid var(--bs-accent);
    font-family: var(--bs-font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--bs-ink-soft);
}

/* ============================================================
   LAYOUT SYSTEM
   ============================================================ */
.bs-wrapper {
    width: 100%;
    max-width: var(--bs-max-width);
    margin: 0 auto;
    padding: 0 var(--bs-gutter);
}

.bs-wrapper--narrow {
    max-width: var(--bs-content-width);
}

.bs-block {
    padding: 6rem 0;
}

.bs-block--muted {
    background: var(--bs-surface-warm);
}

.bs-block--stone {
    background: var(--bs-surface-stone);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.bs-skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 1rem 1.5rem;
    background: var(--bs-primary);
    color: var(--bs-surface-white);
    font-weight: 600;
    border-radius: var(--bs-radius-md);
    transition: top var(--bs-duration-fast) var(--bs-ease);
}

.bs-skip-nav:focus {
    top: 1rem;
    color: var(--bs-surface-white);
    outline: 3px solid var(--bs-accent-gold);
    outline-offset: 2px;
}

.bs-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================================
   SITE HEADER - Architecture horizontale epuree
   ============================================================ */
.bs-masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 246, 243, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bs-border-subtle);
}

.bs-masthead.is-scrolled {
    box-shadow: var(--bs-shadow-sm);
}

.bs-masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.bs-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bs-ink);
    transition: opacity var(--bs-duration-fast) var(--bs-ease);
}

.bs-brand:hover {
    opacity: 0.8;
    color: var(--bs-ink);
}

.bs-brand__icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-ink-soft) 100%);
    border-radius: var(--bs-radius-sm);
    color: var(--bs-surface-white);
}

.bs-brand__icon svg {
    width: 22px;
    height: 22px;
}

.bs-brand__name {
    font-family: var(--bs-font-display);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Navigation principale */
.bs-nav-primary {
    display: flex;
    align-items: center;
    gap: 0;
}

.bs-nav-primary__item {
    position: relative;
}

.bs-nav-primary__link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bs-ink-soft);
    transition: color var(--bs-duration-fast) var(--bs-ease);
}

.bs-nav-primary__link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--bs-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--bs-duration-base) var(--bs-ease);
}

.bs-nav-primary__link:hover,
.bs-nav-primary__link.is-active {
    color: var(--bs-ink);
}

.bs-nav-primary__link:hover::before,
.bs-nav-primary__link.is-active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Menu mobile toggle */
.bs-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--bs-ink);
}

.bs-menu-toggle__bar {
    position: relative;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: background var(--bs-duration-fast) var(--bs-ease);
}

.bs-menu-toggle__bar::before,
.bs-menu-toggle__bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform var(--bs-duration-fast) var(--bs-ease);
}

.bs-menu-toggle__bar::before { top: -7px; }
.bs-menu-toggle__bar::after { bottom: -7px; }

.bs-menu-toggle[aria-expanded="true"] .bs-menu-toggle__bar {
    background: transparent;
}

.bs-menu-toggle[aria-expanded="true"] .bs-menu-toggle__bar::before {
    top: 0;
    transform: rotate(45deg);
}

.bs-menu-toggle[aria-expanded="true"] .bs-menu-toggle__bar::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Menu mobile panel */
.bs-mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--bs-surface-light);
    transform: translateX(100%);
    transition: transform var(--bs-duration-base) var(--bs-ease);
    overflow-y: auto;
}

.bs-mobile-nav.is-open {
    transform: translateX(0);
}

.bs-mobile-nav__inner {
    padding: 2rem var(--bs-gutter);
}

.bs-mobile-nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--bs-ink);
    border-bottom: 1px solid var(--bs-border-subtle);
}

.bs-mobile-nav__link:last-child {
    border-bottom: none;
}

/* ============================================================
   HERO - Layout asymetrique avec image dominante
   ============================================================ */
.bs-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    background: var(--bs-surface-warm);
    overflow: hidden;
}

.bs-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bs-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
}

.bs-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.bs-hero__text {
    max-width: 560px;
}

.bs-hero__eyebrow {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-accent);
    background: rgba(139, 115, 85, 0.1);
    border-radius: var(--bs-radius-sm);
}

.bs-hero__title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.bs-hero__lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--bs-ink-soft);
    margin-bottom: 2.5rem;
}

.bs-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.bs-hero__visual {
    position: relative;
}

.bs-hero__image {
    position: relative;
    border-radius: var(--bs-radius-lg);
    overflow: hidden;
    box-shadow: var(--bs-shadow-lg);
}

.bs-hero__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.bs-hero__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

/* Decorative element */
.bs-hero__accent {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--bs-accent) 0%, var(--bs-accent-warm) 100%);
    border-radius: var(--bs-radius-lg);
    opacity: 0.15;
    z-index: -1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.bs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--bs-radius-md);
    transition: all var(--bs-duration-fast) var(--bs-ease);
}

.bs-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--bs-duration-fast) var(--bs-ease);
}

.bs-btn:hover svg {
    transform: translateX(3px);
}

.bs-btn--solid {
    background: var(--bs-primary);
    color: var(--bs-surface-white);
}

.bs-btn--solid:hover {
    background: var(--bs-primary-dark);
    color: var(--bs-surface-white);
}

.bs-btn--outline {
    background: transparent;
    color: var(--bs-ink);
    box-shadow: inset 0 0 0 1.5px var(--bs-border-medium);
}

.bs-btn--outline:hover {
    background: var(--bs-ink);
    color: var(--bs-surface-white);
    box-shadow: none;
}

.bs-btn--ghost {
    padding: 0.5rem 0;
    background: transparent;
    color: var(--bs-accent);
}

.bs-btn--ghost:hover {
    color: var(--bs-primary);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.bs-section-intro {
    margin-bottom: 3.5rem;
}

.bs-section-intro--center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.bs-section-intro__label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bs-accent);
}

.bs-section-intro__title {
    margin-bottom: 1rem;
}

.bs-section-intro__desc {
    font-size: 1.0625rem;
    color: var(--bs-ink-soft);
    line-height: 1.7;
}

/* ============================================================
   CATEGORIES GRID - Layout masonry-like
   ============================================================ */
.bs-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.bs-category-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    padding: 1.75rem;
    border-radius: var(--bs-radius-lg);
    overflow: hidden;
    text-decoration: none;
}

.bs-category-tile__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bs-category-tile__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bs-duration-slow) var(--bs-ease);
}

.bs-category-tile:hover .bs-category-tile__bg img {
    transform: scale(1.05);
}

.bs-category-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 15, 14, 0.9) 0%,
        rgba(15, 15, 14, 0.6) 40%,
        rgba(15, 15, 14, 0.2) 100%
    );
    z-index: 1;
}

.bs-category-tile__content {
    position: relative;
    z-index: 2;
}

.bs-category-tile__name {
    font-family: var(--bs-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bs-category-tile__meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.bs-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bs-post-card {
    display: flex;
    flex-direction: column;
    background: var(--bs-surface-white);
    border-radius: var(--bs-radius-lg);
    overflow: hidden;
    box-shadow: var(--bs-shadow-xs);
    transition: box-shadow var(--bs-duration-base) var(--bs-ease),
                transform var(--bs-duration-base) var(--bs-ease);
}

.bs-post-card:hover {
    box-shadow: var(--bs-shadow-md);
    transform: translateY(-6px);
}

/* Card border on hover for better affordance */
.bs-post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color var(--bs-duration-fast) var(--bs-ease);
}

.bs-post-card:hover::after {
    border-color: var(--bs-accent);
}

.bs-post-card {
    position: relative;
}

.bs-post-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.bs-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bs-duration-slow) var(--bs-ease);
}

.bs-post-card:hover .bs-post-card__media img {
    transform: scale(1.03);
}

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

.bs-post-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.8125rem;
    color: var(--bs-ink-muted);
}

.bs-post-card__cat {
    font-weight: 600;
    color: var(--bs-accent);
}

.bs-post-card__title {
    font-family: var(--bs-font-display);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.bs-post-card__title a {
    color: var(--bs-ink);
}

.bs-post-card__title a:hover {
    color: var(--bs-accent);
}

.bs-post-card__excerpt {
    font-size: 0.9375rem;
    color: var(--bs-ink-soft);
    line-height: 1.6;
}

/* Featured post - larger layout */
.bs-post-card--featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.bs-post-card--featured .bs-post-card__media {
    aspect-ratio: auto;
    min-height: 380px;
    border-radius: var(--bs-radius-lg) 0 0 var(--bs-radius-lg);
}

.bs-post-card--featured .bs-post-card__body {
    padding: 2.5rem;
    justify-content: center;
}

.bs-post-card--featured .bs-post-card__title {
    font-size: 1.75rem;
}

.bs-post-card--featured .bs-post-card__excerpt {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   QUOTE BLOCK - Style editorial
   ============================================================ */
.bs-quote-banner {
    text-align: center;
    padding: 4rem 2rem;
}

.bs-quote-banner__icon {
    display: inline-flex;
    margin-bottom: 1.5rem;
    color: var(--bs-accent);
    opacity: 0.4;
}

.bs-quote-banner__icon svg {
    width: 48px;
    height: 48px;
}

.bs-quote-banner__text {
    font-family: var(--bs-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--bs-ink);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.bs-quote-banner__cite {
    font-size: 0.9375rem;
    color: var(--bs-ink-muted);
    font-style: normal;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.bs-newsletter {
    background: var(--bs-surface-white);
    border-radius: var(--bs-radius-lg);
    padding: 3.5rem;
    text-align: center;
    box-shadow: var(--bs-shadow-sm);
}

.bs-newsletter__title {
    margin-bottom: 0.75rem;
}

.bs-newsletter__desc {
    font-size: 1.0625rem;
    color: var(--bs-ink-soft);
    max-width: 480px;
    margin: 0 auto 2rem;
}

.bs-newsletter__form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}

.bs-newsletter__input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--bs-ink);
    background: var(--bs-surface-light);
    border: 2px solid var(--bs-border-medium);
    border-radius: var(--bs-radius-md);
    transition: border-color var(--bs-duration-fast) var(--bs-ease),
                box-shadow var(--bs-duration-fast) var(--bs-ease);
}

.bs-newsletter__input:focus {
    outline: none;
    border-color: var(--bs-accent);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

.bs-newsletter__input:focus-visible {
    outline: 2px solid var(--bs-accent);
    outline-offset: 2px;
}

.bs-newsletter__input::placeholder {
    color: var(--bs-ink-muted);
}

/* Form validation states */
.bs-newsletter__input:invalid:not(:placeholder-shown) {
    border-color: var(--bs-error);
}

.bs-newsletter__input:valid:not(:placeholder-shown) {
    border-color: var(--bs-success);
}

/* ARIA invalid state */
.bs-newsletter__input[aria-invalid="true"] {
    border-color: var(--bs-error);
    box-shadow: 0 0 0 3px rgba(158, 58, 58, 0.15);
}

.bs-newsletter__input[aria-invalid="false"]:not(:placeholder-shown) {
    border-color: var(--bs-success);
}

/* Newsletter messages */
.bs-newsletter__message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--bs-radius-md);
    font-size: 0.875rem;
    text-align: center;
}

.bs-newsletter__message--success {
    background: rgba(74, 124, 89, 0.1);
    color: var(--bs-success);
    border: 1px solid rgba(74, 124, 89, 0.2);
}

.bs-newsletter__message--error {
    background: rgba(158, 58, 58, 0.1);
    color: var(--bs-error);
    border: 1px solid rgba(158, 58, 58, 0.2);
}

/* Loading state */
.bs-newsletter__form.is-loading .bs-btn {
    pointer-events: none;
    opacity: 0.7;
}

.bs-newsletter__form.is-loading .bs-btn::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: bs-spin 0.8s linear infinite;
}

@keyframes bs-spin {
    to { transform: rotate(360deg); }
}

.bs-newsletter__disclaimer {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--bs-ink-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.bs-footer {
    background: var(--bs-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.bs-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.bs-footer a:hover {
    color: var(--bs-surface-white);
}

.bs-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.bs-footer__brand {
    max-width: 280px;
}

.bs-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--bs-surface-white);
}

.bs-footer__logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--bs-radius-sm);
}

.bs-footer__logo-icon svg {
    width: 20px;
    height: 20px;
}

.bs-footer__logo-text {
    font-family: var(--bs-font-display);
    font-size: 1.125rem;
}

.bs-footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.bs-footer__heading {
    font-family: var(--bs-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-surface-white);
    margin-bottom: 1.25rem;
}

.bs-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bs-footer__links a {
    font-size: 0.9375rem;
}

/* Footer tags (non-links) */
.bs-footer__tags {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bs-footer__tags li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    padding-left: 0.75rem;
    position: relative;
}

.bs-footer__tags li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background: var(--bs-accent);
    border-radius: 50%;
}

.bs-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.bs-footer__legal {
    display: flex;
    gap: 1.5rem;
}

.bs-footer__legal a {
    color: rgba(255, 255, 255, 0.5);
}

.bs-footer__legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.bs-article {
    padding-top: 7rem;
}

.bs-article__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 var(--bs-gutter);
}

.bs-article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--bs-ink-muted);
}

.bs-article__cat {
    font-weight: 600;
    color: var(--bs-accent);
}

.bs-article__title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.bs-article__excerpt {
    font-size: 1.25rem;
    color: var(--bs-ink-soft);
    line-height: 1.6;
}

.bs-article__cover {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 var(--bs-gutter);
}

.bs-article__cover img {
    width: 100%;
    height: auto;
    border-radius: var(--bs-radius-lg);
}

.bs-article__content {
    max-width: var(--bs-content-width);
    margin: 0 auto;
    padding: 0 var(--bs-gutter);
}

.bs-article__content p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.bs-article__content h2 {
    margin: 3rem 0 1.25rem;
}

.bs-article__content h3 {
    margin: 2.5rem 0 1rem;
}

.bs-article__content ul,
.bs-article__content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.bs-article__content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.bs-article__content ul li {
    list-style-type: disc;
}

.bs-article__content ol li {
    list-style-type: decimal;
}

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.bs-archive {
    padding-top: 7rem;
}

.bs-archive__header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bs-border-subtle);
}

.bs-archive__title {
    margin-bottom: 0.5rem;
}

.bs-archive__desc {
    font-size: 1.0625rem;
    color: var(--bs-ink-soft);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.bs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.bs-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bs-ink-soft);
    background: var(--bs-surface-white);
    border-radius: var(--bs-radius-md);
    transition: all var(--bs-duration-fast) var(--bs-ease);
}

.bs-pagination__link:hover {
    background: var(--bs-surface-stone);
    color: var(--bs-ink);
}

.bs-pagination__link.is-current {
    background: var(--bs-primary);
    color: var(--bs-surface-white);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.bs-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--bs-ink-muted);
    margin-bottom: 1.5rem;
}

.bs-breadcrumbs a {
    color: var(--bs-ink-muted);
}

.bs-breadcrumbs a:hover {
    color: var(--bs-accent);
}

.bs-breadcrumbs__sep {
    color: var(--bs-ink-faded);
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.bs-page {
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.bs-page__header {
    text-align: center;
    max-width: var(--bs-content-width);
    margin: 0 auto 3rem;
    padding: 0 var(--bs-gutter);
}

.bs-page__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.bs-page__content {
    max-width: var(--bs-content-width);
    margin: 0 auto;
    padding: 0 var(--bs-gutter);
}

.bs-page__content p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.bs-page__content h2 {
    margin: 3rem 0 1.25rem;
}

.bs-page__content h3 {
    margin: 2.5rem 0 1rem;
}

.bs-page__content ul,
.bs-page__content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.bs-page__content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.bs-page__content ul li {
    list-style-type: disc;
}

.bs-page__content ol li {
    list-style-type: decimal;
}

.bs-page__content a {
    color: var(--bs-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bs-page__content a:hover {
    color: var(--bs-primary);
}

.bs-page__content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bs-surface-warm);
    border-left: 3px solid var(--bs-accent);
    font-style: italic;
}

.bs-page__content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.bs-page__content th,
.bs-page__content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bs-border-subtle);
}

.bs-page__content th {
    font-weight: 600;
    background: var(--bs-surface-warm);
}

.bs-page__content img {
    border-radius: var(--bs-radius-md);
    margin: 2rem 0;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.bs-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0;
}

.bs-404__code {
    font-family: var(--bs-font-display);
    font-size: 8rem;
    font-weight: 400;
    color: var(--bs-border-medium);
    line-height: 1;
    margin-bottom: 1rem;
}

.bs-404__title {
    margin-bottom: 1rem;
}

.bs-404__text {
    font-size: 1.0625rem;
    color: var(--bs-ink-soft);
    margin-bottom: 2rem;
}

/* ============================================================
   SEARCH
   ============================================================ */
.bs-search-form {
    display: flex;
    gap: 0.75rem;
}

.bs-search-form__input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--bs-ink);
    background: var(--bs-surface-white);
    border: 1px solid var(--bs-border-medium);
    border-radius: var(--bs-radius-md);
}

.bs-search-form__input:focus {
    outline: 2px solid var(--bs-accent);
    outline-offset: 2px;
    border-color: var(--bs-accent);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.bs-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--bs-ease), transform 0.6s var(--bs-ease);
}

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

.bs-posts-grid .bs-reveal:nth-child(1) { transition-delay: 0s; }
.bs-posts-grid .bs-reveal:nth-child(2) { transition-delay: 0.08s; }
.bs-posts-grid .bs-reveal:nth-child(3) { transition-delay: 0.16s; }
.bs-posts-grid .bs-reveal:nth-child(4) { transition-delay: 0.24s; }
.bs-posts-grid .bs-reveal:nth-child(5) { transition-delay: 0.32s; }
.bs-posts-grid .bs-reveal:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   FOCUS STATES - WCAG 2.1 AA Compliant
   ============================================================ */
*:focus-visible {
    outline: 2px solid var(--bs-accent);
    outline-offset: 2px;
}

/* High contrast focus for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--bs-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.15);
}

/* Category tiles focus state */
.bs-category-tile:focus-visible {
    outline: 3px solid var(--bs-accent-gold);
    outline-offset: 3px;
}

/* Post card link focus */
.bs-post-card__title a:focus-visible {
    outline: 2px solid var(--bs-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Button focus enhancement */
.bs-btn:focus-visible {
    outline: 2px solid var(--bs-accent-gold);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.2);
}

/* ============================================================
   TOUCH & ACTIVE STATES - Mobile UX
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .bs-post-card:hover {
        transform: none;
        box-shadow: var(--bs-shadow-xs);
    }
    
    .bs-category-tile:hover .bs-category-tile__bg img {
        transform: none;
    }
    
    /* Add active states for touch feedback */
    .bs-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .bs-category-tile:active {
        opacity: 0.9;
    }
    
    .bs-post-card__title a:active {
        opacity: 0.7;
    }
    
    .bs-nav-primary__link:active,
    .bs-mobile-nav__link:active {
        background: var(--bs-surface-stone);
    }
}

/* Active states for all devices */
.bs-btn:active {
    transform: translateY(1px);
}

.bs-post-card:active {
    transform: translateY(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.bs-text-center { text-align: center; }
.bs-mt-0 { margin-top: 0; }
.bs-mb-0 { margin-bottom: 0; }
.bs-mt-4 { margin-top: 2rem; }
.bs-mb-4 { margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .bs-hero__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .bs-hero__text {
        max-width: 100%;
    }
    
    .bs-hero__visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .bs-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bs-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bs-post-card--featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }
    
    .bs-post-card--featured .bs-post-card__media {
        border-radius: var(--bs-radius-lg) var(--bs-radius-lg) 0 0;
        min-height: 280px;
    }
    
    .bs-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet landscape - intermediate breakpoint */
@media (max-width: 900px) {
    .bs-block {
        padding: 5rem 0;
    }
    
    .bs-hero {
        padding: 8rem 0 5rem;
    }
    
    .bs-hero__title {
        font-size: clamp(2rem, 5vw, 2.75rem);
    }
    
    .bs-category-tile {
        min-height: 220px;
    }
    
    .bs-newsletter {
        padding: 2.5rem 2rem;
    }
    
    .bs-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }
    
    .bs-footer__brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .bs-block {
        padding: 4rem 0;
    }
    
    .bs-nav-primary {
        display: none;
    }
    
    .bs-menu-toggle {
        display: flex;
    }
    
    .bs-hero {
        min-height: auto;
        padding: 7rem 0 4rem;
    }
    
    .bs-hero__cta {
        flex-direction: column;
        width: 100%;
    }
    
    /* Ensure buttons are full width and touch-friendly */
    .bs-hero__cta .bs-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
    
    .bs-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bs-category-tile {
        min-height: 180px;
    }
    
    .bs-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bs-post-card--featured {
        grid-column: span 1;
    }
    
    .bs-post-card--featured .bs-post-card__body {
        padding: 1.5rem;
    }
    
    .bs-newsletter {
        padding: 2.5rem 1.5rem;
    }
    
    .bs-newsletter__form {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Ensure input and button are touch-friendly */
    .bs-newsletter__input,
    .bs-newsletter__form .bs-btn {
        min-height: 48px;
        width: 100%;
    }
    
    .bs-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bs-footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .bs-footer__legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Ensure footer links are touch-friendly */
    .bs-footer__links a,
    .bs-footer__legal a {
        display: inline-block;
        padding: 0.5rem 0;
        min-height: 44px;
        line-height: 44px;
    }
    
    /* Mobile nav link touch targets */
    .bs-mobile-nav__link {
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    /* Section headers */
    .bs-section-intro {
        margin-bottom: 2.5rem;
    }
    
    /* Quote block */
    .bs-quote-banner__text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    :root {
        --bs-gutter: 1rem;
    }
    
    .bs-masthead__inner {
        height: 64px;
    }
    
    .bs-mobile-nav {
        top: 64px;
    }
    
    .bs-brand__name {
        font-size: 1.1rem;
    }
    
    /* Hero adjustments */
    .bs-hero {
        padding: 6rem 0 3rem;
    }
    
    .bs-hero__eyebrow {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .bs-hero__lead {
        font-size: 1rem;
    }
    
    /* Category tiles full touch area */
    .bs-category-tile {
        min-height: 160px;
        padding: 1.25rem;
    }
    
    .bs-category-tile__name {
        font-size: 1.25rem;
    }
    
    /* Post cards */
    .bs-post-card__body {
        padding: 1.25rem;
    }
    
    .bs-post-card__title {
        font-size: 1.125rem;
    }
    
    /* Quote */
    .bs-quote-banner {
        padding: 2rem 0.5rem;
    }
    
    .bs-quote-banner__text {
        font-size: 1.125rem;
    }
    
    /* Newsletter */
    .bs-newsletter {
        padding: 2rem 1rem;
    }
    
    .bs-newsletter__title {
        font-size: 1.5rem;
    }
    
    /* 404 */
    .bs-404 {
        padding: 6rem 0;
        min-height: 50vh;
    }
    
    .bs-404__code {
        font-size: 5rem;
    }
    
    /* Buttons full width */
    .bs-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Pagination touch targets */
    .bs-pagination {
        gap: 0.375rem;
    }
    
    .bs-pagination__link {
        min-width: 44px;
        height: 44px;
        padding: 0 0.625rem;
        font-size: 0.875rem;
    }
    
    /* Article content */
    .bs-article__header {
        padding: 0;
    }
    
    .bs-article__content {
        padding: 0;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .bs-masthead,
    .bs-footer,
    .bs-mobile-nav,
    .bs-newsletter,
    .bs-btn,
    .bs-pagination,
    .bs-skip-nav {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    .bs-article {
        padding-top: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .bs-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   HIGH CONTRAST MODE
   ============================================================ */
@media (prefers-contrast: more) {
    :root {
        --bs-ink: #000000;
        --bs-ink-soft: #1a1a1a;
        --bs-ink-muted: #333333;
        --bs-accent: #5d4a2e;
        --bs-border-subtle: rgba(0, 0, 0, 0.2);
        --bs-border-medium: rgba(0, 0, 0, 0.3);
    }
    
    .bs-btn--solid {
        border: 2px solid var(--bs-primary-dark);
    }
    
    .bs-btn--outline {
        border-width: 2px;
    }
    
    .bs-post-card {
        border: 1px solid var(--bs-border-medium);
    }
    
    .bs-category-tile__overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    *:focus-visible {
        outline: 3px solid #000000;
        outline-offset: 3px;
    }
}

/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {
    .bs-btn {
        border: 2px solid currentColor;
    }
    
    .bs-category-tile__overlay {
        background: transparent;
    }
    
    .bs-category-tile__content {
        background: Canvas;
        color: CanvasText;
        padding: 1rem;
    }
    
    .bs-post-card {
        border: 1px solid currentColor;
    }
    
    .bs-skip-nav:focus {
        outline: 3px solid currentColor;
    }
}
