/*
 * Skulltag — Hub cards + homepage hero CSS (ex-snippet 22).
 *
 * Styles for .hcard-grid + .hcard system + homepage .home-hero/.pillar-card,
 * .glossary-teaser, .sb-teaser. Used by both hub auto-query (router.php)
 * and homepage.php.
 */

/* ============ Hub listing wrapper ============ */
.hub-listing { margin: 32px 0; }
.hub-count {
	font-family: var(--font-m);
	font-size: 13px;
	color: var(--ink-3);
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0 0 18px;
}
.hub-empty {
	background: var(--bg-2);
	border: 1px solid var(--line-soft);
	border-radius: var(--r);
	padding: 22px;
	color: var(--ink-2);
}
.hub-empty a { color: var(--rust-hi); border-bottom: 1px solid oklch(0.72 0.18 52 / .35); }

/* ============ Hub card grid ============ */
.hcard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.hcard {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 16px;
	background: linear-gradient(160deg, var(--panel), var(--bg-2));
	border: 1px solid var(--line);
	border-radius: var(--r);
	text-decoration: none !important;
	color: var(--ink);
	transition: border-color .15s, transform .12s, box-shadow .15s;
}
.hcard:hover {
	border-color: var(--rust);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -12px oklch(0.72 0.18 52 / .4);
}
.hcard-kicker {
	font-family: var(--font-m);
	font-size: 10.5px;
	letter-spacing: .12em;
	color: var(--rust-hi);
	text-transform: uppercase;
}
.hcard-title {
	font-family: var(--font-d);
	font-size: 19px;
	font-weight: 700;
	margin: 0;
	color: var(--ink);
	line-height: 1.2;
}
.hcard-desc {
	font-family: var(--font-b);
	font-size: 14px;
	color: var(--ink-2);
	line-height: 1.5;
	margin: 0;
}
.hcard-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
}
.hcard-pill {
	font-family: var(--font-m);
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--bg);
	border: 1px solid var(--line-soft);
	color: var(--ink-2);
	letter-spacing: .02em;
}
.hcard-pill.ver  { color: var(--rust-hi); border-color: oklch(0.72 0.18 52 / .35); }
.hcard-pill.kind { color: var(--rust-hi); border-color: oklch(0.72 0.18 52 / .35); text-transform: uppercase; letter-spacing: .08em; }
.hcard-pill.mode { color: var(--rust-hi); border-color: oklch(0.72 0.18 52 / .35); }
.hcard-pill.diff { background: oklch(0.4 0.04 200 / .25); }
.hcard-badge-row { margin-top: 6px; }
.hcard-badge {
	font-family: var(--font-m);
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 999px;
	letter-spacing: .04em;
}
.hcard-badge.tested {
	background: oklch(0.55 0.16 145 / .15);
	color: oklch(0.78 0.16 145);
	border: 1px solid oklch(0.55 0.16 145 / .4);
}
.hcard-badge.researched {
	background: var(--bg);
	color: var(--ink-3);
	border: 1px solid var(--line-soft);
}

/* ============ Home hero (page === front_page) ============ */
.home .entry-content,
body.home .sp-article,
.home-hero-wrap { font-family: var(--font-b); color: var(--ink); }

.home-hero {
	padding: 60px 24px 40px;
	max-width: var(--maxw, 1180px);
	margin: 0 auto;
	border-bottom: 1px solid var(--line-soft);
}
.home-hero .kicker {
	display: inline-block;
	font-family: var(--font-m);
	font-size: 11px;
	letter-spacing: .14em;
	color: var(--rust-hi);
	text-transform: uppercase;
	margin: 0 0 14px;
	padding-left: 36px;
	position: relative;
}
.home-hero .kicker::before {
	content: "";
	position: absolute; left: 0; top: 50%;
	width: 28px; height: 1px;
	background: var(--rust-hi);
	transform: translateY(-50%);
}
.home-hero h1 {
	font-family: var(--font-d);
	font-size: clamp(36px, 6vw, 64px);
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.04;
	margin: 0 0 18px;
	color: var(--ink);
	max-width: 18ch;
}
.home-hero .lead {
	font-family: var(--font-b);
	font-size: 20px;
	color: var(--ink-2);
	line-height: 1.5;
	margin: 0 0 28px;
	max-width: 56ch;
}
.home-hero .hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.home-hero .hero-cta a {
	display: inline-block;
	padding: 11px 22px;
	font-family: var(--font-d);
	font-weight: 600;
	font-size: 14.5px;
	border-radius: var(--r);
	text-decoration: none;
}
.home-hero .hero-cta a.primary {
	background: linear-gradient(160deg, var(--rust-hi), var(--rust));
	color: #1a0f08;
	border: 0;
}
.home-hero .hero-cta a.secondary {
	background: var(--bg-2);
	color: var(--ink);
	border: 1px solid var(--line);
}
.home-hero .hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 36px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--line-soft);
}
.home-hero .stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 120px;
}
.home-hero .stat .num {
	font-family: var(--font-d);
	font-size: 24px;
	font-weight: 700;
	color: var(--rust-hi);
	line-height: 1;
	letter-spacing: -.01em;
}
.home-hero .stat .lbl {
	font-family: var(--font-m);
	font-size: 11px;
	color: var(--ink-3);
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ============ Pillar grid ============ */
.pillar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}
.pillar-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--r);
	text-decoration: none !important;
	color: var(--ink);
	transition: border-color .15s, transform .12s, background .15s;
}
.pillar-card:hover {
	border-color: var(--rust);
	background: linear-gradient(160deg, var(--panel), var(--bg-2));
	transform: translateY(-2px);
}
.pillar-card h3 {
	font-family: var(--font-d);
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: var(--ink);
	line-height: 1.2;
}
.pillar-card p {
	font-family: var(--font-b);
	font-size: 13.5px;
	color: var(--ink-2);
	line-height: 1.5;
	margin: 0;
}
.pillar-card .pillar-tag {
	font-family: var(--font-m);
	font-size: 10.5px;
	color: var(--rust-hi);
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-top: auto;
	padding-top: 6px;
}

/* ============ Glossary teaser ============ */
.glossary-teaser .glossary-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.gchip {
	display: inline-block;
	font-family: var(--font-m);
	font-size: 12.5px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	transition: border-color .15s, color .15s, background .15s;
}
.gchip:hover {
	border-color: var(--rust);
	color: var(--rust-hi);
	background: var(--panel);
}

/* Home sections */
.home-section {
	padding: 48px 24px 16px;
	max-width: var(--maxw, 1180px);
	margin: 0 auto;
}
.home-section .sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
}
.home-section h2 {
	font-family: var(--font-d);
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	color: var(--ink);
	letter-spacing: -.005em;
}
.home-section .sec-link {
	font-family: var(--font-m);
	font-size: 13px;
	color: var(--rust-hi);
	text-decoration: none;
	border-bottom: 1px solid oklch(0.72 0.18 52 / .35);
}

/* Server browser teaser */
.sb-teaser {
	background: var(--bg-2);
	border: 1px solid var(--line-soft);
	border-radius: var(--r);
	padding: 22px;
	margin: 16px 0;
	font-family: var(--font-m);
}
.sb-teaser-head {
	display: flex; align-items: center; gap: 10px;
	font-size: 12px; color: var(--ink-3); letter-spacing: .08em;
	margin: 0 0 14px;
	text-transform: uppercase;
}
.sb-teaser-head::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%;
	background: var(--ink-3);
}
.sb-rows { display: grid; gap: 6px; opacity: .5; }
.sb-row {
	display: grid;
	grid-template-columns: 1.5fr 1fr .8fr 60px;
	gap: 12px;
	padding: 8px 0;
	font-size: 12.5px;
	color: var(--ink-2);
	border-bottom: 1px dashed var(--line-soft);
}
.sb-overlay {
	margin-top: 14px;
	text-align: center;
	font-family: var(--font-d);
	color: var(--ink-3);
	font-size: 13px;
	letter-spacing: .04em;
}

@media (max-width: 720px) {
	.hcard-grid { grid-template-columns: 1fr; }
	.home-hero { padding: 38px 16px 28px; }
	.home-hero h1 { font-size: 36px; }
	.home-hero .lead { font-size: 17px; }
	.home-hero .hero-stats { gap: 18px 24px; margin-top: 28px; padding-top: 20px; }
	.home-hero .stat { min-width: 100px; }
	.home-hero .stat .num { font-size: 20px; }
	.home-section { padding: 32px 16px 12px; }
	.home-section h2 { font-size: 20px; }
	.home-section .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
	.pillar-grid { grid-template-columns: 1fr; gap: 10px; }
	.pillar-card { padding: 16px; }
	.sb-row { grid-template-columns: 1.4fr .8fr 50px; }
	.sb-row > :nth-child(3) { display: none; }
}
