:root {
	color-scheme: light dark;
	--bg: #f5f6f8;
	--panel: #ffffff;
	--border: #d8dbe0;
	--text: #1f2328;
	--accent: #2563eb;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	background: var(--bg);
	color: var(--text);
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.container.narrow {
	max-width: 700px;
}

h1 {
	margin-bottom: 0.25rem;
}

.subtitle {
	margin-top: 0;
	color: #5b6067;
}

.site-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
	color: #5b6067;
}

.site-footer a {
	color: inherit;
}

.policy h2 {
	font-size: 1rem;
	margin-bottom: 0.25rem;
}

.policy p {
	margin-top: 0;
	margin-bottom: 1.25rem;
	color: #3c4148;
}

.layout {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 1.5rem;
	align-items: start;
}

.ad-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, #eceef1, #eceef1 10px, #e2e4e8 10px, #e2e4e8 20px);
	border: 1px dashed var(--border);
	border-radius: 8px;
	color: #8a8f96;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ad-banner {
	height: 90px;
	margin-bottom: 1.5rem;
}

.ad-sidebar {
	width: 160px;
	height: 400px;
}

@media (max-width: 900px) {
	.layout {
		grid-template-columns: 1fr 1fr;
	}

	.ad-sidebar {
		width: auto;
		height: 90px;
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.layout {
		grid-template-columns: 1fr;
	}
}

.panel {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.25rem;
}

form label {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
	font-weight: 600;
}

label.checkbox {
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: var(--text);
}

fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 1rem 0;
}

.preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.preview img {
	max-width: 100%;
	image-rendering: pixelated;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: #fff;
}

.button {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
}
