/* Aperture Studio design tokens for the Synthndr instruments (VCO-2, OPR-6, MTRX-256), so they
   look like the rest of the Studio. Adapted from the music repo (scripts/ui-provenance.json):
   type and radii from packages/ui/src/tokens.css, surfaces and neutrals from the .audio-app block
   of packages/ui/src/styles.css, the mono stack from the Studio hub.

   A product's theme.css sets --tile (its colour on the Studio hub) and --on-tile (the hub's ink
   printed on it: #0a0a0a on light tiles, #fff on deep ones). The surfaces are the hub's label
   black tinted by that colour; the tile itself is used solid only for primary buttons and a
   product's signature surface. */
:root {
  --tile: #edeae3;
  --on-tile: #0a0a0a;
  --tint: var(--tile);    /* a lighter source when a deep tile barely tints black */
  --accent: var(--tile);  /* marks on dark: the tile when it is light, a light tint of it when deep */

  --bg: color-mix(in srgb, var(--tint) 6%, #0a0a0a);
  --panel: color-mix(in srgb, var(--tint) 8%, #111110);
  --card: color-mix(in srgb, var(--tint) 10%, #171716);
  --card-hover: color-mix(in srgb, var(--tint) 13%, #1c1c1a);
  --raised: color-mix(in srgb, var(--tint) 12%, #1c1c1a);
  --well: color-mix(in srgb, var(--tint) 5%, #0d0d0c);
  --stage: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--tint) 10%, transparent), transparent 75%);

  --text: #f3f1ec;
  --knob-label: #dcd9d2;
  --muted: #b4b1ab;
  --faint: #a09d96;
  --line: rgb(255 255 255 / .07);
  --line-strong: rgb(255 255 255 / .12);
  --hover: rgb(255 255 255 / .05);
  --knob-face: var(--raised);
  --knob-track: rgb(255 255 255 / .1);

  --sans: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --display: 'Avenir Next', -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  /* Fields and small buttons, primary buttons and cards, large panels. */
  --radius-s: 4px;
  --radius-m: 5px;
  --radius-l: 7px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
