/* Orsande "Chart Room" design tokens. Source of truth for the portal (Razor/CSS) and the launcher (Avalonia, via
   tokens.json, same names). Dark-first; there is no light theme. Change values here and in tokens.json together. */
:root {
  color-scheme: dark;

  /* ---- surfaces: the night sea, from deepest to most raised */
  --c-abyss: #050a12;        /* launcher window, behind hero art, modal shade base */
  --c-sea-0: #09111d;        /* page background */
  --c-sea-1: #0e1828;        /* panels, cards */
  --c-sea-2: #132236;        /* raised: inputs, table header, hover rows */
  --c-sea-3: #1a2d47;        /* selected row, active tab, popovers */
  --c-line: #22364f;         /* hairline borders, dividers */
  --c-line-2: #33507a;       /* strong border, input border on hover */

  /* ---- ink: parchment on navy */
  --c-parch: #f2e6ca;        /* headings, wordmark, key numbers */
  --c-ink: #e3dbc9;          /* body text */
  --c-ink-2: #b3ac9b;        /* secondary text, labels */
  --c-ink-3: #8f8a7c;        /* captions, placeholders, meta (AA on sea-0..sea-2 at >= 12px) */
  --c-ink-inv: #1a1205;      /* text on brass */

  /* ---- brass: the game's frames (assets/ui/art), primary action + ornament */
  --c-brass-hi: #f6dc97;
  --c-brass: #d8ab52;
  --c-brass-lo: #92702f;
  --c-brass-deep: #4b3a19;

  /* ---- sea glass: the teal gems set in the brass; focus, links, live/online */
  --c-glass-hi: #9ef3e4;
  --c-glass: #4fd0bd;
  --c-glass-lo: #1e7f75;

  /* ---- status */
  --c-ok: #74d39a;           /* online, fixed, verified */
  --c-warn: #f1a841;         /* degraded, major, needs info */
  --c-danger: #ee6a55;       /* offline, blocker, error, destructive */
  --c-info: #6cb8ef;         /* in progress, minor */
  --c-aether: #a993f5;       /* dev role, nightly channel (the game's aether fill) */

  /* severity = status colours; role = ornament colours */
  --sev-blocker: var(--c-danger);
  --sev-major: var(--c-warn);
  --sev-minor: var(--c-info);
  --sev-cosmetic: var(--c-ink-3);
  --role-admin: var(--c-brass);
  --role-dev: var(--c-aether);
  --role-tester: var(--c-glass);

  /* ---- type */
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;           /* titles, wordmark, kickers, primary buttons */
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* everything you read */
  --f-lore: "Source Serif 4", Georgia, serif;                    /* italic only: ledes, patch-note intros, quotes */
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace; /* ids, builds, hashes, coords, logs */

  --t-hero: 3rem;      /* 48 / 1.05 Cinzel 700, launcher hero, login wordmark */
  --t-h1: 2.125rem;    /* 34 / 1.15 Cinzel 600 */
  --t-h2: 1.5rem;      /* 24 / 1.2 Cinzel 600 */
  --t-h3: 1.0625rem;   /* 17 / 1.3 Inter 600 */
  --t-body: 0.9375rem; /* 15 / 1.6 Inter 400 */
  --t-small: 0.8125rem;/* 13 / 1.5 Inter 400/500 */
  --t-cap: 0.75rem;    /* 12 / 1.4 Inter 500 */
  --t-kicker: 0.6875rem; /* 11 / 1 Cinzel 700, uppercase, tracking .22em */
  --t-mono: 0.8125rem; /* 13 / 1.5 JetBrains Mono */
  --tr-kicker: 0.22em;
  --tr-display: 0.04em;
  --tr-button: 0.14em;

  /* ---- space (4 px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-14: 56px; --s-18: 72px;

  /* ---- radii: chart-room = crisp, small */
  --r-xs: 2px;   /* chips, tags, kbd */
  --r-sm: 4px;   /* buttons, inputs */
  --r-md: 6px;   /* panels, cards */
  --r-lg: 10px;  /* hero cards, launcher window */
  --r-pill: 999px;

  /* ---- elevation */
  --sh-1: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 34px -14px rgba(0, 0, 0, .75);
  --sh-3: 0 30px 80px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .6);
  --sh-brass: 0 0 0 1px rgba(246, 220, 151, .25) inset, 0 -2px 0 rgba(0, 0, 0, .25) inset,
              0 10px 28px -8px rgba(216, 171, 82, .45);
  --sh-glass: 0 0 0 1px rgba(79, 208, 189, .5), 0 0 18px -2px rgba(79, 208, 189, .45);

  /* ---- gradients (named so both stacks build them the same way) */
  --g-brass: linear-gradient(180deg, #f8e2a2 0%, #dcb05a 46%, #b88a3c 54%, #d7a94f 100%);
  --g-brass-hover: linear-gradient(180deg, #fff0c2 0%, #e7bd66 46%, #c69544 54%, #e2b558 100%);
  --g-iron: linear-gradient(180deg, #1c2c43 0%, #132236 100%);
  --g-panel: linear-gradient(180deg, rgba(26, 45, 71, .55) 0%, rgba(14, 24, 40, .55) 120px), var(--c-sea-1);
  --g-hero-shade: linear-gradient(90deg, rgba(5, 10, 18, .92) 0%, rgba(5, 10, 18, .62) 38%, rgba(5, 10, 18, 0) 70%),
                  linear-gradient(0deg, var(--c-sea-0) 0%, rgba(9, 17, 29, 0) 45%);
  /* the neatline: a chart's graduated border, the signature ornament */
  --g-neatline: repeating-linear-gradient(90deg, var(--c-brass-lo) 0 24px, transparent 24px 48px);

  /* ---- focus */
  --focus-ring: 0 0 0 2px var(--c-sea-0), 0 0 0 4px var(--c-glass);

  /* ---- motion */
  --m-fast: 120ms;   /* hover, press */
  --m-base: 200ms;   /* panels, menus, toggles */
  --m-slow: 600ms;   /* hero art cross-fade, page reveal */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);

  /* ---- layout */
  --w-page: 1240px;
  --h-topbar: 64px;
  --w-launcher: 1100px;
  --h-launcher: 680px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --m-fast: 0ms; --m-base: 0ms; --m-slow: 0ms; }
}
