/*
Theme Name: Springmusk
Theme URI: https://springmusk.dev/
Author: Springmusk
Author URI: https://springmusk.dev/
Description: A dark, professional developer portfolio + blog theme. Front page with hero, stats band, about, services, skills, open-source spotlight, featured projects, experience timeline, testimonials, latest posts, newsletter and contact sections — everything editable from the Customizer. Project pages styled like a VS Code window with explorer sidebar, README pane and status bar, synced from GitHub. Card-based blog index, professional single-post layout with sidebar, reading progress, share buttons and auto table of contents.
Version: 1.5.0
Requires at least: 6.3
Tested up to: 6.8
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: springmusk
Tags: portfolio, blog, dark, developer, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*
 * The theme's design styles are generated by Tailwind:
 *   - source:  assets/css/tailwind-src.css + tailwind.config.js
 *   - build:   ./build-css.sh   (or: npm run build:css)
 *   - output:  assets/css/tailwind.css  (enqueued on the frontend)
 *
 * This file keeps only what Tailwind utilities cannot express:
 * the theme header above, CSS variables, and a handful of
 * pseudo-element / dynamic-content styles (prose, file tree,
 * scrollbars, kbd). Edit templates + tailwind-src.css, then rebuild.
 */

/* ---------- CSS variables ---------- */
:root {
	--accent: #00e676; /* Customizer-overridable; header.php sets the live value inline. */
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */
body {
	background: #0b0f14;
	color: #e6edf3;
}

/* ---------- Custom scrollbars (webkit) ---------- */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	background: #0b0f14;
}
::-webkit-scrollbar-thumb {
	background: #1e2630;
	border-radius: 6px;
	border: 2px solid #0b0f14;
}
::-webkit-scrollbar-thumb:hover {
	background: #2a3441;
}

/* ---------- Keyboard keys ---------- */
kbd {
	font-family: var(--font-mono);
	background: #1a222c;
	border: 1px solid #1e2630;
	border-bottom-width: 2px;
	border-radius: 6px;
	padding: 0.1em 0.45em;
	font-size: 0.85em;
	color: #e6edf3;
	white-space: nowrap;
}

/* ---------- Prose: WordPress-generated content (.entry-content) ----------
 * Post/page bodies are dynamic block markup, so they cannot be covered by
 * Tailwind's content scanner. These scoped styles keep Gutenberg output
 * readable in the dark theme. */
.entry-content {
	font-size: 1.06rem;
	color: #dbe4ec;
}
.entry-content > *:first-child {
	margin-top: 0;
}
.entry-content h2 {
	font-size: 1.6rem;
	margin-top: 2.2em;
	line-height: 1.2;
	font-weight: 700;
}
.entry-content h3 {
	font-size: 1.3rem;
	margin-top: 1.8em;
	line-height: 1.2;
	font-weight: 700;
}
.entry-content h4 {
	font-size: 1.1rem;
	margin-top: 1.5em;
	font-weight: 700;
}
.entry-content p {
	margin: 0 0 1.1em;
}
.entry-content a {
	word-break: break-word;
}
.entry-content img,
.entry-content figure img {
	border-radius: 10px;
}
.entry-content figure {
	margin: 1.5em 0;
}
.entry-content figcaption {
	color: #8b949e;
	font-size: 0.85rem;
	text-align: center;
	margin-top: 0.6em;
}
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.1em;
	padding-left: 1.4em;
}
.entry-content li {
	margin-bottom: 0.4em;
}
.entry-content blockquote {
	border-left: 3px solid var(--accent, #00e676);
	margin: 1.5em 0;
	padding: 0.4em 0 0.4em 1.2em;
	color: #8b949e;
}
.entry-content blockquote p:last-child {
	margin-bottom: 0;
}
.entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 1.5em 0;
	font-size: 0.92rem;
}
.entry-content th,
.entry-content td {
	border: 1px solid #1e2630;
	padding: 0.5rem 0.8rem;
	text-align: left;
}
.entry-content th {
	background: #11161d;
}
.entry-content hr {
	border: 0;
	border-top: 1px solid #1e2630;
	margin: 2em 0;
}
.entry-content .wp-block-code,
.entry-content .wp-block-preformatted {
	font-family: var(--font-mono);
}

/* ---------- Prose: synced project READMEs (.project-readme) ----------
 * README HTML is synced from GitHub and rendered raw, so it gets the
 * same scoped-prose treatment as .entry-content. */
.project-readme {
	background: #0d1218;
	border: 1px solid #1e2630;
	border-radius: 1rem;
	padding: 1.75rem 2rem;
	max-width: 56rem;
	color: #dbe4ec;
	line-height: 1.7;
}
.project-readme > *:first-child {
	margin-top: 0;
}
.project-readme > *:last-child {
	margin-bottom: 0;
}
.project-readme h1,
.project-readme h2,
.project-readme h3,
.project-readme h4 {
	color: #e6edf3;
	border-bottom: 1px solid #1e2630;
	padding-bottom: 0.4rem;
	line-height: 1.25;
	font-weight: 700;
}
.project-readme h1 {
	font-size: 1.7rem;
}
.project-readme h2 {
	font-size: 1.4rem;
}
.project-readme p,
.project-readme ul,
.project-readme ol {
	margin: 0 0 1em;
}
.project-readme ul,
.project-readme ol {
	padding-left: 1.4em;
}
.project-readme li {
	margin-bottom: 0.3em;
}
.project-readme a {
	color: var(--accent, #00e676);
}
.project-readme code {
	font-family: var(--font-mono);
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid #1e2630;
	border-radius: 0.35rem;
	padding: 0.1rem 0.4rem;
	font-size: 0.86em;
	color: var(--accent, #00e676);
}
.project-readme pre {
	overflow: auto;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid #1e2630;
	border-radius: 0.6rem;
	padding: 1rem;
}
.project-readme pre code {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
}
.project-readme img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
}
.project-readme table {
	border-collapse: collapse;
	width: 100%;
	margin: 1rem 0;
	font-size: 0.9rem;
}
.project-readme th,
.project-readme td {
	border: 1px solid #1e2630;
	padding: 0.5rem 0.8rem;
	text-align: left;
}
.project-readme blockquote {
	border-left: 3px solid var(--accent, #00e676);
	margin: 1rem 0;
	padding: 0.4rem 1rem;
	color: #8b949e;
}
.project-readme hr {
	border: 0;
	border-top: 1px solid #1e2630;
	margin: 1.5em 0;
}
@media (max-width: 640px) {
	.project-readme {
		padding: 1.25rem 1.15rem;
	}
}

/* ---------- File tree (project explorer) ----------
 * Collapsible <details> lists. Pseudo-element markers and open-state
 * styling cannot be expressed as utilities. */
.file-tree {
	list-style: none;
	margin: 0;
	padding: 0;
}
.file-tree .file-tree {
	padding-left: 1.1rem;
}
.file-tree details {
	margin: 0.1rem 0;
}
.file-tree summary {
	cursor: pointer;
	list-style: none;
	padding: 0.35rem 0.6rem;
	border-radius: 0.5rem;
	color: #e6edf3;
	font-size: 0.92rem;
}
.file-tree summary::-webkit-details-marker {
	display: none;
}
.file-tree summary::marker {
	content: "";
}
.file-tree summary:hover {
	background: rgba(0, 230, 118, 0.08);
}
.file-tree details[open] > summary {
	color: var(--accent, #00e676);
}
.ft-folder {
	color: var(--accent, #00e676);
	display: inline-block;
	transition: transform 0.2s;
}
details[open] > summary .ft-folder {
	transform: rotate(90deg);
}
.file-tree-file a {
	display: block;
	padding: 0.3rem 0.6rem;
	border-radius: 0.5rem;
	color: #8b949e;
	font-size: 0.9rem;
	font-family: var(--font-mono);
	word-break: break-all;
	text-decoration: none;
}
.file-tree-file a:hover {
	color: var(--accent, #00e676);
	background: rgba(0, 230, 118, 0.08);
	text-decoration: none;
}

/* ---------- Mobile drawer scroll lock ----------
 * Toggled by main.js when the off-canvas nav opens. */
body.nav-open {
	overflow: hidden;
}
