/*
 * Styles for the assistant domain's public website (index.html, privacy.html).
 * A static site with no build step: deploy the folder as-is (setup steps:
 * ai-scratch-docs/outward-email/04-domain-and-site-setup.md).
 */
:root {
	--bg: #f7f4ee;
	--surface: #ffffff;
	--ink: #1f2a2e;
	--muted: #5b676b;
	--line: #e3ddd2;
	--accent: #2f5d50;
	--accent-ink: #ffffff;
	--max: 1080px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #141a1c;
		--surface: #1b2326;
		--ink: #eef0ee;
		--muted: #a5b0b2;
		--line: #2c3639;
		--accent: #7fb7a4;
		--accent-ink: #10201b;
	}
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.6;
}

a {
	color: var(--accent);
}

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 24px;
}

header.site {
	border-bottom: 1px solid var(--line);
}

header.site .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}

.brand {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: -0.01em;
}

nav.site a {
	color: var(--muted);
	text-decoration: none;
	margin-left: 24px;
	font-size: 15px;
}

nav.site a:hover {
	color: var(--ink);
}

h1,
h2,
h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.hero {
	padding: 96px 0 72px;
}

.hero h1 {
	font-size: clamp(36px, 6vw, 60px);
	margin: 0 0 20px;
	max-width: 14ch;
}

.hero p {
	font-size: 20px;
	color: var(--muted);
	max-width: 46ch;
	margin: 0 0 32px;
}

.button {
	display: inline-block;
	background: var(--accent);
	color: var(--accent-ink);
	text-decoration: none;
	padding: 14px 24px;
	border-radius: 8px;
	font-weight: 600;
}

section {
	padding: 64px 0;
	border-top: 1px solid var(--line);
}

section h2 {
	font-size: clamp(28px, 4vw, 36px);
	margin: 0 0 12px;
}

section .lede {
	color: var(--muted);
	max-width: 56ch;
	margin: 0 0 40px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 24px;
}

.card h3 {
	font-size: 20px;
	margin: 0 0 8px;
}

.card p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	counter-reset: step;
}

.steps div::before {
	counter-increment: step;
	content: counter(step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--accent);
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 12px;
}

.steps h3 {
	font-size: 20px;
	margin: 0 0 6px;
}

.steps p {
	margin: 0;
	color: var(--muted);
}

footer.site {
	border-top: 1px solid var(--line);
	padding: 32px 0 48px;
	color: var(--muted);
	font-size: 14px;
}

footer.site .wrap {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

footer.site a {
	color: var(--muted);
}

.prose {
	padding: 64px 0 96px;
	max-width: 70ch;
}

.prose h1 {
	font-size: clamp(32px, 5vw, 44px);
	margin: 0 0 8px;
}

.prose h2 {
	font-size: 22px;
	margin: 36px 0 8px;
}

.prose .updated {
	color: var(--muted);
	margin: 0 0 24px;
}

@media (max-width: 800px) {
	.grid,
	.steps {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 64px 0 48px;
	}

	nav.site a {
		margin-left: 16px;
	}
}

@media (max-width: 420px) {
	.wrap {
		padding: 0 16px;
	}

	nav.site a:not(.keep) {
		display: none;
	}
}
