/* ============================================================
   SOLITUDE LABS — Design Tokens
   Centralized variables for colors, type, spacing, motion
   ============================================================ */

:root {
  /* Color · Surfaces */
  --white: #ffffff;
  --paper: #faf8f3;
  --paper-2: #f4f1ea;
  --paper-3: #ece8de;

  /* Color · Ink */
  --ink: #0e0e0c;
  --ink-soft: #2a2a26;
  --ink-mute: #4a4842;
  --mute: #7a7771;
  --mute-soft: #a8a59e;

  /* Color · Lines */
  --line: #e5e2d9;
  --line-2: #cfc9bc;
  --line-3: #b8b1a0;

  /* Color · Accent */
  --gold: #a88a4d;
  --gold-soft: #e8dcc4;
  --gold-deep: #7a6232;
  --gold-bright: #c8a96e;

  /* Color · Status */
  --green: #3f6d4a;
  --green-soft: #d4e1d6;
  --red: #8a3a3a;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Menlo, monospace;

  /* Spacing scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Container */
  --max-w: 1280px;
  --gutter: 48px;
  --gutter-mobile: 24px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration: 0.25s;
  --duration-slow: 0.4s;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 14, 12, 0.04);
  --shadow: 0 4px 16px rgba(14, 14, 12, 0.06);
  --shadow-lg: 0 12px 40px rgba(14, 14, 12, 0.10);

  /* Z-index */
  --z-nav: 100;
  --z-modal: 200;
  --z-toast: 300;
}

/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important; /* halt infinite loops (marquee, pill-pulse) */
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
