/* mchiver index. Generated by Sites/build-index.js from Sites/template/index.css; edit the template. */

:root {
	--accent: #0f766e;
	--bg: #f6f7f9;
	--surface: #ffffff;
	--surface-raised: #ffffff;
	--logo-tile: #f1f3f5;
	--text: #1c1f23;
	--text-muted: #5f6771;
	--border: #e1e5ea;
	--border-strong: #c9cfd6;
	--shadow: 0 1px 2px rgba( 16, 24, 40, 0.06 );
	--shadow-hover: 0 10px 24px rgba( 16, 24, 40, 0.10 );
	--focus: color-mix( in srgb, var( --accent ) 40%, transparent );
	color-scheme: light;
}

@media ( prefers-color-scheme: dark ) {
	:root:not( [data-mode="light"] ) {
		--bg: #15181c;
		--surface: #1d2127;
		--surface-raised: #232830;
		--logo-tile: #eef0f3;
		--text: #e8eaed;
		--text-muted: #9aa3ad;
		--border: #2b313a;
		--border-strong: #3a424d;
		--shadow: 0 1px 2px rgba( 0, 0, 0, 0.4 );
		--shadow-hover: 0 12px 28px rgba( 0, 0, 0, 0.5 );
		color-scheme: dark;
	}
}

:root[data-mode="dark"] {
	--bg: #15181c;
	--surface: #1d2127;
	--surface-raised: #232830;
	--logo-tile: #eef0f3;
	--text: #e8eaed;
	--text-muted: #9aa3ad;
	--border: #2b313a;
	--border-strong: #3a424d;
	--shadow: 0 1px 2px rgba( 0, 0, 0, 0.4 );
	--shadow-hover: 0 12px 28px rgba( 0, 0, 0, 0.5 );
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var( --bg );
	color: var( --text );
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a { color: var( --accent ); }

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}

@media ( min-width: 640px ) {
	.container { padding-left: 24px; padding-right: 24px; }
}

/* Header */

.site-header {
	background: var( --surface );
	border-bottom: 1px solid var( --border );
	padding: 32px 0 24px;
}

.masthead {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.title {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var( --accent );
}

.tagline {
	margin: 6px 0 0;
	color: var( --text-muted );
	font-size: 1.05rem;
}

.links {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	font-size: 0.925rem;
}

.links a { color: var( --accent ); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* Featured cards span the full width, one per row. */

.featured {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.featured li { min-width: 0; }

.mode-toggle {
	flex: none;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var( --border );
	border-radius: 10px;
	background: var( --surface );
	color: var( --text-muted );
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.mode-toggle:hover { border-color: var( --border-strong ); color: var( --text ); }
.mode-toggle:focus-visible { outline: 3px solid var( --focus ); outline-offset: 2px; }
.mode-toggle .icon-moon { display: none; }
:root[data-mode="dark"] .mode-toggle .icon-sun { display: none; }
:root[data-mode="dark"] .mode-toggle .icon-moon { display: block; }
@media ( prefers-color-scheme: dark ) {
	:root:not( [data-mode="light"] ) .mode-toggle .icon-sun { display: none; }
	:root:not( [data-mode="light"] ) .mode-toggle .icon-moon { display: block; }
}

/* Sections and cards */

main { flex: 1; padding: 8px 0 40px; }

/* Footer: an empty band at the bottom of the page */

.site-footer {
	flex: none;
	height: 10px;
	margin-top: 24px;
	border-top: 1px solid var( --border );
}

.group { margin-top: 32px; }

.group-title {
	margin: 0 0 14px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --text-muted );
}

.cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media ( min-width: 640px ) { .cards { grid-template-columns: repeat( 2, 1fr ); } }
@media ( min-width: 960px ) { .cards { grid-template-columns: repeat( 3, 1fr ); } }
@media ( min-width: 1280px ) { .cards { grid-template-columns: repeat( 4, 1fr ); } }

.card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	height: 100%;
	padding: 16px;
	color: inherit;
	text-decoration: none;
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: 14px;
	box-shadow: var( --shadow );
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover, .card:focus-visible {
	transform: translateY( -2px );
	box-shadow: var( --shadow-hover );
	border-color: var( --border-strong );
	background: var( --surface-raised );
	outline: none;
}

.card:focus-visible { box-shadow: var( --shadow-hover ), 0 0 0 3px var( --focus ); }

.logo {
	flex: none;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var( --logo-tile );
	overflow: hidden;
}

.logo img, .logo svg { display: block; width: 64px; height: 64px; }

.cards li { min-width: 0; }

.card-body { display: block; flex: 1 1 auto; min-width: 0; }

.card-name {
	display: block;
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	word-break: break-word;
}

.card-description {
	display: block;
	margin: 4px 0 8px;
	font-size: 0.925rem;
	color: var( --text-muted );
}

.card-host {
	display: block;
	font-size: 0.85rem;
	color: var( --accent );
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 404 */

.not-found {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 0;
}

.not-found h2 { margin: 0 0 8px; font-size: 1.5rem; }
.not-found p { margin: 0 0 20px; color: var( --text-muted ); }

.button {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	background: var( --accent );
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

@media ( prefers-reduced-motion: reduce ) {
	.card, .mode-toggle { transition: none; }
	.card:hover { transform: none; }
}
