:root {
	--bg: #0b0e13;
	--card: #0f141c;
	--text: #e7ecf3;
	--muted: #9fb0c3;
	--brand: #4db6ff;
	--accent: #ff7ab6;
	--border: #1b2431;
}

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

html { 
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	background: linear-gradient(180deg, #0b0e13 0%, #0d1117 100%);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Accessibility */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Focus styles */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

/* Container */
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
	width: 100%;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	background: rgba(11,14,19,0.9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.logo {
	font-weight: 800;
	font-size: 20px;
	text-decoration: none;
	color: var(--text);
	transition: color 0.2s ease;
}

.logo:hover {
	color: var(--brand);
}

.logo span { 
	color: var(--brand); 
}

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

.nav a { 
	color: var(--muted); 
	text-decoration: none; 
	padding: 8px 12px;
	border-radius: 6px;
	transition: all 0.2s ease;
	font-size: 15px;
}

.nav a:hover { 
	color: var(--text); 
	background: rgba(77, 182, 255, 0.1);
}

/* Main content */
main {
	flex: 1;
}

/* Hero */
.hero { 
	padding: 48px 0 24px; 
}

.hero h1 { 
	margin: 0 0 8px; 
	font-size: clamp(24px, 5vw, 36px);
	font-weight: 800;
	background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.subtitle { 
	color: var(--muted); 
	margin: 0; 
	font-size: 16px;
}

/* Content sections */
.content-section {
	max-width: 720px;
	margin: 24px 0;
}

.content-section h2 {
	margin: 24px 0 12px;
	color: var(--brand);
	font-size: 20px;
}

.content-section p {
	margin: 12px 0;
	color: var(--muted);
	line-height: 1.7;
}

/* Grid */
.grid { 
	display: grid; 
	grid-template-columns: repeat(1, 1fr); 
	gap: 20px; 
	margin: 24px 0; 
}

.grid-3 { 
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
}

/* Cards */
.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { 
	transform: translateY(-4px); 
	border-color: #253348; 
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card a { 
	color: inherit; 
	text-decoration: none; 
	display: block; 
}

.card img { 
	width: 100%; 
	height: 200px; 
	object-fit: cover; 
	display: block;
	background: var(--border);
}

.card-content { 
	padding: 16px; 
}

.card-title { 
	margin: 0 0 8px; 
	font-size: 18px; 
	line-height: 1.4; 
	font-weight: 600;
}

.card-meta { 
	color: var(--muted); 
	font-size: 13px; 
}

.card-excerpt { 
	color: var(--muted); 
	margin-top: 8px; 
	font-size: 14px; 
	line-height: 1.5;
}

/* Ad placeholders */
.ad-horizontal { 
	margin: 40px 0; 
}

.ad-box {
	background: rgba(12, 18, 26, 0.5);
	border: 1px dashed var(--border);
	border-radius: 8px;
	min-height: 90px;
	display: grid;
	place-items: center;
	color: var(--muted);
	font-size: 14px;
}

/* Forms */
.contact-form {
	display: grid;
	gap: 20px;
	max-width: 560px;
	margin: 24px 0;
}

.contact-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--card);
	color: var(--text);
	border: 1px solid var(--border);
	font-family: inherit;
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
	border-color: var(--brand);
}

.btn-primary {
	padding: 12px 24px;
	border-radius: 8px;
	background: var(--brand);
	color: var(--bg);
	border: none;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.btn-primary:hover {
	background: #5fc0ff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(77, 182, 255, 0.3);
}

.btn-primary:active {
	transform: translateY(0);
}

/* Footer */
.site-footer { 
	border-top: 1px solid var(--border); 
	margin-top: 64px; 
	background: rgba(11, 14, 19, 0.5);
}

.site-footer .container { 
	display: flex; 
	align-items: center; 
	justify-content: space-between; 
	min-height: 80px;
	padding-top: 20px;
	padding-bottom: 20px;
	gap: 16px;
	flex-wrap: wrap;
}

.site-footer p {
	color: var(--muted);
	font-size: 14px;
}

.footer-nav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.footer-nav a { 
	color: var(--muted); 
	text-decoration: none; 
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.2s ease;
}

.footer-nav a:hover { 
	color: var(--text); 
	background: rgba(77, 182, 255, 0.1);
}

/* Post page */
.post {
	max-width: 720px;
	margin: 24px auto;
}

.post h1 {
	font-size: clamp(24px, 5vw, 32px);
	margin: 0 0 12px;
	line-height: 1.3;
}

.post-body {
	font-size: 17px;
	line-height: 1.8;
	color: #cdd9e5;
	margin-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
	.site-header .container {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}

	.nav {
		width: 100%;
	}

	.hero {
		padding: 32px 0 16px;
	}

	.card img { 
		height: 180px; 
	}

	.grid-3 {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}

	.site-footer .container {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

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

	.card img {
		height: 160px;
	}
}

/* Print styles */
@media print {
	.site-header,
	.site-footer,
	.ad-horizontal {
		display: none;
	}

	body {
		background: white;
		color: black;
	}
}
