@import url("fonts.css");

/* Rally — shared tokens and primitives */

:root {
  --ink: #193e35;
  --ink-2: #354d43;
  --muted: #626c61;
  --faint: #5c6c5b;
  --line: #d9dbcf;
  --line-2: #eaece2;
  --bg: #f3f3eb;
  --card: #fffef9;
  --paper: #f6f3e9;
  --accent: #b84229;
  --accent-hover: #94351f;
  --accent-light: #f8e9df;
  --green-950: #15382f;
  --green-900: #1d493d;
  --green-800: #285d4d;
  --green-700: #2e6550;
  --green-600: #39765d;
  --green-100: #dce8da;
  --green-50: #edf2e8;
  --ball: #edc768;
  --ball-600: #c8a043;
  --ball-100: #f5edce;
  --red: #b83e2c;
  --red-600: #943021;
  --red-50: #f9eae3;
  --amber: #88580e;
  --amber-50: #faf0d8;
  --blue: #365d79;
  --blue-50: #e9eff2;
  --violet: #6c577b;
  --violet-50: #f0ebf2;
  --radius: 4px;
  --radius-sm: 3px;
  --shadow-sm: none;
  --shadow: 0 2px 0 rgba(25, 62, 53, 0.04);
  --shadow-lg: 0 12px 40px rgba(25, 62, 53, 0.16);
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", 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: 40px;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: -0.065em;
  text-decoration: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 3px;
  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 {
  filter: brightness(0.92);
}

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

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 3px;
}

.btn-ball {
  background: var(--accent);
  color: var(--card);
  box-shadow: none;
}

.btn-ball:hover {
  background: var(--accent-hover);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  pointer-events: none;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
