/* Public pages only. Admin keeps its own settings for the original aliases. */
:root[data-scheme] {
  --paper: var(--theme-paper);
  --ink: var(--theme-ink-readable);
  --muted: var(--theme-muted-readable);
  --olive: var(--theme-button);
  --rust: var(--theme-accent-readable);
  --line: var(--theme-divider);
  background-color: var(--paper);
  scrollbar-color: var(--theme-ornament) var(--paper);
  accent-color: var(--theme-accent);
}
@media (prefers-reduced-motion: no-preference) {
  :root.theme-ready {
    transition-property: var(--theme-transition-properties, none);
    transition-duration: 420ms;
    transition-timing-function: ease;
  }
}
.library-order select {
  font: 12px var(--sans); color: var(--ink); background: var(--theme-input);
  border: 1px solid var(--theme-border); border-radius: 4px; padding: 7px; cursor: pointer;
}
.library-order select:hover { border-color: var(--theme-alternate); }
:is(select, input, textarea, button, a):focus-visible {
  outline: 2px solid var(--theme-accent-readable); outline-offset: 3px;
}
option { color: var(--ink); background: var(--theme-popup); }
h1, h2, h3, .about-hero-title { color: var(--theme-heading-readable); }
.hero h1 { color: inherit; }
.quote-dialog, .site-dialog, #guide-panel, .chat-widget .ai-chat { background-color: var(--theme-popup); }
.detail-body blockquote, .about-quote-box blockquote { color: var(--theme-quote-readable); }
.comment-content time, .note-bottom > span { color: var(--theme-note-readable); }
.comment-avatar { background: var(--theme-surface); }
.about-quote-box { border-color: var(--theme-accent); }
.library-order select, textarea, #guide-panel #guide-form input { border-color: var(--theme-border); }
.chat-greeting { background: var(--theme-button); color: var(--theme-button-label); }
.small-button:hover, .filters button[aria-pressed=true]:hover,
.site-dialog-accept:hover, #guide-panel #guide-form button:hover, .not-found-button:hover {
  background: var(--theme-hover); color: var(--theme-hover-label);
}
.text-button:active, .site-header nav a:active { color: var(--theme-alternate-readable); }
button:disabled { cursor: default; }
.hero {
  /* Stable lettering over the painting in both modes, even with a custom hero. */
  color: color-mix(in srgb, white 94%, var(--theme-accent));
  --hero-highlight: color-mix(in srgb, #ffecd3 86%, var(--theme-accent));
}
.hero h1 em, .hero .hero-tagline:hover { color: var(--hero-highlight); }
.hero-tagline { color: color-mix(in srgb, white 85%, var(--theme-ornament)); }
.hero h1, .hero-tagline { text-shadow: 0 1px 3px #181710, 0 0 2px #181710; }
