:root {
	--page-width: 54rem;
	--text: #22272e;
	--muted: #66717c;
	--border: #cfd5da;
	--background: #f4f5f4;
	--surface: #ffffff;
	--surface-alt: #ecefee;
	--accent: #7a3131;
	--accent-soft: #f3e7e7;
	--warning: #846a2d;
	--link: #425f78;
}

* {
	box-sizing: border-box;
}

html {
	font-family:
		Arial,
		Helvetica,
		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.5rem 1rem;
	border-bottom: 1px solid var(--border);
	background: #e7e9e8;
	color: var(--muted);
	font-size: 0.72rem;
	text-align: center;
}

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

.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: flex-end;
	gap: 2rem;
	padding: 1.5rem 0 1rem;
	border-bottom: 2px solid var(--text);
}

.identity {
	display: flex;
	flex-direction: column;
}

.site-name {
	color: var(--text);
	font-size: 1.8rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

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

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

main {
	padding: 3rem 0 5rem;
}

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

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

.classification {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.85rem;
	font-size: 0.7rem;
	text-transform: uppercase;
}

.classification span {
	color: var(--muted);
	letter-spacing: 0.08em;
}

.classification strong {
	padding: 0.15rem 0.45rem;
	border: 1px solid #dcbcbc;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 0.68rem;
	letter-spacing: 0.04em;
}

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

.article-meta {
	display: flex;
	gap: 1.25rem;
	margin-top: 0.8rem;
	color: var(--muted);
	font-size: 0.75rem;
}

.notice {
	margin: 1.5rem 0 2.5rem;
	padding: 1rem 1.1rem;
	border: 1px solid #d8c9a4;
	border-left: 4px solid var(--warning);
	background: #f5f0e3;
}

.notice strong {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.notice p {
	margin: 0;
	font-size: 0.85rem;
}

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

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

p {
	margin: 1rem 0;
}

.determination {
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 2px solid var(--text);
}

.determination h2 {
	margin-top: 0;
}

.determination-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--border);
	background: var(--surface);
}

.determination-grid > div {
	padding: 0.85rem;
	border-right: 1px solid var(--border);
}

.determination-grid > div:last-child {
	border-right: 0;
}

.determination-grid span,
.determination-grid strong {
	display: block;
}

.determination-grid span {
	margin-bottom: 0.2rem;
	color: var(--muted);
	font-size: 0.65rem;
	text-transform: uppercase;
}

.determination-grid strong {
	font-size: 0.78rem;
}

.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 {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.section-label {
	margin-bottom: 0.55rem;
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.archive-header p {
	max-width: 40rem;
	margin: 0.75rem 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.85rem 0;
	border-bottom: 1px solid var(--border);
}

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

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

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

.about {
	max-width: 44rem;
}

.policy-card {
	margin: 1.75rem 0 2rem;
	border: 1px solid var(--border);
	background: var(--surface);
}

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

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

.policy-card span {
	color: var(--muted);
	font-size: 0.75rem;
}

.policy-card strong {
	font-size: 0.78rem;
}

.exception-card {
	margin: 1rem 0 2rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--border);
	background: var(--surface);
}

.exception-card > strong {
	display: inline-block;
	padding: 0.15rem 0.4rem;
	border: 1px solid #b8ceb9;
	background: #edf4ed;
	color: #456247;
	font-size: 0.68rem;
	text-transform: uppercase;
}

.exception-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;
	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);
	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.72rem;
}

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);
}

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;
	}

	main {
		padding-top: 2rem;
	}

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

	.determination-grid {
		grid-template-columns: 1fr;
	}

	.determination-grid > div {
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}

	.determination-grid > div:last-child {
		border-bottom: 0;
	}

	.post-list li,
	.policy-card > div {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

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

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

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