/* Baton site – shared styles */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-card: #ffffff;
  --border: #e3e5ee;
  --text: #1a1c25;
  --text-dim: #5b6072;
  --accent: #5b4bdb;
  --accent-soft: #eeebff;
  --accent-text: #4536c9;
  --code-bg: #f1f2f7;
  --shadow: 0 1px 2px rgba(20, 22, 40, .05), 0 8px 24px rgba(20, 22, 40, .05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12131a;
    --bg-soft: #171922;
    --bg-card: #1b1d27;
    --border: #2a2d3a;
    --text: #eceef5;
    --text-dim: #9aa0b4;
    --accent: #8f82ff;
    --accent-soft: #241f45;
    --accent-text: #b4abff;
    --code-bg: #232632;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.site-nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14.5px; }
.site-nav a { color: var(--text-dim); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 700;
}
.hero p.lede {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: 18.5px;
  color: var(--text-dim);
}
.cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }

/* Sections */
section { padding: 52px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }
h2 {
  font-size: 25px;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  font-weight: 680;
}
h2 + .sub { margin: 0 0 26px; color: var(--text-dim); font-size: 16px; }
h3 { font-size: 17px; margin: 0 0 6px; font-weight: 650; letter-spacing: -.01em; }

/* Feature grid */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 2px 7px;
  margin-bottom: 9px;
}

/* Spotlight */
.spotlight {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.spotlight h2 { margin-bottom: 10px; }
.spotlight p { color: var(--text-dim); margin: 0 0 12px; }
.spotlight p:last-child { margin-bottom: 0; }
.spotlight strong { color: var(--text); font-weight: 650; }

/* Steps */
ol.steps { margin: 0; padding-left: 22px; }
ol.steps li { margin-bottom: 12px; color: var(--text-dim); }
ol.steps li strong { color: var(--text); }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--code-bg);
  border-radius: 5px;
  padding: 1.5px 5px;
}

/* Prose pages */
.prose { padding: 46px 0 64px; }
.prose h1 { font-size: clamp(28px, 4.5vw, 36px); letter-spacing: -.025em; margin: 0 0 6px; }
.prose .meta { color: var(--text-dim); font-size: 14.5px; margin: 0 0 32px; }
.prose h2 { font-size: 20px; margin: 34px 0 8px; }
.prose p, .prose li { color: var(--text-dim); }
.prose li { margin-bottom: 7px; }
.prose ul { padding-left: 22px; }
.prose .note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  padding: 14px 16px;
  margin: 22px 0;
}
.prose .note p { margin: 0; }

table.plain { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
table.plain th, table.plain td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.plain th { color: var(--text); font-weight: 650; }
table.plain td { color: var(--text-dim); }
table.plain td code { white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 46px;
  color: var(--text-dim);
  font-size: 14px;
}
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer .links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
