/*
Theme Name: ProstoLinux
Theme URI: https://prostolinux.com/
Author: ProstoLinux
Description: Lightweight, static-export-friendly theme for the ProstoLinux Linux knowledge base.
Version: 0.6.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: prostolinux
*/

:root {
	--bg: #0b0e14;
	--panel: #111722;
	--panel-2: #151c29;
	--line: #253044;
	--text: #edf2f7;
	--muted: #94a3b8;
	--accent: #f59e0b;
	--accent-2: #ffca62;
	--green: #72d49b;
	--radius: 18px;
	--content-width: 46rem;
	--wide-width: 76rem;
	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	max-width: 100%;
	scroll-behavior: smooth;
}

body {
	max-width: 100%;
	margin: 0;
	overflow-x: clip;
	background: radial-gradient(circle at 70% -10%, #202b42 0, transparent 34%), var(--bg);
	color: var(--text);
	font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--accent-2);
	outline-offset: 3px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	clip: auto;
	background: var(--panel);
	color: var(--text);
}

.wrap {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	height: 54px;
	font-size: 20px;
	font-weight: 800;
}

.brand-logo-img {
	display: block;
	width: auto;
	height: 48px;
	max-width: 230px;
	object-fit: contain;
}

.nav,
.nav .menu {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav .menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav {
	color: #b8c3d3;
}

.nav a:hover,
.nav a:focus-visible {
	color: #fff;
}

.status {
	padding: 7px 11px;
	border: 1px solid #3b4658;
	border-radius: 999px;
	background: #121925;
	color: #cbd5e1;
	font-size: 12px;
}

.status i {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--green);
}

.menu-btn {
	display: none;
	width: 42px;
	height: 42px;
	padding: 10px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	border: 1px solid #354055;
	border-radius: 12px;
	background: #111823;
	cursor: pointer;
}

.menu-btn span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: #cbd5e1;
}

.hero {
	padding: 92px 0 48px;
	text-align: center;
}

.eyebrow {
	display: inline-flex;
	padding: 6px 11px;
	border: 1px solid #354055;
	border-radius: 999px;
	background: #111823;
	color: #c3cedd;
	font-size: 12px;
}

.hero h1 {
	max-width: 900px;
	margin: 20px auto 18px;
	font-size: clamp(42px, 7vw, 76px);
	letter-spacing: -0.055em;
	line-height: 1.02;
}

.hero h1 .accent {
	color: var(--accent);
}

.hero > p {
	max-width: 690px;
	margin: auto;
	color: var(--muted);
	font-size: 18px;
}

.search {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 690px;
	margin: 32px auto 0;
	padding: 7px 8px 7px 17px;
	border: 1px solid #303b4f;
	border-radius: 15px;
	background: var(--panel);
	box-shadow: 0 20px 70px #0006;
}

.search input {
	min-width: 0;
	width: 100%;
	border: 0;
	outline: 0;
	background: none;
	color: #fff;
}

.search button {
	padding: 11px 15px;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: #17120a;
	font-weight: 800;
	cursor: pointer;
}

.hint {
	margin-top: 10px;
	color: #66758a;
	font-size: 12px;
}

.preview {
	margin: 44px auto 76px;
	overflow: hidden;
	border: 1px solid #293449;
	border-radius: 22px;
	background: #0e131d;
	box-shadow: 0 35px 100px #0008;
}

.browser {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 45px;
	padding: 0 15px;
	border-bottom: 1px solid #273144;
}

.dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #445064;
}

.browser small {
	margin-left: 12px;
	color: #69788d;
}

.app {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 190px;
	min-height: 430px;
}

.side,
.toc {
	padding: 24px 18px;
	background: #101620;
}

.side {
	border-right: 1px solid #252f41;
}

.toc {
	border-left: 1px solid #252f41;
}

.side b,
.toc b {
	color: #6f8097;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.side a {
	display: block;
	padding: 8px 10px;
	margin: 4px 0;
	border-radius: 8px;
	color: #9eacc0;
}

.side a.active {
	background: #1a2230;
	color: #fff;
}

.side a.active::before {
	display: inline-block;
	width: 3px;
	height: 14px;
	margin-right: 9px;
	border-radius: 4px;
	background: var(--accent);
	content: "";
	vertical-align: -2px;
}

.article {
	min-width: 0;
	padding: 38px 44px;
}

.crumb {
	color: #718096;
	font-size: 12px;
}

.article h2 {
	margin: 15px 0 8px;
	font-size: 30px;
}

.article > p {
	max-width: 630px;
	color: #9eacc0;
}

.code {
	max-width: 100%;
	margin-top: 24px;
	overflow: hidden;
	border: 1px solid #263044;
	border-radius: 13px;
	background: #090d13;
}

.codebar {
	padding: 8px 12px;
	border-bottom: 1px solid #222c3d;
	color: #74849a;
	font-size: 11px;
}

.code pre {
	margin: 0;
	overflow-x: auto;
	padding: 18px;
	color: #d5e3f2;
}

.prompt {
	color: var(--green);
}

.cmd {
	color: var(--accent-2);
}

.note {
	margin-top: 20px;
	padding: 12px 15px;
	border-left: 3px solid var(--accent);
	border-radius: 0 10px 10px 0;
	background: #171c24;
	color: #aab6c7;
}

.toc a {
	display: block;
	margin: 11px 0;
	color: #77879c;
	font-size: 12px;
}

.cards-title {
	text-align: center;
}

.cards-title h2 {
	margin: 0;
	font-size: 34px;
}

.cards-title p {
	color: var(--muted);
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 28px 0 90px;
}

.card {
	min-height: 145px;
	padding: 22px;
	border: 1px solid #273247;
	border-radius: var(--radius);
	background: linear-gradient(145deg, #111722, #0e131c);
}

.card:hover,
.card:focus-visible {
	border-color: #465672;
}

.ico {
	font-size: 23px;
}

.card h3 {
	margin: 14px 0 6px;
}

.card p {
	margin: 0;
	color: #8493a8;
	font-size: 13px;
}

.soon {
	display: inline-block;
	margin-top: 14px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.foot {
	display: flex;
	justify-content: space-between;
	padding: 28px 0 42px;
	border-top: 1px solid #202a3a;
	color: #68778c;
	font-size: 12px;
}

/* Interior WordPress templates retain a compact readable baseline. */
.content-shell {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.site-main {
	padding-block: 48px;
}

.page-header,
.entry-header,
.entry-content,
.entry-summary,
.post-navigation,
.pagination,
.not-found {
	width: min(100%, var(--content-width));
	margin-inline: auto;
}

.entry-card {
	padding-block: 24px;
	border-bottom: 1px solid var(--line);
}

.entry-title {
	line-height: 1.2;
}

.entry-title a:hover {
	color: var(--accent);
}

.entry-meta {
	color: var(--muted);
	font-size: 0.9375rem;
}

.entry-featured-image {
	margin-block: 24px;
}

.entry-featured-image figcaption,
.entry-content figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.875rem;
	text-align: center;
}

.entry-content figure {
	max-width: 100%;
}

.entry-content a,
.entry-summary a,
.post-navigation a,
.pagination a {
	color: var(--accent-2);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.entry-content pre {
	overflow-x: auto;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #090d13;
}

@media (max-width: 850px) {
	.nav {
		position: absolute;
		top: calc(100% - 4px);
		right: 0;
		z-index: 20;
		display: none;
		min-width: 210px;
		padding: 12px;
		border: 1px solid #354055;
		border-radius: 12px;
		background: #111823;
		box-shadow: 0 18px 50px #0008;
	}

	.nav.is-open {
		display: block;
	}

	.nav .menu {
		align-items: stretch;
		flex-direction: column;
		gap: 2px;
	}

	.nav a {
		display: block;
		padding: 9px 10px;
		border-radius: 8px;
	}

	.menu-btn {
		display: flex;
	}

	.app {
		grid-template-columns: 170px minmax(0, 1fr);
	}

	.toc {
		display: none;
	}

	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article {
		padding: 30px 26px;
	}
}

@media (max-width: 600px) {
	.wrap,
	.content-shell {
		width: min(calc(100% - 20px), 1180px);
	}

	.top {
		height: 86px;
	}

	.brand {
		height: 62px;
	}

	.brand-logo-img {
		height: 58px;
		max-width: 190px;
	}

	.status {
		display: none;
	}

	.hero {
		padding-top: 28px;
	}

	.eyebrow {
		max-width: calc(100% - 20px);
		justify-content: center;
		padding: 7px 12px;
		font-size: 13px;
	}

	.hero h1 {
		font-size: 43px;
	}

	.hero > p {
		font-size: 16px;
	}

	.search button {
		display: none;
	}

	.preview {
		margin-top: 34px;
	}

	.app {
		display: block;
	}

	.side,
	.toc {
		display: none;
	}

	.article {
		min-height: 390px;
		padding: 25px 19px;
	}

	.article h2 {
		font-size: 25px;
	}

	.cards {
		grid-template-columns: 1fr;
	}

	.cards-title h2 {
		font-size: 30px;
		line-height: 1.15;
	}

	.foot {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
}
