/* Rally — shared tokens and base styles */

:root {
  --ink: #12201a;
  --ink-2: #3b4a42;
  --ink-3: #6b7a72;
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --card: #ffffff;
  --line: #e2ddd0;
  --line-2: #d3cdbd;

  --court: #1d5a42;
  --court-deep: #0f3527;
  --court-ink: #0a2a1e;
  --court-soft: #e3efe8;
  --ball: #d8f14a;
  --ball-deep: #b9d21f;

  --clay: #d4552f;
  --clay-soft: #fbe9e2;
  --amber: #c98a12;
  --amber-soft: #fbf1db;
  --sky: #2f63c9;
  --sky-soft: #e5edfb;
  --plum: #7347b8;
  --plum-soft: #efe8fa;
  --teal: #13857a;
  --teal-soft: #dff2ef;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 26, 0.06);
  --shadow: 0 1px 2px rgba(18, 32, 26, 0.05), 0 6px 20px -8px rgba(18, 32, 26, 0.16);
  --shadow-lg: 0 2px 4px rgba(18, 32, 26, 0.06), 0 24px 60px -20px rgba(18, 32, 26, 0.35);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

img, svg { display: block; }

button {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.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;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.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: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }

.btn-primary { background: var(--court); color: #fff; }
.btn-primary:hover { background: var(--court-deep); }

.btn-ball { background: var(--ball); color: var(--court-ink); }
.btn-ball:hover { background: #e4f86a; box-shadow: 0 0 0 4px rgba(216, 241, 74, 0.18); }

.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink-3); }

.btn-danger { background: transparent; border-color: #ebc3b5; color: #a93c1b; }
.btn-danger:hover { background: var(--clay-soft); border-color: var(--clay); }

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