/* dark.css — ATI Orbit user-level dark theme (Phase 2, workstream A, L1).
 *
 * Theme files contain ONLY token re-declarations under an
 * html[data-theme="<name>"] selector (docs/architecture/design-system.md,
 * rule 4): no layout, no component rules, no new selectors. Every custom
 * property here already exists in packages/design-tokens/tokens.css :root.
 *
 * Unlike the seasonal themes (lib/theme-schedule.ts), dark is a USER-LEVEL
 * theme (lib/theme-resolver.ts): selectable as 浅色/深色/自动 and followed
 * via prefers-color-scheme in auto mode. It inverts the full site — base
 * primitives, hero, panels, bands, code blocks — while keeping the gold
 * action button and gold accents, which read naturally on dark surfaces.
 * Contrast spot-checks for the key combinations are in the PR description.
 *
 * This file lives in public/ on purpose: theme literals are allowed outside
 * the check-theme scan roots (apps/web/src + packages/ui).
 */
html[data-theme="dark"] {
  --ati-shell-header-bg: #0a0e18;
  --ati-shell-footer-bg: #0a0e18;
  --ati-shell-panel-bg: #131a2a;
  /* Base primitives — full inversion */
  --ati-color-ink: #e8ecf4;
  --ati-color-muted: #9aa5b8;
  --ati-color-brand: #5b9bf5;
  --ati-color-accent: #ffc400;
  --ati-color-gold-readable: #d4a94e;
  --ati-color-surface: #131a2a;
  --ati-color-background: #0b0f1a;
  --ati-color-border: #26314a;
  --ati-color-success: #3ecf7a;
  --ati-color-danger: #f87171;

  /* Hero — deep night gradient with a dim moonlit glow */
  --ati-hero-bg-start: #0f1a2c;
  --ati-hero-bg-end: #0b1120;
  --ati-hero-glow: rgba(140, 175, 230, 0.16);
  --ati-hero-ink: #e8ecf4;
  --ati-hero-muted: #9aa5b8;
  --ati-hero-art: url("/themes/dark-hero-art.svg");

  /* Eyebrow / accent text — moon gold */
  --ati-eyebrow-color: #d4a94e;
  --ati-link-accent: #d4a94e;

  /* Actions — the gold primary button is inherited unchanged from :root
     (gold on dark reads natively); the secondary button becomes a deep
     card instead of frosted white. The primary ink flips to near-black:
     with the site ink inverted, light-on-gold would be ~1.3:1. */
  --ati-action-ink: #1b1b1b;
  --ati-action-secondary-bg: rgba(26, 35, 56, 0.9);
  --ati-action-secondary-ink: #e8ecf4;
  --ati-action-secondary-border: #3a4a6b;

  /* Panels — deep card; gold accent inherited from :root */
  --ati-panel-bg: rgba(21, 29, 46, 0.92);
  --ati-panel-border: #2c3a57;
  --ati-panel-divider: #2a3850;
  --ati-panel-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);

  /* Bands — one step above the page background */
  --ati-band-bg: #101a2c;

  /* Inverse surfaces — blue-black card/band surfaces (dark cards stay dark,
     hue-tuned to the night palette). */
  --ati-surface-inverse-bg: #0c1526; --ati-surface-inverse-border: #243252; --ati-band-dark-start: #0c1526;

  /* Soft gold badge — deep gold-brown for the night palette. */
  --ati-badge-soft-bg: #3a2f12; --ati-badge-soft-border: #7a5f1a; --ati-badge-soft-ink: #f8fafc;

  /* Runner options — deep night tints replace the light soft-gold
     hover/checked fills (light fill + inverted ink would fail contrast;
     the checked border/ring stay the gold accent). */
  --ati-run-option-hover-bg: #1c2637;
  --ati-run-option-hover-border: #4a5d80;
  --ati-run-option-checked-bg: #232c40;
  /* Checked letter keeps the gold fill; its ink stays dark for contrast
     (the site ink is inverted in this theme). */
  --ati-run-option-checked-ink: #101319;
  /* Code block — lifted dark for definition against the page */
  --ati-code-bg: #1c2637;
  --ati-code-ink: #e5e7eb;

  /* Shell shadow — deeper for dark chrome */
  --ati-shell-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);

  /* No festivity by default in dark mode. */
}
