/* Slingback docs — static site theme (no webfonts, no external requests). */
:root {
	--ink: #0f172a;
	--ink-soft: #1e293b;
	--muted: #475569;
	--line: #e2e8f0;
	--wash: #f8fafc;
	--accent: #2563eb;
	--accent-soft: #eff6ff;
	--good: #16a34a;
	--bad: #dc2626;
	--amber: #d97706;
	--radius: 10px;
	--wrap: 760px;
	--wide: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "DejaVu Sans", "Liberation Sans", sans-serif;
	color: var(--ink);
	background: #fff;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
	font: 0.9em/1.5 "DejaVu Sans Mono", "Liberation Mono", monospace;
	background: var(--wash);
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: 1px 5px;
}
pre {
	background: var(--ink);
	color: #e2e8f0;
	padding: 14px 16px;
	border-radius: var(--radius);
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.55;
}
pre code { background: none; border: 0; color: inherit; padding: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .bar {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.brand b { font-weight: 700; }
.brand span { color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hero (home) */
.hero {
	background:
		radial-gradient(640px 320px at 88% -20%, rgba(59, 130, 246, .5), transparent 62%),
		linear-gradient(120deg, var(--ink) 0%, var(--ink-soft) 60%, #172554 100%);
	color: #f8fafc;
	padding: 56px 24px 52px;
}
.hero .inner { max-width: var(--wide); margin: 0 auto; }
.hero h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: -0.5px; }
.hero p { margin: 0; max-width: 640px; font-size: 18px; color: #dbeafe; }

/* Layout */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 28px 24px 56px; }
.narrow { max-width: var(--wrap); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs b { font-weight: 600; color: var(--ink); }
.crumbs span { margin: 0 6px; color: #94a3b8; }

article h1 { font-size: 30px; letter-spacing: -0.4px; margin: 0 0 6px; }
article .lede { font-size: 18px; color: var(--muted); margin-top: 0; }
article h2 {
	font-size: 22px;
	margin: 40px 0 12px;
	padding-top: 8px;
	border-top: 1px solid var(--line);
}
article h3 { font-size: 17px; margin: 26px 0 8px; }
article p, article ul, article ol { margin: 12px 0; }
article li { margin: 6px 0; }
article img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin: 18px 0;
}
figcaption { font-size: 14px; color: var(--muted); margin: -10px 0 18px; }

/* Badges */
.badge {
	display: inline-block;
	vertical-align: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	border-radius: 999px;
	padding: 3px 10px;
	margin-left: 10px;
}
.badge-lite { background: var(--accent-soft); color: var(--accent); border: 1px solid #bfdbfe; }
.badge-pro { background: #fffbeb; color: var(--amber); border: 1px solid #fde68a; }

/* Cards / indexes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 22px 0; }
.card {
	display: block;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	color: var(--ink);
	background: var(--wash);
}
.card:hover { border-color: var(--accent); text-decoration: none; background: #fff; }
.card b { display: block; margin-bottom: 4px; font-size: 16px; }
.card span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.linklist { list-style: none; padding: 0; margin: 10px 0; columns: 2; column-gap: 32px; }
.linklist li { break-inside: avoid; margin: 7px 0; }
.linklist a { display: inline-block; }

.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 28px 0 4px; }

/* Error-entry (four-part) */
.entry { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.entry .part { padding: 14px 18px; border-top: 1px solid var(--line); }
.entry .part:first-child { border-top: 0; background: var(--wash); }
.entry .part > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.entry .part p { margin: 0; }

/* Notes */
.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; }
.note.warn { border-color: var(--amber); background: #fffbeb; }
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: var(--wash); font-weight: 600; }
td code { white-space: nowrap; }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; margin-top: 40px; }
.site-footer .cols {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 40px 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	font-size: 14px;
}
.site-footer h4 { color: #f8fafc; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .fine {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 0 24px 34px;
	font-size: 13px;
	color: #64748b;
}

@media (max-width: 640px) {
	.hero h1 { font-size: 27px; }
	article h1 { font-size: 25px; }
	.linklist { columns: 1; }
}
