/* Vyupex brand tokens. Generated by brand/tools/build.mjs — change the constants there, not this file. */
:root {
  --vyupex-primary: #17181c;
  --vyupex-primary-hover: #2c2e35;
  --vyupex-on-primary: #ffffff;
  --vyupex-background: #f7f6f3; /* Warm Alabaster */
  --vyupex-surface: #ffffff;
  --vyupex-border: #e2e0da;
  --vyupex-text: #17181c;
  --vyupex-muted-text: #5c5d63;
  --vyupex-accent: #f5a524; /* Solar Amber. Fills only: the logo wedge, dark-mode fills and graphic accents. Never text on a light background. */
  --vyupex-accent-text: #b45309; /* Deep Ochre. Links, active states and small icons on light backgrounds. */
  --vyupex-success: #0f7a5c;
  --vyupex-danger: #a61b12;
  --vyupex-accent-text-dark: #f5a524; /* Solar Amber. Links and active states on ink (#17181c) surfaces. */

  /* Primary ramp, 50–900. Steps share the primary's hue in OKLCH and move in even lightness steps; 900 is the primary. */
  --vyupex-primary-50: #f3f5fe;
  --vyupex-primary-100: #dadce5;
  --vyupex-primary-200: #c1c3cc;
  --vyupex-primary-300: #a8aab3;
  --vyupex-primary-400: #8f9199;
  --vyupex-primary-500: #777980;
  --vyupex-primary-600: #5f6167;
  --vyupex-primary-700: #48494f;
  --vyupex-primary-800: #303136;
  --vyupex-primary-900: #17181c;

  /* Multi-app slot: the V stays ink on light and white on dark; only the wedge takes an app's colour. */
  --vyupex-slot: var(--vyupex-accent);
  /* Rule: on ink (#17181c), every sub-app wedge must reach at least 4.5:1. The -dark value is the app colour lightened in OKLCH until it does; the build fails if one falls short. */
  --vyupex-slot-sendbill: #3b63d6;
  --vyupex-slot-sendbill-dark: #4f7aef; /* 4.52:1 on ink */

  /* Wordmark */
  --vyupex-font-wordmark: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --vyupex-wordmark-weight: 700;
  --vyupex-wordmark-tracking: -0.01em;

  /* Footer credit, "<App> is made by [mark] Vyupex": a 16px mark, 6px of clear space before the capital V
     (the margin is smaller because the mark's file has empty space at its edge), and a 1px downward shift so the top of the
     mark lines up with the capitals. At body sizes of 12px or less, drop the mark and use the bold wordmark alone. */
  --vyupex-credit-mark-size: 16px;
  --vyupex-credit-word-size: 14px;
  --vyupex-credit-gap: 4.75px;
  --vyupex-credit-mark-shift: 1px;
}

/* Put this class on any element that has the ink background. It switches the tokens that change on dark. */
.vyupex-on-dark {
  --vyupex-accent-text: var(--vyupex-accent-text-dark);
  --vyupex-slot-sendbill: var(--vyupex-slot-sendbill-dark);
}

/* The same ramp in OKLCH, for browsers that support it. */
@supports (color: oklch(0% 0 0)) {
  :root {
    --vyupex-primary-50: oklch(97.12% 0.0122 276.1); /* #f3f5fe */
    --vyupex-primary-100: oklch(89.56% 0.0124 276.1); /* #dadce5 */
    --vyupex-primary-200: oklch(81.83% 0.0127 276.1); /* #c1c3cc */
    --vyupex-primary-300: oklch(73.92% 0.0131 276.0); /* #a8aab3 */
    --vyupex-primary-400: oklch(65.75% 0.0120 274.8); /* #8f9199 */
    --vyupex-primary-500: oklch(57.67% 0.0109 273.3); /* #777980 */
    --vyupex-primary-600: oklch(49.29% 0.0098 271.2); /* #5f6167 */
    --vyupex-primary-700: oklch(40.66% 0.0101 278.4); /* #48494f */
    --vyupex-primary-800: oklch(31.41% 0.0090 276.8); /* #303136 */
    --vyupex-primary-900: oklch(20.97% 0.0080 274.5); /* #17181c */
  }
}
