:root {
	--paper: #faf7f0;
	--ink: #12151c;
	--muted: #5a606c;

	--display: 'Archivo', system-ui, sans-serif;
	--sans: 'Instrument Sans', system-ui, sans-serif;
	--mono: 'Geist Mono', ui-monospace, monospace;
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--sans);
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

a:hover,
a[aria-current] {
	text-decoration-thickness: 2px;
}

a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

/* Hidden until a keyboard user tabs to it */
.skip {
	position: absolute;
	left: 1rem;
	top: -5rem;
	padding: 0.6rem 0.9rem;
	background: var(--ink);
	color: var(--paper);
	font: 400 0.9375rem var(--mono);
}

.skip:focus {
	top: 1rem;
}

.page {
	display: grid;
	grid-template-columns: 300px minmax(0, 560px);
	gap: 3.5rem 6rem;
	max-width: 1000px;
	margin: 0 auto;
	padding: 5rem 2rem 6rem;
}

/* Sidebar */

.sidebar {
	align-self: start;
}

.name {
	margin: 0 0 2rem;
	font: 800 4.5rem/0.95 var(--display);
	letter-spacing: -0.035em;
}

.name a {
	text-decoration: none;
}

.intro {
	max-width: 18em;
	margin: 0 0 2rem;
}

.links {
	font: 400 0.9375rem/1.9 var(--mono);
}

.links ul {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

/* Main column */

main {
	padding-top: 0.75rem;
}

.label {
	margin: 0 0 1.5rem;
	color: var(--muted);
	font: 400 0.8125rem/1.6 var(--mono);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.role {
	margin-bottom: 2rem;
}

.role h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 500;
}

.meta {
	margin: 0 0 0.5rem;
	color: var(--muted);
	font-size: 0.9375rem;
}

.role ul {
	margin: 0;
	padding-left: 1.125rem;
}

/* Writing list */

.posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.posts li {
	margin-bottom: 1.75rem;
}

.posts a {
	font-size: 1.125rem;
	font-weight: 500;
}

.posts .meta {
	margin: 0.125rem 0 0;
}

/* A single post */

.post h1 {
	margin: 0 0 0.5rem;
	font: 800 2.25rem/1.15 var(--display);
	letter-spacing: -0.02em;
}

.post .meta {
	margin-bottom: 2.5rem;
}

.post h2 {
	margin: 2.5rem 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.35;
}

.post p {
	margin: 0 0 1.25rem;
}

/* Keep the sidebar in view on screens big enough to fit it */
@media (min-width: 901px) and (min-height: 700px) {
	.sidebar {
		position: sticky;
		top: 5rem;
	}
}

/* Below this the two columns get too narrow, so stack them */
@media (max-width: 900px) {
	.page {
		grid-template-columns: minmax(0, 1fr);
		max-width: 40rem;
		padding: 3rem 1.25rem 4rem;
	}

	.name {
		font-size: 3.5rem;
	}

	/* Each link group on one line, so experience starts higher up */
	.links ul {
		display: flex;
		flex-wrap: wrap;
		gap: 0 1.5rem;
		margin-bottom: 0;
	}

	/* Taller tap targets for fingers */
	.links a {
		display: inline-block;
		padding: 0.5rem 0;
	}

	.post h1 {
		font-size: 1.75rem;
	}
}
