/* Little Steps blog styles. Depends on site.css (header, footer, brand, buttons). */

:root {
	--ls-blue: #2e5de4;
	--ls-ink: #182329;
	--ls-pale: #eef3ff;
	--ls-bg: #fafbf9;
	--ls-muted: #5b6b76;
	--ls-border: #e3e8ef;
	--ls-card: #ffffff;
}

.ls-blog .ls-container, .ls-footer .ls-container { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.ls-blog { padding-bottom: 72px; }
.ls-blog p { color: var(--ls-muted); }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.ls-eyebrow {
	text-transform: uppercase; font-size: 12px; letter-spacing: 0.14em;
	font-weight: 700; color: var(--ls-muted); margin: 0 0 14px;
}
.ls-eyebrow-blue { color: var(--ls-blue); }
.ls-eyebrow-card { font-size: 11px; letter-spacing: 0.12em; color: var(--ls-blue); margin: 0 0 8px; }

.ls-hero { padding: 64px 0 40px; }
.ls-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.ls-hero-title {
	font-size: clamp(40px, 6vw, 68px); line-height: 1.02;
	font-weight: 800; letter-spacing: -0.02em; color: var(--ls-ink); margin: 0 0 18px;
}
.ls-hero-title span { display: block; }
.ls-hero-title .ls-accent { color: var(--ls-blue); }
.ls-subtext { font-size: 18px; color: var(--ls-muted); margin: 0; max-width: 560px; }
.ls-hero-search { align-self: center; }

.ls-search {
	display: flex; align-items: center; gap: 10px; width: 320px; height: 52px;
	background: var(--ls-card); border: 1px solid var(--ls-border);
	border-radius: 12px; padding: 0 14px;
}
.ls-search-icon { display: inline-flex; color: var(--ls-muted); flex-shrink: 0; }
.ls-search-field {
	flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
	font: inherit; font-size: 16px; color: var(--ls-ink);
}
.ls-search-field::placeholder { color: var(--ls-muted); }
.ls-search-submit { border: 0; background: transparent; color: var(--ls-blue); font-size: 18px; cursor: pointer; padding: 4px; }
.ls-search:focus-within { border-color: var(--ls-blue); }

.ls-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 34px; }
.ls-pill {
	display: inline-block; border-radius: 999px; padding: 11px 20px;
	font-weight: 600; font-size: 15px; background: var(--ls-pale);
	color: var(--ls-ink); text-decoration: none;
}
.ls-pill.is-active { background: var(--ls-blue); color: #ffffff; }
.ls-pill:hover:not(.is-active) { background: #dfe8ff; }

.ls-featured {
	display: grid; grid-template-columns: 57% 43%; border-radius: 18px;
	overflow: hidden; margin-bottom: 56px; background: var(--ls-pale);
}
.ls-featured-media { min-height: 380px; }
.ls-featured-media img, .ls-featured-media .ls-media-fallback {
	width: 100%; height: 100%; object-fit: cover; display: block; position: static;
}
.ls-featured-panel { background: var(--ls-pale); padding: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ls-featured-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.15; color: var(--ls-ink); margin: 0; letter-spacing: -0.01em; }
.ls-featured-excerpt { font-size: 17px; color: var(--ls-muted); margin: 0; }
.ls-featured .ls-meta { margin-top: auto; }
.ls-button {
	display: inline-flex; align-items: center; gap: 10px; background: var(--ls-blue);
	color: #ffffff; border-radius: 999px; padding: 15px 28px; font-weight: 600;
	font-size: 15px; text-decoration: none; border: 0;
}
.ls-button:hover { background: #234bc1; }

.ls-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.ls-section-title { font-size: 32px; font-weight: 800; color: var(--ls-ink); margin: 0; letter-spacing: -0.02em; }
.ls-section-link { color: var(--ls-blue); font-weight: 600; font-size: 16px; text-decoration: none; }
.ls-section-link:hover { text-decoration: underline; }

.ls-media { position: relative; overflow: hidden; }
.ls-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-card .ls-media { aspect-ratio: 16 / 10; }
.ls-media-fallback {
	width: 100%; height: 100%; aspect-ratio: 16 / 10; display: flex;
	align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--ls-pale) 0%, #ffffff 100%);
}
.ls-featured-media .ls-media-fallback { aspect-ratio: auto; }
.ls-media-fallback span { color: var(--ls-blue); opacity: 0.35; font-weight: 800; font-size: clamp(64px, 9vw, 120px); line-height: 1; }

.ls-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ls-card {
	position: relative; display: flex; flex-direction: column; background: var(--ls-card);
	border: 1px solid var(--ls-border); border-radius: 16px; overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease;
}
.ls-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24, 35, 41, 0.08); }
.ls-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.ls-card-title {
	font-size: 20px; font-weight: 700; line-height: 1.32;
	color: var(--ls-ink); margin: 0 0 12px; letter-spacing: -0.01em;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ls-card .ls-meta { margin-top: auto; }
.ls-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ls-muted); }
.ls-featured .ls-meta { font-size: 15px; }
.ls-clock { flex-shrink: 0; }
.ls-stretched { position: absolute; inset: 0; z-index: 1; }

.ls-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 44px; flex-wrap: wrap; }
.ls-pagination .page-numbers {
	width: 42px; height: 42px; border-radius: 999px; display: inline-flex;
	align-items: center; justify-content: center; font-weight: 600; font-size: 15px;
	color: var(--ls-ink); background: transparent; text-decoration: none;
}
.ls-pagination .page-numbers:hover { background: var(--ls-pale); }
.ls-pagination .page-numbers.current { background: var(--ls-blue); color: #ffffff; }
.ls-pagination .page-numbers.next { background: var(--ls-pale); }

.ls-empty { background: var(--ls-pale); border-radius: 18px; padding: 56px; text-align: center; margin: 20px 0 40px; }
.ls-empty p { margin: 0; font-size: 17px; color: var(--ls-muted); }
.ls-none { font-size: 17px; margin: 6px 0 18px; }
.ls-pills-suggest { margin: 0 0 40px; }

.ls-single { padding-top: 56px; }
.ls-article-head { max-width: 720px; margin-inline: auto; }
.ls-article-title { font-size: clamp(32px, 4.5vw, 46px); font-weight: 800; line-height: 1.15; color: var(--ls-ink); margin: 0 0 16px; letter-spacing: -0.02em; }
.ls-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--ls-muted); margin-bottom: 30px; }
.ls-article-meta time { color: var(--ls-muted); }
.ls-dot { color: var(--ls-muted); }
.ls-article-image { margin: 0 0 40px; }
.ls-article-image img { width: 100%; border-radius: 18px; display: block; }

.ls-prose { max-width: 720px; margin-inline: auto; font-size: 18px; line-height: 1.75; color: var(--ls-ink); }
.ls-prose p { color: var(--ls-ink); margin: 0 0 22px; }
.ls-prose h2 { font-size: 28px; font-weight: 800; color: var(--ls-ink); line-height: 1.2; margin: 40px 0 16px; letter-spacing: -0.015em; }
.ls-prose h3 { font-size: 23px; font-weight: 700; color: var(--ls-ink); line-height: 1.25; margin: 32px 0 12px; }
.ls-prose ul, .ls-prose ol { margin: 0 0 22px; padding-left: 26px; color: var(--ls-ink); }
.ls-prose li { margin-bottom: 8px; }
.ls-prose blockquote { border-left: 3px solid var(--ls-blue); background: var(--ls-pale); padding: 20px 24px; margin: 0 0 22px; border-radius: 0 12px 12px 0; }
.ls-prose blockquote p:last-child { margin-bottom: 0; }
.ls-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.ls-prose figure { margin: 0 0 22px; }
.ls-prose figcaption { font-size: 14px; color: var(--ls-muted); margin-top: 8px; }
.ls-prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.ls-prose th, .ls-prose td { border: 1px solid var(--ls-border); padding: 10px 12px; text-align: left; }
.ls-prose th { background: var(--ls-pale); font-weight: 700; }
.ls-prose code { background: var(--ls-pale); border-radius: 6px; padding: 2px 6px; font-size: 0.9em; font-family: ui-monospace, Consolas, monospace; }
.ls-prose pre { background: var(--ls-pale); border-radius: 12px; padding: 18px 20px; overflow-x: auto; }
.ls-prose pre code { background: transparent; padding: 0; }
.ls-prose a { color: var(--ls-blue); text-decoration: underline; text-underline-offset: 3px; }

.ls-related { margin-top: 64px; }

.ls-footer { border-top: 1px solid var(--ls-border); padding: 28px 0; margin-top: 24px; background: var(--ls-bg); }
.ls-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ls-footer-left { display: flex; align-items: center; gap: 16px; }
.ls-footer-sep { width: 1px; height: 26px; background: var(--ls-border); }
.ls-footer-tagline { margin: 0; font-size: 15px; color: var(--ls-muted); }
.ls-footer-right { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.ls-footer-right a { color: var(--ls-muted); text-decoration: none; }
.ls-footer-right a:hover { color: var(--ls-blue); }
.ls-footer-bar { color: var(--ls-border); }
.ls-footer .brand { font-size: 20px; }

nav a.active { color: var(--ls-blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--ls-blue); }

.ls-blog a:focus-visible, .ls-blog button:focus-visible, .ls-blog input:focus-visible,
.ls-footer a:focus-visible { outline: 3px solid #e2a633; outline-offset: 3px; border-radius: 4px; }

@media (max-width: 1000px) { .ls-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
	.ls-hero-grid { grid-template-columns: 1fr; }
	.ls-hero-search { width: 100%; }
	.ls-search { width: 100%; }
}
@media (max-width: 860px) {
	.ls-featured { grid-template-columns: 1fr; }
	.ls-featured-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
	.ls-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
	.ls-pills::-webkit-scrollbar { display: none; }
	.ls-pill { white-space: nowrap; flex-shrink: 0; }
	.ls-footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 680px) { .ls-grid { grid-template-columns: 1fr; } }
