@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bf-page-bg: var(--bf-cream-surface);
  --bf-text: #191817;
  --bf-card-bg: #fffcf6;
  --bf-card-border: #dcd5c9;
  --bf-card-shadow: 3px 3px 0 rgba(25, 24, 23, 0.04);
  --bf-field-bg: #fffcf6;
  --bf-field-border: #dcd5c9;
  --bf-text-muted: #726b62;
  --bf-text-subtle: #514e49;
  --bf-surface-hover: #eee6da;
  --bf-divider: #dfd8cc;
  --bf-cream-surface: #fffaf1;
  --bf-primary: #0b0b0c;
  --bf-primary-hover: #15110f;
  --bf-ember: #ff6a1a;
  --bf-ember-soft: #ffeadb;
  --bf-link: #ad400e;
  --bf-violet: #7550b5;
  --bf-radius-button: 4px;
  --bf-radius-card: 6px;
  --bf-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bf-font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --bf-font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
::selection { background: #ffcfad; color: var(--bf-text); }
:focus-visible { outline: 2px solid var(--bf-violet); outline-offset: 4px; }
.bf-skip-link {
  background: var(--bf-primary);
  color: #fff;
  left: 1rem;
  padding: 0.8rem 1rem;
  position: fixed;
  top: -6rem;
  z-index: 60;
}
.bf-skip-link:focus { top: 0.5rem; }
body {
  margin: 0;
  background: var(--bf-page-bg);
  color: var(--bf-text);
  font-family: var(--bf-font-body);
  font-size: 15px;
}

.bf-header {
  align-items: center;
  background: var(--bf-cream-surface);
  box-shadow: 0 3px 0 rgba(25, 24, 23, 0.025);
  border-bottom: 1px solid var(--bf-divider);
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(18rem, 36rem) minmax(7rem, 1fr);
  gap: 1rem;
  height: 4.5rem;
  padding: 0 clamp(1rem, 2vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 20;
}

.bf-header > * { min-width: 0; }
.bf-brand {
  align-items: center;
  color: var(--bf-text);
  display: inline-flex;
  gap: 0.85rem;
  text-decoration: none;
  width: max-content;
}
.bf-brand img {
  display: block;
  height: 2.5rem;
  width: auto;
}
.bf-brand__divider {
  color: #000000;
  display: inline-block;
  font-family: var(--bf-font-code);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}
.bf-brand__name {
  color: #000000;
  font-family: var(--bf-font-code);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.bf-brand__name span {
  color: var(--bf-text-muted);
  display: block;
  font: 500 0.58rem/1 var(--bf-font-code);
  letter-spacing: 0.04em;
  margin-top: 0.45rem;
  text-transform: uppercase;
}
.bf-sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.bf-repo {
  align-items: center;
  background: var(--bf-primary);
  border: 1px solid var(--bf-primary);
  border-radius: var(--bf-radius-button);
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.5rem;
  justify-self: end;
  padding: 0.72rem 0.9rem;
  text-decoration: none;
}
.bf-repo svg {
  display: block;
  flex: 0 0 auto;
}
.bf-repo:hover { background: var(--bf-primary-hover); }
.bf-menu-button {
  align-items: center;
  background: var(--bf-primary);
  border: 1px solid var(--bf-primary);
  border-radius: var(--bf-radius-button);
  color: #fff;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 0.24rem;
  height: 2.65rem;
  justify-content: center;
  justify-self: end;
  padding: 0;
  width: 2.65rem;
}
.bf-menu-button__line {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
  width: 1.05rem;
}
.bf-menu-button[aria-expanded="true"] .bf-menu-button__line:nth-of-type(2) {
  transform: translateY(0.38rem) rotate(45deg);
}
.bf-menu-button[aria-expanded="true"] .bf-menu-button__line:nth-of-type(3) {
  opacity: 0;
}
.bf-menu-button[aria-expanded="true"] .bf-menu-button__line:nth-of-type(4) {
  transform: translateY(-0.38rem) rotate(-45deg);
}
.bf-nav-backdrop {
  background: rgba(11, 11, 12, 0.46);
  border: 0;
  inset: 0;
  position: fixed;
  z-index: 30;
}
.bf-nav-backdrop[hidden] { display: none; }
.bf-sidebar__mobile-header {
  display: none;
}
.bf-nav-close {
  background: var(--bf-primary);
  border: 1px solid var(--bf-primary);
  border-radius: var(--bf-radius-button);
  color: #fff;
  cursor: pointer;
  font: 800 0.72rem var(--bf-font-body);
  padding: 0.55rem 0.7rem;
}

.bf-search { position: relative; width: 100%; }
.bf-search__label {
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.bf-search input {
  background: var(--bf-field-bg);
  border: 1px solid var(--bf-field-border);
  border-radius: var(--bf-radius-button);
  color: var(--bf-text);
  font: 400 0.78rem var(--bf-font-code);
  height: 2.65rem;
  outline: none;
  padding: 0 1rem;
  width: 100%;
}
.bf-search input:focus {
  border-color: var(--bf-primary);
  box-shadow: 0 0 0 2px var(--bf-primary);
}
.bf-search__results {
  background: var(--bf-card-bg);
  border: 1px solid var(--bf-card-border);
  border-radius: var(--bf-radius-card);
  box-shadow: 5px 5px 0 rgba(25, 24, 23, 0.1);
  left: 0;
  max-height: min(30rem, calc(100vh - 6rem));
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 40;
}
.bf-search__meta {
  border-bottom: 1px solid var(--bf-divider);
  color: var(--bf-text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.72rem 0.9rem;
  text-transform: uppercase;
}
.bf-search__result {
  border-bottom: 1px solid var(--bf-divider);
  color: var(--bf-text);
  display: block;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
}
.bf-search__result:last-child { border-bottom: 0; }
.bf-search__result:hover,
.bf-search__result:focus { background: var(--bf-surface-hover); outline: none; }
.bf-search__result strong {
  display: block;
  font-family: var(--bf-font-display);
  font-size: 0.82rem;
  line-height: 1.25;
}
.bf-search__result span {
  color: var(--bf-text-subtle);
  display: block;
  font-size: 0.72rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.bf-shell {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) 11rem;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0 auto;
  max-width: 104rem;
  padding: 2rem clamp(1rem, 2vw, 2rem) 0;
  width: 100%;
}
.bf-sidebar,
.bf-toc {
  align-self: start;
  max-height: calc(100vh - 7rem);
  scrollbar-width: thin;
  scrollbar-color: var(--bf-card-border) transparent;
  overflow: auto;
  position: sticky;
  top: 6rem;
}
.bf-sidebar { padding-right: 0.65rem; }
.bf-toc { border-left: 1px solid var(--bf-divider); padding-left: 1rem; }
.bf-nav-group { margin-bottom: 1.15rem; }
.bf-nav-category { margin-bottom: 0.3rem; }
.bf-nav-category > summary {
  align-items: center;
  color: var(--bf-text-subtle);
  cursor: pointer;
  display: flex;
  font: 600 0.68rem/1.4 var(--bf-font-code);
  justify-content: space-between;
  letter-spacing: 0.04em;
  list-style: none;
  padding: 0.45rem 0.65rem;
}
.bf-nav-category > summary::-webkit-details-marker { display: none; }
.bf-nav-category > summary::after { content: "+"; font-size: 1rem; line-height: 1; }
.bf-nav-category[open] > summary::after { content: "−"; }
.bf-nav-category > summary:hover { background: var(--bf-surface-hover); color: var(--bf-text); }
.bf-nav-category[open] > summary { color: var(--bf-violet); }
.bf-nav-category__items { padding: 0.15rem 0 0.65rem; }
.bf-nav-row { align-items: stretch; display: flex; }
.bf-nav-row > a { flex: 1; min-width: 0; }
.bf-nav-expand {
  background: transparent;
  border: 0;
  border-radius: 2px;
  color: var(--bf-text-muted);
  cursor: pointer;
  flex: 0 0 2.25rem;
  font: 500 1rem/1 var(--bf-font-code);
  margin-bottom: 0.18rem;
  padding: 0;
}
.bf-nav-expand:hover { background: var(--bf-surface-hover); color: var(--bf-text); }
.bf-nav-expand[aria-expanded="true"] { color: var(--bf-violet); }
.bf-nav-children[hidden] { display: none; }
.bf-toc-section { margin-bottom: 1.25rem; }
.bf-nav-group h2,
.bf-toc h2 {
  color: var(--bf-text-muted);
  font-family: var(--bf-font-code);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}
.bf-nav-group a,
.bf-toc a {
  border-radius: 2px;
  border-left: 2px solid transparent;
  color: var(--bf-text-subtle);
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.18rem;
  padding: 0.55rem 0.65rem;
  text-decoration: none;
}
.bf-nav-group a:hover,
.bf-toc a:hover { background: var(--bf-surface-hover); color: var(--bf-text); }
.bf-nav-group a[aria-current="page"] {
  background: var(--bf-ember-soft);
  border-left-color: var(--bf-ember);
  color: #8f350e;
  font-weight: 700;
}
.bf-nav-parent.bf-nav-parent--active {
  color: var(--bf-text);
}
.bf-nav-children {
  border-left: 1px solid var(--bf-divider);
  margin: 0.1rem 0 0.45rem 0.75rem;
  padding-left: 0.45rem;
}
.bf-nav-group a.bf-nav-child {
  font-size: 0.72rem;
  margin-bottom: 0.12rem;
  padding: 0.5rem 0.65rem;
}
.bf-nav-section[aria-current="location"] {
  background: var(--bf-surface-hover);
  border-left-color: var(--bf-violet);
  color: var(--bf-violet);
}
.bf-toc .bf-toc-link--sub { font-size: 0.72rem; padding-left: 1.35rem; }
.bf-toc a[aria-current="true"] {
  background: transparent;
  border-left-color: var(--bf-violet);
  color: var(--bf-violet);
}
.bf-muted { color: var(--bf-text-muted); font-size: 0.78rem; }

.bf-content { min-width: 0; }
.bf-content:focus { outline: none; }
.bf-page-context {
  align-items: center;
  color: var(--bf-text-muted);
  display: flex;
  flex-wrap: wrap;
  font: 400 0.69rem/1.6 var(--bf-font-code);
  gap: 0.65rem;
  margin: 0 0 1.6rem;
}
.bf-page-context a { color: var(--bf-violet); text-decoration: none; }
.bf-page-context a:hover { text-decoration: underline; }
.bf-article {
  color: var(--bf-text-subtle);
  font-size: 0.96rem;
  line-height: 1.75;
  max-width: none;
}
.bf-article h1,
.bf-article h2,
.bf-article h3,
.bf-article h4 {
  color: var(--bf-text);
  font-family: var(--bf-font-display);
  letter-spacing: 0;
}
.bf-article h1 {
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 1rem;
}
.bf-article h2 {
  border-top: 1px solid var(--bf-divider);
  font-size: 1.45rem;
  margin: 2.8rem 0 0.9rem;
  padding-top: 1.35rem;
}
.bf-article h3 { font-size: 1.05rem; margin-top: 2rem; }
.bf-article a { color: var(--bf-link); font-weight: 600; text-underline-offset: 3px; }
.bf-article a:hover { text-decoration-thickness: 2px; }
.bf-article > p { max-width: 78ch; }
.bf-article code {
  background: var(--bf-field-bg);
  border: 1px solid var(--bf-field-border);
  border-radius: 3px;
  color: var(--bf-text);
  font-family: var(--bf-font-code);
  font-size: 0.84em;
  padding: 0.08rem 0.3rem;
}
.bf-code {
  background: #080a0f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--bf-radius-card);
  box-shadow: 4px 4px 0 rgba(25, 24, 23, 0.1);
  margin: 1.35rem 0;
  overflow: hidden;
}
.bf-code__bar {
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 0.4rem;
  height: 2.1rem;
  justify-content: space-between;
  min-width: 0;
  padding: 0 0.9rem;
}
.bf-code__dots {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}
.bf-code__dots span {
  background: var(--bf-ember);
  border-radius: 0;
  height: 0.45rem;
  width: 0.45rem;
}
.bf-code__dots span:nth-child(2) { background: #fdba3b; }
.bf-code__dots span:nth-child(3) { background: #a78bfa; }
.bf-code__actions {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 0.5rem;
  justify-content: flex-end;
  min-width: 0;
}
.bf-code__bar strong {
  color: rgba(248,250,252,0.58);
  flex: 1 1 auto;
  font-family: var(--bf-font-code);
  font-size: 0.62rem;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.bf-code__copy {
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: rgba(248,250,252,0.76);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: 700 0.64rem var(--bf-font-body);
  gap: 0.35rem;
  height: 1.55rem;
  padding: 0 0.48rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.bf-code__copy:hover,
.bf-code__copy:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
  outline: none;
}
.bf-code__copy:focus-visible {
  box-shadow: 0 0 0 2px var(--bf-ember);
}
.bf-code__copy svg {
  display: block;
}
.bf-code__copy.is-copied {
  background: var(--bf-ember);
  border-color: var(--bf-ember);
  color: #fff;
  animation: bf-copy-pop 360ms ease;
}
.bf-code__copy.is-error {
  background: rgba(255, 106, 26, 0.2);
  border-color: rgba(255, 106, 26, 0.7);
  color: #fff;
}
.bf-code__copy-label {
  line-height: 1;
}
@keyframes bf-copy-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bf-code__copy { transition: none; }
  .bf-code__copy.is-copied { animation: none; }
}
.bf-code pre {
  margin: 0;
  overflow: auto;
  padding: 1rem;
}
.bf-code code {
  background: transparent;
  border: 0;
  color: #f8fafc;
  display: block;
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 0;
  tab-size: 4;
  white-space: pre;
}
.bf-table-wrap {
  border: 1px solid var(--bf-card-border);
  background: var(--bf-card-bg);
  border-radius: var(--bf-radius-card);
  box-shadow: none;
  margin: 1.3rem 0;
  overflow: auto;
}
table { border-collapse: collapse; min-width: 100%; }
th, td {
  border-bottom: 1px solid var(--bf-divider);
  padding: 0.72rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
th {
  background: #efe8dc;
  font-family: var(--bf-font-code);
  color: var(--bf-text);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
td { color: var(--bf-text-subtle); font-size: 0.82rem; }
tr:last-child td { border-bottom: 0; }

/* The homepage shares the warm paper and pixel accents of Bits & Flames. */
.bf-docs-hero {
  background: var(--bf-cream-surface);
  border: 1px solid var(--bf-card-border);
  border-radius: var(--bf-radius-card);
  margin-bottom: 1.6rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.bf-docs-hero--home {
  align-items: center;
  background: #f3edf7;
  border: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  padding: 1.8rem clamp(1.2rem, 3vw, 2rem) 2.5rem;
  position: relative;
}
.bf-docs-fireplace-cta { margin: 0 0 1rem; min-height: 28rem; }
.bf-docs-hero--home .bf-eyebrow {
  color: var(--bf-violet);
  font: 600 0.62rem/1.6 var(--bf-font-code);
  letter-spacing: 0.13em;
  margin: 0 0 1.5rem;
}
.bf-docs-hero--home h1 {
  font-size: clamp(3.8rem, 6.8vw, 6.25rem);
  letter-spacing: -0.075em;
  line-height: 0.95;
  margin: 0 0 1.2rem;
}

.bf-hero-statement {
  color: var(--bf-text);
  font: 700 clamp(1.55rem, 2.6vw, 2.4rem)/1.12 var(--bf-font-display);
  letter-spacing: -0.04em;
  margin: 0 0 1.2rem;
}
.bf-hero-statement span { color: #c54b12; }
.bf-hero-lead { font-size: 0.95rem; line-height: 1.7; margin: 0; }
.bf-fireplace-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.bf-article .bf-hero-button {
  align-items: center;
  background: var(--bf-primary);
  border: 1px solid var(--bf-primary);
  border-radius: var(--bf-radius-button);
  color: #fffaf1;
  display: inline-flex;
  font-size: 0.8rem;
  gap: 1rem;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
}
.bf-hero-button:hover { box-shadow: 3px 3px 0 #d8b996; transform: translate(-1px, -1px); }
.bf-article .bf-hero-link { color: var(--bf-text); font-size: 0.78rem; }
.bf-pixel-arrow {
  background: currentColor;
  clip-path: polygon(0 40%, 57.143% 40%, 57.143% 0, 71.429% 0, 71.429% 20%, 85.714% 20%, 85.714% 40%, 100% 40%, 100% 60%, 85.714% 60%, 85.714% 80%, 71.429% 80%, 71.429% 100%, 57.143% 100%, 57.143% 60%, 0 60%);
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 14px;
}
.bf-hero-install {
  margin: 1.5rem 0 0;
  max-width: 22rem;
}
.bf-hero-install .bf-code__bar strong { text-align: left; }
.bf-hero-install .bf-code__bar > span { color: #b9b6c5; font: 400 0.66rem var(--bf-font-code); }
.bf-hero-install pre { padding: 0.8rem 0.9rem; }
.bf-hero-install code::before { color: var(--bf-ember); content: "$ "; }
.bf-fireplace-visual { margin: 0; min-width: 0; position: relative; text-align: center; }
.bf-fireplace-visual::before {
  background: #dfcced;
  box-shadow: 10px -10px 0 #eee4f3, 20px 0 0 #e5d7ed, -10px 10px 0 #eadff1;
  content: "";
  height: 10px;
  position: absolute;
  right: 15%;
  top: 7%;
  width: 10px;
}
.bf-fireplace-visual img {
  border-radius: 6px;
  height: auto;
  image-rendering: pixelated;
  max-height: 28rem;
  object-fit: contain;
  width: 100%;
}
.bf-fireplace-visual figcaption { color: var(--bf-violet); font: 400 0.59rem/1.7 var(--bf-font-code); letter-spacing: 0.01em; margin-top: 0.5rem; }
.bf-release-note {
  align-items: start;
  background: var(--bf-card-bg);
  border: 1px solid var(--bf-divider);
  border-left: 3px solid var(--bf-ember);
  border-radius: 0 var(--bf-radius-button) var(--bf-radius-button) 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr;
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
}
.bf-release-note > a { align-items: center; display: inline-flex; font: 600 0.75rem/1.8 var(--bf-font-code); gap: 0.6rem; text-decoration: none; }
.bf-release-note p { font-size: 0.77rem; line-height: 1.65; margin: 0; }
.bf-install-card {
  background: #0b0b0c;
  border: 1px solid rgba(11, 11, 12, 0.16);
  border-radius: 1.2rem;
  box-shadow: 0 22px 60px rgba(11, 11, 12, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-top: 0.4rem;
  max-width: 46rem;
  overflow: hidden;
}
.bf-install-card__header {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
}
.bf-install-card__header > span {
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--bf-font-code);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bf-install-tabs {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  display: flex;
  gap: 0.2rem;
  padding: 0.2rem;
}
.bf-install-tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-family: var(--bf-font-code);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.42rem 0.62rem;
}
.bf-install-tabs button.is-active {
  background: #fffaf1;
  color: #080a0f;
}
.bf-install-tabs button:focus-visible {
  outline: 2px solid #ffcf67;
  outline-offset: 2px;
}
.bf-install-card pre {
  margin: 0;
  overflow-x: auto;
  padding: 1.05rem 1.15rem 1.2rem;
}
.bf-install-card code {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  display: block;
  font-family: var(--bf-font-code);
  font-size: clamp(0.88rem, 1.55vw, 1.05rem);
  font-weight: 400;
  line-height: 1.4;
  padding: 0;
  white-space: pre;
}
.bf-install-card code::before {
  color: #ff6a1a;
  content: "$ ";
}
.bf-docs-actions--hero {
  grid-template-columns: repeat(2, minmax(10rem, 1fr));
  margin-top: 1.35rem;
  max-width: 34rem;
}
.bf-docs-hero--home .bf-docs-button {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: #fff;
}
.bf-docs-hero--home .bf-docs-button:hover {
  background: rgba(255, 255, 255, 0.15);
}
.bf-docs-hero--home .bf-docs-button--primary {
  background: #fff;
  border-color: #fff;
  color: #080a0f;
}
.bf-spark-card {
  align-self: center;
  background: rgba(8, 10, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  min-height: 23rem;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}
.bf-spark-card::before {
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.25), rgba(142, 124, 195, 0.22), rgba(9, 17, 31, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.bf-spark-card > * {
  position: relative;
  z-index: 1;
}
.bf-spark-card__bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.15rem 0.1rem 0.9rem;
}
.bf-spark-card__bar span {
  background: rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  height: 0.55rem;
  width: 0.55rem;
}
.bf-spark-card__bar span:first-child { background: #ff6a1a; }
.bf-spark-card__bar span:nth-child(2) { background: #ffcf67; }
.bf-spark-card__bar span:nth-child(3) { background: #8e7cc3; }
.bf-spark-mark {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.9rem auto 1.45rem;
  max-width: 16rem;
}
.bf-spark-mark span {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ffcf67 0%, #ff6a1a 46%, #8e7cc3 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 26px rgba(255, 106, 26, 0.18);
}
.bf-spark-mark span:nth-child(2),
.bf-spark-mark span:nth-child(4),
.bf-spark-mark span:nth-child(6) {
  background: linear-gradient(135deg, #8e7cc3 0%, #172140 52%, #ff6a1a 140%);
}
.bf-spark-card__prompt {
  color: #ffcf67;
  font-family: var(--bf-font-code);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 1rem;
}
.bf-spark-card__prompt::before {
  color: #ff6a1a;
  content: "$ ";
}
.bf-spark-flow {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.bf-spark-flow span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--bf-font-code);
  font-size: 0.62rem;
  font-weight: 800;
  overflow: hidden;
  padding: 0.55rem 0.35rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bf-eyebrow {
  color: var(--bf-ember);
  font-family: var(--bf-font-code);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bf-docs-actions,
.bf-docs-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin: 1rem 0;
}
.bf-docs-button,
.bf-docs-card {
  background: var(--bf-card-bg);
  border: 1px solid var(--bf-card-border);
  border-radius: var(--bf-radius-card);
  box-shadow: none;
  color: var(--bf-text);
  display: block;
  padding: 1rem;
  text-decoration: none;
}
.bf-docs-button { text-align: center; }
.bf-docs-button:hover,
.bf-docs-card:hover {
  border-color: rgba(255, 106, 26, 0.42);
  transform: translateY(-1px);
}
.bf-docs-card,
.bf-docs-button {
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.bf-docs-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-docs-grid--intro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bf-docs-grid--featured .bf-docs-card {
  border-top: 2px solid #d9cbed;
  min-height: 8rem;
  padding: 1.1rem 1.1rem 1rem;
  position: relative;
}
.bf-docs-grid--featured .bf-docs-card:nth-child(3n + 2) { border-top-color: #edbd94; }
.bf-docs-grid--featured .bf-docs-card::after {
  color: var(--bf-violet);
  content: "↗";
  font-family: var(--bf-font-code);
  position: absolute;
  right: 1rem;
  top: 0.8rem;
}
.bf-docs-grid--featured .bf-docs-card:hover {
  background: var(--bf-cream-surface);
  border-color: #ac947a;
  box-shadow: 3px 3px 0 #e4d9c9;
  transform: translate(-1px, -1px);
}
.bf-docs-card strong {
  color: var(--bf-text);
  display: block;
  font-family: var(--bf-font-display);
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
  padding-right: 1rem;
}
.bf-docs-card span { color: var(--bf-text-subtle); display: block; font-size: 0.8rem; font-weight: 400; line-height: 1.65; }
.bf-doc-image {
  background: #fff;
  border: 1px solid var(--bf-card-border);
  border-radius: var(--bf-radius-card);
  box-shadow: var(--bf-card-shadow);
  display: block;
  margin: 1.35rem 0;
  max-width: 100%;
  padding: 0.35rem;
}
.bf-figure-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.4rem 0 2.1rem;
}
.bf-figure-card {
  background: var(--bf-card-bg);
  border: 1px solid var(--bf-card-border);
  border-radius: var(--bf-radius-card);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  overflow: hidden;
}
.bf-figure-card img {
  background: #ffffff;
  border-bottom: 1px solid var(--bf-divider);
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}
.bf-figure-card figcaption {
  color: var(--bf-text-subtle);
  display: block;
  font-size: 0.82rem;
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.85rem 0.95rem 1rem;
}
.bf-figure-card figcaption strong {
  color: var(--bf-text);
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}
.bf-footer {
  background: var(--bf-cream-surface);
  border-top: 1px solid var(--bf-divider);
  color: var(--bf-text-subtle);
  margin-top: 4rem;
  padding: 1.65rem 1.25rem 1.9rem;
}
.bf-footer__inner {
  align-items: center;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, auto);
  margin: 0 auto;
  max-width: 96rem;
}
.bf-footer__brand {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  min-width: 0;
}
.bf-footer__brand img {
  display: block;
  height: 2.65rem;
  width: auto;
}
.bf-footer__brand p {
  color: var(--bf-primary);
  font-family: var(--bf-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  min-width: 0;
}
.bf-footer__brand p span:first-child { color: var(--bf-primary); }
.bf-footer__brand p span:last-child { color: var(--bf-ember); display: block; }
.bf-footer__note {
  color: var(--bf-text-subtle);
  font-family: var(--bf-font-code);
  font-size: 0.76rem;
  justify-self: end;
  line-height: 1.5;
  margin: 0;
  max-width: 34rem;
  text-align: right;
}

.bf-search__code {
  background: #080a0f;
  border-radius: 3px;
  color: #f8fafc;
  display: block;
  font-family: var(--bf-font-code);
  font-size: 0.68rem;
  line-height: 1.45;
  margin-top: 0.48rem;
  overflow-x: auto;
  padding: 0.55rem 0.65rem;
  white-space: pre;
}
.bf-search mark {
  background: var(--bf-ember-soft);
  border-radius: 0.25rem;
  color: inherit;
  padding: 0 0.12rem;
}

@media (max-width: 1100px) {
  .bf-header { grid-template-columns: auto minmax(12rem, 1fr) auto; }
  .bf-shell { grid-template-columns: 14rem minmax(0,1fr); }
  .bf-toc { display: none; }
  .bf-docs-hero--home { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bf-docs-fireplace-cta { min-height: auto; }
  .bf-fireplace-visual { justify-content: center; }
  .bf-fireplace-visual img { max-height: 28rem; max-width: min(100%, 35rem); }
  .bf-spark-card { min-height: auto; }
}
@media (max-width: 920px) {
  .bf-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: auto;
    padding: 0.75rem 1rem;
  }
  .bf-brand img { height: 3rem; }
  .bf-repo { display: none; }
  .bf-menu-button { display: inline-flex; }
  .bf-shell {
    display: block;
    padding: 0 1rem;
  }
  .bf-sidebar {
    background: var(--bf-page-bg);
    border-right: 1px solid var(--bf-divider);
    box-shadow: 24px 0 70px rgba(11, 11, 12, 0.18);
    bottom: 0;
    left: 0;
    margin: 0;
    max-height: none;
    max-width: min(22rem, calc(100vw - 3rem));
    overflow: auto;
    padding: 1rem;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 190ms ease;
    visibility: hidden;
    width: 21rem;
    z-index: 40;
  }
  body.bf-nav-open { overflow: hidden; }
  body.bf-nav-open .bf-sidebar { transform: translateX(0); visibility: visible; }
  .bf-sidebar__mobile-header {
    align-items: center;
    border-bottom: 1px solid var(--bf-divider);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: -0.15rem 0 1rem;
    padding-bottom: 0.85rem;
  }
  .bf-sidebar__mobile-header span {
    color: var(--bf-text);
    font-family: var(--bf-font-display);
    font-size: 1rem;
    font-weight: 800;
  }
  .bf-sidebar::-webkit-scrollbar { width: 0.45rem; }
  .bf-nav-group {
    display: block;
    margin: 0 0 1rem;
    max-width: none;
    width: auto;
  }
  .bf-nav-category { margin-bottom: 0.3rem; }
  .bf-nav-category > summary { min-height: 2.75rem; }
  .bf-nav-group h2 {
    margin-bottom: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bf-nav-group a {
    font-size: 0.8rem;
    margin-bottom: 0.16rem;
    padding: 0.62rem 0.7rem;
  }
  .bf-nav-children {
    margin: 0.1rem 0 0.35rem 0.4rem;
    padding-left: 0.35rem;
  }
  .bf-content { margin-top: 1.2rem; }
  .bf-docs-fireplace-cta {
    margin-left: 0;
    margin-right: 0;
  }
  .bf-docs-hero--home {
    gap: 1.2rem;
    padding: 1.6rem 1.2rem 2rem;
  }
  .bf-docs-hero--home h1 {
    font-size: clamp(2.8rem, 11vw, 5rem);
    max-width: 8ch;
  }
  .bf-fireplace-visual img {
    max-height: 24rem;
    max-width: min(100%, 30rem);
  }
}
@media (max-width: 760px) {
  .bf-header {
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    padding: 0.8rem 1rem;
  }
  .bf-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .bf-brand img { height: 2.75rem; }
  .bf-footer__brand img { height: 2.5rem; }
  .bf-repo { display: none; }
  .bf-shell {
    display: block;
    padding: 0 1rem 1rem;
  }
  .bf-sidebar {
    max-width: min(21rem, calc(100vw - 2.5rem));
    width: 20rem;
  }
  .bf-content { margin-top: 1.5rem; }
  .bf-article {
    font-size: 0.9rem;
    line-height: 1.62;
  }
  .bf-article h1 { font-size: clamp(2rem, 12vw, 2.7rem); }
  .bf-article h2 { font-size: 1.25rem; margin-top: 2.1rem; }
  .bf-figure-gallery { grid-template-columns: 1fr; }
  .bf-docs-hero--home {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
    padding: 1.4rem 1.2rem 1.7rem;
  }
  .bf-docs-hero--home .bf-eyebrow {
    font-size: 0.56rem;
    letter-spacing: 0.28em;
    margin-bottom: 1.1rem;
  }
  .bf-docs-hero--home h1 {
    font-size: clamp(3.8rem, 18vw, 5rem);
    letter-spacing: -0.045em;
    line-height: 0.94;
  }
  .bf-hero-lead { font-size: 0.9rem; }
  .bf-fireplace-visual img { max-height: 18rem; }
  .bf-fireplace-actions { gap: 1.1rem; }
  .bf-hero-statement { font-size: 1.9rem; }
  .bf-fireplace-visual { margin-top: 1rem; }
  .bf-release-note { grid-template-columns: 1fr; gap: 0.5rem; }
  .bf-page-context { margin-bottom: 1.25rem; }
  .bf-docs-actions--hero { grid-template-columns: 1fr; }
  .bf-spark-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-install-card__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .bf-install-tabs { width: 100%; }
  .bf-install-tabs button { flex: 1; }
  .bf-footer {
    margin-top: 2.5rem;
    padding: 1.65rem 1rem 1.8rem;
  }
  .bf-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    max-width: 24rem;
    text-align: center;
  }
  .bf-footer__brand {
    align-items: center;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: center;
    text-align: center;
  }
  .bf-footer__note {
    max-width: 22rem;
    text-align: center;
  }
}
@media (max-width: 520px) {
  .bf-search__results {
    left: 1rem;
    max-height: min(24rem, calc(100vh - 8.5rem));
    position: fixed;
    right: 1rem;
    top: 7.1rem;
  }
  .bf-sidebar {
    max-width: min(20rem, calc(100vw - 2rem));
    width: 19rem;
  }
  .bf-nav-group {
    max-width: none;
    width: auto;
  }
  .bf-docs-grid { grid-template-columns: 1fr; }
  .bf-table-wrap {
    border-radius: var(--bf-radius-card);
    margin-left: 0;
    margin-right: 0;
  }
  th, td { padding: 0.62rem 0.68rem; }
  .bf-code { border-radius: var(--bf-radius-card); margin-left: 0; margin-right: 0; }
  .bf-code pre { padding: 0.85rem; }
  .bf-docs-hero--home h1 { max-width: 7.5ch; }
  .bf-fireplace-visual img { max-height: 14.5rem; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 9rem; }
  .bf-docs-grid--intro { grid-template-columns: 1fr; }
}
.bf-citation { border-left: 2px solid var(--bf-divider); padding-left: 1rem; margin: 1rem 0; }
.bf-citation > p { font-size: 0.88rem; line-height: 1.65; margin: 0 0 0.5rem; }
.bf-citation-bibtex > summary { cursor: pointer; width: fit-content; padding: 0.6rem 0; min-height: 2.75rem; color: var(--bf-violet); font: 600 0.8rem/1.6 var(--bf-font-code); }
.bf-citation-bibtex > summary:hover { color: var(--bf-text); }
.bf-citation-bibtex .bf-code { margin: 0.5rem 0 0; }
.bf-shared-hero {
  border: 1px solid var(--bf-divider);
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.bf-shared-banner { display: block; width: 100%; height: auto; }
.bf-shared-hero-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}
.bf-shared-hero-tools .bf-fireplace-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0.65rem; }
.bf-shared-hero-tools .bf-fireplace-actions > a {
  justify-content: center;
  text-align: center;
  min-height: 2.8rem;
  flex: 1;
  white-space: nowrap;
}
.bf-shared-hero-tools .bf-hero-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bf-divider);
  border-radius: var(--bf-radius-button);
  padding: 0.65rem 0.75rem;
  text-decoration: none;
}
.bf-shared-hero-tools .bf-hero-link:hover { background: var(--bf-cream-surface); }
.bf-shared-hero-tools .bf-hero-install { margin: 0; max-width: none; width: 100%; box-shadow: none; }
.bf-shared-hero .bf-release-note {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 0;
  border-top: 1px solid var(--bf-divider);
  border-radius: 0;
  background: var(--bf-cream-surface);
  gap: 1.25rem;
  align-items: baseline;
}
.bf-shared-hero .bf-release-note p { font-size: 0.82rem; }
.bf-shared-hero .bf-shared-intro { margin: 0; padding: 1.25rem; font-size: 0.92rem; line-height: 1.75; border-top: 1px solid var(--bf-divider); }
@media (max-width: 760px) {
  .bf-shared-hero-tools { padding: 1rem; }
  .bf-shared-hero .bf-release-note { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; padding: 1rem; }
  .bf-shared-hero .bf-shared-intro { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

