/* ==========================================================================
   anubisofficial.cc — main.css
   Palette: warm near-black + bone white + gold accent. One accent, neutrals.
   Type pair: Inter (text) + JetBrains Mono (addresses, labels, code).
   ========================================================================== */

:root {
	--bg: #141210;
	--panel: #1b1815;
	--ink: #e8e2d9;
	--muted: #a29a8e;
	--faint: #6f675c;
	--gold: #c9a227;
	--gold-dim: #8a6d1d;
	--line: rgba(232, 226, 217, 0.14);
	--line-soft: rgba(232, 226, 217, 0.08);
	--red: #b3402e;
	--green: #4f9d69;
	--radius: 4px;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

::selection { background: var(--gold-dim); color: #fff; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: #e0bc45; }

.wrap {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}

.wrap.narrow { max-width: 760px; }

.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-head {
	border-bottom: 1px solid var(--line);
	background: rgba(20, 18, 16, 0.92);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(6px);
}

.site-head .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--ink);
}

.brand img {
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
	display: block;
}

.brand-name {
	font-size: 15px;
	letter-spacing: 4px;
	text-transform: lowercase;
	font-weight: 500;
}

.brand-name b { color: var(--gold); font-weight: 700; }

.topnav {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.topnav a {
	color: var(--muted);
	font-size: 12.5px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	padding: 7px 11px;
	border-radius: var(--radius);
	transition: color .15s ease, background .15s ease;
}

.topnav a:hover {
	color: var(--ink);
	background: var(--panel);
}

/* --------------------------------------------------------------------------
   Status strip
   -------------------------------------------------------------------------- */
.status-strip {
	border-bottom: 1px solid var(--line-soft);
	background: linear-gradient(180deg, rgba(201, 162, 39, 0.05), transparent);
}

.status-strip .wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 9px;
	padding-bottom: 9px;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green);
	animation: pulse 2.4s infinite;
	flex: none;
}

@keyframes pulse {
	0%   { box-shadow: 0 0 0 0 rgba(79, 157, 105, 0.55); }
	70%  { box-shadow: 0 0 0 7px rgba(79, 157, 105, 0); }
	100% { box-shadow: 0 0 0 0 rgba(79, 157, 105, 0); }
}

.status-text {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
}

.status-text b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Breadcrumbs — same width as content
   -------------------------------------------------------------------------- */
.crumbs {
	margin-top: 22px;
}

.crumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.4px;
	color: var(--faint);
}

.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "/"; color: var(--faint); margin-right: 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs .crumb-current { color: var(--ink); }

/* --------------------------------------------------------------------------
   Main content
   -------------------------------------------------------------------------- */
main {
	flex: 1;
	padding-bottom: 56px;
}

.page-hero { margin-top: 30px; }

.page-hero h1 {
	font-size: 26px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.3px;
	color: var(--ink);
	max-width: 720px;
}

.page-hero .lede {
	margin-top: 14px;
	color: var(--muted);
	font-size: 15.5px;
	max-width: 720px;
}

.meta-line {
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--faint);
}

.meta-line .tag { color: var(--gold); margin-left: 8px; }

/* Content blocks ----------------------------------------------------------- */
.block {
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

.block:first-of-type { border-top: none; }

.block h2 {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: var(--ink);
	margin-bottom: 12px;
}

.block h2::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	background: var(--gold);
	margin-right: 10px;
	transform: translateY(-1px);
	border-radius: 1px;
}

.block h3 {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink);
	margin: 18px 0 8px;
}

.block p {
	color: var(--muted);
	margin-bottom: 12px;
	max-width: 760px;
}

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

.block p strong { color: var(--ink); font-weight: 600; }

.block ul, .block ol {
	margin: 0 0 12px 20px;
	color: var(--muted);
	max-width: 720px;
}

.block li { margin-bottom: 6px; }
.block li::marker { color: var(--gold-dim); }

.block code {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--ink);
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-radius: 3px;
	padding: 1px 5px;
	word-break: break-all;
}

/* Mirrors ------------------------------------------------------------------ */
.mirrors {
	margin-top: 30px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 24px;
}

.mirrors-label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 16px;
}

.mirror-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line-soft);
}

.mirror-row:last-of-type { border-bottom: none; }

.mirror {
	flex: 1;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink);
	word-break: break-all;
	line-height: 1.5;
}

.mirror:hover { color: var(--gold); }

.copy-btn {
	flex: none;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 5px 12px;
	cursor: pointer;
	transition: all .15s ease;
}

.copy-btn:hover { color: var(--gold); border-color: var(--gold-dim); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

.mirrors-note {
	margin-top: 14px;
	font-size: 12.5px;
	color: var(--faint);
}

/* Guides index -------------------------------------------------------------- */
.guides {
	margin-top: 40px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

.guides h2 {
	font-size: 13px;
	font-family: var(--font-mono);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 14px;
}

.guide-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 6px;
}

.guide-links a {
	font-size: 12.5px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--muted);
	border: 1px solid var(--line-soft);
	border-radius: 3px;
	padding: 6px 11px;
	transition: all .15s ease;
}

.guide-links a:hover {
	color: var(--ink);
	border-color: var(--gold-dim);
	background: var(--panel);
}

/* News feed ----------------------------------------------------------------- */
.news-feed {
	margin-top: 40px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

.news-feed > h2 {
	font-size: 13px;
	font-family: var(--font-mono);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 6px;
}

.news-item {
	padding: 18px 0;
	border-bottom: 1px solid var(--line-soft);
}

.news-item:last-of-type { border-bottom: none; }

.news-item .meta {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 6px;
}

.news-item .meta .tag { color: var(--gold); margin-left: 8px; }

.news-item h3 {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 6px;
}

.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--gold); }

.news-item .dek {
	font-size: 13.5px;
	color: var(--muted);
	max-width: 700px;
}

.news-more { margin-top: 14px; }
.news-more a { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* Article ------------------------------------------------------------------- */
.article {
	margin-top: 30px;
	max-width: 760px;
}

.article .body p {
	color: var(--muted);
	margin-bottom: 14px;
}

.article .body p strong { color: var(--ink); }

.article .body h2 {
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	margin: 30px 0 12px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.article .body h2:first-child { border-top: none; margin-top: 0; }

.article .body h3 {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	margin: 20px 0 8px;
}

.article .body ul, .article .body ol {
	margin: 0 0 14px 20px;
	color: var(--muted);
}

.article .body li { margin-bottom: 6px; }
.article .body li::marker { color: var(--gold-dim); }

.article .body code {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--ink);
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-radius: 3px;
	padding: 1px 5px;
	word-break: break-all;
}

.article .body .callout {
	background: var(--panel);
	border-left: 3px solid var(--gold);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 14px 18px;
	margin: 18px 0;
	font-size: 14px;
	color: var(--ink);
}

.article .body .callout p { margin-bottom: 0; }

.article .body table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0;
	font-size: 13.5px;
}

.article .body th {
	text-align: left;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--faint);
	border-bottom: 1px solid var(--line);
	padding: 8px 10px;
}

.article .body td {
	border-bottom: 1px solid var(--line-soft);
	padding: 9px 10px;
	color: var(--muted);
	vertical-align: top;
}

.article .body td:first-child { color: var(--ink); white-space: nowrap; }

/* FAQ ------------------------------------------------------------------------- */
.faq {
	margin-top: 40px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

.faq > h2 {
	font-size: 13px;
	font-family: var(--font-mono);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 16px;
}

.qa {
	border-bottom: 1px solid var(--line-soft);
}

.qa summary {
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	padding: 14px 0;
	list-style: none;
	position: relative;
	padding-right: 28px;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 12px;
	font-family: var(--font-mono);
	color: var(--gold);
	font-size: 16px;
}

.qa[open] summary::after { content: "\2013"; }

.qa p {
	color: var(--muted);
	padding: 0 0 16px;
	max-width: 720px;
}

/* Related ---------------------------------------------------------------------- */
.related {
	margin-top: 40px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.related h2 {
	font-size: 13px;
	font-family: var(--font-mono);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 12px;
}

.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

.related a {
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--muted);
	border: 1px solid var(--line-soft);
	border-radius: 3px;
	padding: 6px 11px;
}

.related a:hover { color: var(--ink); border-color: var(--gold-dim); }

/* PGP block --------------------------------------------------------------------- */
.pgp-box {
	background: #0f0d0b;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	margin: 16px 0;
	overflow-x: auto;
}

.pgp-box pre {
	font-family: var(--font-mono);
	font-size: 11.5px;
	line-height: 1.55;
	color: var(--muted);
	white-space: pre-wrap;
	word-break: break-all;
}

.pgp-fp {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--gold);
	letter-spacing: 1px;
}

/* 404 ---------------------------------------------------------------------------- */
.code-404 {
	font-family: var(--font-mono);
	font-size: 64px;
	color: var(--gold-dim);
	margin: 40px 0 16px;
}

/* News index page ------------------------------------------------------------------ */
.news-list { margin-top: 30px; }

.news-list .news-item {
	padding: 22px 0;
	border-bottom: 1px solid var(--line-soft);
}

.news-list .news-item h3 { font-size: 18px; }

.news-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 26px;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.news-nav a { color: var(--muted); }
.news-nav a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Footer — same width as content
   -------------------------------------------------------------------------- */
.site-foot {
	border-top: 1px solid var(--line);
	background: #100e0c;
	margin-top: auto;
}

.site-foot .wrap {
	padding-top: 36px;
	padding-bottom: 30px;
}

.foot-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 28px;
}

.foot-brand {
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--ink);
	font-weight: 700;
	margin-bottom: 10px;
}

.foot-desc {
	font-size: 12.5px;
	color: var(--faint);
	line-height: 1.6;
	max-width: 300px;
}

.foot-col h2 {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 12px;
}

.foot-col a {
	display: block;
	font-size: 12.5px;
	color: var(--muted);
	padding: 3px 0;
}

.foot-col a:hover { color: var(--gold); }

.foot-mirrors {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid var(--line-soft);
}

.foot-mirrors-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 10px;
}

.foot-mirrors code {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--faint);
	margin-bottom: 4px;
	word-break: break-all;
}

.foot-note {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--line-soft);
}

.foot-note p {
	font-size: 11.5px;
	color: var(--faint);
	margin-bottom: 6px;
}

.foot-legal { opacity: 0.8; }

.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Mobile — designed, not shrunk
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
	body { font-size: 14.5px; }

	.site-head .wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.topnav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
	.topnav a { white-space: nowrap; }

	.page-hero { margin-top: 22px; }
	.page-hero h1 { font-size: 21px; }

	.mirrors { padding: 16px; margin-top: 22px; }

	.mirror-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 12px 0;
	}

	.mirror { font-size: 12px; }
	.copy-btn { align-self: flex-start; }

	.block { margin-top: 26px; padding-top: 20px; }

	.foot-grid {
		grid-template-columns: 1fr 1fr;
		gap: 22px;
	}

	.foot-col-wide { grid-column: 1 / -1; }

	.code-404 { font-size: 44px; margin: 24px 0 12px; }

	.article .body table { font-size: 12.5px; }
	.article .body td:first-child { white-space: normal; }
}

@media (max-width: 420px) {
	.foot-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.status-dot { animation: none; }
	html { scroll-behavior: auto; }
}
