/* Bonfire — self-contained. Tokens scoped to [data-theme="bonfire"],
   not a shared :root. See styles/gardening/style.css's header comment for
   why. This supersedes reference.css (the frozen pre-Sailplane snapshot of
   sailing.tilde.style) as the live, load-bearing stylesheet — reference.css
   stays for provenance only, see bonfire/style.md. */

[data-theme="bonfire"] {
  --fire:   #E8651A;
  --ember:  #C44B10;
  --spark:  #F5A623;
  --smoke:  #7A6F65;
  --night:  #141210;
  --ground: #221E1A;
  --log:    #3A3028;
  --ash:    #EDE8E2;
}

.gallery-card[data-theme="bonfire"] { background: var(--night); border-color: var(--log); }
.gallery-card[data-theme="bonfire"].active { border-color: var(--spark); }
.gallery-card[data-theme="bonfire"] .gc-name { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--spark); }
.gallery-card[data-theme="bonfire"] .gc-tagline { color: var(--smoke); }
.gallery-card[data-theme="bonfire"] .gc-chip { color: var(--night); background: var(--fire); }

/* ════════════════════════════════════════════════════════════════════
   BONFIRE — the original v0.1 build, unchanged component names.
   ════════════════════════════════════════════════════════════════════ */

.theme-panel[data-theme="bonfire"] { background-color: var(--night); color: var(--ash); font-family: system-ui, -apple-system, sans-serif; font-size: clamp(1rem, 2vw + 0.5rem, 1.125rem); line-height: 1.65; }
[data-theme="bonfire"] .hearth { border-bottom: 1px solid var(--log); padding: var(--gap) 1.5rem calc(var(--gap) * 1.25); }
[data-theme="bonfire"] .hearth-inner { max-width: var(--measure); margin: 0 auto; }
[data-theme="bonfire"] .site-name { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 400; color: var(--spark); letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 0.4em; }
[data-theme="bonfire"] .site-tagline { color: var(--smoke); font-size: 1rem; margin-bottom: 2rem; }
[data-theme="bonfire"] .ring { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; }
[data-theme="bonfire"] a.spark { color: var(--fire); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 150ms ease, color 150ms ease; }
[data-theme="bonfire"] a.spark:hover, [data-theme="bonfire"] a.spark:focus-visible { color: var(--spark); border-bottom-color: var(--spark); outline: none; }
[data-theme="bonfire"] a.spark:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { [data-theme="bonfire"] a.spark { transition: none; } }

[data-theme="bonfire"] .gathered { padding: var(--gap) 1.5rem; border-bottom: 1px solid var(--log); }
[data-theme="bonfire"] .gathered-inner { max-width: var(--measure); margin: 0 auto; }
[data-theme="bonfire"] .gathered h2 { font-family: Georgia, serif; font-size: clamp(1.25rem, 2.5vw, 1.625rem); font-weight: 400; color: var(--ash); margin-bottom: 1rem; }
[data-theme="bonfire"] .gathered p { margin-bottom: 1em; max-width: var(--measure); }
[data-theme="bonfire"] .gathered p:last-child { margin-bottom: 0; }

[data-theme="bonfire"] blockquote { border-left: 3px solid var(--fire); padding: 0.75rem 1.25rem; margin: 1.5rem 0; background-color: var(--ground); border-radius: 0 4px 4px 0; }
[data-theme="bonfire"] blockquote p { font-family: Georgia, serif; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ash); font-style: italic; margin-bottom: 0 !important; }

[data-theme="bonfire"] code { font-family: 'Courier New', monospace; font-size: 0.875em; color: var(--spark); background-color: var(--ground); padding: 0.1em 0.35em; border-radius: 3px; }
[data-theme="bonfire"] pre.kindling { background-color: var(--ground); border: 1px solid var(--log); border-radius: 4px; padding: 1rem 1.25rem; margin: 1rem 0; overflow-x: auto; }
[data-theme="bonfire"] pre.kindling code { background: none; padding: 0; color: var(--ash); font-size: 0.9rem; white-space: pre; }
[data-theme="bonfire"] .kindling-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9375rem; }
[data-theme="bonfire"] .kindling-table th { text-align: left; color: var(--smoke); font-weight: 400; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--log); }
[data-theme="bonfire"] .kindling-table td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--log); vertical-align: top; }
[data-theme="bonfire"] .kindling-table tr:last-child td { border-bottom: none; }

[data-theme="bonfire"] .style-card { background-color: var(--ground); border: 1px solid var(--log); border-radius: 4px; padding: 1.25rem 1.5rem; margin: 1.25rem 0; }
[data-theme="bonfire"] .style-card h3 { font-family: Georgia, serif; font-size: 1.125rem; font-weight: 400; color: var(--spark); margin-bottom: 0.75rem; }
[data-theme="bonfire"] .style-card.contribute h3 { color: var(--ash); }
[data-theme="bonfire"] .style-card ol { padding-left: 1.25em; margin: 0.75em 0; }
[data-theme="bonfire"] .style-card ol li { margin-bottom: 0.4em; }

[data-theme="bonfire"] .stones { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem !important; }
[data-theme="bonfire"] .stone { display: inline-block; font-size: 0.8125rem; color: var(--smoke); border: 1px solid var(--log); border-radius: 2px; padding: 0.2em 0.6em; font-family: 'Courier New', monospace; }
[data-theme="bonfire"] .smoke-text { color: var(--smoke); font-size: 0.9375rem; }

[data-theme="bonfire"] .embers { padding: var(--gap) 1.5rem; }
[data-theme="bonfire"] .embers-inner { max-width: var(--measure); margin: 0 auto; }
[data-theme="bonfire"] .embers p { color: var(--smoke); font-size: 0.9rem; margin-bottom: 0.5em; line-height: 1.5; }
[data-theme="bonfire"] .embers p:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
  [data-theme="bonfire"] .kindling-table td:first-child { white-space: normal; }
}
