/* quin.fyi
 *
 * Nothing on the page depends on colour or position to make sense: the markup is plain headings,
 * lists and links. Contrast is at least 4.5:1 for body text in both schemes.
 */

:root {
	--bg: #fbf9f6;
	--surface: #ffffff;
	--surface-alt: #f3efe9;
	--border: #ded7cd;
	--text: #1f2328;
	--muted: #55606d;
	--accent: #0b5ed7;
	--measure: 40rem;
	--gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #12161c;
		--surface: #1a2028;
		--surface-alt: #222a34;
		--border: #333d4a;
		--text: #e6e9ee;
		--muted: #a7b1bf;
		--accent: #7fb2ff;
	}
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.wrap, main {
	max-width: var(--measure);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 3px;
}

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

.brand {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
}

.site-nav ul, .site-footer ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: var(--muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.site-nav [aria-current="page"] {
	color: var(--text);
	font-weight: 600;
	border-bottom-color: var(--accent);
}

main {
	padding-top: 2rem;
	padding-bottom: 3rem;
}

h1, h2, h3, h4 {
	line-height: 1.25;
	margin: 2rem 0 0.6rem;
}

h1 {
	font-size: clamp(1.9rem, 5vw, 2.4rem);
	margin-top: 0.5rem;
}

h2 {
	font-size: 1.45rem;
}

h3 {
	font-size: 1.2rem;
}

p, ul, ol, blockquote, pre, table {
	margin: 0 0 1rem;
}

ul, ol {
	padding-left: 1.4rem;
}

li + li {
	margin-top: 0.25rem;
}

.meta, .post-list time {
	color: var(--muted);
}

article > header .meta {
	margin-top: -0.3rem;
}

.post-list {
	list-style: none;
	padding: 0;
}

.post-list time {
	display: block;
	font-size: 0.95rem;
}

.post-list li + li {
	margin-top: 0.9rem;
}

blockquote {
	margin-left: 0;
	padding-left: 1rem;
	border-left: 4px solid var(--border);
	color: var(--muted);
}

code, pre, kbd {
	font-family: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
	font-size: 0.9em;
}

code {
	background: var(--surface-alt);
	border-radius: 4px;
	padding: 0.1em 0.35em;
}

pre {
	background: var(--surface-alt);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.9rem 1rem;
	overflow-x: auto;
}

pre code {
	background: none;
	padding: 0;
}

img {
	max-width: 100%;
	height: auto;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 2.5rem 0;
}

.site-footer {
	border-top: 1px solid var(--border);
	background: var(--surface);
	color: var(--muted);
	font-size: 0.95rem;
}

.site-footer .wrap {
	padding-top: 1.5rem;
	padding-bottom: 2.5rem;
}

.site-footer p {
	margin: 0.6rem 0 0;
}
