:root {
	--bg: #14161a;
	--card: #1d2026;
	--line: #2b3038;
	--text: #e7e9ee;
	--muted: #8d94a3;
	--accent: #6ea8fe;
	--danger: #e5806f;
}

@media (prefers-color-scheme: light) {
	:root {
		--bg: #f5f6f8;
		--card: #ffffff;
		--line: #e2e5ea;
		--text: #1b1e24;
		--muted: #6b7280;
		--accent: #2563eb;
		--danger: #c2410c;
	}
}

* { box-sizing: border-box; }

body {
	margin: 0;
	padding: 2rem 1rem 4rem;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

header, main { max-width: 46rem; margin: 0 auto; }

h1 { margin: 0 0 .25rem; font-size: 1.6rem; letter-spacing: -0.01em; }
.sub { margin: 0 0 2rem; color: var(--muted); }

.status { color: var(--muted); }
.status[hidden] { display: none; }

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }

.note {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: .9rem 1rem;
}

.note-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .5rem 1rem;
	margin-bottom: .6rem;
}

.when { font-weight: 600; }
.meta { color: var(--muted); font-size: .875rem; }
.spacer { flex: 1; }

audio { width: 100%; height: 38px; }

.actions { display: flex; gap: 1rem; margin-top: .55rem; font-size: .875rem; }
.actions a, .actions button {
	color: var(--accent);
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
	text-decoration: none;
}
.actions a:hover, .actions button:hover { text-decoration: underline; }
.actions .delete { color: var(--danger); }
