/* Elevage Studio design tokens (style spec, section 12, plus the type, spacing
   and overlay values the spec gives in prose). This is the only file that holds
   raw colours, fonts, radii and sizes; everything else refers to these. */

:root {
  color-scheme: dark;

  /* surfaces: pure neutral greys, never tinted */
  --surround-dark: #0D0D0D;
  --surround-mid: #777777;
  --surround-light: #E6E6E6;
  --card: #171717;
  --field: #1F1F1F;
  --hover: #262626;
  --selected: #2E2E2E;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #EDEDED;
  --text-2: #A0A0A0;
  --text-3: #858585; /* spec says #6E6E6E; lightened because section labels were too faint */

  /* accent and status */
  --accent: #B9A3FF;
  --primary: #FFFFFF;
  --on-primary: #0D0D0D;
  --pass: #6FCF97;
  --warn: #F2C94C;
  --clip: #FF4FD8;

  /* marks drawn over the image and surround (spec 6, 7.1, 7.3, 7.12) */
  --mark-70: rgba(255, 255, 255, 0.7);  /* brackets, readouts */
  --mark-60: rgba(255, 255, 255, 0.6);  /* slider fill, plan camera */
  --mark-50: rgba(255, 255, 255, 0.5);  /* centre cross, every fifth tick */
  --mark-35: rgba(255, 255, 255, 0.35); /* safe area, thirds */
  --mark-25: rgba(255, 255, 255, 0.25); /* ruler ticks */
  --mark-dark-70: rgba(13, 13, 13, 0.7); /* the same marks over a light surround or backdrop */
  --gate-dim: 0.55;                      /* how far the scene is dimmed outside the crop */
  --light-warm: #FFD9A8;                 /* lighting plan dots, warm to cool */
  --light-cool: #CFE3FF;

  /* type */
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-brand: Georgia, "Times New Roman", serif; /* the Élevage wordmark only */

  --t-value-lg: 400 20px/24px var(--font-mono);
  --t-title: 500 15px/20px var(--font-sans);
  --t-body: 400 13px/18px var(--font-sans);
  --t-small: 400 12px/16px var(--font-sans);
  --t-value: 400 12px/16px var(--font-mono);
  --t-section: 500 10px/14px var(--font-mono);
  --t-hud: 400 10px/12px var(--font-mono);
  --t-brand: italic 400 17px/20px var(--font-brand);
  --tracking-section: 0.08em;
  --weight-strong: 500;

  /* spacing: 4px grid */
  --s-0: 2px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-pill: 6px;

  /* shape */
  --r-card: 12px;
  --r-field: 6px;
  --r-thumb: 4px;
  --r-pill: 999px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);

  /* layout */
  --gap-edge: 8px; /* popovers off the panel they hang from */
  --gap-dock: 12px;
  --h-topbar: 44px;
  --w-scene: 240px;
  --w-inspector: 288px;
  --w-strip: 40px;
  --w-menu: 224px;
  --w-menu-wide: 304px;
  --w-setup: 880px;
  --w-container: 152px;
  --h-drop: 72px;
  --w-switcher: 220px;
  --w-status: 220px;
  --h-sheet: 112px;
  --h-cell: 88px;
  --h-dock: 40px;
  --h-row: 28px;
  --h-btn: 32px;
  --d-plan: 200px;
  --d-plan-compact: 148px; /* windows under 860px tall */

  /* component geometry */
  --icon: 16px;
  --d-swatch: 20px;
  --d-mini: 20px;
  --d-knob: 10px;
  --h-track: 2px;
  --ruler-step: 8px;
  --ruler-tick: 12px;
  --ruler-marker: 20px;
  --ruler-mark: 2px;
  --ruler-fade: 32px;
  --bracket: 16px;
  --cross: 8px;

  /* motion */
  --t-fast: 120ms ease-out;
  --t-camera: 400ms ease-in-out;
}
