/* BouftyBot V2 — design tokens.
   Shapes, surfaces and fonts follow Website2 (root.css: 20/10 px radii, --xds-shadow, #0f0f0f /
   #16171b / #2e2f33); the blue accent is BouftyBot's own. Website2's hidden scrollbars and
   removed focus outlines are deliberately not reproduced.
   Themes: dark by default, light via [data-theme="light"] (set before paint by theme-init.js),
   and the system preference when JavaScript is unavailable. */

@font-face { font-family: "Urbanist"; src: url("../fonts/Urbanist/Urbanist-VariableFont_wght.woff2") format("woff2"), url("../fonts/Urbanist/Urbanist-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanson"; src: url("../fonts/Hanson/Hanson-Bold.woff2") format("woff2"), url("../fonts/Hanson/Hanson-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --font-body: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Hanson", "Urbanist", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-lg: 20px;   /* containers, cards, menus, dialogs (Website2 --border-radius-20) */
  --radius-sm: 10px;   /* controls, buttons, inputs (Website2 --border-radius-10) */
  --radius-pill: 999px;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --page-max: 1240px;
  --topbar-height: 60px;
  --target: 44px;      /* minimum touch target */
  --duration: 200ms;
  --ease: cubic-bezier(.2, .8, .2, 1);   /* smooth, slightly springy hover */

  --bg: #0f0f0f;
  --surface: #16171b;
  --surface-raised: #1e1f24;
  --surface-sunken: #111214;
  --overlay: rgba(10, 10, 10, .79);           /* Website2 dropdown #0a0a0ac9 */
  --border: #2e2f33;
  --border-soft: rgba(255, 255, 255, .06);
  --text: #f3f3f5;
  --text-muted: #aeb0b8;
  --text-faint: #8b8e97;
  --accent: #4c90f4;
  --accent-hover: #6aa3f6;
  --accent-soft: rgba(76, 144, 244, .14);
  --on-accent: #0b1525;
  --focus: #7fb0ff;
  --ok: #8cddb3;     --ok-soft: rgba(140, 221, 179, .12);
  --warning: #f1cd8c; --warning-soft: rgba(241, 205, 140, .12);
  --danger: #ffabb7;  --danger-soft: rgba(255, 171, 183, .12);
  --info: #9cc4ff;    --info-soft: rgba(156, 196, 255, .12);
  --danger-strong: #c93540; --on-danger: #ffffff;
  --shadow: 0 14px 50px -4px rgba(0, 0, 0, .45);
  --shadow-mini: 0 7px 25px -2px rgba(0, 0, 0, .3);
  --shadow-hover: 0 10px 30px -10px rgba(76, 144, 244, .45);

  /* BouftyBot mascot palette: sky, teal horns and eyes, gold rings, cloud. Decorative accents only;
     text keeps the --text / --accent pairs whose contrast is verified. */
  --brand-sky: #8ccaf5;
  --brand-teal: #46c2b8;
  --brand-gold: #e7bd57;
  --brand-cloud: #eef5fc;
  --brand-glow-sky: rgba(140, 202, 245, .16);
  --brand-glow-teal: rgba(70, 194, 184, .13);
  --brand-glow-gold: rgba(231, 189, 87, .08);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f0f0f0;
  --surface: #ffffff;
  --surface-raised: #f6f6f7;
  --surface-sunken: #e9eaed;
  --overlay: rgba(255, 255, 255, .93);
  --border: #dcdcdc;
  --border-soft: rgba(0, 0, 0, .05);
  --text: #111213;
  --text-muted: #4f586c;
  --text-faint: #5f6675;
  --accent: #195db7;
  --accent-hover: #124a93;
  --accent-soft: rgba(25, 93, 183, .1);
  --on-accent: #ffffff;
  --focus: #195db7;
  --ok: #216847;     --ok-soft: rgba(33, 104, 71, .1);
  --warning: #80560e; --warning-soft: rgba(128, 86, 14, .1);
  --danger: #a42642;  --danger-soft: rgba(164, 38, 66, .1);
  --info: #1d4f91;    --info-soft: rgba(29, 79, 145, .1);
  --danger-strong: #b4232f; --on-danger: #ffffff;
  --shadow: 0 14px 50px -4px rgba(0, 0, 0, .075);
  --shadow-mini: 0 7px 25px -2px rgba(0, 0, 0, .045);
  --shadow-hover: 0 10px 28px -12px rgba(25, 93, 183, .35);
  --brand-sky: #2470a8;
  --brand-teal: #13817b;
  --brand-gold: #9a6d0e;
  --brand-cloud: #ffffff;
  --brand-glow-sky: rgba(120, 190, 240, .22);
  --brand-glow-teal: rgba(70, 194, 184, .16);
  --brand-glow-gold: rgba(231, 189, 87, .14);
}

/* No JavaScript: follow the system preference. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f0f0f0; --surface: #ffffff; --surface-raised: #f6f6f7; --surface-sunken: #e9eaed; --overlay: rgba(255, 255, 255, .93);
    --border: #dcdcdc; --border-soft: rgba(0, 0, 0, .05);
    --text: #111213; --text-muted: #4f586c; --text-faint: #5f6675;
    --accent: #195db7; --accent-hover: #124a93; --accent-soft: rgba(25, 93, 183, .1); --on-accent: #ffffff; --focus: #195db7;
    --ok: #216847; --ok-soft: rgba(33, 104, 71, .1); --warning: #80560e; --warning-soft: rgba(128, 86, 14, .1);
    --danger: #a42642; --danger-soft: rgba(164, 38, 66, .1); --info: #1d4f91; --info-soft: rgba(29, 79, 145, .1);
    --danger-strong: #b4232f; --on-danger: #ffffff;
    --shadow: 0 14px 50px -4px rgba(0, 0, 0, .075); --shadow-mini: 0 7px 25px -2px rgba(0, 0, 0, .045); --shadow-hover: 0 10px 28px -12px rgba(25, 93, 183, .35);
    --brand-sky: #2470a8; --brand-teal: #13817b; --brand-gold: #9a6d0e; --brand-cloud: #ffffff;
    --brand-glow-sky: rgba(120, 190, 240, .22); --brand-glow-teal: rgba(70, 194, 184, .16); --brand-glow-gold: rgba(231, 189, 87, .14);
  }
}
