@font-face {
	font-family: "Source Code";
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/SourceCodeVF-Upright.otf.woff2") format("woff2");
}

@font-face {
	font-family: "Source Code";
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
	src: url("../fonts/SourceCodeVF-Italic.otf.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/SourceSans3VF-Upright.otf.woff2") format("woff2");
}

@font-face {
	font-family: Inter;
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/SourceSans3VF-Italic.otf.woff2") format("woff2");
}

html,
body,
button {
	font:
		400 100%/1.4 "Source Sans",
		sans-serif;
}

html,
body {
	padding: 0;
	margin: 0;
}

input,
textarea {
	font:
		400 0.875rem/1.4 "Source Code",
		monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 4rem 1rem;
}

h2 + h3 {
	margin-block-start: 1rem;
}

a {
	color: inherit;
}

a:hover {
	color: #0bf;
}

button {
	cursor: pointer;
	border: 0;
	background-color: #ddd;
	color: #000;
	padding: 0.5rem 1rem;
	border-radius: 0.25rem;
	font-weight: 600;
}

button[disabled] {
	cursor: disabled;
	background-color: #eee;
	color: #aaa;
}

button:not([disabled]):hover {
	background-color: #ccc;
}

button:not([disabled]):active {
	background-color: #aaa;
}

main,
aside {
	padding-inline: 1rem;
}

aside {
	padding-block-end: 2rem;
}

form textarea {
	width: 100%;
	box-sizing: border-box;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	border: 1px solid #ccc;
	padding: 0.25rem 1rem;
}

th {
	background-color: #eee;
}

tr:nth-child(even) td {
	background-color: #f7f7f7;
}

.btn-bar {
	display: flex;
	justify-content: end;
}

.columns {
	display: grid;
	row-gap: 2rem;
}

.note-layout {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.note-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.note-list__item {
	border-radius: 0.25rem;
}

.note-list__item--active {
	background-color: #eee;
}

.note-list__link {
	display: block;
	padding: 0.5rem 0.75rem;
	text-decoration: none;
}

.new-note-form {
	display: flex;
	gap: 0.5rem;
	margin-block-start: 1rem;
}

.note-editor {
	min-width: 0;
	flex: 1 1 auto;
}

.note-editor__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: 1rem;
}

.rename-note-form {
	display: flex;
	flex: 1 1 auto;
	gap: 0.5rem;
}

.rename-note-form input {
	flex: 1 1 auto;
}

@media all and (min-width: 1024px) {
	main,
	aside {
		padding-inline: 4rem;
	}

	.columns {
		grid-template-columns: 1fr 1fr;
	}

	.note-layout {
		flex-direction: row;
	}

	.note-list {
		flex: 0 0 12rem;
	}
}
