/* ReadRift RPG theme tokens */
:root {
  /* Primary colors */
  --rr-forest-green: #2f7d5a;
  --rr-forest-deep: #153d2c;
  --rr-gold: #d8a340;
  --rr-gold-bright: #ffe28c;
  --rr-parchment: #f6efd9;
  --rr-parchment-light: #fff9e9;
  --rr-dark-wood: #3b2618;
  --rr-dark-wood-2: #24170f;
  --rr-stone: #6f746c;
  --rr-stone-light: #d7d2c4;
  --rr-magic-blue: #35b7d8;
  --rr-epic-purple: #7b4fd6;
  --rr-danger-red: #b5463a;

  /* Text colors */
  --rr-text-title: #f7e2a0;
  --rr-text-body: #251d14;
  --rr-text-muted: #6c6254;
  --rr-text-inverse: #fff8e6;
  --rr-text-dialogue: #392818;

  /* Spacing */
  --rr-space-1: 4px;
  --rr-space-2: 8px;
  --rr-space-3: 12px;
  --rr-space-4: 16px;
  --rr-space-5: 20px;
  --rr-space-6: 24px;
  --rr-space-8: 32px;
  --rr-space-10: 40px;

  /* Border radius */
  --rr-radius-sm: 6px;
  --rr-radius-md: 8px;
  --rr-radius-lg: 12px;
  --rr-radius-xl: 16px;
  --rr-radius-round: 999px;

  /* Borders */
  --rr-border-faint: rgba(255, 226, 140, 0.18);
  --rr-border-gold: rgba(216, 163, 64, 0.62);
  --rr-border-wood: rgba(59, 38, 24, 0.72);
  --rr-border-leaf: rgba(47, 125, 90, 0.42);

  /* Panel shadows */
  --rr-shadow-panel: 0 18px 46px rgba(16, 30, 24, 0.24);
  --rr-shadow-card: 0 10px 24px rgba(16, 30, 24, 0.18);
  --rr-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(36, 23, 15, 0.28);

  /* Glow effects */
  --rr-glow-gold: 0 0 22px rgba(255, 226, 140, 0.42);
  --rr-glow-leaf: 0 0 24px rgba(68, 176, 111, 0.36);
  --rr-glow-blue: 0 0 24px rgba(53, 183, 216, 0.38);
  --rr-glow-purple: 0 0 24px rgba(123, 79, 214, 0.36);
  --rr-glow-danger: 0 0 22px rgba(181, 70, 58, 0.32);

  /* Animation timing */
  --rr-motion-fast: 120ms;
  --rr-motion-medium: 220ms;
  --rr-motion-slow: 420ms;
  --rr-motion-glow: 1800ms;
  --rr-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --rr-ease-bounce: cubic-bezier(0.2, 0.8, 0.2, 1.15);

  /* Typography */
  --rr-font-title: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rr-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rr-title-size: clamp(1.45rem, 2vw, 2rem);
  --rr-subtitle-size: clamp(1.05rem, 1.3vw, 1.25rem);
  --rr-body-size: 1rem;
  --rr-small-size: 0.86rem;
  --rr-dialogue-size: 1rem;
  --rr-line-height-tight: 1.15;
  --rr-line-height-body: 1.5;
}

@media (prefers-contrast: more) {
  :root {
    --rr-border-faint: rgba(255, 226, 140, 0.54);
    --rr-border-gold: rgba(255, 226, 140, 0.92);
    --rr-text-muted: #473b2d;
    --rr-shadow-panel: 0 0 0 2px rgba(255, 226, 140, 0.72);
  }
}
