@import url('./fonts.css');

:root {
	font-family: Inter, sans-serif;
	color: #202b40;
	background: #edf2f8;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
}
header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1rem;
	background: white;
	border-bottom: 1px solid #cbd5e1;
}
header strong {
	margin-right: 0.5rem;
}
button,
select,
input,
textarea {
	font: inherit;
}
button,
select {
	padding: 0.5rem 0.65rem;
	border: 1px solid #bcc9da;
	border-radius: 0.35rem;
	background: white;
	color: #163b7c;
}
button {
	cursor: pointer;
}
button:hover {
	background: #eaf1ff;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid #80a9ff;
	outline-offset: 2px;
}
a {
	color: #1e53b6;
}
main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	min-height: calc(100vh - 76px);
}
.workspace {
	padding: 1.4rem;
	min-width: 0;
}
#canvas {
	width: 100%;
	aspect-ratio: 16 / 9;
	box-shadow: 0 8px 35px #183b6b22;
	background: white;
}
#canvas svg {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
	user-select: none;
}
#canvas g[data-index] {
	cursor: grab;
}
#canvas g[data-index]:active {
	cursor: grabbing;
}
.workspace p {
	font-size: 0.85rem;
	line-height: 1.5;
}
#status {
	color: #1e53b6;
	min-height: 1.5rem;
}
aside {
	padding: 1.25rem;
	background: white;
	border-left: 1px solid #cbd5e1;
}
h1,
h2 {
	font-size: 1rem;
	margin: 0 0 0.8rem;
}
h2 {
	margin-top: 1.5rem;
}
aside p {
	font-size: 0.8rem;
	line-height: 1.5;
}
fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}
label {
	display: block;
	font-size: 0.8rem;
}
fieldset label {
	margin-bottom: 0.8rem;
}
input,
textarea,
fieldset select {
	width: 100%;
	margin-top: 0.3rem;
	padding: 0.45rem;
	border: 1px solid #bcc9da;
	border-radius: 0.3rem;
}
input[type='color'] {
	padding: 0.15rem;
	height: 36px;
}
.pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.7rem;
}
textarea {
	resize: vertical;
}
@media (max-width: 850px) {
	main {
		grid-template-columns: 1fr;
	}
	aside {
		border-left: 0;
		border-top: 1px solid #cbd5e1;
	}
	.workspace {
		padding: 0.75rem;
	}
}
