:root {
	--bg: #050705;
	--green: #57e35f;
	--green-dim: #2f8f36;
	--line: #1f5f24;
	--max-width: 1180px;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--green);
	font-family: "Courier New", Courier, monospace;
}

body {
	min-height: 100vh;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.archive-shell {
	width: min(100% - 48px, var(--max-width));
	margin: 0 auto;
	padding: 48px 0 72px;
}

.archive-title {
	font-size: clamp(1.5rem, 2.5vw, 2.4rem);
}

.archive-status {
	margin-bottom: 28px;
	line-height: 1.6;
}

.archive-rule {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 24px 0;
}

.archive-entry h2 {
	font-size: 1.05rem;
}

.archive-id {
	margin: 0 0 10px;
	font-size: 1rem;
	color: var(--green-dim);
}

.archive-entry h2 {
	margin: 0 0 18px;
	font-size: 1.35rem;
	font-weight: 500;
}

.metadata-grid {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 8px 20px;
	margin-bottom: 20px;
}

.archive-table {
	width: 100%;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.archive-row {
	display: grid;
	grid-template-columns:
		100px
		minmax(260px, 1fr)
		180px
		140px
		100px;
	align-items: center;
	column-gap: 18px;
	min-height: 42px;
	padding: 7px 10px;
	font-size: 0.9rem;
}

.archive-header {
	color: var(--green-dim);
	border-bottom: 1px solid var(--line);
}

.archive-document {
	position: relative;
	color: var(--green);
	border-bottom: 1px solid rgba(31, 95, 36, 0.35);
}

.archive-document:last-child {
	border-bottom: none;
}

.archive-document:hover {
	text-decoration: none;
	background: rgba(87, 227, 95, 0.045);
}

.archive-document:hover::before {
	content: ">";
	position: absolute;
	margin-left: -18px;
}

.metadata-label {
	color: var(--green-dim);
}

.open-link {
	display: inline-block;
	margin-top: 6px;
}

.document-shell {
	width: min(100% - 48px, 900px);
	margin: 0 auto;
	padding: 48px 0 80px;
}
.return-link {
	display: inline-block;
	margin-bottom: 36px;
	color: var(--green-dim);
}

.document-meta {
	margin-bottom: 28px;
}


.document-title {
	margin: 0 0 24px;
	font-size: 1.8rem;
	font-weight: 500;
}

.document-body {
	line-height: 1.65;
	font-size: 0.92rem;
}

.return-link,
.document-meta,
.archive-status,
.metadata-grid,
.open-link {
	font-size: 0.9rem;
}

.document-body p {
	margin: 0 0 1.4em;
}

.document-body h1,
.document-body h2,
.document-body h3 {
	font-weight: 500;
}

@media (max-width: 700px) {
	.archive-shell,
	.document-shell {
		width: min(100% - 28px, var(--max-width));
		padding-top: 28px;
	}

	.metadata-grid {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.metadata-value {
		margin-bottom: 10px;
	}
}