/*
Theme Name: Benderson 2026
Theme URI: https://bendersonmedia.com/
Author: Benderson Media
Description: Editorial theme for Benderson Media: AI in the real economy. Newsreader headlines and body, Inter interface, mono figures. Built November 2026.
Version: 2.0.0
Requires PHP: 7.4
Text Domain: benderson
*/

/* ---------- Tokens ---------- */
:root {
  --paper: #FBFAF7;
  --paper-2: #F3F1EB;
  --white: #FFFFFF;
  --ink: #0B1220;
  --ink-2: #273244;
  --muted: #566070;
  --rule: #E2DFD6;
  --rule-strong: #0B1220;
  --accent: #0E7490;
  --accent-ink: #0B5568;
  --signal: #B9410C;
  --navy: #0B1220;
  --cyan: #22D3EE;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --measure: 680px;
  --r: 4px;
  --z-header: 30;
  --z-skip: 50;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.bm2-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.bm-sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: var(--z-skip); background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip-link:focus { top: 12px; }

/* ---------- Small type ---------- */
.bm2-kicker { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.bm2-kicker a:hover { color: var(--accent-ink); text-decoration: underline; }
.bm2-meta { font-family: var(--sans); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bm2-meta a { color: var(--ink-2); font-weight: 600; }
.bm2-meta a:hover { color: var(--accent); }
.bm2-dot::before { content: "\00b7"; padding: 0 2px; }
.bm2-num { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* ---------- Top bar + masthead ---------- */
.bm2-topbar { background: var(--navy); color: #CBD5E1; font-size: 12.5px; }
.bm2-topbar .bm2-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.bm2-topbar-tag { color: var(--cyan); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11.5px; }
.bm2-topbar a { color: #fff; font-weight: 600; }
.bm2-topbar a:hover { color: var(--cyan); }
.bm2-masthead { background: var(--paper); border-bottom: 3px double var(--rule-strong); position: sticky; top: 0; z-index: var(--z-header); }
.bm2-masthead-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.bm2-logo { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.bm2-logo span { font-weight: 400; font-style: italic; color: var(--accent); margin-left: 4px; }
.bm2-nav { display: flex; gap: 22px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.bm2-nav::-webkit-scrollbar { display: none; }
.bm2-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; padding: 26px 0 23px; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.bm2-nav a:hover, .bm2-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.bm2-actions { display: flex; align-items: center; gap: 10px; }
.bm2-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-2); cursor: pointer; transition: background .2s; }
.bm2-icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.bm2-btn, .bm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--r); background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 14.5px; border: 0; cursor: pointer; transition: background .2s; }
.bm2-btn:hover, .bm-btn:hover { background: var(--accent-ink); }
.bm-btn:disabled { opacity: .6; cursor: progress; }
@media (max-width: 900px) {
  .bm2-masthead-inner { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .bm2-logo { font-size: 25px; flex: 1; }
  .bm2-nav { order: 3; flex: 0 0 100%; gap: 18px; border-top: 1px solid var(--rule); }
  .bm2-nav a { padding: 12px 0 10px; font-size: 14px; }
  .bm2-topbar-tag { display: none; }
}

/* ---------- Home: lead ---------- */
.bm2-lead { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 32px 0 36px; border-bottom: 1px solid var(--rule); }
.bm2-lead-story .bm2-media { aspect-ratio: 16 / 9; }
.bm2-lead-story h2 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 12px; }
.bm2-lead-story a:hover h2 { color: var(--accent-ink); }
.bm2-dek { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px; }
.bm2-media { position: relative; overflow: hidden; background: var(--navy); border-radius: var(--r); margin: 0; }
.bm2-media img { width: 100%; height: 100%; object-fit: cover; }
.bm2-media--placeholder { background: linear-gradient(135deg, var(--navy) 0%, #13233F 100%); display: flex; align-items: flex-end; }
.bm2-media--placeholder span { font-family: "Newsreader", Georgia, serif; font-style: italic; color: #E8EEF6; font-size: 22px; line-height: 1.1; padding: 16px 18px 20px; }
.bm2-lead .bm2-media--placeholder span { font-size: 40px; padding: 28px 32px 34px; }
.bm2-media--placeholder::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--cyan); }
.bm2-side-title { font-family: var(--sans) !important; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px !important; }
.bm2-river { list-style: none; margin: 0; padding: 0; }
.bm2-river li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.bm2-river h3 { font-size: 18px; line-height: 1.25; margin: 4px 0 6px; }
.bm2-river a:hover h3 { color: var(--accent-ink); }
.bm2-number { margin-top: 22px; background: var(--navy); color: #fff; border-radius: var(--r); padding: 18px 18px 16px; }
.bm2-number-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.bm2-number-figure { font-family: var(--mono); font-size: 40px; font-weight: 500; line-height: 1.1; margin: 8px 0 6px; color: #fff; }
.bm2-number p { font-size: 14px; color: #CBD5E1; margin: 0 0 8px; }
.bm2-number a { color: var(--cyan); font-weight: 600; font-size: 13px; }
@media (max-width: 900px) { .bm2-lead { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Home: sections ---------- */
.bm2-section { padding: 40px 0; border-bottom: 1px solid var(--rule); }
.bm2-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 20px; }
.bm2-section-head h2 { font-size: 26px; }
.bm2-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.bm2-more { font-size: 13.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.bm2-more:hover { color: var(--accent-ink); text-decoration: underline; }
.bm2-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.bm2-pillar-title { font-family: var(--sans) !important; font-size: 13px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 4px !important; }
.bm2-pillar-title a:hover { color: var(--accent-ink); }
.bm2-pillar-desc { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.bm2-card { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.bm2-card:last-child { border-bottom: 0; }
.bm2-card .bm2-media { aspect-ratio: 16 / 10; margin-bottom: 12px; }
.bm2-card h3 { font-size: 19px; line-height: 1.25; margin-bottom: 6px; }
.bm2-card:hover h3 { color: var(--accent-ink); }
.bm2-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bm2-grid-4 .bm2-card { border-bottom: 0; padding: 0; }
.bm2-grid-4 .bm2-card:not(:has(.bm2-media)) { border-top: 3px solid var(--ink); padding-top: 12px; }
.bm2-grid-4 .bm2-card:not(:has(.bm2-media)) h3 { font-size: 21px; }
@media (max-width: 1000px) { .bm2-pillars { grid-template-columns: 1fr; gap: 8px; } .bm2-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bm2-grid-4 { grid-template-columns: 1fr; } }

/* ---------- Newsletter band ---------- */
.bm2-band { background: var(--navy); color: #fff; padding: 48px 0; }
.bm2-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: center; }
.bm2-band h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.bm2-band p { color: #CBD5E1; margin: 10px 0 0; font-size: 16px; }
.bm2-band-kicker { color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.bm-subscribe-form { display: flex; gap: 8px; }
.bm-input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: 16px var(--sans); border-radius: var(--r); border: 1px solid #94A3B8; background: #fff; color: var(--ink); }
.bm2-band .bm-btn { background: var(--cyan); color: var(--navy); min-height: 48px; }
.bm2-band .bm-btn:hover { background: #fff; }
.bm-form-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: #A7F3D0; }
.bm-form-msg.is-error { color: #FECACA; }
.bm2-light-form .bm-form-msg { color: #047857; }
.bm2-light-form .bm-form-msg.is-error { color: #B91C1C; }
.bm2-light-form .bm-btn { min-height: 48px; }
@media (max-width: 800px) { .bm2-band-inner { grid-template-columns: 1fr; } .bm-subscribe-form { flex-direction: column; } }

/* ---------- Article ---------- */
.bm2-article { padding: 36px 0 24px; }
.bm2-article-head { max-width: 860px; margin: 0 auto; }
.bm2-article-head h1 { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 16px; letter-spacing: -0.02em; }
.bm2-article-head .bm2-dek { font-size: 21px; }
.bm2-byline { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin-top: 18px; }
.bm2-byline img { width: 40px; height: 40px; border-radius: 50%; }
.bm2-byline-name { font-weight: 700; font-size: 14.5px; }
.bm2-byline-name a:hover { color: var(--accent); }
.bm2-share { margin-left: auto; display: flex; gap: 4px; }
.bm2-hero { max-width: 1000px; margin: 28px auto 0; }
.bm2-hero .bm2-media { aspect-ratio: 16 / 9; }
.bm2-hero figcaption, .bm2-body figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); padding: 8px 2px 0; line-height: 1.45; }
.bm2-hero figcaption a, .bm2-body figcaption a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.bm2-body { max-width: var(--measure); margin: 32px auto 0; font-family: var(--serif); font-size: 20px; line-height: 1.7; color: #1A2230; }
.bm2-body > p:first-of-type::first-letter { float: left; font-size: 3.4em; line-height: .9; font-weight: 700; padding: 6px 8px 0 0; color: var(--ink); }
.bm2-body h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.bm2-body h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.bm2-body a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bm2-body a:hover { color: var(--accent); }
.bm2-body ul, .bm2-body ol { padding-left: 1.2em; margin: 0 0 1em; }
.bm2-body li { margin: .3em 0; }
.bm2-body strong { color: var(--ink); }
.bm2-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: 23px; font-style: italic; color: var(--ink); }
.bm2-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-family: var(--sans); font-size: 15px; line-height: 1.45; display: block; overflow-x: auto; }
.bm2-body th { text-align: left; border-bottom: 2px solid var(--ink); padding: 8px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.bm2-body td { border-bottom: 1px solid var(--rule); padding: 8px 10px; font-feature-settings: "tnum" 1; }
.bm2-body img { border-radius: var(--r); }
.bm2-body figure { margin: 1.6em 0; }
.bm2-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.bm2-after { max-width: var(--measure); margin: 40px auto 0; }
.bm2-author { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); }
.bm2-author img { width: 64px; height: 64px; border-radius: 50%; }
.bm2-author h2 { font-size: 20px; margin-bottom: 6px; }
.bm2-author p { font-size: 15px; color: var(--ink-2); margin: 0; }
.bm2-inline-sub { margin-top: 24px; padding: 22px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); }
.bm2-inline-sub h2 { font-size: 22px; margin-bottom: 6px; }
.bm2-inline-sub p { color: var(--ink-2); font-size: 15px; }
.bm2-standards { font-size: 13px; color: var(--muted); margin-top: 18px; }
.bm2-standards a { text-decoration: underline; }
@media (max-width: 640px) { .bm2-body { font-size: 18.5px; } .bm2-share { display: none; } }

/* ---------- Archive ---------- */
.bm2-archive-head { padding: 36px 0 20px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.bm2-archive-head h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 6px; }
.bm2-archive-head p { max-width: 720px; color: var(--ink-2); font-size: 17px; margin: 10px 0 0; }
.bm2-list { list-style: none; margin: 0; padding: 0; }
.bm2-list-item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.bm2-list-item .bm2-media { aspect-ratio: 16 / 10; }
.bm2-list-item h2 { font-size: 23px; margin: 6px 0 8px; }
.bm2-list-item a:hover h2 { color: var(--accent-ink); }
.bm2-list-item p { color: var(--ink-2); font-family: var(--serif); font-size: 17px; margin: 0 0 8px; }
@media (max-width: 640px) { .bm2-list-item { grid-template-columns: 1fr; gap: 12px; } }
.bm-pagination { display: flex; flex-wrap: wrap; gap: 6px; padding: 28px 0; }
.bm-pagination a, .bm-pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r); font-weight: 600; font-size: 14px; }
.bm-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.bm-pagination a:hover { border-color: var(--ink); }

/* ---------- Page / search / 404 ---------- */
.bm2-page { max-width: var(--measure); margin: 0 auto; padding: 40px 20px 56px; }
.bm2-page h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 20px; }
.bm2-search-form { display: flex; gap: 8px; margin: 18px 0; }

/* ---------- Footer ---------- */
.bm2-footer { background: var(--navy); color: #CBD5E1; padding: 48px 0 28px; margin-top: 56px; font-size: 14.5px; }
.bm2-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.bm2-footer .bm2-logo { color: #fff; font-size: 26px; }
.bm2-footer .bm2-logo span { color: var(--cyan); }
.bm2-footer p { margin: 12px 0 0; max-width: 420px; }
.bm2-footer h2 { color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.bm2-footer ul { list-style: none; padding: 0; margin: 0; }
.bm2-footer li { margin: 0 0 8px; }
.bm2-footer a:hover { color: var(--cyan); }
.bm2-footer-note { border-top: 1px solid #23324A; margin-top: 32px; padding-top: 18px; font-size: 12.5px; color: #94A3B8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 800px) { .bm2-footer-grid { grid-template-columns: 1fr; } }

/* ---------- WP core ---------- */
.alignwide { max-width: 1000px; }
.wp-caption-text, .wp-element-caption { font-family: var(--sans); font-size: 13px; color: var(--muted); }
