/* ============================================================
   rzumarli DS — Design Tokens
   Implemented from "Design System V.2" (Figma), foundations as
   corrected on 2026-11-18. Prefix: --rds-*. Scope class: .rds

   Provenance notes:
   - Primary ramp, semantic anchors, base colors, spacing and
     radius scales are the approved Figma foundations.
   - Neutral 100-800 are interpolated in OKLCH between the two
     approved endpoints (50 #F8FAFE and 900 #0B0C0F). Verify
     against the Figma variables at the next audit.
   - Semantic soft/strong steps are derived from the approved
     anchors in OKLab, except success-strong (#15803D), which
     is the approved solid fill for white text.
   ============================================================ */

:root {
  /* ---------- Neutral (OKLCH ramp) ---------- */
  --rds-neutral-50:  #F8FAFE;
  --rds-neutral-100: #DADBDF;
  --rds-neutral-200: #BCBEC2;
  --rds-neutral-300: #9FA1A5;
  --rds-neutral-400: #838589;
  --rds-neutral-500: #686A6E;
  --rds-neutral-600: #4F5054;
  --rds-neutral-700: #36383B;
  --rds-neutral-800: #202124;
  --rds-neutral-900: #0B0C0F;

  /* ---------- Primary (brand blue, anchored at 600) ---------- */
  --rds-primary-50:  #EEF4FE;
  --rds-primary-100: #DCE9FD;
  --rds-primary-200: #BAD2FC;
  --rds-primary-300: #8FB4FA;
  --rds-primary-400: #6392F8;
  --rds-primary-500: #4176F8;
  --rds-primary-600: #2565F9;
  --rds-primary-700: #1A4ED0;
  --rds-primary-800: #1740AA;
  --rds-primary-900: #1B3573;

  /* ---------- Base ---------- */
  --rds-white: #FAFAFA;
  --rds-black: #151515;

  /* ---------- Semantic ---------- */
  --rds-info:         #0284C7;
  --rds-info-soft:    #E1ECF5;
  --rds-info-strong:  #1170A8;

  --rds-success:        #16A34A;
  --rds-success-soft:   #E3F0E5;
  --rds-success-strong: #15803D;

  --rds-warning:        #CA8A04;
  --rds-warning-soft:   #F5EDE2;
  --rds-warning-strong: #A97516;

  --rds-danger:        #DC2626;
  --rds-danger-soft:   #FBE4E1;
  --rds-danger-strong: #B92725;

  /* ---------- Surface & text ---------- */
  --rds-surface: var(--rds-white);
  --rds-surface-subtle: var(--rds-neutral-50);
  --rds-border: var(--rds-neutral-200);
  --rds-text: var(--rds-neutral-900);
  --rds-text-muted: var(--rds-neutral-500);

  /* ---------- Typography ---------- */
  --rds-font-sans: "Geist", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --rds-font-mono: "Geist Mono", ui-monospace, "SFMono-Regular",
    Consolas, monospace;

  --rds-text-xs: 0.75rem;    /* 12px */
  --rds-text-sm: 0.875rem;   /* 14px */
  --rds-text-base: 1rem;     /* 16px */
  --rds-text-lg: 1.125rem;   /* 18px */
  --rds-text-xl: 1.375rem;   /* 22px */
  --rds-text-2xl: 1.75rem;   /* 28px */
  --rds-text-3xl: 2.25rem;   /* 36px */
  --rds-text-4xl: 2.625rem;  /* 42px */

  --rds-weight-regular: 400;
  --rds-weight-medium: 500;
  --rds-weight-semibold: 600;
  --rds-weight-bold: 700;

  --rds-leading-tight: 1.25;
  --rds-leading-normal: 1.5;
  --rds-leading-relaxed: 1.75;

  /* Body text in the DS: 16px Medium, 24px line-height, -0.48px tracking */
  --rds-tracking-body: -0.03em;
  --rds-tracking-heading: -0.02em;

  /* ---------- Spacing (approved scale; 12 is off scale) ---------- */
  --rds-space-2: 2px;
  --rds-space-4: 4px;
  --rds-space-8: 8px;
  --rds-space-16: 16px;
  --rds-space-24: 24px;
  --rds-space-32: 32px;
  --rds-space-48: 48px;
  --rds-space-64: 64px;

  /* ---------- Radius (approved scale) ---------- */
  --rds-radius-2: 2px;
  --rds-radius-4: 4px;
  --rds-radius-8: 8px;
  --rds-radius-12: 12px;
  --rds-radius-16: 16px;
  --rds-radius-24: 24px;
  --rds-radius-32: 32px;
  --rds-radius-64: 64px;
  --rds-radius-99: 99px;

  /* ---------- Shadows (based on neutral-900) ---------- */
  --rds-shadow-sm: 0 1px 2px rgba(11, 12, 15, 0.06);
  --rds-shadow-md: 0 4px 12px rgba(11, 12, 15, 0.08);
  --rds-shadow-lg: 0 12px 32px rgba(11, 12, 15, 0.12);

  /* ---------- Motion ---------- */
  --rds-transition-fast: 120ms ease;
  --rds-transition-base: 200ms ease;
}

/* ---------- Base reset (opt-in, keeps things predictable) ---------- */
.rds,
.rds * {
  box-sizing: border-box;
}

.rds {
  font-family: var(--rds-font-sans);
  font-size: var(--rds-text-base);
  line-height: var(--rds-leading-normal);
  color: var(--rds-text);
  background: var(--rds-surface);
  -webkit-font-smoothing: antialiased;
}
