/* Rally — shared tokens and primitives */

:root {
  --ink: #0d1b16;
  --ink-2: #23332d;
  --muted: #5d6c66;
  --faint: #8a9892;
  --line: #e2e6df;
  --line-2: #eef1ec;
  --bg: #f5f6f1;
  --card: #ffffff;

  --green-950: #072a21;
  --green-900: #0b3d30;
  --green-800: #0f4f3e;
  --green-700: #12624c;
  --green-600: #17795d;
  --green-100: #e2f1e8;
  --green-50: #f0f8f3;

  --ball: #d7f24c;
  --ball-600: #bcd92e;
  --ball-100: #f4fbd2;

  --red: #d2373d;
  --red-600: #b32a30;
  --red-50: #fdeeee;
  --amber: #b86e00;
  --amber-50: #fff4dd;
  --blue: #2a5fd0;
  --blue-50: #ebf1ff;
  --violet: #6a4bd1;
  --violet-50: #f1edff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 22, 0.06);
  --shadow: 0 1px 2px rgba(13, 27, 22, 0.05), 0 6px 20px rgba(13, 27, 22, 0.06);
  --shadow-lg: 0 2px 6px rgba(13, 27, 22, 0.08), 0 24px 60px rgba(13, 27, 22, 0.16);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  height: 50px;
  padding: 0 22px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-ball {
  background: var(--ball);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.btn-ball:hover {
  background: #e2f86a;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: var(--ink-2);
}

.btn-green {
  background: var(--green-700);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-600);
}

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

.btn-red:hover {
  background: var(--red-600);
}

.btn-outline {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: #c9cfc7;
  background: #fafbf8;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: rgba(13, 27, 22, 0.05);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
