/* ===== Outlistly design tokens =====
   Shared by the app (styles.css) and the landing page (landing.css).
   Light is the base theme; dark overrides it under [data-theme="dark"],
   set before first paint by the inline theme script in each page. */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg:        #f6f6f9;   /* page */
  --bg2:       #ffffff;   /* cards, sidebar, modals */
  --bg3:       #f0f0f5;   /* subtle fills, hover, secondary buttons */
  --input-bg:  #ffffff;
  --border:    #e3e3ea;
  --border-strong: #d2d2dc;

  /* Text */
  --text1: #15151c;
  --text2: #5c5c6e;
  --text3: #8b8b9c;

  /* Brand */
  /* eBay-style yellow. As a fill it takes dark text (--on-accent); as text on
     a light surface it is too pale, so text/icons use --accent-text. */
  --accent:       #f5af02;
  --accent-hover: #e0a000;
  --accent-text:  #8a5a00;
  --accent-dim:   rgba(245, 175, 2, 0.16);
  --on-accent:    #1c1500;

  /* Status (text-safe on light surfaces) */
  --green:  #16a34a;
  --red:    #dc2626;
  --orange: #ea580c;
  --yellow: #a16207;
  --blue:   #2563eb;
  --purple: #9333ea;

  --shadow-sm: 0 1px 2px rgba(20, 20, 40, 0.05);
  --shadow:    0 1px 3px rgba(20, 20, 40, 0.06), 0 8px 24px rgba(20, 20, 40, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 20, 40, 0.16);
  --overlay:   rgba(18, 18, 30, 0.45);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --sidebar-width: 232px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Aliases used throughout the page scripts */
  --bg1:  var(--bg);
  --text: var(--text1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #0c0c11;
  --bg2:       #14141b;
  --bg3:       #1d1d26;
  --input-bg:  #0f0f15;
  --border:    #272732;
  --border-strong: #353542;

  --text1: #ececf2;
  --text2: #a3a3b5;
  --text3: #6f6f82;

  --accent:       #f5b50f;
  --accent-hover: #ffc52e;
  --accent-text:  #ffc94d;
  --accent-dim:   rgba(245, 181, 15, 0.14);
  --on-accent:    #1c1500;

  --green:  #34d399;
  --red:    #f87171;
  --orange: #fb923c;
  --yellow: #facc15;
  --blue:   #60a5fa;
  --purple: #c084fc;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --overlay:   rgba(0, 0, 0, 0.6);
}
