/*
  PLATOMUS design tokens. Dark only.

  Two references, one system. From orbio.so: the warm near-black ground, ivory
  type, and one orange that glows (the send button, the highlighted word). From
  harmonicagent.solutions: the royal-blue plate behind the engraving, a serif
  that reads like a printed page, and mono labels spaced out like an instrument
  dial. Orange is the only warm thing on screen, so it always means "act here";
  the blue lives in the hero and the live dot and nowhere else.

  The token *roles* follow a terminal layout - a background, three raised
  surfaces, three line weights and three text tiers - so a component is written
  once and re-skinned by swapping this file. There is no light theme.
*/

:root {
  /* surfaces: warm black, the way orbio's ground is never pure #000 */
  --bg: #0b0a09;
  --panel: #11100e;
  --raised: #171512;
  --raised-2: #1e1b17;
  --wash: #0d0c0a;

  /* lines, lightest to heaviest */
  --line: #24211c;
  --line-2: #332e27;
  --line-3: #4a4238;

  /* text tiers: ivory, not white. --ink-3 is 4.9:1 on --panel, 4.5:1 on
     --raised-2, so the 10-11px mono labels it carries pass WCAG AA. */
  --ink-bright: #f6f1e7;
  --ink: #e2dccf;
  --ink-2: #aaa293;
  --ink-3: #8c8476;
  --ink-dim: rgba(246, 241, 231, 0.12);
  --text: var(--ink-bright);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);

  /* the accent: orbio's ember orange */
  --accent: #f2803a;
  --accent-bright: #ff9a52;
  --accent-deep: #7a3612;
  --accent-dim: rgba(242, 128, 58, 0.14);
  --accent-line: rgba(242, 128, 58, 0.3);
  --accent-tint: rgba(242, 128, 58, 0.06);
  --on-accent: #140a04;
  --grad-btn: linear-gradient(180deg, #ffa766, #ec6f26);
  --grad-accent: linear-gradient(135deg, #f2803a, #ff9a52);

  /* harmonic's royal plate. The hero ombre and the LIVE dot only. */
  --royal: #0a2a6b;
  --royal-deep: #06153f;
  --royal-ink: #8fb4dd;
  --stripe: #8fb4dd;

  /* semantic: up stays green and down red, the one place green survives */
  --pos: #6fd08f;
  --pos-text: #6fd08f;
  --neg: #ff6b5e;
  --warn: #f5c451;

  /* charts */
  --chart-up: var(--pos);
  --chart-down: var(--neg);
  --chart-grid: #171512;
  --chart-axis: #332e27;
  --chart-text: #8c8476;
  --chart-vol: #1e1b17;
  --chart-cross: var(--accent);
  --band-fill: rgba(242, 128, 58, 0.13);
  --band-edge: var(--accent);
  --band-own-fill: rgba(246, 241, 231, 0.05);
  --band-own-edge: var(--ink);

  /* brand mark */
  --mark-body: #171512;
  --mark-apex: var(--accent);

  /* radii */
  --r-full: 999px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 9px;

  /* type */
  --f-mono: var(--font-mono, 'Geist Mono'), ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-sans: var(--font-sans, 'Geist'), ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-display: var(--font-display, 'Cormorant Garamond'), Georgia, 'Times New Roman', serif;
  --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --track: 0.14em;
  --fs-display: clamp(40px, 6vw, 78px);
  --fs-h1: clamp(28px, 4vw, 44px);
  --fs-h2: clamp(22px, 3vw, 30px);
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-micro: 10px;
  --lh-body: 1.65;

  /* motion */
  --dur: 0.16s;
  --dur-press: 0.12s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* depth */
  --sheen: rgba(246, 241, 231, 0.06);
  --glass-bg: rgba(17, 16, 14, 0.55);
  --glass-line: rgba(255, 255, 255, 0.09);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --glow-accent: 0 0 0 1px rgba(242, 128, 58, 0.16), 0 8px 30px -8px rgba(242, 128, 58, 0.22);
  --glow-accent-strong: 0 0 0 1px rgba(242, 128, 58, 0.3), 0 10px 40px -8px rgba(242, 128, 58, 0.36);
  --card-wash: linear-gradient(180deg, rgba(242, 128, 58, 0.05), transparent 42%);
  --edge-glow: rgba(242, 128, 58, 0.45);

  /* The signature panel: hero cards, the clan profile key panel. */
  --signature-bg:
    radial-gradient(circle at 14% 0%, rgba(242, 128, 58, 0.16), rgba(0, 0, 0, 0) 52%),
    linear-gradient(145deg, #171512, #11100e 64%);
  --signature-shadow:
    inset 0 1px 0 rgba(255, 154, 82, 0.14),
    0 0 0 1px rgba(242, 128, 58, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.45);

  /* layout */
  --rail-w: 56px;
  --rail-w-open: 212px;
  --topbar-h: 66px;
  --tabbar-h: 58px;
  --positions-max-h: 620px;
}

/* Drop the motion for anyone who has asked for less of it. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0s;
    --dur-press: 0s;
  }
}
