:root {
	--page-width: 54rem;
	--text: #263238;
	--muted: #718087;
	--border: #d9e1e4;
	--background: #f5f8f9;
	--surface: #ffffff;
	--surface-alt: #eef3f4;
	--accent: #3d7784;
	--accent-soft: #dcebed;
	--link: #356d7a;
	--warning: #98762c;
}

* {
	box-sizing: border-box;
}

html {
	font-family:
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--background);
}

body {
	margin: 0;
}

a {
	color: var(--link);
	text-underline-offset: 0.15em;
}

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

.sale-banner {
	padding: 0.55rem 1rem;
	border-bottom: 1px solid var(--border);
	background: var(--surface-alt);
	color: var(--muted);
	font-size: 0.75rem;
	text-align: center;
}

.sale-banner a {
	margin-left: 0.25rem;
	color: var(--text);
	font-weight: 600;
}

.site-header,
main,
footer {
	width: min(var(--page-width), calc(100% - 2rem));
	margin-inline: auto;
}

.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--border);
}

.site-name {
	color: var(--text);
	font-size: 1.65rem;
	font-weight: 650;
	letter-spacing: -0.035em;
	text-decoration: none;
}

.site-tagline {
	margin-top: 0.15rem;
	color: var(--muted);
	font-size: 0.75rem;
}

.site-header nav {
	display: flex;
	gap: 1rem;
	font-size: 0.8rem;
}

main {
	padding: 3rem 0 5rem;
}

article,
.archive {
	max-width: 48rem;
}

.article-header,
.archive-header {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.status-row {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.75rem;
	color: var(--accent);
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.status-dot {
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--warning);
	box-shadow: 0 0 0 0.2rem rgba(152, 118, 44, 0.12);
}

h1 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 650;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 0.85rem;
	color: var(--muted);
	font-size: 0.78rem;
}

.progress-panel {
	margin: 1.5rem 0 2.5rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: 0.45rem;
	background: var(--surface);
}

.progress-label {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.55rem;
	color: var(--muted);
	font-size: 0.72rem;
}

.progress-track {
	height: 0.4rem;
	overflow: hidden;
	border-radius: 999px;
	background: var(--surface-alt);
}

.progress-value {
	width: 92%;
	height: 100%;
	border-radius: inherit;
	background: var(--accent);
}

.article-body section {
	margin-top: 2.75rem;
}

h2 {
	margin: 2.5rem 0 0.8rem;
	font-size: 1.25rem;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -0.025em;
}

p {
	margin: 1rem 0;
}

.next-step {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: 1rem;
	margin-top: 3rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--border);
	border-left: 4px solid var(--warning);
	border-radius: 0.35rem;
	background: var(--surface);
	font-size: 0.82rem;
}

.next-step strong {
	font-weight: 650;
}

.next-step span {
	color: var(--muted);
}

.article-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	font-size: 0.8rem;
}

.archive-header > p {
	margin: 0.6rem 0 0;
	color: var(--muted);
}

.post-list,
.network-sites {
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.post-list li {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: 1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--border);
}

.post-list time {
	color: var(--muted);
	font-size: 0.75rem;
}

.post-list a {
	font-weight: 550;
}

.network-sites li {
	padding: 0.35rem 0;
}

.about {
	max-width: 44rem;
}

.system-card,
.dependency-card {
	margin: 1.75rem 0 2rem;
	border: 1px solid var(--border);
	border-radius: 0.45rem;
	background: var(--surface);
}

.system-card dl {
	margin: 0;
}

.system-card dl > div {
	display: grid;
	grid-template-columns: 10rem 1fr;
	gap: 1rem;
	padding: 0.7rem 1rem;
	border-bottom: 1px solid var(--border);
}

.system-card dl > div:last-child {
	border-bottom: 0;
}

.system-card dt {
	color: var(--muted);
	font-size: 0.78rem;
}

.system-card dd {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
}

.dependency-card {
	padding: 1rem 1.1rem;
}

.dependency-card > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.dependency-card > div span {
	color: var(--warning);
	font-size: 0.78rem;
	font-weight: 650;
}

.dependency-card p {
	margin-bottom: 0;
}

blockquote {
	margin: 2rem 0;
	padding: 0.2rem 0 0.2rem 1rem;
	border-left: 3px solid var(--border);
	color: var(--muted);
}

code {
	padding: 0.1em 0.3em;
	border-radius: 0.2rem;
	background: var(--surface-alt);
	font-family:
		ui-monospace,
		SFMono-Regular,
		Consolas,
		monospace;
	font-size: 0.9em;
}

pre {
	overflow-x: auto;
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: 0.35rem;
	background: var(--surface-alt);
}

pre code {
	padding: 0;
	background: transparent;
}

footer {
	padding: 1.5rem 0 2.5rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.75rem;
}

footer ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

footer li {
	display: flex;
	align-items: center;
}

footer li + li::before {
	content: "";
	width: 1px;
	height: 1em;
	margin: 0 0.75rem;
	background: var(--border);
	flex: 0 0 auto;
}

footer del {
	text-decoration-thickness: 1px;
}

footer a {
	color: inherit;
}

@media (max-width: 600px) {
	html {
		font-size: 16px;
	}

	.site-header,
	main,
	footer {
		width: min(100% - 1.25rem, var(--page-width));
	}

	.site-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.8rem;
	}

	.site-header nav {
		flex-wrap: wrap;
	}

	main {
		padding-top: 2rem;
		padding-bottom: 3.5rem;
	}

	.article-meta {
		flex-direction: column;
		gap: 0.2rem;
	}

	.next-step {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.post-list li {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.system-card dl > div {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.article-nav {
		flex-direction: column;
	}

	footer {
		padding-top: 1.25rem;
	}

	footer ul {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.4rem;
	}

	footer li {
		display: block;
		width: 100%;
		line-height: 1.5;
	}

	footer li + li::before {
		display: none;
	}
}
