/* =====================================================================
   brand-interstellar.css — interstellar-run.com brand layer (kit v0.1)
   Load after theme-base.css. Overrides BRAND tokens and defines the
   site's own --ir-* tokens. Every --ir-* colour defaults to a kit token,
   so fun themes that don't know about this site (amber-crt) still get a
   consistent palette and no light-theme colour leaks through.
   ---------------------------------------------------------------------
   Old (style.css / admin inline :root)  ->  New token
   --dark-bg      #0a0a1a   -> --color-bg
   --darker-bg    #050510   -> --color-surface
   --text-primary #e0e0ff   -> --color-text
   --text-secondary #a0a0c0 -> --color-text-muted
   --neon-cyan    #00ffff   -> --color-accent        (glows: --ir-glow-1)
   --neon-magenta #ff00ff   -> --color-accent-2      (glows: --ir-glow-2)
   --neon-pink    #ff0080   -> --color-link          (glows: --ir-glow-3)
   --neon-purple  #9d00ff   -> --color-border        (glows: --ir-glow-4)
   --neon-blue    #0080ff   -> --ir-blue
   --grid-color             -> --ir-grid-color
   --header-bg              -> --ir-header-bg
   #ff4444 / #ff6666        -> --color-danger
   #00ff00 / #44ff44 / #66ff66 -> --color-success
   orange / rgba(255,165,0) -> --color-warning
   rgba(R,G,B,a)            -> color-mix(in srgb, var(--token) a%, transparent)
   'Courier New'            -> --font-body (the brand face, system font only)
   The original look is the "retro80s" fun theme (themes/retro80s.css).
   This file sets kit tokens only. Site-only tokens (--ir-*: glows, grid,
   header panel, tag colours, clip shapes) live in css/site-tokens.css.
   ===================================================================== */
:root {
  /* Type: the site has always been Courier; it is a system font, so no downloads. */
  --font-body: "Courier New", Courier, ui-monospace, "Liberation Mono", monospace;
  --font-display: var(--font-body);

  /* Light palette: Interstellar purple / magenta / teal on a cool white */
  --color-bg: #f6f5fb;
  --color-surface: #ffffff;
  --color-surface-2: #eeecf6;
  --color-tint: #ece4fb;
  --color-border: #cfc8e4;
  --color-text: #1c1a33;
  --color-text-muted: #55516c;
  --color-accent: #6b1fc4;
  --color-accent-contrast: #ffffff;
  --color-accent-2: #a3135f;
  --color-accent-2-contrast: #ffffff;
  --color-link: #6b1fc4;
  --color-link-hover: #4a128c;
  --color-focus: #0b72b9;
  --color-success: #1d7a46;
  --color-warning: #8a5a00;
  --color-danger: #b3261e;
  --color-code-bg: #14122b;
  --color-code-fg: #e6e3ff;
  --brand-gradient: linear-gradient(135deg, #6b1fc4 0%, #a3135f 50%, #0b6f86 100%);
  --brand-gradient-fg: #ffffff;

  /* Square corners: the brand's angled shapes come from clip-paths in the site CSS. */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
}

/* Dark: deep space navy with softened neon. Keep both blocks identical. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #101022;  --color-surface: #17172e;  --color-surface-2: #20203b;
  --color-tint: #2a2350;  --color-border: #3c3863;
  --color-text: #e7e6f7;  --color-text-muted: #aaa8c6;
  --color-accent: #b98cff;  --color-accent-contrast: #160b2e;
  --color-accent-2: #ff7ac0;  --color-accent-2-contrast: #2a0b1c;
  --color-link: #8fe3ff;  --color-link-hover: #c4f1ff;  --color-focus: #8fe3ff;
  --color-success: #6fd69a;  --color-warning: #f0c060;  --color-danger: #ff8a8a;
  --color-code-bg: #0a0a18;  --color-code-fg: #e0e0ff;
  --brand-gradient: linear-gradient(135deg, #4b1f8f 0%, #8a1f5c 50%, #0f5f73 100%);
  --brand-gradient-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-bg: #101022;  --color-surface: #17172e;  --color-surface-2: #20203b;
    --color-tint: #2a2350;  --color-border: #3c3863;
    --color-text: #e7e6f7;  --color-text-muted: #aaa8c6;
    --color-accent: #b98cff;  --color-accent-contrast: #160b2e;
    --color-accent-2: #ff7ac0;  --color-accent-2-contrast: #2a0b1c;
    --color-link: #8fe3ff;  --color-link-hover: #c4f1ff;  --color-focus: #8fe3ff;
    --color-success: #6fd69a;  --color-warning: #f0c060;  --color-danger: #ff8a8a;
    --color-code-bg: #0a0a18;  --color-code-fg: #e0e0ff;
    --brand-gradient: linear-gradient(135deg, #4b1f8f 0%, #8a1f5c 50%, #0f5f73 100%);
    --brand-gradient-fg: #ffffff;
  }
}
