/**
 * WJM product pages — Kindled Book
 * Calm Shama-home voice: narrow wrap, plain English, working JPG shots
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

body.wjm-site {
	--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
	--font-serif: 'Source Serif 4', Georgia, serif;
	--midnight: #001f3f;
	--book: #00804c;
	--book-dark: #00603a;
	--spring: #dbe64c;
	--ink: #0a1420;
	--paper: #f6f7ed;
	--muted: #5a6b7a;
	--line: color-mix(in srgb, #0a1420 10%, transparent);

	font-family: var(--font-sans);
	letter-spacing: -0.011em;
	-webkit-font-smoothing: antialiased;
	background: var(--paper);
	color: var(--ink);
}

body.wjm-site ::selection {
	background: color-mix(in srgb, var(--book) 18%, transparent);
}

body.wjm-site :focus-visible {
	outline-color: var(--book);
}

body.wjm-site .wjm-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: inherit;
}

body.wjm-site .wjm-brand__name {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--midnight);
	letter-spacing: -0.02em;
}

body.wjm-site .wjm-brand__studio {
	font-size: 12px;
	color: var(--muted);
	border-left: 1px solid var(--line);
	padding-left: 0.55rem;
}

body.wjm-site .nav-link { color: var(--muted); }
body.wjm-site .nav-link:hover,
body.wjm-site .nav-link.font-medium { color: var(--ink); }
body.wjm-site a.link,
body.wjm-site .link { color: var(--book); }

/* Intro — mirrors Shama home open */
.wjm-intro {
	padding: 5rem 0 2.5rem;
}

@media (max-width: 820px) {
	.wjm-intro { padding: 3.5rem 0 2rem; }
}

.wjm-eyebrow {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 1rem;
}

.wjm-h1 {
	font-family: var(--font-serif);
	font-size: clamp(1.75rem, 4.2vw, 2.375rem);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.03em;
	color: var(--midnight);
	max-width: 18ch;
	margin-bottom: 1.25rem;
	text-wrap: balance;
}

.wjm-lead {
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--ink);
	max-width: 42ch;
	margin-bottom: 1.5rem;
}

.wjm-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.25rem;
}

.wjm-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 1.1rem;
	font-size: 14.5px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	background: var(--spring);
	color: var(--midnight);
	border: 1px solid color-mix(in srgb, var(--midnight) 10%, transparent);
}

.wjm-btn:hover {
	filter: brightness(0.97);
	text-decoration: none;
}

.wjm-btn-secondary {
	background: transparent;
	color: var(--midnight);
	border: 1px solid color-mix(in srgb, var(--midnight) 25%, transparent);
}

.wjm-btn-secondary:hover {
	background: color-mix(in srgb, var(--midnight) 5%, transparent);
	filter: none;
}

.wjm-section {
	padding: 2.75rem 0;
}

.wjm-section .section-title {
	margin-bottom: 1.25rem;
}

.wjm-note {
	font-size: 13px;
	color: var(--muted);
	margin: -0.5rem 0 1.5rem;
}

.wjm-steps {
	list-style: none;
	counter-reset: step;
	max-width: 48ch;
	display: grid;
	gap: 1.25rem;
}

.wjm-steps li {
	counter-increment: step;
	padding-left: 2.5rem;
	position: relative;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--ink);
}

.wjm-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--midnight);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wjm-steps strong {
	font-weight: 600;
	color: var(--midnight);
}

/* Screenshots — simple, reliable */
.wjm-shot {
	margin: 0 0 1.75rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.wjm-shot:last-child {
	margin-bottom: 0;
}

.wjm-shot img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

.wjm-shot figcaption {
	font-size: 13px;
	color: var(--muted);
	padding: 0.7rem 0.95rem;
	border-top: 1px solid var(--line);
	background: color-mix(in srgb, var(--paper) 80%, #fff);
}

body.wjm-site .prose {
	max-width: 52ch;
	line-height: 1.6;
	color: var(--ink);
}

body.wjm-site footer .link {
	color: var(--book);
}

/* Example callout — concrete story, not a card grid */
.wjm-example {
	max-width: 52ch;
	margin-bottom: 1.75rem;
	padding: 1.35rem 1.4rem 1.45rem;
	border-left: 3px solid var(--book);
	background: color-mix(in srgb, var(--book) 6%, #fff);
}

.wjm-example__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--book-dark);
	margin-bottom: 0.35rem;
}

.wjm-example__title {
	font-family: var(--font-serif);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--midnight);
	margin-bottom: 0.85rem;
	letter-spacing: -0.02em;
}

.wjm-who {
	list-style: none;
	max-width: 52ch;
	display: grid;
	gap: 0.85rem;
	padding: 0;
	margin: 0;
}

.wjm-who li {
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--ink);
	padding-left: 1rem;
	border-left: 2px solid var(--line);
}

.wjm-who strong {
	color: var(--midnight);
	font-weight: 600;
}

.wjm-faq {
	max-width: 52ch;
	display: grid;
	gap: 1.35rem;
}

.wjm-faq dt {
	font-weight: 600;
	color: var(--midnight);
	margin-bottom: 0.35rem;
	font-size: 1rem;
}

.wjm-faq dd {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--ink);
}

.wjm-h1 {
	max-width: 22ch;
}

@media (prefers-reduced-motion: no-preference) {
	.wjm-intro,
	.wjm-section {
		animation: wjm-fade 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
	}
	.wjm-section:nth-of-type(2) { animation-delay: 0.04s; }
	.wjm-section:nth-of-type(3) { animation-delay: 0.08s; }
}

@keyframes wjm-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wjm-intro,
	.wjm-section {
		animation: none;
	}
}

.wjm-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	font-size: 12px;
	color: var(--muted);
}

.wjm-footer__meta p {
	margin: 0 0 0.35rem;
}

.wjm-footer__meta p:last-child {
	margin-bottom: 0;
}

.wjm-cite {
	font-size: 12px;
	color: var(--muted);
	max-width: 42ch;
	line-height: 1.45;
}

.wjm-paper-links {
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--ink);
	max-width: 42ch;
}

.wjm-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
