:root {
  color-scheme: light;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --bg: #f7f7f2;
  --bg-elev-1: #ffffff;
  --bg-elev-2: #fbfbf7;
  --surface-alt: #eeeee7;
  --surface-alt-3: #deded3;
  --fg: #171915;
  --fg-muted: #50564d;
  --fg-dim: #6c7267;
  --fg-faint: #8c9386;
  --border: #dddcd1;
  --border-strong: #c4c4b6;
  --border-bright: #9aa190;
  --accent: #19764a;
  --accent-faint: #e3f1e9;
  --hover-tint: rgba(25, 118, 74, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--fg);
  background: var(--bg-elev-1);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.btn:hover {
  border-color: var(--border-bright);
  background: var(--hover-tint);
}

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

.btn.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.btn.primary:hover {
  border-color: #145f3c;
  background: #145f3c;
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
}

.btn.sm {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12.5px;
}

.btn.lg {
  min-height: 44px;
}

.mono {
  font-family: var(--font-mono);
}

.tiny {
  font-size: 11px;
}

.dim {
  color: var(--fg-faint);
}

::selection {
  color: #ffffff;
  background: var(--accent);
}
