/* Locally hosted fonts: DM Sans and Instrument Serif (SIL Open Font License). */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/dm-sans-400-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/dm-sans-500-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/dm-sans-600-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/dm-sans-700-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/dm-sans-800-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/instrument-serif-400-italic.ttf) format('truetype');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/instrument-serif-400-normal.ttf) format('truetype');
}
/* Rally — shared tokens and primitives */

:root {
  --ink: #202f82;
  --ink-2: #303b5c;
  --muted: #60646c;
  --faint: #656a78;
  --line: #d9d8ce;
  --line-2: #eeede6;
  --bg: #f6f5ed;
  --card: #fffef9;

  --green-950: #1f2f80;
  --green-900: #263a91;
  --green-800: #31534c;
  --green-700: #356953;
  --green-600: #47775d;
  --green-100: #e6eddf;
  --green-50: #eef2e7;

  --ball: #f3ac74;
  --ball-600: #e08d55;
  --ball-100: #fff0e1;

  --red: #ae4632;
  --red-600: #9e3f2c;
  --red-50: #faf0e9;
  --amber: #865619;
  --amber-50: #faf1dc;
  --blue: #3049ad;
  --blue-50: #edf0fa;
  --violet: #6a4bd1;
  --violet-50: #f1edff;

  --radius: 4px;
  --radius-sm: 3px;
  --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);

  --display: "Instrument Serif", Georgia, serif;
  --font: "DM Sans", 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: 4px;
  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: 4px;
}

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

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

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

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

.logo { font-size: 36px; font-weight: 800; letter-spacing: -2px; gap: 10px; }
.logo-mark { width: 34px; height: 34px; }
.btn { font-size: 13px; height: 40px; }
.btn-lg { height: 50px; font-size: 14px; }
.btn-sm { height: 31px; font-size: 12px; }
.btn-ink, .btn-ball { border-color: var(--ink); }
::selection { background: #f3ac74; color: #202f82; }
