/*
  Heighliner · "Ember" theme
  ---------------------------------------------------------------
  Drop-in replacement for the shadcn/Tailwind theme variables the
  Heighliner app already uses (same names: --background, --primary,
  --card-hover, --glow-*, --gradient-*, --sidebar-* …). Values are
  HSL triplets, consumed as hsl(var(--token)).

  Palette pulled from the Heighliner app icon:
    base               #000000 (true black, OLED-friendly)
    surfaces           #0c0a08  #0f0d0b  #1f1915
    deep rust          #7c3a2c
    brick              #aa442f
    ember (primary)    #dd613d
    amber              #dfb05d
    sun                #f4d875

  The selector includes html[data-org-theme] so it also wins over
  per-org themes (the live app currently sets data-org-theme="cvo",
  which turns everything purple). Drop that part of the selector if
  orgs should keep their own colors.
*/

:root,
.dark,
html[data-org-theme] {
  /* surfaces: warm off-black, never pure #000 */
  --background: 0 0% 0%;              /* true black: OLED pixels off */
  --background-secondary: 24 20% 4%;  /* #0c0a08 */
  --foreground: 33 70% 97%;           /* #fdf8f1 */

  --card: 24 18% 5%;                  /* #0f0d0b, just off black so cards read */
  --card-foreground: 33 70% 97%;
  --card-hover: 25 20% 10%;           /* #1f1915 */

  --popover: 24 18% 5%;
  --popover-foreground: 33 70% 97%;

  /* brand */
  --primary: 13 78% 56%;              /* #e75d36 ember, punchier on black */
  --primary-foreground: 25 30% 7%;    /* dark text on ember reads better than white */
  --primary-hover: 15 78% 61%;        /* #e8774f */
  --primary-pressed: 10 57% 42%;      /* #aa442f brick */

  --gold: 47 86% 71%;                 /* #f4d875 sun */
  --amber: 38 66% 62%;                /* #dfb05d */
  --brick: 10 57% 42%;                /* #aa442f */
  --rust: 11 48% 33%;                 /* #7c3a2c */

  --secondary: 25 18% 9%;
  --secondary-foreground: 33 70% 97%;

  --muted: 25 16% 10%;
  --muted-foreground: 28 18% 72%;     /* #c4b4a4, higher contrast on black */

  --accent: 38 66% 62%;               /* amber */
  --accent-foreground: 25 30% 7%;

  --destructive: 0 72% 58%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 55% 48%;
  --success-foreground: 0 0% 100%;
  --warning: 38 85% 55%;
  --warning-foreground: 0 0% 10%;
  --info: 205 70% 58%;
  --info-foreground: 0 0% 100%;

  --border: 26 18% 15%;               /* #2e251d */
  --input: 26 18% 15%;
  --ring: 13 70% 55%;

  --radius: 0.875rem;

  --sidebar-background: 24 20% 3%;
  --sidebar-foreground: 28 18% 74%;
  --sidebar-primary: 13 70% 55%;
  --sidebar-primary-foreground: 25 30% 7%;
  --sidebar-accent: 25 18% 9%;
  --sidebar-accent-foreground: 33 70% 97%;
  --sidebar-border: 26 18% 14%;
  --sidebar-ring: 13 70% 55%;

  /* effects */
  --glow-sm: 0 0 8px hsl(13 70% 55% / 0.25);
  --glow-md: 0 0 18px hsl(13 70% 55% / 0.32);
  --glow-lg: 0 0 32px hsl(13 70% 55% / 0.38);

  --gradient-primary: linear-gradient(135deg, hsl(10 57% 42%) 0%, hsl(13 70% 55%) 55%, hsl(38 66% 62%) 100%);
  --gradient-ember: linear-gradient(120deg, hsl(11 48% 33%) 0%, hsl(10 57% 42%) 25%, hsl(13 70% 55%) 55%, hsl(38 66% 62%) 80%, hsl(47 86% 71%) 100%);
  --gradient-glow: linear-gradient(135deg, hsl(13 70% 55% / 0.16) 0%, hsl(38 66% 62% / 0.06) 100%);
  --gradient-card: linear-gradient(160deg, hsl(24 18% 7%) 0%, hsl(24 18% 3%) 100%);
  --gradient-dark: linear-gradient(135deg, hsl(0 0% 0%) 0%, hsl(24 18% 5%) 100%);
  --gradient-radial-depth:
    radial-gradient(60rem 30rem at 85% -10%, hsl(13 70% 55% / 0.14), transparent 60%),
    radial-gradient(40rem 26rem at 0% 0%, hsl(11 48% 33% / 0.16), transparent 65%),
    hsl(0 0% 0%);

  --shadow-xs: 0 1px 2px 0 hsl(25 40% 2% / 0.2);
  --shadow-sm: 0 1px 3px 0 hsl(25 40% 2% / 0.28), 0 1px 2px -1px hsl(25 40% 2% / 0.28);
  --shadow-md: 0 6px 14px -4px hsl(25 40% 2% / 0.45);
  --shadow-lg: 0 14px 30px -8px hsl(25 40% 2% / 0.55);
  --shadow-xl: 0 24px 48px -12px hsl(25 40% 2% / 0.65);

  /* type */
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Archivo", "Manrope", ui-sans-serif, sans-serif; /* variable width: 62% condensed … 125% expanded */
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-brand: "Dune Rise", "Archivo", sans-serif;  /* logo + display headings only; OFL 1.1, caps */
}
