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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: clip;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.55;
}

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

a {
	color: inherit;
}

p {
	margin: 0 0 0.8em;
}

.container,
.site-content {
	width: min(var(--max), calc(100% - 40px));
	margin-inline: auto;
}

.site-content {
	padding: 36px 0 72px;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -40px;
	z-index: 10000;
	background: var(--accent);
	color: var(--ink);
	padding: 8px 12px;
	font-weight: 700;
}

.skip-link:focus {
	top: 8px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	background: var(--accent);
	flex: none;
}

.story-title,
.entry-title,
.section-title,
.archive-title {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.story-title {
	margin: 0 0 8px;
	font-size: 1.55rem;
}

.story-title a,
.entry-title a {
	color: inherit;
	text-decoration: none;
}

.story-title a:hover,
.entry-title a:hover,
.section-all:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.story-excerpt,
.story-meta,
.entry-meta {
	color: var(--muted);
}

.story-excerpt {
	font-size: 1rem;
}

.story-excerpt p {
	margin: 0 0 8px;
}

.story-meta,
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0;
	font-size: 0.92rem;
}

.story-author::before,
.byline::before {
	content: "·";
	margin-right: 14px;
}

.story-media {
	display: block;
	overflow: hidden;
	background: #1b1e24;
	aspect-ratio: 16 / 10;
}

.story-media img,
.thumb-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumb-fallback {
	display: block;
	background:
		linear-gradient(145deg, rgba(214, 255, 60, 0.16), transparent 42%),
		linear-gradient(160deg, #1b1e24, #323846);
}

.section-title {
	margin: 0;
	font-size: 1.8rem;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--ink);
}

.section-all {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.pagination-wrapper {
	margin-top: 36px;
}

.pagination-wrapper .nav-links,
.pagination-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination-wrapper a,
.pagination-wrapper span {
	display: inline-block;
	min-width: 2.2rem;
	padding: 6px 10px;
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--ink);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.pagination-wrapper .current,
.pagination-wrapper a:hover {
	background: var(--ink);
	color: var(--accent);
	border-color: var(--ink);
}

.empty-home,
.no-results {
	padding: 24px 0 8px;
}
