/* IG E-Sign — Incite Gravity brand tokens */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Incite Gravity palette — https://incitegravity.com/ */
  --ig-orange: #ff6600;
  --ig-orange-hover: #e55a00;
  --ig-navy: #020626;
  --ig-navy-surface: #0a0f2e;
  --ig-navy-raised: #121a3d;

  --bg: var(--ig-navy);
  --surface: var(--ig-navy-surface);
  --surface-raised: var(--ig-navy-raised);
  --accent: var(--ig-orange);
  --accent-hover: var(--ig-orange-hover);
  --accent-glow: rgba(255, 102, 0, 0.2);
  --success: #22d3a5;
  --success-muted: rgba(34, 211, 165, 0.12);
  --warning: #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.12);
  --danger: #da291c;
  --danger-muted: rgba(218, 41, 28, 0.12);
  --text-primary: #f0f1f5;
  --text-secondary: #8b8fa8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --sidebar-collapsed: 64px;
  --sidebar-expanded: 240px;
  --topbar-height: 56px;
  --content-max: 1280px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --transition: 180ms ease-out;
}

[data-theme='light'] {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text-primary: #020626;
  --text-secondary: #5c6078;
  --border: rgba(2, 6, 38, 0.08);
  --border-strong: rgba(2, 6, 38, 0.14);
  --shadow-card: 0 1px 3px rgba(2, 6, 38, 0.08);
  --shadow-hover: 0 12px 40px rgba(2, 6, 38, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.brand-logo-sm {
  height: 28px;
  max-width: 120px;
}

/* Dark mode: white transparent logo (ig-trans.png) */
.brand-logo--light {
  display: none;
}

[data-theme='light'] .brand-logo--dark {
  display: none;
}

[data-theme='light'] .brand-logo--light {
  display: block;
}
