:root {
	color-scheme: light dark;
	--pico-background-color: #fff;
	--pico-card-background-color: #fff;
	--pico-color: #25313c;
	--pico-muted-color: #66727d;
	--pico-muted-border-color: #d8dee4;
	--pico-primary: #356f9f;
	--pico-del-color: #b42318;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
	:root {
		--pico-background-color: #111820;
		--pico-card-background-color: #18222c;
		--pico-color: #e8edf2;
		--pico-muted-color: #9ca8b3;
		--pico-muted-border-color: #35424e;
		--pico-primary: #78b7e8;
		--pico-del-color: #ff9b91;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--pico-background-color);
	color: var(--pico-color);
}

.container {
	width: min(calc(100% - 2rem), 70rem);
	margin-inline: auto;
}

header.container {
	padding-block: 1rem;
}

nav,
nav ul {
	display: flex;
	align-items: center;
}

nav {
	justify-content: space-between;
	gap: 1rem;
}

nav ul {
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

nav form,
nav button {
	margin: 0;
}

main {
	padding-block: 2rem 4rem;
}

h1,
h2,
h3 {
	line-height: 1.15;
}

h1 {
	font-size: clamp(2rem, 6vw, 3rem);
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.15rem;
}

p {
	margin-block: 0 1rem;
}

a {
	color: var(--pico-primary);
	text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--pico-primary) 45%, transparent);
	outline-offset: 3px;
}

nav a {
	color: inherit;
	text-decoration: none;
}

nav a[aria-current="page"] {
	color: var(--pico-primary);
}

article {
	margin-block: 1rem;
	padding: 1.25rem;
	border: 1px solid var(--pico-muted-border-color);
	border-radius: 0.7rem;
	background: var(--pico-card-background-color);
}

button {
	width: auto;
	margin-block: 0.5rem;
	padding: 0.65rem 1rem;
	border: 1px solid var(--pico-primary);
	border-radius: 0.5rem;
	background: var(--pico-primary);
	color: var(--pico-background-color);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

button:hover {
	filter: brightness(1.08);
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

button.secondary.outline {
	background: transparent;
	color: var(--pico-muted-color);
	border-color: var(--pico-muted-border-color);
}

input {
	font: inherit;
}

small {
	color: var(--pico-muted-color);
}

[role="alert"] {
	color: var(--pico-del-color);
}

@media (max-width: 640px) {
	nav {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	nav ul {
		flex-wrap: wrap;
	}
}
