/*
Theme Name: LaunchWithDilip
Theme URI: https://launchwithdilip.com/
Author: Dilip Kumar
Description: Native block theme for the LaunchWithDilip DevOps portfolio and solutions publication.
Version: 0.1.0
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 8.3
Text Domain: launchwithdilip
*/

html {
	scroll-behavior: smooth;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	background:
		linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 18rem),
		var(--wp--preset--color--base);
}

a {
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--wp--preset--color--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: 3px;
}

.lwd-skip-link {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	left: 1rem;
	padding: 0.7rem 1rem;
	position: fixed;
	top: -10rem;
	z-index: 1000;
}

.lwd-skip-link:focus {
	top: 1rem;
}

.lwd-site-header {
	backdrop-filter: blur(16px);
	background: rgba(251, 252, 253, 0.92);
	border-bottom: 1px solid var(--wp--preset--color--line);
	position: sticky;
	top: 0;
	z-index: 20;
}

.lwd-section {
	padding-block: var(--wp--preset--spacing--70);
}

.lwd-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lwd-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(17, 24, 39, 0.05);
	padding: var(--wp--preset--spacing--50);
}

.lwd-card h3 {
	margin-top: 0;
}

.lwd-badge,
.lwd-card-meta {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 650;
}

.lwd-badge {
	background: color-mix(in srgb, var(--wp--preset--color--signal) 10%, white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--signal) 22%, white);
	border-radius: 999px;
	color: var(--wp--preset--color--accent-strong);
	display: inline-flex;
	padding: 0.25rem 0.6rem;
}

.lwd-dynamic-grid,
.lwd-form-grid {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.lwd-form-wide {
	grid-column: 1 / -1;
}

.lwd-lead-form input,
.lwd-lead-form select,
.lwd-lead-form textarea {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 7px;
	box-sizing: border-box;
	display: block;
	margin-top: 0.35rem;
	min-height: 2.75rem;
	padding: 0.7rem 0.85rem;
	width: 100%;
}

.lwd-lead-form label {
	color: var(--wp--preset--color--secondary);
	font-weight: 650;
}

.lwd-honeypot {
	left: -9999px;
	position: absolute;
}

.lwd-meta-panel,
.lwd-breadcrumbs,
.lwd-empty-state {
	color: var(--wp--preset--color--muted);
}

.lwd-meta-panel {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	padding: var(--wp--preset--spacing--40);
}

.lwd-toc {
	background: var(--wp--preset--color--code);
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--40);
}

.lwd-article-content {
	font-size: 1.0625rem;
}

.lwd-article-content pre,
.lwd-article-content code {
	background: var(--wp--preset--color--code);
	border-radius: 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lwd-article-content pre {
	overflow-x: auto;
	padding: var(--wp--preset--spacing--40);
}

.lwd-cta-band {
	border-block: 1px solid var(--wp--preset--color--line);
}

.lwd-hero-visual {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--50);
}

.lwd-flow {
	display: grid;
	gap: 0.75rem;
}

.lwd-flow-step {
	align-items: center;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 7px;
	display: flex;
	justify-content: space-between;
	padding: 0.85rem 1rem;
}

.lwd-flow-step strong {
	color: var(--wp--preset--color--accent-strong);
}

.lwd-footer-grid {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 760px) {
	.lwd-section {
		padding-block: var(--wp--preset--spacing--60);
	}

	.lwd-footer-grid {
		grid-template-columns: 1fr;
	}
}
