/* Reset and global styles */
:root {
	--primary-color: #333;
	--background-color: #fff;
	--prose-width: 85ch;
	--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	--font-serif: serif;
	--font-mono: monospace;
}

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

body {
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--primary-color);
	background-color: var(--background-color);
}

#editor-content {
	font-family: var(--font-sans);
}

mark {
	background-color: #f0f;
	padding: 2px 4px;
}

/* Layout styles */
main {
	padding: 32px 32px 0 32px;
	height: 100vh;
	max-width: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
}

@media (max-width: 768px) {
	main {
		grid-template-columns: 1fr;
		height: auto;
	}
}

#intro {
	line-height: 1.6;
	overflow-y: auto;
	padding-right: 16px;
	max-width: 85ch;
	background-color: #faf9f7;
	padding: 32px;
	border-radius: 8px;
}

#editor {
	margin-top: 0;
	height: 100%;
}

@media (max-width: 768px) {
	#editor {
		height: calc(100vh - 200px);
		margin-top: 32px;
	}
}

#editor-content {
	width: 100%;
	height: 100%;
	padding: 0 48px 0 0;
	outline: none;
	overflow-y: auto;
	caret-color: #000;
	text-rendering: optimizeLegibility;
	position: relative;
}

#editor-content[placeholder]:empty:before {
	content: attr(placeholder);
	color: #999;
	cursor: text;
}

p {
	margin: 0;
	transition: color 0.1s ease-out;
	position: relative;
	padding: 0 0 1rem 0;
	width: calc(100% - 48px);
}

p[data-version="alternate"] {
	color: #0066cc;
}

p[data-version]::after {
	content: "•";
	position: absolute;
	right: -48px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	font-size: 2rem;
}

.highlight {
	color: #0066cc;
}

kbd {
	background: #f5f5f5;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-family: monospace;
}

h1 {
	font-size: 2rem;
	margin-bottom: 24px;
}

.subtitle {
	font-size: 1.2rem;
	margin-bottom: 32px;
	color: #666;
}


.upcoming-changes ul {
	padding-left: 20px;
}

.upcoming-changes li {
	margin-bottom: 8px;
}
