/*
Theme Name: JumpStart Services
Theme URI: https://jumpstartservices.com
Description: Minimal standalone theme shell for a custom HTML-block homepage.
Author: JumpStart Services
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jumpstart-services
*/

/* Homepage styling belongs in the Custom HTML block. */
:root {
	color-scheme: dark;
}

body {
	margin: 0;
	background: #0b1220;
	color: #f1f5f9;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

:root {
	--shell-bg: #0b1220;
	--shell-surface: #111b2e;
	--shell-text: #f1f5f9;
	--shell-muted: #cbd5e1;
	--shell-accent: #38bdf8;
	--shell-highlight: #f59e0b;
	--shell-border: rgba(148, 163, 184, 0.22);
}

body .site-header {
	position: relative;
	z-index: 20;
	background: #0b1220;
	border-bottom: 1px solid var(--shell-border);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.32);
}

.site-header__inner,
.site-footer__inner {
	box-sizing: border-box;
	width: min(100% - 2rem, 1200px);
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 72px;
}

.site-branding {
	flex: 0 0 auto;
}

.custom-logo-link {
	display: block;
	line-height: 0;
}

.custom-logo {
	display: block;
	width: auto;
	max-width: min(220px, 38vw);
	max-height: 52px;
	height: auto;
}

.site-title {
	color: var(--shell-text);
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.site-navigation {
	min-width: 0;
}

.mobile-navigation {
	display: none;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body .site-header .menu a {
	display: block;
	padding: 0.6rem 0.75rem;
	border-radius: 0.5rem;
	color: #f8fafc;
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	transition: color 160ms ease, background-color 160ms ease;
}

body .site-header .menu a:hover,
body .site-header .menu a:focus-visible,
body .site-header .menu .current-menu-item > a,
body .site-header .menu .current_page_item > a {
	background: rgba(56, 189, 248, 0.12);
	color: #fbbf24;
}

body .site-header .menu a:focus-visible {
	outline: 2px solid var(--shell-accent);
	outline-offset: 2px;
}

body .site-footer {
	margin-top: 0;
	padding: 2rem 0;
	background: var(--shell-surface);
	border-top: 1px solid var(--shell-border);
}

.menu--footer {
	justify-content: center;
	gap: 0.35rem 0.75rem;
}

body .site-footer .menu--footer a {
	color: var(--shell-muted);
}

/* Reading layouts are deliberately scoped away from the custom HTML homepage. */
body.blog,
body.archive,
body.single-post,
body.error404 {
	background: #0b1220;
	color: #e2e8f0;
}

body.blog .site-main,
body.archive .site-main,
body.single-post .site-main,
body.error404 .site-main {
	box-sizing: border-box;
	width: min(100% - 2rem, 820px);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

body.blog .site-main > article,
body.archive .site-main > article {
	margin-bottom: 1.5rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: #111b2e;
	border: 1px solid rgba(245, 158, 11, 0.32);
	border-radius: 0.875rem;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

body.blog .site-main h1,
body.blog .site-main h2,
body.archive .site-main h1,
body.archive .site-main h2,
body.single-post .site-main h1,
body.single-post .site-main h2,
body.single-post .site-main h3,
body.error404 .site-main h1 {
	margin-top: 0;
	color: #fbbf24;
	line-height: 1.2;
}

body.blog .site-main h1,
body.archive .site-main h1,
body.single-post .site-main h1,
body.error404 .site-main h1 {
	font-size: clamp(2rem, 5vw, 3.25rem);
}

body.blog .site-main h2,
body.archive .site-main h2 {
	font-size: clamp(1.3rem, 3vw, 1.75rem);
}

body.blog .site-main p,
body.archive .site-main p,
body.single-post .site-main p,
body.error404 .site-main p,
body.single-post .site-main li {
	font-size: 1.0625rem;
	line-height: 1.75;
}

body.blog .site-main a,
body.archive .site-main a,
body.single-post .site-main a,
body.error404 .site-main a {
	color: #fbbf24;
	font-weight: 650;
}

body.blog .site-main a:hover,
body.archive .site-main a:hover,
body.single-post .site-main a:hover,
body.error404 .site-main a:hover {
	color: #7dd3fc;
}

body.single-post .site-main > * {
	max-width: 100%;
}

body.single-post .site-main img,
body.single-post .site-main figure,
.post-thumbnail {
	border-radius: 0.75rem;
}

.post-thumbnail {
	display: block;
	margin: 0 0 1.5rem;
	overflow: hidden;
	background: #0f172a;
}

.post-thumbnail img {
	display: block;
	width: 100%;
	max-height: 440px;
	object-fit: cover;
	transition: transform 180ms ease;
}

a.post-thumbnail:hover img {
	transform: scale(1.02);
}

body.single-post .site-main figure {
	margin: 2rem 0;
}

body.single-post .site-main figcaption {
	margin-top: 0.5rem;
	color: #cbd5e1;
	font-size: 0.875rem;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
}

@media (max-width: 700px) {
	.site-header__inner {
		align-items: center;
		flex-direction: row;
		gap: 1rem;
		padding: 0.75rem 0;
	}

	.site-header > .site-header__inner > .site-navigation {
		display: none;
	}

	.mobile-navigation {
		display: block;
		position: relative;
		margin-left: auto;
	}

	.mobile-navigation > summary {
		display: block;
		padding: 0.65rem 0.9rem;
		border: 1px solid var(--shell-border);
		border-radius: 0.5rem;
		color: #f8fafc;
		font-size: 0.9rem;
		font-weight: 700;
		line-height: 1.2;
		list-style: none;
		cursor: pointer;
	}

	.mobile-navigation > summary::-webkit-details-marker {
		display: none;
	}

	.mobile-navigation[open] > summary {
		border-color: var(--shell-accent);
		background: rgba(56, 189, 248, 0.12);
	}

	.mobile-navigation nav {
		position: absolute;
		top: calc(100% + 0.5rem);
		right: 0;
		z-index: 30;
		min-width: min(19rem, calc(100vw - 2rem));
		padding: 0.5rem;
		background: #111b2e;
		border: 1px solid var(--shell-border);
		border-radius: 0.75rem;
		box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
	}

	.mobile-navigation .menu--mobile {
		display: block;
	}

	.mobile-navigation .menu--mobile li + li {
		border-top: 1px solid rgba(148, 163, 184, 0.14);
	}

	body .site-header .mobile-navigation .menu a {
		padding: 0.85rem;
	}

	.mobile-navigation .sub-menu {
		margin: 0;
		padding-left: 1rem;
		list-style: none;
	}
}
