/* Shadcn WP Theme — shadcn/ui zinc tokens */

:root {
	--background: 0 0% 100%;
	--foreground: 240 10% 3.9%;
	--card: 0 0% 100%;
	--card-foreground: 240 10% 3.9%;
	--primary: 240 5.9% 10%;
	--primary-foreground: 0 0% 98%;
	--secondary: 240 4.8% 95.9%;
	--secondary-foreground: 240 5.9% 10%;
	--muted: 240 4.8% 95.9%;
	--muted-foreground: 240 3.8% 46.1%;
	--accent: 240 4.8% 95.9%;
	--accent-foreground: 240 5.9% 10%;
	--border: 240 5.9% 90%;
	--input: 240 5.9% 90%;
	--ring: 240 5.9% 10%;
	--radius: 0.5rem;

	--bg: hsl(var(--background));
	--bg-muted: hsl(var(--muted));
	--fg: hsl(var(--foreground));
	--fg-muted: hsl(var(--muted-foreground));
	--card-bg: hsl(var(--card));
	--primary-bg: hsl(var(--primary));
	--primary-fg: hsl(var(--primary-foreground));

	--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, monospace;
	--max-w: 1060px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: 240 10% 3.9%;
		--foreground: 0 0% 98%;
		--card: 240 10% 3.9%;
		--card-foreground: 0 0% 98%;
		--primary: 0 0% 98%;
		--primary-foreground: 240 5.9% 10%;
		--secondary: 240 3.7% 15.9%;
		--secondary-foreground: 0 0% 98%;
		--muted: 240 3.7% 15.9%;
		--muted-foreground: 240 5% 64.9%;
		--accent: 240 3.7% 15.9%;
		--accent-foreground: 0 0% 98%;
		--border: 240 3.7% 15.9%;
		--input: 240 3.7% 15.9%;
		--ring: 240 4.9% 83.9%;
	}
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

::selection {
	background: hsl(var(--secondary));
	color: hsl(var(--secondary-foreground));
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: hsl(var(--muted-foreground)); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── Components ── */

.scn-card {
	background: var(--card-bg);
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) + 2px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.scn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	border-radius: var(--radius);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1;
	padding: 0.5rem 1rem;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	cursor: pointer;
}

.scn-btn-default {
	background: var(--primary-bg);
	color: var(--primary-fg);
}
.scn-btn-default:hover {
	background: hsl(240 5.9% 20%);
	color: var(--primary-fg);
}

.scn-btn-outline {
	background: transparent;
	border-color: hsl(var(--border));
	color: var(--fg);
}
.scn-btn-outline:hover {
	background: hsl(var(--accent));
}

.scn-btn-ghost {
	background: transparent;
	color: var(--fg-muted);
}
.scn-btn-ghost:hover { background: hsl(var(--accent)); color: var(--fg); }

.scn-btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.scn-btn-icon { width: 2rem; height: 2rem; padding: 0; }

.scn-badge {
	display: inline-flex;
	align-items: center;
	background: var(--primary-bg);
	color: var(--primary-fg);
	padding: 0.125rem 0.5rem;
	border-radius: calc(var(--radius) - 2px);
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.scn-badge:hover { opacity: 0.9; color: var(--primary-fg); }

.scn-badge-outline {
	background: transparent;
	border: 1px solid hsl(var(--border));
	color: var(--fg-muted);
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	font-size: 0.75rem;
}
.scn-badge-outline:hover {
	background: hsl(var(--accent));
	color: var(--fg);
}

.scn-badge-hero {
	background: var(--primary-fg);
	color: var(--primary-bg);
}

.scn-input {
	width: 100%;
	background: var(--bg);
	border: 1px solid hsl(var(--input));
	border-radius: var(--radius);
	color: var(--fg);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	outline: none;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.scn-input:focus {
	border-color: hsl(var(--ring));
	box-shadow: 0 0 0 2px hsl(var(--ring) / 0.15);
}

.scn-muted { color: var(--fg-muted); }
.scn-link {
	color: var(--fg);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.scn-link:hover { color: var(--fg-muted); }

/* ── Layout ── */

.scn-wrap {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.scn-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 1.5rem;
	align-items: start;
	padding: 1.75rem 0 3rem;
}

.scn-main { min-width: 0; }
.scn-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }

/* ── Header ── */

.scn-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: hsl(var(--background) / 0.85);
	border-bottom: 1px solid hsl(var(--border));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: box-shadow 0.2s ease;
}

.scn-header.scrolled {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.scn-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 3.5rem;
	gap: 1rem;
}

.scn-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.scn-brand-icon {
	width: 1.75rem;
	height: 1.75rem;
	background: var(--primary-bg);
	color: var(--primary-fg);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	flex-shrink: 0;
}

.scn-brand a {
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.scn-brand .custom-logo-link img {
	max-height: 2rem;
	width: auto;
}

.scn-nav {
	display: flex;
	align-items: center;
	gap: 0.125rem;
	flex-wrap: wrap;
}

.scn-nav a {
	color: var(--fg-muted);
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.375rem 0.625rem;
	border-radius: var(--radius);
	transition: background 0.12s ease, color 0.12s ease;
}

.scn-nav a:hover,
.scn-nav a.current {
	color: var(--fg);
	background: hsl(var(--accent));
}

.scn-menu-toggle { display: none; }

/* ── Hero (magazine) ── */

.scn-hero {
	margin-bottom: 0.875rem;
	border-radius: calc(var(--radius) + 4px);
	overflow: hidden;
	border: 1px solid hsl(var(--border));
}

.scn-hero-link {
	display: block;
	position: relative;
	color: #fff !important;
}

.scn-hero-img {
	width: 100%;
	height: 380px;
	overflow: hidden;
	background: hsl(var(--muted));
}

.scn-hero-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.scn-hero:hover .scn-hero-img img { transform: scale(1.03); }

.scn-hero-noimg {
	background: linear-gradient(135deg, hsl(240 5.9% 10%), hsl(240 3.7% 25%));
}

.scn-hero-overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.75rem 1.5rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}

.scn-hero-title {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: #fff !important;
	margin: 0.5rem 0;
}

.scn-hero-meta {
	display: flex;
	gap: 0.75rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
	font-family: var(--mono);
}

/* ── Horizontal post card ── */

.scn-hpost {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	margin-bottom: 0.625rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scn-hpost:hover {
	border-color: hsl(var(--ring) / 0.35);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.scn-hpost-thumb {
	flex-shrink: 0;
	width: 180px;
	height: 120px;
	border-radius: var(--radius);
	overflow: hidden;
	background: hsl(var(--muted));
}

.scn-hpost-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

.scn-hpost:hover .scn-hpost-thumb img { transform: scale(1.03); }

.scn-hpost-body { flex: 1; min-width: 0; }

.scn-hpost-title {
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.02em;
	margin-bottom: 0.25rem;
}

.scn-hpost-title a:hover { color: var(--fg); text-decoration: underline; }

.scn-hpost-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.625rem;
	font-size: 0.7rem;
	color: var(--fg-muted);
	font-family: var(--mono);
	margin-bottom: 0.375rem;
}

.scn-hpost-excerpt {
	color: var(--fg-muted);
	font-size: 0.875rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Archive post cards ── */

.scn-post-card {
	padding: 1.125rem 1.25rem;
	margin-bottom: 0.625rem;
}

.scn-post-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.625rem;
	align-items: center;
	font-family: var(--mono);
	font-size: 0.6875rem;
	color: var(--fg-muted);
	margin-bottom: 0.375rem;
}

.scn-post-card-meta a { color: inherit; }
.scn-post-card-meta a:hover { color: var(--fg); }

.scn-post-card-title {
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 0.375rem;
	letter-spacing: -0.02em;
}

.scn-post-card-thumb {
	margin-bottom: 0.75rem;
	border-radius: var(--radius);
	overflow: hidden;
}

.scn-post-card-thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

.scn-post-card:hover .scn-post-card-thumb img { transform: scale(1.02); }

.scn-post-card-excerpt { font-size: 0.875rem; margin-bottom: 0.5rem; }

/* ── Single ── */

.scn-single { padding: 2rem 1.75rem; margin-bottom: 0.625rem; }

.scn-single-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
	margin-top: 0.5rem;
}

.scn-single-thumb {
	margin: 1.25rem 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid hsl(var(--border));
}

.scn-content {
	font-size: 0.9375rem;
	line-height: 1.75;
	color: var(--fg);
	overflow-wrap: break-word;
}

.scn-content p { margin-bottom: 1rem; color: inherit; }

.scn-content h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 2rem 0 0.75rem;
	padding-bottom: 0.375rem;
	border-bottom: 1px solid hsl(var(--border));
}

.scn-content h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }

.scn-content a {
	color: var(--fg);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 500;
}

.scn-content blockquote {
	border-left: 3px solid hsl(var(--border));
	padding: 0.75rem 1rem;
	margin: 1rem 0;
	color: var(--fg-muted);
	background: hsl(var(--muted));
	border-radius: 0 var(--radius) var(--radius) 0;
}

.scn-content pre {
	background: hsl(var(--muted));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1rem;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 0.8125rem;
	margin: 1rem 0;
	position: relative;
}

.scn-content code {
	background: hsl(var(--muted));
	padding: 0.125rem 0.375rem;
	border-radius: calc(var(--radius) - 4px);
	font-family: var(--mono);
	font-size: 0.85em;
}

.scn-content pre code { background: transparent; padding: 0; }

.scn-content ul, .scn-content ol {
	padding-left: 1.25rem;
	margin-bottom: 1rem;
	list-style: revert;
}

.scn-copy {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	opacity: 0;
	transition: opacity 0.15s ease;
}
.scn-content pre:hover .scn-copy { opacity: 1; }
.scn-copy.copied { background: hsl(142 76% 36%); color: #fff; border-color: transparent; }

.scn-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid hsl(var(--border));
}

.scn-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.625rem;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid hsl(var(--border));
}

.scn-post-nav-item {
	padding: 0.875rem 1rem;
	transition: border-color 0.12s ease;
}
.scn-post-nav-item:last-child { text-align: right; }

.scn-post-nav-label {
	font-size: 0.6875rem;
	font-family: var(--mono);
	color: var(--fg-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.scn-post-nav-title {
	font-size: 0.875rem;
	font-weight: 600;
	margin-top: 0.125rem;
}

/* ── Page ── */

.scn-page { padding: 2rem 1.75rem; }
.scn-page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }

/* ── Sidebar widgets ── */

.scn-widget { padding: 1rem 1.125rem !important; }

.scn-widget-title {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fg-muted);
	font-weight: 600;
	font-family: var(--mono);
	padding-bottom: 0.5rem;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
}

.scn-sidebar .wp-block-heading,
.scn-widget .widget-title {
	font-size: 0.6875rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	color: var(--fg-muted) !important;
	font-weight: 600 !important;
	font-family: var(--mono) !important;
	border-bottom: 1px solid hsl(var(--border)) !important;
	padding-bottom: 0.5rem !important;
	margin-bottom: 0.75rem !important;
}

.scn-sidebar ul, .scn-widget ul { list-style: none !important; padding: 0 !important; }

.scn-sidebar li, .scn-widget li {
	padding: 0.375rem 0 !important;
	font-size: 0.875rem !important;
	border-bottom: 1px solid hsl(var(--border));
}

.scn-sidebar li:last-child, .scn-widget li:last-child { border-bottom: none; }

.scn-widget-cats { display: flex; flex-direction: column; gap: 0.25rem; }

.scn-widget-cat-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.375rem 0.5rem;
	border-radius: var(--radius);
	font-size: 0.875rem;
	transition: background 0.12s ease;
}
.scn-widget-cat-item:hover { background: hsl(var(--accent)); }

.scn-widget-cat-count {
	font-family: var(--mono);
	font-size: 0.6875rem;
	color: var(--fg-muted);
	background: hsl(var(--muted));
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
}

.scn-widget-posts { display: flex; flex-direction: column; gap: 0.625rem; }

.scn-widget-post-item {
	display: flex;
	gap: 0.625rem;
	align-items: center;
	color: var(--fg);
}
.scn-widget-post-item:hover .scn-widget-post-title { text-decoration: underline; }

.scn-widget-post-thumb {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--radius);
	overflow: hidden;
	flex-shrink: 0;
	background: hsl(var(--muted));
}

.scn-widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.scn-widget-post-title {
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.scn-widget-post-date {
	font-family: var(--mono);
	font-size: 0.6875rem;
	color: var(--fg-muted);
}

.scn-widget-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }

/* Recent posts list */
.scn-widget-posts-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.scn-widget-posts-list .scn-widget-post-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.25rem 0;
	border-radius: var(--radius);
	transition: background 0.12s ease;
}

.scn-widget-posts-list .scn-widget-post-item:hover {
	background: hsl(var(--accent));
}

.scn-widget-posts-list .scn-widget-post-thumb {
	width: 3.25rem;
	height: 3.25rem;
	border: 1px solid hsl(var(--border));
}

.scn-widget-post-meta {
	font-family: var(--mono);
	font-size: 0.6875rem;
	color: var(--fg-muted);
	margin-top: 0.125rem;
}

/* Random posts grid */
.scn-widget-posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.625rem;
}

.scn-widget-post-grid-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--muted));
}

.scn-widget-post-grid-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s var(--ease);
}

.scn-widget-post-grid-thumb:hover img {
	transform: scale(1.04);
}

.scn-widget-post-grid-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, hsl(var(--muted)), hsl(var(--border)));
}

.scn-widget-post-grid-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 0.625rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
}

.scn-widget-post-grid-title {
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Social grid */
.scn-social-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.scn-social-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.625rem;
	border-radius: var(--radius);
	font-size: 0.75rem;
	font-weight: 500;
	border: 1px solid hsl(var(--border));
	color: var(--fg-muted);
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.scn-social-item:hover {
	background: hsl(var(--accent));
	color: var(--fg);
	border-color: hsl(var(--border));
}

/* About widget */
.scn-about-widget {
	text-align: center;
}

.scn-about-img {
	margin-bottom: 0.75rem;
}

.scn-about-img img {
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	margin: 0 auto;
	object-fit: cover;
	border: 2px solid hsl(var(--border));
}

.scn-about-text {
	font-size: 0.875rem;
	line-height: 1.6;
	text-align: left;
}

.scn-about-text p:last-child {
	margin-bottom: 0;
}

.scn-search-form { display: flex; gap: 0.375rem; }
.scn-search-form .scn-input { flex: 1; min-width: 0; }

/* ── Comments ── */

.scn-comments { padding: 1.25rem; margin-top: 0.625rem; }
.scn-comments-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.scn-comment-list { list-style: none; padding: 0; }

.scn-comment { margin-bottom: 0.5rem; list-style: none; }

.scn-comment-inner { padding: 0.875rem 1rem; background: hsl(var(--muted)); }

.scn-comment-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.375rem;
	flex-wrap: wrap;
}

.scn-comment-avatar { border-radius: 50%; }
.scn-comment-author { font-weight: 600; font-size: 0.875rem; font-style: normal; }
.scn-comment-date { font-family: var(--mono); font-size: 0.6875rem; color: var(--fg-muted); }
.scn-comment-body { font-size: 0.875rem; color: var(--fg-muted); }
.scn-comment-reply a { font-size: 0.75rem; font-weight: 500; text-decoration: underline; }

.scn-comment-form .comment-form-author,
.scn-comment-form .comment-form-email,
.scn-comment-form .comment-form-url { margin-bottom: 0.75rem; }

.scn-comment-form label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	margin-bottom: 0.25rem;
}

/* ── Pagination ── */

.scn-pagination {
	display: flex;
	gap: 0.25rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.scn-pagination a,
.scn-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border-radius: var(--radius);
	font-size: 0.8125rem;
	font-weight: 500;
}

.scn-pagination a {
	background: var(--card-bg);
	border: 1px solid hsl(var(--border));
	color: var(--fg-muted);
}
.scn-pagination a:hover { background: hsl(var(--accent)); color: var(--fg); }

.scn-pagination span.current {
	background: var(--primary-bg);
	color: var(--primary-fg);
	border: 1px solid var(--primary-bg);
}

/* ── Archive / search ── */

.scn-archive-header,
.scn-search-header { padding: 1rem 1.25rem; margin-bottom: 0.625rem; }

.scn-archive-title { font-size: 1.125rem; font-weight: 600; }
.scn-search-query { font-weight: 600; }

.scn-no-results { padding: 2.5rem 1.75rem; text-align: center; }
.scn-no-results h2 { margin-bottom: 0.5rem; }

/* ── Footer ── */

.scn-footer {
	margin-top: auto;
	border-top: 1px solid hsl(var(--border));
	background: hsl(var(--muted));
}

.scn-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 1rem 0;
	font-size: 0.75rem;
	color: var(--fg-muted);
	font-family: var(--mono);
}

.scn-footer-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.scn-footer a:hover { color: var(--fg); }

/* ── 404 ── */

.scn-404 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50vh;
	padding: 3rem 0;
}

.scn-404-card {
	text-align: center;
	padding: 3rem 2.5rem;
	max-width: 28rem;
	width: 100%;
}

.scn-404-code {
	font-size: 4rem;
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	margin-bottom: 0.5rem;
}

/* ── Back to top + progress ── */

#scn-top {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	display: none;
	z-index: 99;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#scn-top.show { display: inline-flex; }

.scn-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 2px;
	width: 0;
	background: var(--primary-bg);
	z-index: 9999;
	transition: width 0.1s ease-out;
}

/* ── Reveal ── */

.scn-ready .scn-reveal {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.scn-ready .scn-reveal.visible { opacity: 1; transform: none; }

/* ── Admin bar ── */

.admin-bar .scn-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .scn-header { top: 46px; }
}

/* ── Responsive ── */

@media (max-width: 860px) {
	.scn-layout { grid-template-columns: 1fr; }
	.scn-sidebar { order: 2; }
}

@media (max-width: 640px) {
	.scn-menu-toggle { display: inline-flex; }
	.scn-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--bg);
		border-bottom: 1px solid hsl(var(--border));
		padding: 0.5rem 1rem 1rem;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	}
	.scn-header-inner { position: relative; flex-wrap: wrap; }
	.scn-nav.open { display: flex; }
	.scn-nav.open a { display: block; padding: 0.5rem 0.625rem; }

	.scn-hero-img { height: 260px; }
	.scn-hero-title { font-size: 1.25rem; }
	.scn-hpost { flex-direction: column; }
	.scn-hpost-thumb { width: 100%; height: 180px; }
	.scn-single { padding: 1.25rem 1rem; }
	.scn-single-title { font-size: 1.375rem; }
	.scn-post-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.scn-ready .scn-reveal { opacity: 1; transform: none; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid hsl(var(--ring));
	outline-offset: 2px;
}

@media print {
	.scn-header, .scn-sidebar, .scn-footer, #scn-top, .scn-pagination { display: none !important; }
	body { background: #fff; }
	.scn-card { border: none; box-shadow: none; }
}
