@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
	--bg: #f4f6f9;
	--bg-elevated: #ffffff;
	--text: #0f172a;
	--muted: #64748b;
	--line: #e2e8f0;
	--accent: #2563eb;
	--accent-hover: #1d4ed8;
	--accent-soft: rgba(37, 99, 235, 0.08);
	--shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 4px 20px rgba(15, 23, 42, 0.07);
	--radius: 12px;
	--font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
	--font-display: "Source Sans 3", var(--font);
	--content-width: 46rem;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.site {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main-content {
	flex: 1;
}

.wrap {
	width: 100%;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 1.25rem 3rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
	max-width: var(--content-width);
	margin: 0 auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.site-header__inner.wrap {
	padding: 0.9rem 1.25rem;
}

.brand {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: -0.02em;
	color: var(--text);
	text-decoration: none;
}

.brand:hover {
	color: var(--accent);
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1rem;
}

.site-nav__link {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.site-nav__link:hover {
	color: var(--accent);
	border-bottom-color: var(--accent-soft);
}

.hero {
	padding: 2rem 0 2.25rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid var(--line);
}

.hero__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.03em;
	margin: 0 0 0.5rem;
	color: var(--text);
}

.hero__tagline {
	font-size: 1.1rem;
	color: var(--accent);
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.hero__desc {
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	max-width: 36rem;
	line-height: 1.6;
}

.page-header {
	margin-bottom: 1.75rem;
}

.page-header__lead {
	margin: 0.5rem 0 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.section-title {
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin: 0 0 1rem;
}

.page-title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	color: var(--text);
}

.lead {
	font-size: 1.05rem;
	color: var(--muted);
	margin: 0 0 1rem;
}

.cat-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	margin: 0 0 2rem;
	padding: 1rem 1.15rem;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.cat-nav__label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
}

.cat-nav__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.85rem;
}

.cat-nav__links a {
	color: var(--accent);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	padding: 0.2rem 0;
}

.cat-nav__links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

.post-list--cards .post-item {
	margin-bottom: 0.75rem;
}

.post-list--cards .post-item:last-child {
	margin-bottom: 0;
}

.post-item__link {
	display: block;
	padding: 1.15rem 1.25rem;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	color: inherit;
	box-shadow: var(--shadow);
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.post-item__link:hover {
	border-color: rgba(37, 99, 235, 0.35);
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.post-item__title {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--text);
	margin-bottom: 0.35rem;
}

.post-item__link:hover .post-item__title {
	color: var(--accent);
}

.post-item__meta {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 0.35rem;
}

.post-item__link .excerpt {
	display: block;
	font-size: 0.92rem;
	color: var(--muted);
	line-height: 1.5;
	margin: 0;
}

.in-cat {
	font-weight: 500;
	color: var(--muted);
}

.cat-count {
	font-size: 0.85rem;
	color: var(--muted);
	font-weight: 500;
}

.crumb {
	font-size: 0.875rem;
	color: var(--muted);
	margin: 0 0 1.5rem;
	line-height: 1.6;
}

.crumb a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
}

.crumb a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.crumb__sep {
	margin: 0 0.35rem;
	color: var(--line);
	user-select: none;
}

.crumb__current {
	color: var(--text);
	font-weight: 600;
}

.article-card {
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.75rem 1.5rem 2rem;
	box-shadow: var(--shadow);
}

@media (min-width: 640px) {
	.article-card {
		padding: 2rem 2.25rem 2.25rem;
	}
}

.article-card__head {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--line);
}

.article .meta,
.article-card__head .meta {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 0;
}

.article-body {
	font-size: 1.05rem;
	line-height: 1.75;
}

.article-body p {
	margin: 0 0 1.15rem;
}

.article-body h2,
.article-body h3 {
	font-family: var(--font-display);
	margin: 1.75rem 0 0.75rem;
	line-height: 1.35;
}

.article-body a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.article-body a:hover {
	color: var(--accent-hover);
}

.article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.article-body blockquote {
	margin: 1.25rem 0;
	padding: 0.5rem 0 0.5rem 1.15rem;
	border-left: 4px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

.category-footer {
	margin-top: 2.75rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.category-footer p:last-child {
	margin-bottom: 0;
}

.back-home {
	margin-top: 2rem;
}

.back-home a {
	color: var(--accent);
	font-weight: 500;
	text-decoration: none;
}

.back-home a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer {
	margin-top: auto;
	padding: 2rem 0;
	background: var(--bg-elevated);
	border-top: 1px solid var(--line);
}

.site-footer__inner {
	padding-top: 0;
	padding-bottom: 0;
}

.site-footer__inner.wrap {
	padding: 0 1.25rem;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1rem;
}

.footer-nav a {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
}

.footer-nav a:hover {
	color: var(--accent);
}

.site-footer__copy {
	margin: 0;
	color: var(--muted);
}

.site-footer__copy small {
	font-size: 0.8125rem;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.post-item__link:hover {
		transform: none;
	}
}
