/* Rally — shared tokens and primitives
   The palette comes off a real pickleball court: blue playing surface,
   green apron, white paint, optic-yellow ball. */

:root {
  --ink: #0e1726;
  --ink-2: #263042;
  --muted: #586173;
  --faint: #868d9b;
  --line: #d7dae0;
  --line-2: #e9ebef;
  --bg: #f2f2ee;
  --card: #ffffff;

  --court: #2756a8;
  --court-700: #1e4688;
  --court-900: #14305f;
  --court-100: #e3ebf8;
  --court-50: #f1f5fc;

  --apron: #2e6b4e;
  --apron-700: #23553d;
  --apron-100: #dfeee5;

  --ball: #dcf247;
  --ball-600: #c3da2a;
  --ball-100: #f6fbd4;
  --ball-ink: #5c6a00;

  --red: #d4352b;
  --red-600: #b32920;
  --red-50: #fdecea;
  --amber: #b36a00;
  --amber-50: #fff3dc;
  --blue: var(--court);
  --blue-50: var(--court-100);
  --violet: #6b46c9;
  --violet-50: #f0ebff;

  /* Legacy names some scripts and pages still reference */
  --green-700: var(--apron);
  --green-600: #35805c;
  --green-100: var(--apron-100);

  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 0 rgba(14, 23, 38, 0.06);
  --shadow: 0 1px 2px rgba(14, 23, 38, 0.06), 0 8px 24px rgba(14, 23, 38, 0.08);
  --shadow-lg: 0 2px 6px rgba(14, 23, 38, 0.1), 0 28px 64px rgba(14, 23, 38, 0.22);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Big Shoulders Display", "Archivo", "Arial Narrow", sans-serif;
  --mono: "IBM Plex 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;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--court);
  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;
}

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

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.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: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
}

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

.btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

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

.btn-ball {
  background: var(--ball);
  color: var(--ink);
  border-color: var(--ball-600);
}

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

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

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

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

.btn-court:hover {
  background: var(--court-700);
}

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

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

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

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

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

.btn-outline:hover {
  border-color: var(--ink);
}

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

.btn-ghost:hover {
  background: rgba(14, 23, 38, 0.06);
}

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