/* Redlining docs site. Values from design-systems/silverballmania v2.0.0 tokens.css (light theme,
   see .claude/design-system.json D1); hand-copied, no build step. */
:root {
  --font-heading: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, Monaco, monospace;
  --bg: #ffffff;
  --bg-elevated: #f3f4f6;
  --bg-sunken: #e9ebef;
  --text: #0a0a0a;
  --text-secondary: #4b5563;
  --text-muted: #5d6875;
  --accent: #b92b22;
  --accent-fill: #9e2018;
  --accent-fill-hover: #8c1c15;
  --link: #027a29;
  --link-hover: #015e20;
  --border: #d7dae0;
  --border-strong: #b9bec7;
  --warning-soft: #fbf5e3;
  --warning-text: #8a5a06;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-2: 0 2px 4px rgba(10, 10, 10, 0.06), 0 8px 16px rgba(10, 10, 10, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  font: 16px/1.5 var(--font-body);
  color: var(--text);
  background: var(--bg);
}
a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: pretty;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}
h3 {
  font-size: 1.125rem;
  margin-top: 1.75rem;
}
p,
ul,
ol {
  margin: 0 0 1rem;
}
li {
  margin-bottom: 0.35rem;
}
code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
code {
  background: var(--bg-elevated);
  padding: 0.1em 0.35em;
  border-radius: 0.375rem;
}
kbd {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 0.375rem;
  background: var(--bg);
  font-size: 0.85em;
}
pre {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--bg-sunken);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
img {
  max-width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.note {
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.note.warn {
  background: var(--warning-soft);
  color: var(--warning-text);
  border-color: transparent;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}
.brand b {
  color: var(--accent);
}
.brand img {
  display: block;
  width: 24px;
  height: 24px;
}
.top nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.top nav a {
  color: var(--text-secondary);
  font-weight: 500;
}
.top nav a[aria-current='page'] {
  color: var(--accent-fill);
}
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
@media (min-width: 900px) {
  .layout {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}
.toc {
  font-size: 0.9rem;
  position: sticky;
  top: 4.5rem;
  align-self: start;
}
.toc a {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.2rem 0;
}
.toc a:hover {
  color: var(--link);
}
.toc h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}
main > *:first-child {
  margin-top: 0;
}
.hero {
  padding: 4rem 0 2rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}
.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 40rem;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  background: var(--accent-fill);
  color: #fff;
}
.btn:hover {
  background: var(--accent-fill-hover);
  color: #fff;
  text-decoration: none;
}
.btn.secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.secondary:hover {
  background: var(--bg-sunken);
}
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 2rem 0;
}
.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
}
.card h3 {
  margin-top: 0;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.5rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-fill);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  line-height: 2rem;
}
footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 2rem 0;
}
details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
}
details summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
}
details p:last-child,
details pre:last-child {
  margin-bottom: 0;
}

/* Copyable prompt */
.prompt {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow-2);
}
.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.prompt pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg-sunken);
  white-space: pre-wrap;
}
.copy {
  font: 600 0.85rem var(--font-heading);
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent-fill);
  color: #fff;
  cursor: pointer;
}
.copy:hover {
  background: var(--accent-fill-hover);
}
.copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
