/* Books — Focus.AI Client brand palette */

/* Font loading */
@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Inter:wght@400;500;600;700;900&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,700;0,8..60,900;1,8..60,400&display=swap");

/* ── Custom properties ─────────────────────────────────── */

:root {
	/* Typography */
	--font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-sans: "Inter", system-ui, sans-serif;
	--font-mono: "Courier Prime", monospace;

	/* Client palette */
	--color-paper: #faf9f6;
	--color-ink: #161616;
	--color-graphite: #4a4a4a;
	--color-petrol: #0e3b46;
	--color-vermilion: #c3471d;
	--color-border: #d4d3cf;

	/* Tinted section backgrounds */
	--tint-cool: #edf6f8;
	--tint-sage: #eef6ee;
	--tint-warm: #f7f0e6;
	--tint-lavender: #f2eef6;
	--tint-aqua: #edf6f6;

	/* Semantic */
	--color-bg: var(--color-paper);
	--color-text: var(--color-ink);
	--color-text-secondary: rgba(22, 22, 22, 0.7);
	--color-text-tertiary: rgba(22, 22, 22, 0.4);
	--color-text-disabled: rgba(22, 22, 22, 0.2);
	--color-primary: var(--color-petrol);
	--color-accent: var(--color-vermilion);

	/* Spacing (8px base) */
	--space-1: 8px;
	--space-2: 16px;
	--space-3: 24px;
	--space-4: 32px;
	--space-6: 48px;
	--space-8: 64px;
	--space-12: 96px;
	--space-16: 128px;

	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-paper: #1a1816;
		--color-ink: #f5f4f1;
		--color-graphite: #a8a5a0;
		--color-border: #3d3a36;

		--color-bg: var(--color-paper);
		--color-text: var(--color-ink);
		--color-text-secondary: rgba(245, 244, 241, 0.7);
		--color-text-tertiary: rgba(245, 244, 241, 0.4);
		--color-text-disabled: rgba(245, 244, 241, 0.2);

		--color-petrol: #1a8fa8;
		--color-vermilion: #e06040;

		--tint-cool: #1a2226;
		--tint-sage: #1a221a;
		--tint-warm: #221e1a;
	}
}

/* ── Reset / base ──────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-text-size-adjust: 100%;
}

body {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-sans);
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

h1 {
	font-size: 2.25rem;
	letter-spacing: -0.02em;
}
h2 {
	font-size: 1.5rem;
	letter-spacing: -0.03em;
}
h3 {
	font-size: 1.125rem;
	letter-spacing: -0.02em;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

button {
	font-family: var(--font-sans);
	cursor: pointer;
}

/* Focus indicator */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
