/* Reset and base typography */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-serif);
	font-weight: 500;
	color: var(--ink);
}

button,
input,
select,
textarea {
	font: inherit;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

/* Small uppercase label used for category, "On this page", "Note" */
.label {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Accessibility helpers */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--radius);
	font-size: 15px;
}

.skip-link:focus {
	top: 12px;
	color: #fff;
	text-decoration: none;
}

/* Text-only post rows (homepage "Recent writing", archives, related) */
.post-list {
	display: flex;
	flex-direction: column;
}

.post-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
	padding: 18px 0;
	border-top: 1px solid var(--rule);
	color: var(--ink);
}

.post-list > .post-row:last-child,
.post-list > :last-child > .post-row {
	border-bottom: 1px solid var(--rule);
}

.post-row:hover {
	color: var(--ink);
	text-decoration: none;
}

.post-row:hover .post-row__title {
	text-decoration: underline;
}

.post-row__title {
	font-family: var(--font-serif);
	font-size: 19px;
}

.post-row__meta {
	font-size: 13px;
	color: var(--meta);
}
