/* =========================================================================
   SEO Lessons — one stylesheet.

   Two layers on purpose: raw values first, roles second. Components only ever
   reference roles, so a rebrand is a change to the top of this file and nothing
   else. Black ink, warm white paper, hairline rules. The emojis are the colour —
   nothing else in the palette competes with them.
   ====================================================================== */

/* -------- 1. Raw values ------------------------------------------------ */
:root {
	--c-ink-950:   #14130f;
	--c-ink-700:   #45423a;
	--c-ink-500:   #6f6a5f;
	--c-ink-300:   #a39d90;
	--c-paper:     #ffffff;
	--c-wash:      #faf8f4;
	--c-wash-deep: #f3f0e9;
	--c-line:      #e8e3d9;
	--c-line-mid:  #d6cfc1;
	--c-live:      #1b7f4b;

	--f-display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--s-1:  .25rem;
	--s-2:  .5rem;
	--s-3:  .75rem;
	--s-4:  1rem;
	--s-5:  1.5rem;
	--s-6:  2rem;
	--s-7:  3rem;
	--s-8:  4rem;
	--s-9:  6rem;

	--r-sm:   10px;
	--r-md:   16px;
	--r-lg:   22px;
	--r-pill: 999px;

	--shadow-1: 0 1px 2px rgba(20,19,15,.04), 0 2px 8px rgba(20,19,15,.03);
	--shadow-2: 0 2px 4px rgba(20,19,15,.05), 0 10px 26px rgba(20,19,15,.07);
	--shadow-3: 0 4px 10px rgba(20,19,15,.06), 0 18px 48px rgba(20,19,15,.10);

	--ease: cubic-bezier(.2,.7,.3,1);
}

/* -------- 2. Roles ----------------------------------------------------- */
:root {
	--ink:        var(--c-ink-950);
	--ink-muted:  var(--c-ink-700);
	--ink-faint:  var(--c-ink-500);
	--bg:         var(--c-wash);
	--surface:    var(--c-paper);
	--surface-2:  var(--c-wash-deep);
	--line:       var(--c-line);
	--line-hover: var(--c-line-mid);
	--accent:     var(--c-ink-950);

	--container: 1140px;
	--prose: 40rem;

	--t-xs:   .8125rem;
	--t-sm:   .9375rem;
	--t-base: clamp(1.0625rem, .99rem + .32vw, 1.1875rem);
	--t-lg:   clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
	--t-xl:   clamp(1.375rem, 1.23rem + .7vw, 1.75rem);
	--t-2xl:  clamp(1.75rem, 1.5rem + 1.1vw, 2.375rem);
	--t-3xl:  clamp(2.125rem, 1.6rem + 2.3vw, 3.5rem);
	--t-4xl:  clamp(2.5rem, 1.7rem + 3.4vw, 4.25rem);
}

/* -------- 3. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: var(--t-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -.02em;
	margin: 0 0 var(--s-4);
	text-wrap: balance;
}

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }

code, kbd, pre { font-family: var(--f-mono); font-size: .875em; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

button { font: inherit; color: inherit; }

:focus-visible {
	outline: 2.5px solid var(--ink);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* -------- 4. Utilities ------------------------------------------------- */
.sl-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.sl-skip {
	position: absolute; left: -999px; top: 0; z-index: 100;
	background: var(--ink); color: #fff;
	padding: var(--s-3) var(--s-5);
	border-radius: 0 0 var(--r-sm) 0;
	text-decoration: none;
}
.sl-skip:focus { left: 0; }

.sl-wrap {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.sl-wrap--prose { max-width: calc(var(--prose) + 5rem); }

.sl-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sl-section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.sl-eyebrow {
	font-family: var(--f-body);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0 0 var(--s-3);
}

.sl-lede {
	font-size: var(--t-lg);
	color: var(--ink-muted);
	max-width: 46ch;
	line-height: 1.55;
}

.sl-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s-5);
	margin-bottom: var(--s-6);
	flex-wrap: wrap;
}
.sl-section__head h2 { margin: 0; font-size: var(--t-2xl); }
.sl-section__head p { margin: var(--s-2) 0 0; color: var(--ink-muted); max-width: 52ch; }

/* -------- 5. Header ---------------------------------------------------- */
.sl-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--ease), background .25s var(--ease);
}
.sl-header.is-stuck { border-bottom-color: var(--line); }

@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.sl-header { background: rgba(250,248,244,.92); }
}

.sl-header__inner {
	display: flex;
	align-items: center;
	gap: var(--s-5);
	min-height: 4.5rem;
}

.sl-brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	font-family: var(--f-display);
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: -.025em;
	white-space: nowrap;
	margin-right: auto;
}
.sl-brand__mark { flex: none; }

.sl-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(.9rem, 2.4vw, 1.9rem);
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--t-sm);
	font-weight: 500;
}
.sl-nav__list a {
	text-decoration: none;
	color: var(--ink-muted);
	padding: .55rem 0;
	display: inline-block;
	transition: color .18s var(--ease);
}
.sl-nav__list a:hover,
.sl-nav__list .current-menu-item a { color: var(--ink); }

.sl-header__search { flex: none; }
.sl-header__search .sl-bar--compact { width: min(20rem, 34vw); }

@media (max-width: 860px) {
	.sl-header__search { display: none; }
}
@media (max-width: 480px) {
	.sl-header__inner { gap: var(--s-4); }
	.sl-brand { font-size: 1.15rem; }
	.sl-nav__list { font-size: var(--t-xs); }
}

/* -------- 6. Moose ----------------------------------------------------- */
.sl-moose {
	display: inline-flex;
	width: var(--moose-size, 44px);
	height: var(--moose-size, 44px);
	flex: none;
}
.sl-moose svg { width: 100%; height: 100%; display: block; }
.sl-moose__bg { fill: var(--ink); }
.sl-moose__ink { stroke: var(--surface); fill: var(--surface); }

/* -------- 7. The answer bar -------------------------------------------- */
.sl-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--s-3);
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--line-hover);
	border-radius: var(--r-pill);
	box-shadow: var(--shadow-2);
	transition: box-shadow .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.sl-bar:hover { box-shadow: var(--shadow-3); }
.sl-bar:focus-within {
	border-color: var(--ink);
	box-shadow: var(--shadow-3), 0 0 0 4px rgba(20,19,15,.07);
}

.sl-bar--hero {
	padding: .5rem .5rem .5rem .55rem;
	max-width: 38rem;
}
.sl-bar--compact {
	padding: .3rem .3rem .3rem .35rem;
	box-shadow: var(--shadow-1);
}

.sl-bar__face { display: inline-flex; flex: none; }

.sl-bar__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--ink);
	padding: .7rem 0;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.sl-bar__input::placeholder { color: var(--ink-faint); opacity: 1; }
.sl-bar__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.sl-bar--compact .sl-bar__input { font-size: var(--t-sm); padding: .45rem 0; }

.sl-bar__go {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	cursor: pointer;
	transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.sl-bar__go svg { width: 1.2rem; height: 1.2rem; }
.sl-bar__go:hover { transform: translateY(-1px) scale(1.04); }
.sl-bar__go:active { transform: scale(.96); }

.sl-bar--compact .sl-bar__go { width: 2.2rem; height: 2.2rem; }
.sl-bar--compact .sl-bar__go svg { width: .95rem; height: .95rem; }

.sl-bar__results {
	position: absolute;
	top: calc(100% + .6rem);
	left: 0;
	right: 0;
	z-index: 60;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-3);
	padding: var(--s-2);
	max-height: min(26rem, 60vh);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.sl-bar__results[hidden] { display: none; }

.sl-res {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	padding: .7rem .8rem;
	border-radius: var(--r-md);
	text-decoration: none;
	color: inherit;
	transition: background .14s var(--ease);
}
.sl-res:hover,
.sl-res.is-active { background: var(--surface-2); }
.sl-res__emoji { font-size: 1.35rem; line-height: 1; flex: none; }
.sl-res__body { min-width: 0; }
.sl-res__title {
	display: block;
	font-weight: 600;
	font-size: var(--t-sm);
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sl-res__kind {
	display: block;
	font-size: var(--t-xs);
	color: var(--ink-faint);
}
.sl-res--empty {
	padding: 1rem .8rem;
	font-size: var(--t-sm);
	color: var(--ink-muted);
}
.sl-res--all {
	justify-content: center;
	font-weight: 600;
	font-size: var(--t-sm);
	border-top: 1px solid var(--line);
	border-radius: 0 0 var(--r-md) var(--r-md);
	margin-top: var(--s-1);
}

/* Suggestion chips under the hero bar */
.sl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-top: var(--s-4);
	list-style: none;
	padding: 0;
}
.sl-chips button {
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-muted);
	border-radius: var(--r-pill);
	padding: .42rem .85rem;
	font-size: var(--t-xs);
	cursor: pointer;
	transition: border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.sl-chips button:hover {
	border-color: var(--ink);
	color: var(--ink);
	transform: translateY(-1px);
}

/* -------- 8. Hero ------------------------------------------------------ */
.sl-hero {
	padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}
.sl-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.sl-hero h1 {
	font-size: var(--t-4xl);
	margin: 0 0 var(--s-4);
	letter-spacing: -.035em;
}
.sl-hero__desc {
	font-size: var(--t-lg);
	color: var(--ink-muted);
	max-width: 32ch;
	margin-bottom: var(--s-6);
}
.sl-hero__free {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	padding: .35rem .85rem .35rem .5rem;
	font-size: var(--t-xs);
	font-weight: 600;
	color: var(--ink-muted);
	margin-bottom: var(--s-5);
}

@media (max-width: 900px) {
	.sl-hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
	.sl-hero__desc { max-width: 40ch; }
	.sl-bar--hero { max-width: none; }
}

/* -------- 9. Video slot ------------------------------------------------ */
.sl-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-2);
}
.sl-video__play {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: var(--c-ink-950);
	cursor: pointer;
	position: relative;
}
.sl-video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: opacity .25s var(--ease), transform .4s var(--ease); }
.sl-video__play:hover img { opacity: 1; transform: scale(1.02); }
.sl-video__button {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 2.2rem;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.sl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* The placeholder grows past 16:9 rather than clipping its own text on narrow columns. */
.sl-video--soon {
	background:
		radial-gradient(120% 120% at 50% 0%, #ffffff 0%, var(--c-wash-deep) 100%);
	display: grid;
	place-items: center;
	text-align: center;
	aspect-ratio: auto;
	min-height: clamp(15rem, 26vw, 19rem);
}
.sl-video--soon::after {
	content: "";
	position: absolute;
	inset: .75rem;
	border: 1.5px dashed var(--line-hover);
	border-radius: calc(var(--r-lg) - 6px);
	pointer-events: none;
}
.sl-video__inner { padding: var(--s-5); max-width: 30ch; position: relative; z-index: 1; }
.sl-video__glyph { font-size: clamp(2rem, 5vw, 2.9rem); display: block; margin-bottom: var(--s-3); }
.sl-video__title {
	font-family: var(--f-display);
	font-size: var(--t-xl);
	line-height: 1.2;
	letter-spacing: -.02em;
	margin: 0 0 var(--s-2);
}
.sl-video__note { font-size: var(--t-sm); color: var(--ink-faint); margin: 0; }

/* -------- 10. Cards ---------------------------------------------------- */
.sl-grid {
	display: grid;
	gap: clamp(.9rem, 2vw, 1.25rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}
.sl-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }

.sl-card {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(1.25rem, 2.5vw, 1.6rem);
	text-decoration: none;
	color: inherit;
	min-height: 100%;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.sl-card:hover {
	transform: translateY(-3px);
	border-color: var(--line-hover);
	box-shadow: var(--shadow-2);
}
.sl-card:active { transform: translateY(-1px); }

.sl-card__emoji {
	font-size: 1.9rem;
	line-height: 1;
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--r-md);
	background: var(--surface-2);
	margin-bottom: var(--s-2);
}
.sl-card__emoji--sm {
	width: 1.6rem; height: 1.6rem;
	font-size: 1rem;
	border-radius: 7px;
	margin: 0;
}

.sl-card__kicker {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--ink-faint);
	margin-bottom: var(--s-1);
}

.sl-card__title {
	font-size: var(--t-lg);
	margin: 0;
	line-height: 1.24;
}
.sl-card--topic .sl-card__title { font-size: var(--t-xl); }

.sl-card__desc {
	font-size: var(--t-sm);
	color: var(--ink-muted);
	margin: 0;
	line-height: 1.55;
}

.sl-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	margin-top: auto;
	padding-top: var(--s-4);
	font-size: var(--t-xs);
	font-weight: 600;
	color: var(--ink-faint);
}
.sl-card__arrow {
	transition: transform .2s var(--ease);
	font-size: 1rem;
	color: var(--ink);
}
.sl-card:hover .sl-card__arrow { transform: translateX(4px); }

.sl-card--lesson.is-soon { background: transparent; }
.sl-card--lesson.is-soon:hover { background: var(--surface); }

.sl-pill {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	padding: .2rem .6rem;
	font-size: var(--t-xs);
	font-weight: 600;
	color: var(--ink-faint);
	background: var(--surface);
}
.sl-pill--live { color: var(--c-live); border-color: color-mix(in srgb, var(--c-live) 30%, var(--line)); }

.sl-file {
	background: var(--surface-2);
	border-radius: 6px;
	padding: .15rem .45rem;
	font-size: .78rem;
	color: var(--ink-muted);
	font-weight: 500;
}

/* -------- 11. Buttons -------------------------------------------------- */
.sl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 3rem;
	padding: .7rem 1.35rem;
	border-radius: var(--r-pill);
	border: 1px solid var(--ink);
	background: transparent;
	color: var(--ink);
	font-size: var(--t-sm);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.sl-btn:hover { transform: translateY(-2px); }
.sl-btn--solid { background: var(--ink); color: #fff; }
.sl-btn--solid:hover { background: #000; }
.sl-btn--ghost { border-color: var(--line-hover); color: var(--ink-muted); }
.sl-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.sl-btn--lg { min-height: 3.4rem; padding: .85rem 1.7rem; font-size: var(--t-base); }
.sl-btn[disabled] { opacity: .5; cursor: progress; transform: none; }

.sl-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* -------- 12. Signup form --------------------------------------------- */
.sl-signup {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(1.4rem, 3vw, 2rem);
	box-shadow: var(--shadow-1);
}
.sl-signup__heading {
	font-family: var(--f-display);
	font-size: var(--t-xl);
	letter-spacing: -.02em;
	margin: 0 0 var(--s-2);
}
.sl-signup__sub { font-size: var(--t-sm); color: var(--ink-muted); margin: 0 0 var(--s-4); }
.sl-signup__row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.sl-signup__input {
	flex: 1 1 14rem;
	min-width: 0;
	min-height: 3rem;
	padding: .7rem 1.1rem;
	border: 1px solid var(--line-hover);
	border-radius: var(--r-pill);
	background: var(--surface);
	font: inherit;
	font-size: var(--t-sm);
	color: var(--ink);
}
.sl-signup__input:focus { outline: 2.5px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.sl-signup__trap { position: absolute; left: -9999px; }
.sl-signup__msg { margin: var(--s-3) 0 0; font-size: var(--t-sm); min-height: 1.4em; }
.sl-signup__msg.is-error { color: #a12b28; }
.sl-signup__msg.is-ok { color: var(--c-live); font-weight: 600; }
.sl-signup.is-done .sl-signup__row { display: none; }
.sl-signup.is-compact { padding: var(--s-4); box-shadow: none; background: transparent; border: 0; }

/* -------- 13. Prose ---------------------------------------------------- */
.sl-prose {
	max-width: var(--prose);
	font-size: var(--t-base);
}
.sl-prose > * + * { margin-top: var(--s-4); }
.sl-prose h2 { font-size: var(--t-2xl); margin-top: var(--s-7); }
.sl-prose h3 { font-size: var(--t-xl); margin-top: var(--s-6); }
.sl-prose h2 + p, .sl-prose h3 + p { margin-top: var(--s-3); }
.sl-prose a { color: var(--ink); text-decoration-color: var(--line-hover); }
.sl-prose a:hover { text-decoration-color: var(--ink); }
.sl-prose ul, .sl-prose ol { padding-left: 1.3em; }
.sl-prose li + li { margin-top: .4rem; }
.sl-prose strong { font-weight: 650; }
.sl-prose blockquote {
	margin: var(--s-6) 0;
	padding-left: var(--s-5);
	border-left: 3px solid var(--ink);
	font-family: var(--f-display);
	font-size: var(--t-lg);
	line-height: 1.45;
	color: var(--ink);
}
.sl-prose code {
	background: var(--surface-2);
	border-radius: 5px;
	padding: .12em .38em;
}
.sl-prose pre {
	background: var(--c-ink-950);
	color: #f5f2ea;
	border-radius: var(--r-md);
	padding: var(--s-5);
	overflow-x: auto;
	font-size: .85rem;
	line-height: 1.6;
}
.sl-prose pre code { background: none; padding: 0; color: inherit; }
.sl-prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.sl-prose th, .sl-prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.sl-prose img { border-radius: var(--r-md); }

/* -------- 14. Page furniture ------------------------------------------- */
.sl-crumbs {
	font-size: var(--t-xs);
	color: var(--ink-faint);
	margin-bottom: var(--s-4);
	display: flex;
	gap: .45rem;
	flex-wrap: wrap;
	align-items: center;
}
.sl-crumbs a { text-decoration: none; color: var(--ink-faint); }
.sl-crumbs a:hover { color: var(--ink); text-decoration: underline; }

.sl-pagehead { padding-block: clamp(2rem, 5vw, 3.5rem) var(--s-5); }
.sl-pagehead h1 { font-size: var(--t-3xl); margin-bottom: var(--s-3); }
.sl-pagehead__emoji {
	font-size: clamp(2.4rem, 6vw, 3.6rem);
	line-height: 1;
	display: block;
	margin-bottom: var(--s-4);
}

.sl-panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(1.4rem, 3vw, 2.2rem);
}
.sl-panel--quiet { background: var(--surface-2); border-color: transparent; }

.sl-band {
	background: var(--c-ink-950);
	color: #f6f3ec;
}
.sl-band h2, .sl-band h3 { color: #fff; }
.sl-band p { color: #cfc9bd; }
.sl-band .sl-btn { border-color: rgba(255,255,255,.4); color: #fff; }
.sl-band .sl-btn:hover { border-color: #fff; background: #fff; color: var(--ink); }
.sl-band .sl-btn--solid { background: #fff; color: var(--ink); border-color: #fff; }
.sl-band .sl-eyebrow { color: #9b958a; }

.sl-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}
@media (max-width: 820px) { .sl-split { grid-template-columns: 1fr; } }

.sl-list { list-style: none; margin: 0; padding: 0; }
.sl-list li { border-top: 1px solid var(--line); }
.sl-list li:last-child { border-bottom: 1px solid var(--line); }
.sl-list a {
	display: flex;
	align-items: center;
	gap: var(--s-4);
	padding: 1.1rem .4rem;
	text-decoration: none;
	transition: padding .18s var(--ease), background .18s var(--ease);
}
.sl-list a:hover { padding-left: 1rem; background: var(--surface); }
.sl-list__emoji { font-size: 1.35rem; flex: none; }
.sl-list__title { font-weight: 600; font-size: var(--t-base); line-height: 1.35; }
.sl-list__meta { margin-left: auto; font-size: var(--t-xs); color: var(--ink-faint); flex: none; }

.sl-pager {
	display: flex;
	justify-content: space-between;
	gap: var(--s-4);
	margin-top: var(--s-7);
	font-size: var(--t-sm);
	font-weight: 600;
}
.sl-pager a { text-decoration: none; }
.sl-pager a:hover { text-decoration: underline; }

.sl-nav-links, .nav-links {
	display: flex;
	gap: .4rem;
	flex-wrap: wrap;
	margin-top: var(--s-7);
	justify-content: center;
}
.nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding: 0 .6rem;
	border-radius: var(--r-pill);
	border: 1px solid var(--line);
	background: var(--surface);
	text-decoration: none;
	font-size: var(--t-sm);
	font-weight: 600;
}
.nav-links .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* -------- 15. Plug page ------------------------------------------------ */
.sl-plug__code {
	position: relative;
	background: var(--c-ink-950);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.sl-plug__codebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	padding: .7rem .9rem .7rem 1.1rem;
	border-bottom: 1px solid rgba(255,255,255,.12);
	color: #cfc9bd;
	font-family: var(--f-mono);
	font-size: .78rem;
}
.sl-copy {
	border: 1px solid rgba(255,255,255,.25);
	background: transparent;
	color: #fff;
	border-radius: var(--r-pill);
	padding: .3rem .8rem;
	font-size: .75rem;
	font-weight: 600;
	cursor: pointer;
	font-family: var(--f-body);
}
.sl-copy:hover { background: #fff; color: var(--ink); }
.sl-plug__code pre {
	margin: 0;
	padding: var(--s-5);
	max-height: 30rem;
	overflow: auto;
	color: #f2efe7;
	font-size: .82rem;
	line-height: 1.65;
	/* Markdown prose lines are long. Wrapping beats a horizontal scrollbar
	   inside a box, especially on a phone. */
	white-space: pre-wrap;
	word-break: break-word;
	overflow-wrap: anywhere;
	tab-size: 2;
}

.sl-locked {
	border: 1.5px dashed var(--line-hover);
	border-radius: var(--r-lg);
	padding: clamp(1.5rem, 4vw, 2.4rem);
	background: var(--surface);
	text-align: center;
}
.sl-locked__glyph { font-size: 2.2rem; display: block; margin-bottom: var(--s-3); }
.sl-locked .sl-signup { border: 0; box-shadow: none; padding: 0; background: transparent; max-width: 30rem; margin-inline: auto; }

.sl-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.sl-steps li {
	counter-increment: step;
	position: relative;
	padding-left: 2.6rem;
	margin-bottom: var(--s-4);
	font-size: var(--t-sm);
	color: var(--ink-muted);
}
.sl-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -.1rem;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: .78rem;
	font-weight: 700;
	font-family: var(--f-body);
}

/* -------- 16. Footer --------------------------------------------------- */
.sl-footer {
	border-top: 1px solid var(--line);
	padding-block: clamp(2.5rem, 5vw, 4rem) var(--s-6);
	margin-top: clamp(3rem, 7vw, 5rem);
}
.sl-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
	gap: var(--s-6);
	margin-bottom: var(--s-7);
}
@media (max-width: 700px) {
	.sl-footer__top { grid-template-columns: 1fr 1fr; }
	.sl-footer__brand { grid-column: 1 / -1; }
}
.sl-footer__brand p { font-size: var(--t-sm); color: var(--ink-muted); max-width: 34ch; margin-top: var(--s-3); }
.sl-footer h2 {
	font-family: var(--f-body);
	font-size: var(--t-xs);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0 0 var(--s-3);
	font-weight: 600;
}
.sl-footer ul { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.sl-footer li { margin-bottom: .5rem; }
.sl-footer li a { text-decoration: none; color: var(--ink-muted); }
.sl-footer li a:hover { color: var(--ink); text-decoration: underline; }
.sl-footer__base {
	border-top: 1px solid var(--line);
	padding-top: var(--s-5);
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3) var(--s-5);
	justify-content: space-between;
	font-size: var(--t-xs);
	color: var(--ink-faint);
}
.sl-footer__base a { color: var(--ink-faint); }

/* -------- 17. Motion --------------------------------------------------- */
/* Gated on .js so that if the script never runs — blocked, failed, disabled —
   nothing on the page is invisible. The reveal is decoration; the content is not. */
@media (prefers-reduced-motion: no-preference) {
	.js .sl-rise {
		opacity: 0;
		transform: translateY(14px);
	}
	.js .sl-rise.is-in {
		opacity: 1;
		transform: none;
		transition: opacity .5s var(--ease), transform .5s var(--ease);
	}
}

/* -------- 18. Print ---------------------------------------------------- */
@media print {
	.sl-header, .sl-footer, .sl-bar, .sl-signup, .sl-video { display: none !important; }
	body { background: #fff; font-size: 11pt; }
}
