html:has(body.ascii-flames) {
  color-scheme: light;
  background: #fff;
}

body.ascii-flames {
  --pond-bg: #fff;
  --pond-ink: #17141b;
  --pond-muted: #514a57;
  --pond-highlight: #3e3646;
  --pond-accent: #5d3977;
  --pond-line: #26173326;
  --surface: #fffc;
  --pond-control: #f4eff7;
  --pond-control-hover: #ede5f3;
  --pond-control-active: #eae1f0;
  --pond-tint: #fffd;
  --pond-nav-tint: #ffffffc9;
  --pond-button-tint: #ffffffad;
  --page-panel: #ffffffe8;
  color-scheme: light;
  accent-color: var(--pond-accent);
}

body.ascii-flames:not(.pond-ready) {
  background: white;
}

.ascii-flames .koi-background canvas[hidden] {
  display: none;
}

.ascii-flames.koi-home .ex-hero::before {
  background: radial-gradient(ellipse at center, #fff8, #fff2 45%, #fff0 73%);
}

.ascii-flames.koi-home .hero-actions .solid-link,
.ascii-flames.koi-home .hero-actions .solid-link:hover {
  color: var(--pond-ink);
  background: linear-gradient(160deg, #ffffffe6, #ffffff58);
}

.ascii-flames.koi-home .hero-actions .solid-link:hover {
  background-color: #fff9;
}

.ascii-flames [data-react-flame-hero] .solid-link span {
  transition: none;
}

.ascii-flames.koi-home [data-react-flame-hero] .solid-link:hover span {
  transform: none;
}

.ascii-flames.koi-home .koi-nav nav a,
.ascii-flames.koi-home .koi-nav .koi-motion,
.ascii-flames.koi-inner .koi-nav .koi-motion {
  color: var(--pond-muted);
}

.ascii-flames.koi-home .koi-nav nav a[aria-current],
.ascii-flames.koi-home .koi-nav nav a:hover {
  color: var(--pond-ink);
}

.ascii-flames.koi-home .koi-nav .pond-nav-indicator {
  background: #3d225715;
}

.ascii-flames :is(.koi-nav, .portfolio-nav) [data-stoke-flames] {
  color: #963d55;
}

.ascii-flames [data-stoke-flames]:disabled {
  opacity: .45;
  cursor: default;
}

body.ascii-flames:is(.koi-home, .koi-inner) [data-koi-glass] {
  border-color: #422b4d35 !important;
  box-shadow: inset 0 1px 0 #fff, 0 5px 18px #36213e12 !important;
}

.ascii-flames.koi-home :is(.work-intro, .thinking, .about, .ex-footer) {
  background: #ffffffe0;
}

.ascii-flames.koi-home :is(.work-index, .work-index .work-index-item) {
  border-color: var(--pond-line);
}

.ascii-flames.koi-home :is(.work-index .work-index-item .mono, .index-folio, .index-title b,
  .image-note, .footer-base, .design-principles p, .learning summary small, .panel-copy .project-live) {
  color: var(--pond-muted);
}

.ascii-flames.koi-home .project-boundary {
  color: var(--pond-muted) !important;
}

.ascii-flames.koi-home .work-index .work-index-item:hover {
  background: #44285a08;
}

.ascii-flames.koi-home .pond-quiet-links a {
  color: var(--pond-ink);
  background: #ffffffba;
  border-color: var(--pond-line);
}

.ascii-flames.koi-home .media-window {
  background: #f5f1f6;
}

.ascii-flames.koi-home .contribution:hover {
  background: var(--pond-control);
}

.ascii-flames.portfolio-page :is(.reading-hero, .case-hero, .philosophy-intro, .article-hero,
  .hero, .reading-layout, .reading-main, .notebook-context, .build-note, .case-design,
  .story-step, .release-strip, .article, .evidence-section),
.ascii-flames :is(.signature-heading, .signature-demo > .signature-links) {
  background: #ffffffe8;
  color: var(--pond-ink);
}

.ascii-flames.portfolio-page .case-facts,
.ascii-flames :is(.signature-experiment, .signature-result, .current-note) {
  background: #faf7fb;
  border-color: var(--pond-line);
}

.ascii-flames .project-study :is(.study-glyphs, figcaption),
.ascii-flames .signature-result :is(.signature-number, p, ul) {
  color: var(--pond-highlight);
}

.ascii-flames .signature-choices label {
  color: var(--pond-ink);
  background: #fff;
  border-color: var(--pond-line);
}

.ascii-flames .signature-choices label:has(input:checked) {
  background: var(--pond-control-active);
  border-color: #5d397744;
}

.ascii-flames .signature-choices label:has(input:focus-visible) {
  outline-color: var(--pond-accent);
}

.ascii-flames .signature-wake.decision-wake {
  --decision-accent: var(--pond-accent);
  background: #faf6fc;
}

.ascii-flames :is(.signature-links, .portfolio-path) a:hover {
  color: var(--pond-accent);
}

.ascii-flames.portfolio-page .walkthrough-step .step-index span {
  color: var(--pond-muted);
}

@media (forced-colors: active) {
  body.ascii-flames:is(.koi-home, .koi-inner) [data-koi-glass] {
    border-color: ButtonText !important;
  }
}
