/* Loaded only for a dark screen. Brand artwork, photos and printed pages retain
   their original colors; reading surfaces use a separate, accessible palette. */
:root {
  color-scheme: dark;
  --paper: #15111d;
  --ink: #f0eaf7;
  --muted: #c1b7ce;
  --charcoal: #c1b7ce;
  --lavender: #21192d;
  --lavender-strong: #2a1e38;
  --purple: #dab1ff;
  --line: #4b3b5b;
  --companion-focus: #d4acff;
  --theme-surface: #21192d;
  --theme-raised: #2a2037;
  --theme-mint: #142923;
  --theme-rose: #302034;
}
body { background: var(--paper); color: var(--ink); }
::selection { color: #241334; }
.hero-following-content, .intro-band, .white-section, .practice-main { background: var(--paper); }
.practice-main { --practice-ink: var(--ink); --practice-purple: var(--purple); --practice-line: var(--line); }
.footer-surround { background: var(--paper); }
.footer-surround[data-footer-surface="mint"] { background: var(--theme-mint); }
.footer-surround[data-footer-surface="rose"], .domain-conversation { background: var(--theme-rose); color: var(--ink); }

/* Reading pages, role journeys, examples and their controls. */
.experience-card, .example-card, .example-controls input, .example-controls select,
.search-row input, .filter-buttons button, .print-button, .skip-link,
.guide-screen-preview figure, .screenshot, .screenshot-placeholder {
  background: var(--theme-surface); border-color: var(--line); color: var(--ink);
}
.experience-image, .example-controls, .example-empty, .task-methods, .journey-output,
.guide-playbook-entry { background: var(--theme-surface); border-color: var(--line); }
.home-playbook, .journey-preparation, .example-takeaway, .play-example {
  background: var(--theme-mint); border-color: #38584a;
}
.home-playbook .section-kicker, .journey-preparation h2, .task-directory-group>h3,
.example-takeaway .eyebrow, .explore .eyebrow { color: #8ee5c6; }
.assess .eyebrow { color: #ffbb80; }
.monitor .eyebrow { color: #a6caff; }
.article-content .lead, .note, .screenshot-placeholder, .domain-conversation .section-lede,
.domain-conversation .small, .play-output, .play-example p, .play-example-label { color: var(--muted); }
.example-takeaway .example-output-note { color: var(--muted); border-color: #38584a; }
.journey-step-number, .play-number, .example-card-role, .example-reasoning li::before,
.role-path>li::before { color: #c7a5df; }
.example-controls input::placeholder { color: var(--muted); }
.example-card-foot, .guide-role-group .guide-role-links, .guide-role-links li+li { border-color: var(--line); }
.domain-conversation .text-link { color: var(--purple); }
.status { background: var(--theme-raised); color: #dec5f1; border-color: var(--line); }
.status.available { background: #173c2f; color: #a9ecd0; border-color: #426d59; }
.availability-strip, .draft-bar { background: var(--theme-surface); color: var(--muted); }

/* Keep solid actions purple with white text; lavender is the reading-link color. */
.button:not(.secondary), .story-steps li::before { background: #6e2999; border-color: #6e2999; color: #fff; }
.illustrated-hero .button:not(.secondary), .dark .button { background: var(--teal); border-color: var(--teal); color: #172d25; }
.button.secondary { color: var(--purple); border-color: #9d78b4; }
.illustrated-hero .button.secondary { color: #fff; }
.filter-buttons button[aria-pressed="true"], .practice-filters button[aria-pressed="true"] { background: #6e2999; color: #fff; }
.practice-filters button:hover:not([aria-pressed="true"]) { background: var(--theme-raised); }

/* Homepage panels have their own legacy tokens and need the same reading palette. */
.compass-tools {
  --purple: #dab1ff; --ink: #f0eaf7; --muted: #c1b7ce; --line: #4b3b5b;
  color: var(--ink); background: var(--lavender);
}
.compass-tools .experience-card, .compass-tools .detail-panel, .compass-tools .close-button,
.compass-tools .guide-button, .compass-tools .section-video-button {
  background: var(--theme-raised); border-color: var(--line);
}
.compass-tools .human-goal blockquote { color: var(--ink); }
.compass-tools .primary-button { background: #6e2999; color: #fff; }
.compass-tools :focus-visible, .compass-tools .detail-trigger:focus-visible::after { outline-color: var(--companion-focus); }
.role-card-title, .role-card-cta, .role-detail-copy h3, .role-detail-flow strong,
.role-detail-needs strong, .role-guide-entry a, .intro-band a, .role-guide-links a,
.practice-number, .funnel-card span, .funnel-card strong { color: var(--purple); }
.role-needs, .role-detail-flow span, .role-detail-needs p, .funnel-card p, .metadata,
.decision-space-copy p:not(.section-kicker) { color: var(--muted); }
.role-chip-list span { background: #dab1ff14; color: var(--purple); }
.participation-note, .role-card-video-trigger, .profile-close,
.role-detail-flow div, .role-detail-needs article, .lavender-section .funnel-card {
  background: var(--theme-raised); color: var(--ink);
}
.role-detail-panel { background: linear-gradient(132deg, #2a1e38, #21192d 50%, #142923); color: var(--ink); }
.funnel-card { color: var(--ink); }
.section.decision-space { background: linear-gradient(180deg, var(--lavender), var(--theme-mint)); }
.decision-space .pill-secondary, .home-page #examples .pill-secondary,
.home-playbook .pill-secondary { color: var(--purple); border-color: #9d78b4; }
.practice-feature-description, .practice-series-description>p:first-child, .practice-essay-top p { color: var(--muted); }

/* The separate brochure preview shares the control, but keeps its dark cover. */
.brochure-page { background: var(--paper); color: var(--ink); }
.brochure-stakes { background: var(--theme-surface); }
.brochure-text-link, .brochure-contexts figcaption p { color: var(--purple); }
.brochure-caption, .brochure-contributions span, .brochure-experience-name,
.brochure-experience-grid article>p:not([class]), .brochure-access, .brochure-availability { color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .button.secondary:hover, .compass-tools .close-button:hover, .compass-tools .guide-button:hover,
  .compass-tools .section-video-button:hover, .role-card-video-trigger:hover,
  .home-page #examples .pill-secondary:hover, .home-playbook .pill-secondary:hover {
    background: var(--theme-raised); color: var(--purple);
  }
  .compass-tools .detail-trigger:hover, .compass-tools .text-link:hover { color: #ecd5ff; }
}
