/*
 * Shapeshifters demo UI: one look for every playground and live demo (WebGL, shaders, Framer
 * components, tools). Black UI with a lime accent and lilac as the second colour.
 *
 * Use it on a new demo page:  <link rel="stylesheet" href="/demos/shapeshifters-ui.css">
 * Build the page on the --ss-* tokens below. Older demos keep their own variable names; the
 * mapping further down repaints them, so they match without being rewritten.
 */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

html:root {
  --ss-bg: #0b0b0d !important;
  --ss-panel: #141417 !important;
  --ss-raise: #1c1c21 !important;
  --ss-line: #26262b !important;
  --ss-fg: #f4f2ee !important;
  --ss-muted: #8d8d95 !important;
  --ss-lime: #c8f532 !important;
  --ss-lilac: #cdb8ff !important;
  --ss-on-accent: #151515 !important;
  --ss-radius: 10px !important;
  --ss-font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  --ss-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif !important;
  --ss-mono: ui-monospace, 'SF Mono', Menlo, monospace !important;

  /* the variable names the existing demos use */
  --bg: var(--ss-bg) !important;
  --ink: var(--ss-bg) !important;
  --bezel: #050506 !important;
  --panel: var(--ss-panel) !important;
  --surface: var(--ss-panel) !important;
  --line: var(--ss-line) !important;
  --fg: var(--ss-fg) !important;
  --muted: var(--ss-muted) !important;
  --accent: var(--ss-lime) !important;
  --hot: var(--ss-lilac) !important;
  --on: var(--ss-on-accent) !important;
  --lime: var(--ss-lime) !important;
  --ui: var(--ss-font) !important;
  --mono: var(--ss-mono) !important;
  color-scheme: dark;
}

html:root body {
  background: var(--ss-bg);
  color: var(--ss-fg);
}

/* controls: lime for anything active */
html:root input[type='range'],
html:root input[type='checkbox'],
html:root input[type='radio'],
html:root progress {
  accent-color: var(--ss-lime);
}
html:root ::selection {
  background: var(--ss-lime);
  color: var(--ss-on-accent);
}
html:root :focus-visible {
  outline-color: var(--ss-lime);
}

/* headings on demo pages use the brand display face (Retro Screen keeps its own CRT font) */
html:root h1:not(.keep-font),
html:root h2:not(.keep-font) {
  font-family: var(--ss-display);
  letter-spacing: -0.02em;
}
