/* Popmartian.com - simple, mobile-first stylesheet */

:root {
	--bg: #ccffff;
	--panel: #fff;
	--text: #1b1b1b;
	--muted: #555;
	--rule: #1b1b1b;
	--faint: #d4d4d4;
	--link: #0645ad;
	--visited: #5a3696;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.0625rem;
	line-height: 1.5;
}

.page {
	max-width: 58rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
}

h1 {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--rule);
}

h2 {
	font-size: 1.1rem;
	margin: 0 0 0.25rem;
}

a {
	color: var(--link);
}

a:visited {
	color: var(--visited);
}

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

/* Main list sits on a white panel, like the old left column */
main {
	background: var(--panel);
	border: 2px solid var(--rule);
	padding: 0.25rem 1rem;
}

/* Link lists: title on its own line, description underneath */
.links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.links li {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--faint);
	color: var(--muted);
}

.links li:last-child {
	border-bottom: 0;
}

.links a {
	display: block;
	font-weight: bold;
	margin-bottom: 0.15rem;
}

/* Sidebar: below the main list on phones */
aside {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 2px solid var(--rule);
}

aside .links li {
	font-size: 0.9rem;
}

/* Side by side on wider screens */
@media (min-width: 48rem) {
	.page {
		padding-top: 2.5rem;
	}

	.columns {
		display: grid;
		grid-template-columns: 2fr 1fr;
		gap: 2.5rem;
	}

	main {
		padding: 0.5rem 1.5rem;
	}

	aside {
		margin-top: 0;
		padding-top: 0.75rem;
		border-top: 0;
	}
}
