/*
Theme Name:   Site Child
Template:     twentytwentyfive
Version:      0.1.2
Requires at least: 6.5
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  site-child
*/

body.error404,
body.home {
	--sp-bg: #050305;
	--sp-glow: #442135;
	--sp-surface: #2a2029;
	--sp-accent: #ad4a67;
	--sp-accent-dim: #8c3460;
	--sp-text: #e9e9ed;
	--sp-muted: #9397ab;
	--sp-log: #b2b6ca;

	margin: 0;
	background: var(--sp-bg);
	color: var(--sp-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sp {
	box-sizing: border-box;
	min-height: 100vh;
	padding: 48px 56px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
	align-items: center;
	background: radial-gradient(ellipse at 15% 20%, var(--sp-glow), var(--sp-bg) 55%);
}

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

.sp__intro {
	max-width: 340px;
}

.sp__tag {
	display: inline-flex;
	font-size: 11px;
	letter-spacing: 0.02em;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--sp-glow);
	color: #f3f5fe;
}

.sp__title {
	margin: 16px 0 10px;
	font-size: 32px;
	line-height: 1.12;
	font-weight: 500;
	letter-spacing: -0.015em;
	text-wrap: balance;
	color: var(--sp-text);
}

.sp__text {
	margin: 0 0 22px;
	font-size: 14px;
	color: color-mix(in srgb, var(--sp-text) 55%, transparent);
}

.sp__terminal {
	display: flex;
	flex-direction: column;
	min-height: 340px;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--sp-surface);
	box-shadow: 0 0 0 1px var(--sp-glow), 0 16px 40px rgba(0, 0, 0, 0.6);
	font: 12.5px/1.75 ui-monospace, Menlo, Consolas, monospace;
}

.sp__bar {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
}

.sp__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--sp-glow);
}

.sp__dot--live {
	background: var(--sp-accent-dim);
}

.sp__file {
	margin-left: auto;
	font-size: 10px;
	color: var(--sp-muted);
}

.sp__line {
	display: flex;
	gap: 10px;
	color: var(--sp-log);
}

.sp__log.is-animated .sp__line {
	display: none;
}

.sp__log.is-animated .sp__line.is-shown {
	display: flex;
}

.sp__cmd {
	flex: none;
	width: 32px;
	color: var(--sp-accent-dim);
}

.sp__query {
	flex: 1;
}

.sp__result {
	text-align: right;
	color: color-mix(in srgb, var(--sp-accent) 55%, var(--sp-text));
}

.sp__prompt {
	margin-top: 2px;
	color: var(--sp-accent);
}

.sp__caret {
	display: inline-block;
	width: 7px;
	height: 14px;
	margin-left: 6px;
	vertical-align: -2px;
	background: var(--sp-accent);
	animation: sp-caret 1s steps(1) infinite;
}

@keyframes sp-caret {
	50% { opacity: 0; }
}

@media (max-width: 600px) {
	.sp {
		padding: 32px 16px;
		gap: 28px;
	}
	.sp__title {
		font-size: 26px;
	}
	.sp__terminal {
		min-height: 300px;
		padding: 14px;
		font-size: 11.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sp__caret {
		animation: none;
	}
}
