@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-300.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
}

@font-face {
	font-family: "Syne";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/syne-600.woff2") format("woff2");
}

@font-face {
	font-family: "Syne";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/syne-700.woff2") format("woff2");
}

@font-face {
	font-family: "Syne";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/syne-800.woff2") format("woff2");
}

:root {
	--ink: #12141a;
	--ink-muted: #5a5e68;
	--accent: #1a5c55;
	--accent-soft: rgba(26, 92, 85, 0.12);
	--bg: #e8e6e1;
	--bg-elevated: #f3f1ec;
	--line: rgba(18, 20, 26, 0.12);
	--page-pad: clamp(1.25rem, 4vw, 3rem);
	--font-display: "Syne", "Segoe UI", sans-serif;
	--font-sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
	--max-width: 1100px;
}

/* —— Site header —— */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1rem var(--page-pad);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

.site-logo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink);
}

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

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.site-nav a {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--ink-muted);
}

.site-nav a[href$="/articles"],
.site-nav a[href*="repos"] {
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.site-nav a:hover,
.site-nav a.is-active {
	color: var(--ink);
}

/* —— Footer —— */
.site-footer {
	border: 0;
	color: var(--ink-muted);
	text-align: center;
	padding: 3rem var(--page-pad) 2.5rem;
}

.site-footer hr {
	width: min(100%, 24rem);
	margin: 0 auto 1.25rem;
	border: 0;
	border-top: 1px solid var(--line);
}

.site-footer p {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--ink-muted);
	user-select: none;
}

.site-footer a {
	color: inherit;
}

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