/* ============ DESIGN TOKENS & VARIABLES ============ */
:root {
  /* Color Palette - Dark Theme */
  --ink: #0A0A0B;          /* base background */
  --carbon: #141416;       /* panel background */
  --carbon-2: #1B1B1E;     /* raised elements */
  --line: #2A2A2F;         /* borders */
  --line-soft: #202024;    /* soft borders */
  --bone: #F4F2ED;         /* primary text (warm white) */
  --muted: #8C8C93;        /* secondary text */
  --faint: #5C5C63;        /* tertiary text */

  /* Signal Colors */
  --red: #378ADD;          /* brand blue — action */
  --red-deep: #185FA5;     /* deep blue */
  --red-glow: rgba(55, 138, 221, 0.16);
  --ok: #9AA0A6;           /* success/completed */

  /* Spacing & Layout */
  --radius: 10px;
  --radius-sm: 7px;
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 14px;
  --gap-lg: 18px;
  --gap-xl: 26px;

  /* Shadows */
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 8px 30px rgba(0, 0, 0, 0.45);

  /* Typography */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'Space Mono', 'SFMono-Regular', monospace;

  /* Z-Index Scale */
  --z-base: 1;
  --z-fixed: 20;
  --z-sidebar: 70;
  --z-dropdown: 50;
  --z-modal: 60;
  --z-scrim: 80;
  --z-login: 100;
  --z-lightbox: 90;
}

/* Base Resets */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection {
  background: var(--red);
  color: #fff;
}

button {
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--mono);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
