/* =========================================================
   "Before They Became Famous" — editorial series design
   Uses the site's own colours (from styles.css): navy/blue text
   accents, gold rules and details. Serif type for the editorial
   feel. Scoped to .bf pages and the homepage feature (#bf-home).
   Dark mode follows the site's colours automatically.
   ========================================================= */
:root {
  --bf-paper: var(--bg);          /* page background */
  --bf-paper-2: var(--soft);      /* panels, cards */
  --bf-ink: var(--text);          /* main text */
  --bf-ink-soft: var(--muted);    /* secondary text */
  --bf-gold: var(--brand);        /* text accents: kickers, links */
  --bf-gold-soft: var(--accent);  /* gold rules, borders, ornaments */
  --bf-line: var(--line);
  --bf-serif-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --bf-serif-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

body.bf { background: var(--bf-paper); }
.bf-page { color: var(--bf-ink); padding-bottom: 56px; }
.bf-draft-banner { margin: 0; background: #8a1c1c; color: #fff; text-align: center; padding: 8px 12px; font: 700 .85rem Inter, sans-serif; letter-spacing: .06em; }

.bf-crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; font: 500 .8rem Inter, sans-serif; color: var(--bf-ink-soft); }
.bf-crumbs a { color: var(--bf-ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.bf-crumbs a:hover { color: var(--bf-gold); }

.bf-kicker { margin: 0; font: 700 .74rem Inter, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--bf-gold); }
.bf-kicker i { font-style: normal; margin: 0 6px; color: var(--bf-gold-soft); }

.bf-rule { display: flex; align-items: center; gap: 14px; color: var(--accent); margin: 40px auto 18px; max-width: 220px; }
.bf-rule::before, .bf-rule::after { content: ""; flex: 1; height: 1px; background: var(--bf-gold-soft); }
.bf-rule span { font-size: .8rem; }

/* ---------- Article ---------- */
.bf-article { max-width: 720px; margin: 0 auto; padding: 28px 18px 0; }
.bf-head { text-align: center; padding-bottom: 10px; }
.bf-head h1 { font-family: var(--bf-serif-head); font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -.01em; margin: 16px 0 14px; color: var(--bf-ink); }
.bf-dek { font-family: var(--bf-serif-body); font-style: italic; font-size: 1.2rem; line-height: 1.6; color: var(--bf-ink-soft); margin: 0 auto 16px; max-width: 620px; }
.bf-meta { font: 500 .85rem Inter, sans-serif; color: var(--bf-ink-soft); margin: 0; padding: 12px 0; border-block: 1px solid var(--bf-line); }
.bf-meta i { font-style: normal; margin: 0 8px; color: var(--bf-gold); }

.bf-figure { margin: 30px 0; }
.bf-figure img { width: 100%; height: auto; display: block; filter: grayscale(1) contrast(1.02); background: var(--bf-paper-2); border: 1px solid var(--bf-line); }
.bf-figure figcaption { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--bf-gold-soft); font-family: var(--bf-serif-body); font-size: .92rem; line-height: 1.55; color: var(--bf-ink-soft); }
.bf-cap { display: block; font-style: italic; color: var(--bf-ink); }
.bf-credit { display: block; font: 400 .78rem Inter, sans-serif; margin-top: 4px; }
.bf-credit a { color: var(--bf-ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.bf-article > .bf-figure:first-of-type img { max-height: 720px; object-fit: contain; }

.bf-body { font-family: var(--bf-serif-body); font-size: 1.16rem; line-height: 1.85; color: var(--bf-ink); }
.bf-body p { margin: 0 0 1.15em; }
.bf-body h2 { font-family: var(--bf-serif-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.25; text-align: center; margin: 0 0 22px; color: var(--bf-ink); }
.bf-lede::first-letter { float: left; font-family: var(--bf-serif-head); font-weight: 800; font-size: 4.6em; line-height: .82; padding: 6px 10px 0 0; color: var(--brand); }

.bf-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 8px; padding: 16px 0; border-block: 1px solid var(--bf-line); font: 600 .85rem Inter, sans-serif; }
.bf-share > span { color: var(--bf-ink-soft); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; margin-right: 4px; }
.bf-share-btn { padding: 7px 14px; border: 1px solid var(--bf-line); border-radius: 2px; background: transparent; color: var(--bf-ink); font: 600 .85rem Inter, sans-serif; cursor: pointer; }
.bf-share-btn:hover { border-color: var(--bf-gold); color: var(--bf-gold); }

.bf-sources { margin-top: 30px; padding: 24px; background: var(--bf-paper-2); border: 1px solid var(--bf-line); }
.bf-sources h2 { font-family: var(--bf-serif-head); font-size: 1.3rem; margin: 0 0 12px; }
.bf-sources ol { margin: 0; padding-left: 22px; font-family: var(--bf-serif-body); }
.bf-sources li { margin-bottom: 10px; line-height: 1.5; }
.bf-sources li a { color: var(--bf-ink); text-decoration: underline; text-decoration-color: var(--bf-gold-soft); text-underline-offset: 3px; }
.bf-sources li a:hover { color: var(--bf-gold); }
.bf-sources li span { display: block; font: 400 .8rem Inter, sans-serif; color: var(--bf-ink-soft); }
.bf-note { margin: 16px 0 0; font-family: var(--bf-serif-body); font-style: italic; font-size: .92rem; color: var(--bf-ink-soft); }

.bf-more { max-width: 900px; }
.bf-more h2 { font-family: var(--bf-serif-head); text-align: center; font-size: 1.5rem; margin: 0 0 18px; }
.bf-more-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.bf-mini { display: flex; gap: 12px; align-items: center; color: var(--bf-ink); }
.bf-mini img { width: 72px; height: 90px; object-fit: cover; filter: grayscale(1); border: 1px solid var(--bf-line); }
.bf-mini small { display: block; font: 700 .7rem Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-gold); }
.bf-mini b { font-family: var(--bf-serif-head); font-size: 1.02rem; line-height: 1.3; }
.bf-soon { text-align: center; font-family: var(--bf-serif-body); font-style: italic; color: var(--bf-ink-soft); }
.bf-link { display: block; text-align: center; color: var(--bf-gold); font: 700 .9rem Inter, sans-serif; letter-spacing: .04em; margin-top: 10px; }

/* ---------- Series landing ---------- */
.bf-masthead { text-align: center; padding: 40px 0 8px; max-width: 760px; }
.bf-masthead h1 { font-family: var(--bf-serif-head); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; margin: 12px 0 10px; color: var(--bf-ink); }
.bf-tagline { font-family: var(--bf-serif-head); font-style: italic; font-size: 1.35rem; color: var(--bf-gold); margin: 0; }
.bf-intro { font-family: var(--bf-serif-body); font-size: 1.08rem; line-height: 1.7; color: var(--bf-ink-soft); margin: 0 auto; max-width: 620px; }

.bf-feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-top: 36px; padding: 32px; background: var(--bf-paper-2); border: 1px solid var(--bf-line); max-width: 1040px; }
.bf-feature-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; filter: grayscale(1); border: 1px solid var(--bf-line); }
.bf-feature h2 { font-family: var(--bf-serif-head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; margin: 12px 0; }
.bf-feature h2 a { color: var(--bf-ink); }
.bf-feature h2 a:hover { color: var(--bf-gold); }
.bf-feature .bf-dek { text-align: left; margin: 0 0 12px; }
.bf-feature .bf-meta { border: 0; padding: 0 0 18px; }
.bf-btn { display: inline-block; padding: 11px 22px; border: 1px solid var(--bf-ink); color: var(--bf-ink); font: 700 .85rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.bf-btn:hover { background: var(--bf-ink); color: var(--bf-paper); }
.bf-photo-credit { margin: 16px 0 0; font: 400 .75rem Inter, sans-serif; color: var(--bf-ink-soft); }

.bf-archive { max-width: 1040px; margin-top: 48px; }
.bf-archive h2 { font-family: var(--bf-serif-head); font-size: 1.6rem; text-align: center; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--bf-line); }
.bf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.bf-card { display: block; color: var(--bf-ink); background: var(--bf-paper-2); border: 1px solid var(--bf-line); }
.bf-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; filter: grayscale(1); }
.bf-card-text { display: grid; gap: 6px; padding: 16px; }
.bf-card small { font: 700 .7rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--bf-gold); }
.bf-card b { font-family: var(--bf-serif-head); font-size: 1.15rem; line-height: 1.3; }
.bf-card span span { font-family: var(--bf-serif-body); color: var(--bf-ink-soft); }
.bf-card em { font: 700 .8rem Inter, sans-serif; font-style: normal; color: var(--bf-gold); }

/* ---------- Homepage feature ---------- */
.bf-home { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; margin: 0 0 32px; padding: 22px; background: var(--surface); border: 1px solid var(--bf-line); border-top: 3px solid var(--accent); color: var(--bf-ink); }
.bf-home[hidden] { display: none; }
.bf-home-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; filter: grayscale(1); border: 1px solid var(--bf-line); }
.bf-home-badge { margin: 0; font-family: var(--bf-serif-head); font-style: italic; font-weight: 600; font-size: 1.05rem; color: var(--bf-gold); }
.bf-home-draft { font: 700 .65rem Inter, sans-serif; font-style: normal; letter-spacing: .08em; text-transform: uppercase; background: #8a1c1c; color: #fff; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
.bf-home-ed { margin: 2px 0 8px; font: 700 .7rem Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--bf-ink-soft); }
.bf-home h2 { font-family: var(--bf-serif-head); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.2; margin: 0 0 8px; }
.bf-home h2 a { color: var(--bf-ink); }
.bf-home h2 a:hover { color: var(--bf-gold); }
.bf-home-excerpt { margin: 0 0 12px; font-family: var(--bf-serif-body); color: var(--bf-ink-soft); line-height: 1.6; }
.bf-home-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0; }
.bf-home-read { padding: 8px 16px; border: 1px solid var(--bf-ink); color: var(--bf-ink); font: 700 .78rem Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.bf-home-read:hover { background: var(--bf-ink); color: var(--bf-paper); }
.bf-home-all { color: var(--bf-gold); font: 700 .85rem Inter, sans-serif; }
.bf-home-credit { margin: 10px 0 0; font: 400 .72rem Inter, sans-serif; color: var(--bf-ink-soft); }

@media (max-width: 760px) {
  .bf-feature { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .bf-home { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .bf-body { font-size: 1.08rem; }
  .bf-share-btn { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 420px) {
  .bf-home { grid-template-columns: 1fr; }
  .bf-home-img img { aspect-ratio: 16/10; }
}
