:root {
	--bg: #0b0f14;
	--surface: #0e1520;
	--card: #121821;
	--muted: #8ea0b3;
	--text: #e6edf5;
	--text-strong: #f6f9ff;
	--accent: #6ea8fe;
	--accent-2: #9b7bff;
	--accent-3: #36d4a2;
	--border: #1f2a36;
	--shadow: 0 10px 30px rgba(0,0,0,0.35);
	--glow: 0 0 0 rgba(110,168,254,0);
	--radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
	background: linear-gradient(180deg, #0b0f14 0%, #0b1017 100%);
	color: var(--text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip: rect(0 0 0 0);
	overflow: hidden;
	white-space: nowrap;
}

.site-header {
	position: sticky;
	top: 0;
	backdrop-filter: saturate(180%) blur(10px);
	background: rgba(11, 15, 20, 0.65);
	border-bottom: 1px solid var(--border);
	z-index: 10;
	box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	gap: 12px;
}
.logo {
	color: white;
	font-weight: 700;
	font-size: 20px;
	text-decoration: none;
	letter-spacing: 0.3px;
	transition: transform .2s ease, filter .2s ease;
}
.logo:hover { filter: brightness(1.1); transform: translateY(-1px); }
.logo:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
.main-nav a {
	color: var(--text);
	text-decoration: none;
	margin-left: 16px;
	padding: 8px 12px;
	border-radius: 8px;
	transition: background .2s ease;
}
.main-nav a:hover {
	background: rgba(255,255,255,0.06);
}

.site-main {
	padding: 28px 0 64px;
	min-height: calc(100vh - 64px - 80px);
}

.section-title {
	font-size: clamp(20px, 2.3vw, 26px);
	margin: 8px 0 20px;
	font-weight: 700;
	color: var(--text-strong);
}

.grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}
@media (min-width: 600px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
	.grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
	.grid { grid-template-columns: 1fr; gap: 12px; }
}

.card {
	background: linear-gradient(180deg, #0f141b 0%, #0c1117 100%);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
	box-shadow: var(--shadow);
	will-change: transform, box-shadow;
	animation: card-enter .5s ease both;
}
.card:hover {
	transform: translateY(-3px);
	border-color: #2b394a;
	box-shadow: 0 14px 38px rgba(0,0,0,0.45);
}
.@media (prefers-reduced-motion: reduce) {}
.card-media {
	position: relative;
	aspect-ratio: 3/4;
	background: radial-gradient(100% 100% at 50% 0%, #1a2635 0%, #0f1620 60%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.thumb-canvas {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease, filter .35s ease;
}
.card:hover .thumb-canvas { transform: scale(1.03); filter: saturate(1.05); }
.card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0,0,0,0.55);
	color: #cfe1ff;
	border: 1px solid #2a3b51;
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 999px;
	backdrop-filter: blur(6px);
}
.card-body {
	padding: 12px;
}
.card-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 6px;
	line-height: 1.35;
	color: #f0f6ff;
	letter-spacing: .2px;
}
.card-desc {
	color: var(--muted);
	font-size: 13px;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 36px;
}
.stretched-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	text-indent: -9999px;
	overflow: hidden;
}
.card-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px 14px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--border);
	background: #111722;
	color: var(--text);
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 13px;
	transition: background .2s ease, border-color .2s ease, transform .05s ease, box-shadow .2s ease;
	box-shadow: var(--glow);
}
.btn:hover { background: #121b29; border-color: #2b394a; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px rgba(110,168,254,0.15);
}
.btn-primary {
	background: linear-gradient(180deg, #6ea8fe 0%, #6b8bff 100%);
	border: 0;
	color: #0b0f14;
	font-weight: 600;
	box-shadow: 0 8px 18px rgba(110,168,254,0.28);
}
.btn-primary:hover {
	filter: brightness(1.05);
	box-shadow: 0 10px 22px rgba(110,168,254,0.38);
}

.chip {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border);
	background: #0e1520;
	color: #cfe1ff;
	padding: 6px 10px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 13px;
	margin: 6px 6px 6px 0;
}
.chip:hover { border-color: #2b394a; background: #101a28; }

.site-footer {
	border-top: 1px solid var(--border);
	background: #0b0f14;
	box-shadow: 0 -6px 20px rgba(0,0,0,0.25) inset;
}
.footer-inner {
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 14px;
	gap: 12px;
	flex-wrap: wrap;
}
.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
	font-size: 13px;
}
.breadcrumbs a:hover { color: #cfe1ff; }

.pdf-viewer {
	width: 100%;
	height: 76vh;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: #0e1520;
}
.pdf-viewer iframe {
	width: 100%;
	height: 100%;
	display: block;
}
.details {
	margin-top: 18px;
	color: var(--muted);
}
.details strong { color: #cfe1ff; }

/* Animations */
@keyframes card-enter {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

