/**
 * Raclavi · Design Tokens
 * Copy this into your global stylesheet (or import it).
 * Prefix `--raclavi-` keeps it namespaced if you're integrating into an existing system.
 */

:root {
  /* ─── Color · brand ─── */
  --raclavi-blue:      #0B3A6B;  /* Primary · 60% of usage */
  --raclavi-blue-2:    #154E89;  /* Hover / pressed state on blue surfaces */
  --raclavi-green:     #1F7A5A;  /* Support · success / stamp complete */
  --raclavi-amber:     #E8B53D;  /* Support · highlight, the "loyal customer" dot */

  /* ─── Color · neutral ─── */
  --raclavi-paper:     #F4EFE6;  /* Default background */
  --raclavi-paper-2:   #ECE5D7;  /* Raised surface · cards on paper */
  --raclavi-paper-3:   #DDD3BE;  /* Pressed / divider variant */
  --raclavi-ink:       #14181F;  /* Body text · monochrome dark logo */
  --raclavi-ink-2:     #4A4F58;  /* Secondary text · captions */
  --raclavi-rule:      rgba(20, 24, 31, 0.10); /* Hairlines, dividers */

  /* ─── Type ─── */
  --raclavi-font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --raclavi-font-weight-regular: 400;
  --raclavi-font-weight-medium: 500;
  --raclavi-font-weight-semibold: 600;
  --raclavi-font-weight-bold: 700;
  --raclavi-font-weight-black: 800;       /* used ONLY for the "cla" syllable in the wordmark */

  --raclavi-tracking-display: -0.025em;   /* big headings & wordmark */
  --raclavi-tracking-body: -0.005em;
  --raclavi-tracking-caps: 0.12em;        /* labels, eyebrows */

  /* ─── Radius ─── */
  --raclavi-radius-sm: 6px;
  --raclavi-radius-md: 10px;
  --raclavi-radius-lg: 14px;
  --raclavi-radius-xl: 22px;
  --raclavi-radius-pill: 9999px;
  --raclavi-radius-icon: 22%;             /* iOS-style app icon corner */

  /* ─── Spacing scale (4pt) ─── */
  --raclavi-space-1: 4px;
  --raclavi-space-2: 8px;
  --raclavi-space-3: 12px;
  --raclavi-space-4: 16px;
  --raclavi-space-5: 24px;
  --raclavi-space-6: 32px;
  --raclavi-space-7: 48px;
  --raclavi-space-8: 64px;

  /* ─── Elevation ─── */
  --raclavi-shadow-sm: 0 2px 6px -2px rgba(20, 24, 31, 0.12);
  --raclavi-shadow-md: 0 6px 18px -8px rgba(20, 24, 31, 0.20);
  --raclavi-shadow-lg: 0 14px 28px -12px rgba(20, 24, 31, 0.30);

  /* ─── Motion ─── */
  --raclavi-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --raclavi-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --raclavi-duration-fast: 160ms;
  --raclavi-duration: 240ms;
  --raclavi-duration-slow: 480ms;
}

/* ─── Dark surface ─── */
[data-theme="dark"] {
  --raclavi-paper:   #14181F;
  --raclavi-paper-2: #1C2129;
  --raclavi-paper-3: #262C36;
  --raclavi-ink:     #F4EFE6;
  --raclavi-ink-2:   #B7BAC0;
  --raclavi-rule:    rgba(244, 239, 230, 0.10);
}

/* ─── Recommended global base ─── */
html, body {
  background: var(--raclavi-paper);
  color: var(--raclavi-ink);
  font-family: var(--raclavi-font-family);
  font-weight: var(--raclavi-font-weight-regular);
  letter-spacing: var(--raclavi-tracking-body);
  -webkit-font-smoothing: antialiased;
}
