/* ============================================================
   EVIDENCE BASED ENDURANCE — Editorial brand chrome
   Shared stylesheet for all article pages.
   Palette: ink / bone / cobalt / gravel / muted / carbon
   Typography: Helvetica Neue (display + body), Inter fallback
   ============================================================ */

:root {
    --ink: #1a1a1a;
    --bone: #f4f1ea;
    --cobalt: #1D4ED8;
    --gravel: #bdb6a8;
    --muted: #6b6358;
    --carbon: #2a2520;
    --rule: rgba(0,0,0,0.15);
    --rule-on-ink: rgba(244,241,234,0.18);

    /* Back-compat tokens for existing article styles */
    --black: var(--ink);
    --white: var(--bone);
    --grey: var(--muted);
    --light: #ece8de;
    --border: rgba(0,0,0,0.15);
    --accent: var(--cobalt);
    --color-bg: var(--bone);
    --color-text: var(--ink);
    --color-text-secondary: var(--muted);
    --color-accent: var(--cobalt);
    --color-accent-dark: #1640b8;
    --color-border: rgba(0,0,0,0.15);
    --color-highlight-bg: #ece8de;
    --color-white: var(--bone);

    --font-display: 'Helvetica Neue', Helvetica, 'Inter', Arial, sans-serif;
    --font-body: 'Helvetica Neue', Helvetica, 'Inter', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bone);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern" 1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em, i { font-style: italic; }

/* ============================================================
   TICKER
   ============================================================ */
.eb-ticker {
    background: var(--ink); color: var(--bone);
    padding: 8px 40px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 10px; letter-spacing: 0.18em; font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-body);
}
.eb-ticker span { white-space: nowrap; }

/* ============================================================
   NAV
   ============================================================ */
.eb-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid var(--ink);
    background: var(--bone);
    position: sticky; top: 0; z-index: 100;
    font-family: var(--font-body);
}
.eb-nav-lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.eb-nav-e { font-size: 32px; font-weight: 900; letter-spacing: -0.06em; color: var(--cobalt); line-height: 1; }
.eb-nav-name { font-size: 12px; font-weight: 900; letter-spacing: 0.32em; color: var(--ink); }
.eb-nav-links { display: flex; gap: 28px; list-style: none; }
.eb-nav-links a {
    font-size: 11px; letter-spacing: 0.18em; font-weight: 700;
    text-transform: uppercase; color: var(--ink); cursor: pointer;
}
.eb-nav-links a:hover { color: var(--cobalt); }
.eb-nav-back {
    font-size: 11px; letter-spacing: 0.18em; font-weight: 800;
    text-transform: uppercase; color: var(--bone); background: var(--ink);
    padding: 10px 16px; cursor: pointer; text-decoration: none;
}
.eb-nav-back:hover { background: var(--cobalt); }

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.eb-hero {
    padding: 80px 40px 56px;
    border-bottom: 1px solid var(--ink);
    background: var(--bone);
}
.eb-hero-inner { max-width: 980px; margin: 0 auto; }
.eb-hero-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: 0.2em; font-weight: 700;
    color: var(--cobalt); margin-bottom: 24px; text-transform: uppercase;
}
.eb-hero-kicker .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.18);
}
.eb-hero h1 {
    font-size: clamp(40px, 6.5vw, 88px);
    line-height: 0.95; font-weight: 900; letter-spacing: -0.04em;
    margin: 0; text-transform: uppercase;
    text-wrap: balance;
}
.eb-hero h1 em { color: var(--cobalt); font-style: italic; }
.eb-hero-sub {
    font-size: 20px; line-height: 1.5; margin-top: 24px;
    max-width: 720px; color: var(--carbon); font-weight: 400;
    font-style: italic;
}
.eb-hero-meta {
    display: flex; gap: 28px; flex-wrap: wrap;
    margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--ink);
    font-size: 11px; letter-spacing: 0.18em; font-weight: 700;
    text-transform: uppercase; color: var(--muted);
}
.eb-hero-meta b { color: var(--ink); font-weight: 800; }

/* ============================================================
   ARTICLE BODY — long-form typography
   ============================================================ */
.eb-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 40px 96px;
    font-family: var(--font-body);
}
.eb-body p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 1.6em;
    color: var(--carbon);
    text-wrap: pretty;
}
.eb-body p:first-of-type::first-letter {
    font-weight: 900;
    font-size: 1.4em;
    letter-spacing: -0.04em;
}
.eb-body h2 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 64px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ink);
    color: var(--ink);
}
.eb-body h2::before {
    content: attr(data-n) " · ";
    color: var(--cobalt);
    font-feature-settings: "tnum";
}
.eb-body h2:not([data-n])::before { content: none; }
.eb-body h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 40px 0 16px;
    color: var(--ink);
    text-transform: uppercase;
}
.eb-body strong, .eb-body b { font-weight: 800; color: var(--ink); }
.eb-body ul, .eb-body ol { margin: 0 0 1.6em 1.2em; }
.eb-body li { font-size: 19px; line-height: 1.65; margin-bottom: 10px; color: var(--carbon); }
.eb-body a {
    color: var(--cobalt);
    border-bottom: 1px solid var(--cobalt);
    padding-bottom: 1px;
}
.eb-body a:hover { background: var(--cobalt); color: var(--bone); }

.eb-body blockquote,
.eb-body .pull-quote {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
    border-left: 4px solid var(--cobalt);
    padding: 6px 0 6px 24px;
    margin: 40px 0;
    font-style: italic;
}

/* Key point — strong cobalt block */
.eb-body .key-point,
.eb-body .callout {
    background: var(--ink);
    color: var(--bone);
    padding: 32px 28px;
    margin: 48px 0;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.5;
    border-left: 6px solid var(--cobalt);
    font-style: normal;
}
.eb-body .key-point strong,
.eb-body .callout strong { color: var(--cobalt); font-weight: 800; }

/* Scene box — italic, side rule */
.eb-body .scene-box {
    background: var(--bone);
    border: 1px solid var(--ink);
    border-left: 6px solid var(--gravel);
    padding: 28px;
    margin: 40px 0;
    font-style: italic;
    color: var(--carbon);
    font-size: 18px;
    line-height: 1.55;
}

/* Checklist */
.eb-body .checklist,
.eb-body .framework-box {
    border: 1px solid var(--ink);
    padding: 28px;
    margin: 40px 0;
    background: var(--bone);
}
.eb-body .checklist-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cobalt);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink);
}
.eb-body .checklist-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
    line-height: 1.5;
    color: var(--carbon);
}
.eb-body .checklist-item:last-child { border-bottom: none; }
.eb-body .checklist-icon { color: var(--cobalt); font-weight: 900; }

/* References */
.eb-body .refs,
.eb-body .references {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--ink);
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}
.eb-body .refs h2,
.eb-body .references h2,
.eb-body .refs-title {
    font-size: 11px;
    letter-spacing: 0.22em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 18px;
    border: none;
    padding: 0;
}
.eb-body .refs ol,
.eb-body .references ol { margin-left: 1.4em; }
.eb-body .refs li,
.eb-body .references li {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 10px;
    color: var(--muted);
}

/* Video embed / poster — links out to external interview */
.eb-body .eb-video {
    position: relative;
    display: block;
    margin: 8px 0 16px;
    border: 1px solid var(--ink);
    overflow: hidden;
    background: var(--ink);
}
.eb-body .eb-video img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.3s, transform 0.4s;
}
.eb-body .eb-video:hover img { filter: grayscale(0%) contrast(1.1); transform: scale(1.02); }
.eb-body .eb-video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--cobalt); color: var(--bone);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px rgba(29,78,216,0.25);
    transition: background 0.2s, transform 0.2s;
}
.eb-body .eb-video:hover .eb-video-play { background: var(--ink); transform: translate(-50%, -50%) scale(1.08); }
.eb-body .eb-video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.eb-body .eb-video-tag {
    position: absolute; top: 14px; left: 14px;
    background: rgba(26,26,26,0.78); color: var(--bone);
    font-size: 10px; letter-spacing: 0.18em; font-weight: 800;
    padding: 7px 11px; text-transform: uppercase;
}
.eb-body a.eb-video { border-bottom: none; padding-bottom: 0; }
.eb-body a.eb-video:hover { background: none; }

/* Hero images sometimes used inside articles */
.eb-body figure { margin: 40px 0; }
.eb-body figure img { width: 100%; }
.eb-body figcaption,
.eb-body .hero-caption {
    font-size: 11px; letter-spacing: 0.18em; font-weight: 700;
    color: var(--muted); margin-top: 12px; text-transform: uppercase;
}

/* ============================================================
   CTA STRIP (optional, bottom of article)
   ============================================================ */
.eb-cta-strip {
    display: flex; justify-content: space-between; align-items: center;
    padding: 56px 40px; background: var(--cobalt); color: var(--bone);
    gap: 32px; flex-wrap: wrap;
}
.eb-cta-tag { font-size: 11px; letter-spacing: 0.2em; font-weight: 700; opacity: 0.85; text-transform: uppercase; }
.eb-cta-big { font-size: 56px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-top: 4px; text-transform: uppercase; }
.eb-cta-big em { font-style: italic; }
.eb-cta-btn { background: var(--ink); color: var(--bone); padding: 22px 32px; font-size: 14px; letter-spacing: 0.22em; font-weight: 800; cursor: pointer; text-transform: uppercase; }
.eb-cta-btn:hover { background: var(--bone); color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.eb-footer {
    background: var(--ink); color: var(--bone);
    padding: 56px 40px 32px;
    border-top: 1px solid var(--rule-on-ink);
    font-family: var(--font-body);
}
.eb-foot-rule { height: 1px; background: var(--rule-on-ink); margin-bottom: 40px; }
.eb-foot-row { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.eb-foot-lockup { display: flex; align-items: flex-start; gap: 12px; }
.eb-foot-e { font-size: 56px; font-weight: 900; letter-spacing: -0.06em; color: var(--cobalt); line-height: 0.9; }
.eb-foot-name { font-size: 16px; font-weight: 900; letter-spacing: 0.28em; text-transform: uppercase; }
.eb-foot-tag { font-size: 10px; letter-spacing: 0.18em; font-weight: 700; color: var(--gravel); margin-top: 6px; text-transform: uppercase; }
.eb-foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.eb-foot-col-head { font-size: 10px; letter-spacing: 0.2em; font-weight: 800; color: var(--gravel); margin-bottom: 14px; text-transform: uppercase; }
.eb-foot-link { display: block; font-size: 14px; font-weight: 500; color: var(--bone); margin-bottom: 8px; cursor: pointer; }
.eb-foot-link:hover { color: var(--cobalt); }
.eb-foot-bottom {
    display: flex; justify-content: space-between; gap: 16px;
    font-size: 10px; letter-spacing: 0.18em; font-weight: 700; color: var(--gravel);
    padding-top: 32px; margin-top: 40px; border-top: 1px solid var(--rule-on-ink);
    text-transform: uppercase; align-items: center;
}
.eb-foot-social { display: flex; gap: 10px; }
.eb-foot-social a { width: 32px; height: 32px; border: 1px solid rgba(244,241,234,0.25); display: flex; align-items: center; justify-content: center; }
.eb-foot-social a:hover { background: var(--cobalt); border-color: var(--cobalt); }
.eb-foot-social svg { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .eb-ticker { padding: 8px 20px; font-size: 9px; gap: 12px; overflow: hidden; }
    .eb-ticker span:nth-child(3) { display: none; }
    .eb-nav { padding: 14px 20px; }
    .eb-nav-links { display: none; }
    .eb-hero { padding: 56px 20px 40px; }
    .eb-body { padding: 48px 20px 80px; }
    .eb-body p, .eb-body li { font-size: 17px; }
    .eb-body .pull-quote, .eb-body blockquote { font-size: 22px; }
    .eb-body .key-point, .eb-body .callout { font-size: 17px; padding: 24px 20px; }
    .eb-cta-strip { padding: 40px 20px; }
    .eb-cta-big { font-size: 36px; }
    .eb-footer { padding: 48px 20px 24px; }
    .eb-foot-row { grid-template-columns: 1fr; gap: 36px; }
    .eb-foot-cols { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
    .eb-foot-cols { grid-template-columns: 1fr; }
    .eb-foot-bottom { flex-direction: column; align-items: flex-start; }
    .eb-cta-strip { flex-direction: column; align-items: flex-start; }
    .eb-hero h1 { font-size: 40px; }
    .eb-body { padding: 40px 16px 64px; }
}
