/* Tracktoy Studio — approved website themes. CSS px; no tinting of scene media. */

@font-face { font-family: "Manrope"; src: url("./fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root { --font-ui: "Manrope", system-ui, sans-serif; --content-max: 1200px; --radius-control: 12px; --radius-card: 20px; --radius-video: 16px; --focus-width: 2px; --focus-offset: 3px; }

:root, [data-theme="dark"] {
  color-scheme: dark;
  --background: #102C32;
  --surface: #193D43;
  --surface-raised: #21464B;
  --foreground: #F5E9DD;
  --muted: #ACC5C5;
  --accent: #F58D79;
  --on-accent: #11292F;
  --secondary: #6BB9AF;
  --border: #385C61;
  --control-border: #7DA2A5;
  --focus: #9DDDD3;
  --success: #9AD8AC;
  --warning: #F0C773;
  --error: #FFB5AF;
  --disabled-background: #29474C;
  --disabled-foreground: #9CB4B7;
  --overlay: rgba(4, 15, 18, 0.64);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.20);
}

[data-theme="light"] {
  color-scheme: light;
  --background: #EAF0F2;
  --surface: #D7E1E5;
  --surface-raised: #F7FAFB;
  --foreground: #202F38;
  --muted: #4D626D;
  --accent: #E8754D;
  --on-accent: #202F38;
  --secondary: #82A9BA;
  --border: #B4C5CC;
  --control-border: #657F8B;
  --focus: #295F74;
  --success: #276148;
  --warning: #765215;
  --error: #A13236;
  --disabled-background: #CBD6DB;
  --disabled-foreground: #617580;
  --overlay: rgba(21, 40, 48, 0.38);
  --shadow: 0 16px 48px rgba(32, 47, 56, 0.12);
}

/* Before first paint set html[data-theme] from Dark / Light / System. This file uses dark only as a safe fallback. */

body { margin: 0; font-family: var(--font-ui); font-weight: 500; color: var(--foreground); background: var(--background); }

:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }

.tt-primary { background: var(--accent); color: var(--on-accent); border: 1px solid currentColor; border-radius: var(--radius-control); }

/* Focus/controlBorder support functional boundaries. border is a decorative divider only. */

/* Accent hover: use transform/shadow/foreground border; do not reduce the light-theme text contrast by darkening the fill. */

@media (prefers-reduced-motion: reduce) { .tt-motion { animation: none !important; transition: none !important; } }
