/* ============================================================
   HARNESS · COMPANION ARTICLE SHELL
   Aligned to the episode design system (l1-t01…l1-t08):
   dark hero → light paper article body, Newsreader serif,
   rose-red series accent, editorial callouts.
   Consumed by:
     /articles/harness/bonus-tools-the-contract.html
     /articles/harness/bonus-environment-the-boundary.html
   ============================================================ */

:root {
  /* Series tokens — mirror episode inline style block */
  --bg-base: #030407;
  --bg-paper: #fcfdfd;
  --bg-cream: #f8f7f4;
  --bg-faint: #f3f4f6;

  --ink-pure: #000000;
  --ink-main: #111318;
  --ink-body: #202226;
  --ink-faint: #374151;
  --ink-muted: #6b7280;
  --ink-hair: #d1d5db;

  --accent: #e11d48; /* Harness rose-red (canonical) */
  --accent-deep: #9f1239;
  --accent-soft: #fda4af;
  --accent-tint: rgba(225, 29, 72, 0.08);
  --accent-line: rgba(225, 29, 72, 0.22);

  /* Kept for legacy bn-* references */
  --bn-bg: var(--bg-base);
  --bn-elev: #ffffff;
  --bn-elev-2: #ffffff;
  --bn-line: rgba(17, 19, 24, 0.09);
  --bn-line-2: rgba(17, 19, 24, 0.14);
  --bn-text: var(--ink-main);
  --bn-muted: var(--ink-body);
  --bn-faint: var(--ink-faint);
  --bn-dim: var(--ink-muted);
  --bn-accent: var(--accent);
  --bn-accent-2: var(--accent);
  --bn-accent-deep: var(--accent-deep);
  --bn-accent-soft: var(--accent-tint);
  --bn-accent-tint: rgba(225, 29, 72, 0.04);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --bn-font-display: var(--font-display);
  --bn-font-body: var(--font-body);
  --bn-font-sans: var(--font-sans);
  --bn-font-mono: var(--font-mono);

  --bn-px: clamp(1.25rem, 5vw, 4rem);
  --bn-measure: 68ch;
  --bn-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  background: var(--bg-base);
}
body {
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: rgba(225, 29, 72, 0.24);
  color: var(--ink-main);
}

/* ---------------- Reading progress ---------------- */
.bn-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.bn-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 60ms linear;
}

/* ---------------- Breadcrumb (over dark hero) ---------------- */
.bn-crumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.75rem var(--bn-px) 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: var(--bg-base);
}
.bn-crumb a {
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.bn-crumb a:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}
.bn-crumb__sep {
  opacity: 0.4;
}
.bn-crumb__cur {
  color: #ffffff;
}

/* ---------------- Hero (dark, mirrors episode hero) ---------------- */
.bn-hero {
  padding: clamp(3rem, 8vw, 6rem) var(--bn-px) clamp(3rem, 6vw, 5.5rem);
  position: relative;
  background: var(--bg-base);
  color: #ffffff;
  isolation: isolate;
}
.bn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 10%, rgba(225, 29, 72, 0.22), transparent 65%),
    radial-gradient(45% 40% at 90% 20%, rgba(159, 18, 57, 0.16), transparent 65%),
    radial-gradient(
      ellipse at center bottom,
      rgba(3, 4, 7, 0) 0%,
      rgba(3, 4, 7, 0.55) 75%,
      var(--bg-base) 100%
    );
  z-index: -1;
}
.bn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}
.bn-hero__inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.bn-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(253, 164, 175, 0.35);
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.08);
}
.bn-kicker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.bn-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 1.4rem 0 1rem;
  color: #ffffff;
}
.bn-hero__title em {
  font-style: italic;
  color: var(--accent-soft);
}
.bn-hero__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  line-height: 1.45;
  margin: 0 0 2.25rem;
  font-weight: 300;
}
.bn-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 780px;
}
.bn-hero__meta b {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------------- Layout: article + TOC rail (light paper) ---------------- */
.bn-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(3rem, 6vw, 5rem) var(--bn-px) 3rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-paper);
  border-radius: 40px 40px 0 0;
  margin-top: -3vh;
  box-shadow:
    0 -40px 100px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}
@media (min-width: 1080px) {
  .bn-shell {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .bn-shell > .bn-article {
    grid-column: 1;
    grid-row: 1;
  }
  .bn-shell > .bn-toc {
    grid-column: 2;
    grid-row: 1;
  }
  .bn-shell > .bn-toc-mobile {
    grid-column: 1 / -1;
  }
}

.bn-article {
  min-width: 0;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------------- Sticky TOC rail ---------------- */
.bn-toc {
  display: none;
  position: sticky;
  top: 2.5rem;
  align-self: start;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  padding: 0.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--bn-line-2) transparent;
}
@media (min-width: 1080px) {
  .bn-toc {
    display: block;
  }
}
.bn-toc__title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}
.bn-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--bn-line);
}
.bn-toc__list li {
  margin: 0;
}
.bn-toc__list a {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0 0.35rem 0.9rem;
  margin-left: -1px;
  color: var(--ink-muted);
  border-left: 1px solid transparent;
  line-height: 1.35;
  transition:
    color 0.18s,
    border-color 0.18s;
}
.bn-toc__list a:hover {
  color: var(--ink-main);
}
.bn-toc__list a.is-active {
  color: var(--accent-deep);
  border-left-color: var(--accent);
}
.bn-toc__list a .bn-toc__num {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  min-width: 1.6em;
}
.bn-toc__list a.is-active .bn-toc__num {
  color: var(--accent);
}

/* Mobile TOC — collapsed accordion */
.bn-toc-mobile {
  display: block;
  border: 1px solid var(--bn-line);
  border-radius: 12px;
  background: var(--bg-cream);
  margin: 0 auto 2.5rem;
  overflow: hidden;
  max-width: 720px;
}
@media (min-width: 1080px) {
  .bn-toc-mobile {
    display: none;
  }
}
.bn-toc-mobile > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bn-toc-mobile > summary::-webkit-details-marker {
  display: none;
}
.bn-toc-mobile > summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
}
.bn-toc-mobile[open] > summary::after {
  content: "−";
}
.bn-toc-mobile ol {
  list-style: none;
  padding: 0 1.1rem 1rem;
  margin: 0;
}
.bn-toc-mobile ol li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--bn-line);
}
.bn-toc-mobile ol li:first-child {
  border-top: none;
}
.bn-toc-mobile a {
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  display: flex;
  gap: 0.6rem;
}
.bn-toc-mobile a .bn-toc__num {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  min-width: 1.6em;
}

/* ---------------- Prose (light paper) ---------------- */
.bn-article > *:first-child {
  margin-top: 0;
}
.bn-article > h2:first-of-type {
  margin-top: 0;
}

.bn-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink-main);
  scroll-margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 3.75rem 0 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--bn-line);
}
.bn-h2__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  flex-shrink: 0;
  align-self: center;
  text-transform: uppercase;
  background: var(--accent-tint);
}

.bn-h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  color: var(--ink-main);
  margin: 2.5rem 0 0.8rem;
  scroll-margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.bn-article p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-body);
  margin: 0 0 1.15rem;
  max-width: var(--bn-measure);
}
.bn-article > p:first-of-type::first-letter,
.bn-article > h2:first-of-type + p::first-letter {
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.9;
  float: left;
  padding: 0.35rem 0.5rem 0 0;
  color: var(--accent-deep);
  font-weight: 500;
}
.bn-article p strong {
  color: var(--ink-main);
  font-weight: 600;
}
.bn-article p em {
  color: var(--ink-main);
  font-style: italic;
}

.bn-article ul,
.bn-article ol {
  max-width: var(--bn-measure);
  padding-left: 1.4rem;
  margin: 0 0 1.4rem;
  color: var(--ink-body);
  font-size: 1.05rem;
}
.bn-article ul li,
.bn-article ol li {
  margin: 0.4rem 0;
  line-height: 1.65;
}
.bn-article ul {
  list-style: none;
  padding-left: 0;
}
.bn-article ul > li {
  padding-left: 1.4rem;
  position: relative;
}
.bn-article ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.55rem;
  height: 1px;
  background: var(--accent);
}
.bn-article ol {
  list-style: none;
  counter-reset: bn-ol;
  padding-left: 0;
}
.bn-article ol > li {
  counter-increment: bn-ol;
  padding-left: 2.2rem;
  position: relative;
}
.bn-article ol > li::before {
  content: counter(bn-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.bn-article code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  color: var(--accent-deep);
}
.bn-article a.bn-inline {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-line);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.bn-article a.bn-inline:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

/* ---------------- Blockquote ---------------- */
.bn-quote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-main);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  max-width: var(--bn-measure);
  font-weight: 400;
}
.bn-quote p {
  color: inherit;
  font-size: inherit;
  margin: 0.4rem 0;
  font-family: inherit;
}

/* ---------------- Callouts — three editorial variants ----------------
   Default (bn-callout)          → THE RULE   (rose-red, load-bearing claim)
   .bn-callout--warning          → WATCH FOR  (amber, trap / caveat)
   .bn-callout--practice         → IN PRACTICE (slate, applied guidance)
   ---------------------------------------------------------------- */
.bn-callout {
  position: relative;
  margin: 2.25rem 0;
  padding: 1.35rem 1.5rem 1.35rem 1.75rem;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.05), rgba(225, 29, 72, 0.01));
  border: 1px solid var(--accent-line);
  max-width: var(--bn-measure);
}
.bn-callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-deep), var(--accent));
}
.bn-callout__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.55rem;
}
.bn-callout__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink-main);
  margin: 0 0 0.55rem;
  letter-spacing: -0.005em;
}
.bn-callout p {
  color: var(--ink-body);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0.4rem 0;
  max-width: none;
}
.bn-callout p:first-of-type::first-letter {
  all: unset;
}
.bn-callout ul,
.bn-callout ol {
  color: var(--ink-body);
  max-width: none;
  font-size: 1rem;
}

.bn-callout--warning {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.06), rgba(217, 119, 6, 0.01));
  border-color: rgba(217, 119, 6, 0.28);
}
.bn-callout--warning::before {
  background: linear-gradient(180deg, #b45309, #d97706);
}
.bn-callout--warning .bn-callout__label {
  color: #b45309;
}

.bn-callout--practice {
  background: linear-gradient(180deg, rgba(17, 19, 24, 0.035), rgba(17, 19, 24, 0.005));
  border-color: rgba(17, 19, 24, 0.14);
}
.bn-callout--practice::before {
  background: linear-gradient(180deg, #374151, #6b7280);
}
.bn-callout--practice .bn-callout__label {
  color: var(--ink-faint);
}

/* ---------------- Code block ---------------- */
.bn-code {
  position: relative;
  margin: 1.8rem 0 2.2rem;
  border-radius: 8px;
  border: 1px solid var(--bn-line-2);
  background: #0f1117;
  overflow: hidden;
  max-width: 100%;
}
.bn-code__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.02);
}
.bn-code__label .bn-code__lang {
  color: var(--accent-soft);
}
.bn-code pre {
  margin: 0;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: #e4e6ef;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.bn-code pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ---------------- Table ---------------- */
.bn-table-wrap {
  margin: 1.8rem 0 2.2rem;
  border: 1px solid var(--bn-line-2);
  border-radius: 8px;
  background: var(--bg-cream);
  overflow: hidden;
  max-width: 100%;
}
.bn-table-wrap__inner {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bn-line-2) transparent;
}
.bn-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.bn-table thead th {
  text-align: left;
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-bottom: 1px solid var(--accent-line);
  white-space: nowrap;
}
.bn-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: top;
  color: var(--ink-body);
  border-bottom: 1px solid var(--bn-line);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.bn-table tbody tr:last-child td {
  border-bottom: none;
}
.bn-table tbody td:first-child {
  color: var(--ink-main);
  font-weight: 600;
  border-right: 1px solid var(--bn-line);
}
.bn-table tbody td code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 0.1em 0.35em;
  background: rgba(17, 19, 24, 0.05);
  border: 1px solid var(--bn-line);
  border-radius: 3px;
  color: var(--ink-main);
}

@media (max-width: 640px) {
  .bn-table thead {
    display: none;
  }
  .bn-table,
  .bn-table tbody,
  .bn-table tr,
  .bn-table td {
    display: block;
    width: 100%;
  }
  .bn-table tbody tr {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--bn-line);
  }
  .bn-table tbody tr:last-child {
    border-bottom: none;
  }
  .bn-table tbody td {
    border: none;
    padding: 0.35rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
  }
  .bn-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 0.15rem;
  }
  .bn-table tbody td:first-child {
    border-right: none;
    padding-top: 0.75rem;
    color: var(--ink-main);
    font-size: 1rem;
  }
  .bn-table tbody td:first-child::before {
    color: var(--ink-faint);
  }
}

/* ---------------- Legacy bn-case-cta (hidden — replaced by .earned-next-step) ---------------- */
.bn-case-cta {
  display: none;
}

/* ---------------- Cross-series rail (matches episodes) ---------------- */
.bn-cross-series {
  max-width: 920px;
  margin: 2rem auto 4rem;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
  background: var(--bg-paper);
  font-family: var(--font-sans);
}
.bn-cross-series__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.bn-cross-series__grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.bn-cross-series__grid a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bn-line);
  border-radius: 10px;
  color: var(--ink-body);
  transition:
    border-color 0.2s,
    transform 0.2s,
    color 0.2s;
}
.bn-cross-series__grid a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  color: var(--ink-main);
}
.bn-cross-series__series {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.bn-cross-series__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}

/* ---------------- Sig footer ---------------- */
.bn-sig {
  padding: 2.5rem var(--bn-px) 6rem;
  text-align: center;
  border-top: 1px solid var(--bn-line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--bg-paper);
}
.bn-sig a {
  color: var(--ink-main);
  border-bottom: 1px solid var(--bn-line-2);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.bn-sig a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

/* Body background is dark (hero); shell handles the light transition */
body {
  background: var(--bg-base);
}

/* Ensure earned-next-step (shared) aligns to the accent */
:root {
  --ens-accent: #e11d48;
}
