/*
 * Ken API theme overlay.
 * Injected by Nginx after New API's own stylesheet; it only refines the
 * built-in "anthropic" preset (warm cream canvas + clay accent) so the
 * console reads like an editorial product page: serif headings, sans body.
 * Delete the sub_filter lines in nginx/default.conf to turn it off.
 */
html:not(.dark) { background: #faf9f5; }
html.dark { background: #262624; }

body[data-theme-preset='anthropic'][data-theme-font='sans'] {
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC',
    'Helvetica Neue', Arial, sans-serif;
}

body[data-theme-preset='anthropic'] :is(h1, h2, h3),
body[data-theme-preset='anthropic'] :is([data-slot='card-title'], [data-slot='sheet-title'], [data-slot='dialog-title']) {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

body[data-theme-preset='anthropic'] [data-slot='card'] {
  box-shadow: none;
}

body[data-theme-preset='anthropic'] [data-slot='button'] {
  font-weight: 500;
}

body[data-theme-preset='anthropic'] ::selection {
  background: color-mix(in oklch, var(--primary) 28%, transparent);
}
