:root {
	color-scheme: light;
	--bg: #f6f6f0;
	--surface: #fffefa;
	--ink: #182c26;
	--muted: #506158;
	--line: #cbd2c9;
	--accent: #17573e;
	--on: #fff;
	--tint: #e3eee4;
	font:
		16px / 1.55 system-ui,
		sans-serif;
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #101b18;
	--surface: #192721;
	--ink: #edf5ec;
	--muted: #b5c8bb;
	--line: #41554a;
	--accent: #a5e6be;
	--on: #10271b;
	--tint: #263c30;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	display: grid;
	grid-template-columns: 205px minmax(0, 1fr);
	min-height: 100vh;
}
aside {
	background: #102b26;
	color: #ecf2e8;
	padding: 34px 17px;
	display: flex;
	flex-direction: column;
	gap: 52px;
}
button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}
button {
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 8px;
	padding: 9px 15px;
	cursor: pointer;
	min-height: 48px;
	font-weight: 600;
}
button:disabled {
	opacity: 0.55;
	cursor: default;
}
button:not(:disabled):hover {
	filter: brightness(0.94);
}
:focus-visible {
	outline: 3px solid #bf7404;
	outline-offset: 3px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 22px;
	font-weight: 740;
	letter-spacing: -1px;
}
.brand small {
	font-size: 12px;
	letter-spacing: 1px;
}
.mark {
	display: grid;
	place-items: center;
	background: #bcf0bb;
	color: #173c2c;
	width: 35px;
	height: 35px;
	border-radius: 9px;
	font-style: italic;
}
nav {
	display: grid;
	gap: 5px;
}
nav button {
	display: flex;
	gap: 12px;
	align-items: center;
	border: 0;
	background: transparent;
	color: #cfddd4;
	text-align: left;
}
nav button[aria-current="page"] {
	background: #29483c;
	color: #e4ffde;
}
i {
	font-style: normal;
	font-size: 20px;
}
.local {
	margin-top: auto;
	font-size: 13px;
	color: #cfddd4;
}
.dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #b3edb2;
}
main {
	width: 100%;
	max-width: 1450px;
	padding: 0 clamp(16px, 4vw, 70px) 30px;
	margin: 0 auto;
}
header {
	min-height: 85px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}
header b {
	padding: 0 9px;
}
section {
	padding-top: 42px;
}
.hero {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 30px;
}
.eyebrow {
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.13em;
	color: var(--accent);
}
h1,
h2,
p {
	margin: 0;
}
h1 {
	font-size: clamp(34px, 4vw, 60px);
	letter-spacing: -0.055em;
	line-height: 1.05;
	margin: 0.24em 0;
}
h2 {
	font-size: 22px;
	letter-spacing: -0.035em;
}
p {
	color: var(--muted);
	margin: 12px 0;
}
.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on);
}
.sectiontitle,
.actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.sectiontitle {
	padding: 25px 0;
}
.sectiontitle label {
	font-size: 13px;
}
.actions {
	justify-content: flex-start;
}
.card,
article,
.empty,
#catalog li {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	padding: 20px;
}
.card {
	width: 100%;
	display: grid;
	text-align: left;
	margin-bottom: 8px;
	overflow-wrap: anywhere;
}
.card small,
.card span,
.empty {
	color: var(--muted);
}
.card strong {
	font-size: 19px;
}
.empty {
	padding: 30px;
	border-style: dashed;
}
article {
	margin: 22px 0;
	max-width: 820px;
}
label {
	display: grid;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
}
form,
label,
article .actions {
	margin: 12px 0;
}
input,
textarea,
select {
	min-width: 0;
	max-width: 100%;
	width: 100%;
	border: 1px solid var(--line);
	background: var(--bg);
	padding: 10px;
	border-radius: 6px;
	min-height: 46px;
}
textarea {
	resize: vertical;
}
#count {
	color: var(--accent);
	font-size: 15px;
}
#catalog {
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}
footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 0;
	margin-top: 24px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	color: var(--muted);
}
#status[data-error="true"] {
	font-weight: bold;
	color: var(--ink);
}
[hidden] {
	display: none !important;
}
.skip {
	position: absolute;
	left: -10000px;
}
.skip:focus {
	left: 12px;
	top: 4px;
	background: white;
	color: black;
	z-index: 3;
}
@media (max-width: 760px) {
	body {
		display: block;
	}
	aside {
		padding: 12px 16px;
		gap: 8px;
	}
	.brand {
		font-size: 18px;
	}
	.mark {
		height: 28px;
		width: 28px;
	}
	nav {
		display: flex;
		gap: 4px;
	}
	nav button {
		padding: 4px 10px;
		gap: 5px;
	}
	.local {
		display: none;
	}
	header {
		min-height: 62px;
	}
	.hero {
		align-items: start;
		flex-direction: column;
	}
	.sectiontitle {
		align-items: start;
	}
	.sectiontitle label {
		width: 100%;
	}
	section {
		padding-top: 25px;
	}
}
