/* Bull Moose Strategy — Shared Theme v3.0 (Warm Light Mode)
   Single source of truth for all BMS pages.
   Change once here → updates everywhere. */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:wght@300;400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Backgrounds */
    --bg: #f8f6f1;
    --bg-card: #ffffff;
    --bg-warm: #f0ebe1;
    --bg-section: #e8e2d8;
    --bg-abyss: #f8f6f1;  /* alias for legacy pages */
    --bg-deep: #f0ebe1;   /* alias for legacy pages */
    --bg-mid: #e8e2d8;
    --bg-surface: #ffffff;

    /* Brand */
    --accent: #c73050;
    --accent-glow: #d4405f;
    --accent-muted: rgba(199, 48, 80, 0.08);
    --navy: #1a365d;
    --navy-hover: #234578;
    --gold: #c5a855;

    /* Legacy alias */
    --win-green: #16a34a;

    /* Text — warm tones */
    --text: #2d2a26;
    --text-primary: #2d2a26;     /* alias for legacy pages */
    --text-secondary: #5a5550;
    --text-dim: #6b6560;

    /* Borders & Shadows */
    --border: rgba(45, 42, 38, 0.08);
    --border-strong: rgba(45, 42, 38, 0.14);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.03);
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-lg: 0 2px 8px rgba(0,0,0,0.05), 0 12px 40px rgba(0,0,0,0.06);

    /* Typography */
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Source Sans 3', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;

    /* Glass (legacy) */
    --glass: rgba(45, 42, 38, 0.03);
}

/* ── Base reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.8; }

/* Paper grain texture */
body::before {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: 0.025;
}

/* ── Accessibility ── */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ── Shared nav (blog/article pages) ── */
.bms-nav {
    padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(248, 246, 241, 0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.bms-nav .nav-brand {
    font-family: var(--serif); font-size: 1.1em; font-weight: 400;
    color: var(--navy); text-decoration: none;
}
.bms-nav .nav-brand span { color: var(--accent); }
.bms-nav .nav-back {
    color: var(--text-secondary); text-decoration: none; font-size: 0.85em;
    font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.bms-nav .nav-back:hover { color: var(--navy); }

/* ── Shared footer ── */
.bms-footer {
    padding: 48px 40px; text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-warm);
}
.bms-footer p { color: #6b6560; font-size: 0.8em; }
.bms-footer a { color: #a82842; text-decoration: underline; }

/* ── Shared CTA box ── */
.bms-cta-box {
    margin: 48px 0; padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-left: 3px solid var(--accent);
    border-radius: 8px;
}
.bms-cta-box p { color: var(--text-secondary); margin-bottom: 16px; }
.bms-cta-box a, .bms-article .bms-cta-box a {
    display: inline-block; padding: 14px 32px;
    background: var(--navy); color: white;
    text-decoration: none; border-radius: 6px; font-weight: 700;
}
.bms-cta-box a:hover, .bms-article .bms-cta-box a:hover { background: var(--navy-hover); color: white; }

/* ── Blog article layout ── */
.bms-article { max-width: 700px; margin: 0 auto; padding: 80px 40px; }
.bms-article h1 { font-family: var(--serif); font-size: 2.2em; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.bms-article .meta { color: var(--text-dim); font-size: 0.85em; margin-bottom: 48px; letter-spacing: 0.05em; }
.bms-article h2 { font-family: var(--serif); font-size: 1.5em; margin: 48px 0 16px; color: var(--accent); }
.bms-article h3 { font-family: var(--serif); font-size: 1.15em; margin: 32px 0 12px; color: var(--text); }
.bms-article p { color: var(--text-secondary); margin-bottom: 20px; font-size: 1.05em; }
.bms-article strong { color: var(--text); }
.bms-article ul, .bms-article ol { color: var(--text-secondary); margin: 0 0 20px 24px; font-size: 1.05em; }
.bms-article li { margin-bottom: 8px; }
.bms-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.bms-article a:hover { color: var(--accent-glow); }
.bms-article blockquote {
    border-left: 3px solid var(--accent); padding: 20px 24px; margin: 32px 0;
    font-family: var(--serif); font-style: italic; color: var(--text-secondary); font-size: 1.1em;
}
.bms-article blockquote cite {
    display: block; margin-top: 12px; font-style: normal;
    font-family: var(--sans); font-size: 0.75em; color: var(--text-dim);
}
.bms-article table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.bms-article th {
    background: var(--bg-card); box-shadow: var(--shadow); padding: 12px 16px;
    text-align: left; font-size: 0.85em; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border);
}
.bms-article td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); font-size: 0.95em; }
.bms-article td:not(:first-child), .bms-article th:not(:first-child) { text-align: right; }

/* Blog tip box */
.bms-tip {
    margin: 24px 0; padding: 20px 24px; background: var(--accent-muted);
    border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0;
}
.bms-tip p { margin-bottom: 0; font-size: 0.95em; }

/* Blog section divider */
.section-divider { height: 1px; background: var(--border); margin: 56px 0; }

/* Blog responsive */
@media (max-width: 600px) {
    .bms-article { padding: 40px 20px; }
    .bms-article h1 { font-size: 1.6em; }
    .bms-nav { padding: 16px 20px; }
}
